Jump to content

Recommended Posts

So I've placed laptops in editor and in attributes they have a path for custom textures. I've set one to test if it works and it does in SP. In MP however, only I can see it, my friend cannot. Here is an example, left one is standart, right one has a custom picture. My friend sees them as identical, not even a black screen on the right one. Picture is a jpg in C:\Users\Myusername\Documents\Arma 3\mpmissions\mymissionname\Textures No initfield setObjectTexture or anything. So... does it not work like this and do I make it work then?

http://ipic.su/img/img7/fs/a3.1510502138.jpg

Share this post


Link to post
Share on other sites

Greetings.
Try putting this in the init:

if (isServer) then {[YourUserTextureName,[0,"\Textures\YourFileName.jpg"]] remoteExec ["setObjectTexture",0,true]};

 

EDIT: Nevermind, that's not it. I thought you were doing it with the user texture.

Share this post


Link to post
Share on other sites

SerbiX8, doen't work. setObjectTextureGlobal doesn't work either. The only reaction I got from it is that I can change colour if I put RGB in it, then my friend can see it too. But if it's my pic - no.

Share this post


Link to post
Share on other sites

Put this in your laptop init:

this setObjectTextureGlobal [0, "textures\texture.paa"];

Assuming your texture file is named texture.paa and is inside a folder called "textures" - it should work.

Share this post


Link to post
Share on other sites

...

Send me your mission please.

Share this post


Link to post
Share on other sites

HazJ, that got me an idea to send the mission to my friend and now it shows pictures how I wanted. Even without setObjectTextureGlobal or setObjectTexture, just by typing the path in the laptop attributes. I guess it's the same thing really. But only if it's in Arma\MPMissions, not the Documents\Arma 3\mpmissions...

Maybe thats an obvious thing, just wasn't ever specified.

So I guess thx for responses.

Share this post


Link to post
Share on other sites

Use setObjectTextureGlobal command for server, so everyone (global) will see it. Did you get it working? If not, add me on Steam so I can help you directly.

http://steamcommunity.com/id/iamhaz/

Share this post


Link to post
Share on other sites
6 minutes ago, HazJ said:

Did you get it working?

Well kind of yes, my friend now can see the picture too, now that we have the same thing in Arma\MPMissions. So I don't need setObjectTextureGlobal anymore. I've always assumed that whoever joins the server, gets all the nessesary files with mission.sqm, init.sqf and whatnot. Guess I was wrong or maybe it's just us.

Thx anyway.

Share this post


Link to post
Share on other sites

WHAT?! No. I don't know what you are doing... It isn't like a mod/addon. The texture is in mission.

Share this post


Link to post
Share on other sites
7 minutes ago, HazJ said:

I don't know what you are doing

Heh... what I'm doing is trying with all my might not to get TOO frustrated because of all the little things that don't work properly, nor ever really explained, and break with every other update. But it's way too hard, even after about five years of making small missions to play with my few friends. I've cursed the day that I first got this raggity excuse of a "game".

Otherwise I'm fine, now that I know how to show the pictures to everyone on the server.

Share this post


Link to post
Share on other sites

No. That is not normal, nor correct. It doesn't even make any sense why you would do that. Sure, if you are playing with friends, you can just get them to do that but it's so weird. My example mission should work, without them having to put it in their MPMissions folder. Please host my example mission and get your friend to join (without him/her putting in in their MPMissions folder), start the mission. Let me know the result.

Share this post


Link to post
Share on other sites

hello guys
How to use this command, for a script, where 3 images must appear with an interval of 2 sec on the screen of the laptop?
I'm doing tests locally, every time I have an order error?
please help me...

Share this post


Link to post
Share on other sites

use a script in the object:

 

//[this] execVM "Screen_laptop.sqf";

_objet_interval = _this select 0;

while {true} do {
  
_objet_interval setObjectTextureGlobal [0, "textures\texture1.paa"];
sleep 2;
_objet_interval setObjectTextureGlobal [0, "textures\texture2.paa"];
sleep 2;
_objet_interval setObjectTextureGlobal [0, "textures\texture3.paa"];
  
sleep 2; 
};

 

Share this post


Link to post
Share on other sites
16 minutes ago, DÄZ said:

use a script in the object:

 


//[this] execVM "Screen_laptop.sqf";

_objet_interval = _this select 0;

_objet_interval setObjectTextureGlobal [0, "textures\texture1.paa"];
sleep 2;
_objet_interval setObjectTextureGlobal [0, "textures\texture2.paa"];
sleep 2;
_objet_interval setObjectTextureGlobal [0, "textures\texture3.paa"];

 

Thank you I will do my tests

Share this post


Link to post
Share on other sites
On 11/12/2017 at 4:22 PM, HazJ said:

Put this in your laptop init:


this setObjectTextureGlobal [0, "textures\texture.paa"];

Assuming your texture file is named texture.paa and is inside a folder called "textures" - it should work.

I put this script in a Rugged large screen.

 

this setObjectTextureGlobal [0, "Map.jpg"];

 

And when I launch the mission I get a "Picture map.jpg not found" error

 

Pls help

Share this post


Link to post
Share on other sites
4 hours ago, E. Shaffer said:

this setObjectTextureGlobal [0, "Map.jpg"];

 

Do you have a jpeg in the root of your mission file called Map.jpg? Is its dimensions in the power of 2? e.g. 256 x 256 or 512 x 256 et al.?

  • Like 2

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×