Jump to content
  • 0

HintSilent and Images not showing (Serverside)


MatthewK

Question

I'm running a script on my server in the modules folder that sends a public hintsilent message , it works perfectly while testing locally, the image shows and the text is formatted exactly. When I run it on my main server the text shows but the image doesn't. Not even a grey blob, that would indicate a formatting issues. Nothing, the image simply doesn't load.

I can't find anything on the web that tells me why this would be happening. Can anyone here help please?

Thanks

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0

Ah, one thing I'm doing is I'm adding the images to private variables like so:

_WarningImage = "warning.paa";

_BanditsImage = "bandits.paa";

Should they be public variables?

Also I'm using the global messages fix , which like I said works fine for hints, it's just this image issue i'm having :)

EDIT: Just tried with the image name in the hint img tag itself, still no luck :(

EDIT: Remember these hints are being run on the server.pbo, not locally via the mission.pbo

Link to comment
Share on other sites

  • 0

Sorted. Solution: Move the images to the mission.pbo, declare public variables for the image file locations, then use those in the script on the server pbo.. All works now and this is a collage of my work so far:

o01f7m.png

PS: No, I didn't get them all to display in-game at the same time, that's cut n paste magic for you.. The main one up to the right was cut n paste straight after i died from not opening my parachute, was too busy admiring my hint! lol

Link to comment
Share on other sites

  • 0

Nice work. Have had similar issues calling from the server pbo. Not sure if it's part of the remote exec protection. Also with mp event handlers on my ai troops, would show a file not found error yet the file still ran, confirmed with a log entry.

Have just setup a death match event for a LAN I go to. Placed random signs with the lan logo on around the arena.

Even in the mission they occasionally wouldn't show until a server restart. image was 400k ish, I put it down to server resource being low and image a bit too big or could be a server file stuck in a loop or erroring and not logging.

Link to comment
Share on other sites

  • 0

I learnt how to use public variables and arrays yesterday, when I learnt how to "properly" use arrays for storing mission information, I could have died and gone to heaven lol :)

@Axeman, how do you set custom images for signs? A link to a good resource maybe?

Thanks again for all your help dudes :D

Link to comment
Share on other sites

  • 0
for "_count" from 1 to 10 do {
_pos = [_centre,10,400,0.5,0,1,0] call BIS_fnc_findSafePos;
if(count _pos <3)then{_pos set [2, 0];};
_obj = createVehicle ["WarfareBunkerSign", _pos, [], 0, "CAN_COLLIDE"];
_obj setVehicleInit "this setObjectTexture [0,""modules\dayZDM\fragland.paa""]";
//_obj setObjectTexture [0,"modules\dayZDM\fragland.paa"];
_obj setPos _pos;
_obj setDir floor(random 360);
[DZE_DMSigns, _obj] call BIS_fnc_arrayPush;
//diag_log format ["AXELOG:Sign:%1 - %2",_obj,_count];
};

That adds ten randomly placed signs. The image file is in my mission..

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...