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.

  • Like 1

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.

  • Like 1
  • Thanks 1

Share this post


Link to post
Share on other sites

HazJ, oh it should. But somehow it doesn't. It changes to the pic, i can see it. But others can't, they just see that regular laptop screen.

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
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.

  • Like 1

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.

  • Sad 1

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.

  • Like 1

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; 
};

 

  • Like 1

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 3

Share this post


Link to post
Share on other sites

Yes... change the "0" below to "1" and "2"...

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

you have to try, which monitor used by the values 0,1, and 2...
I dont know on the fly...

Share this post


Link to post
Share on other sites

So basically, what happens is my friends can't see the pictures, because their client is looking for it on my computer, how do I make it searches withing the mission folder only?

Share this post


Link to post
Share on other sites

Open your mission folder in  

C:\Users\greywolf\Documents\Arma 3 - Other Profiles\greywolf\mpmissions\

make a new folder for all your custom textures - name it something like "skins"

Drop in all your computer screens "textureA_co_.paa", "textureB_co_.paa", "textureC_co_.paa"  

Then in 3den editor open the init panel for your laptop. 
Paste this into it.
 

call{
this setObjectTextureGlobal [0, "skins\textureA_co_.paa"]; 
this setObjectTextureGlobal [1, "skins\textureB_co_.paa"]; 
this setObjectTextureGlobal [2, "skins\textureC_co_.paa"]; 
}


Chances are this will work, but 0 may be the texture of the laptop itself, if so try changing the 0,1,2 to 1,2,3

Share this post


Link to post
Share on other sites

have you done this:

texturesjpjlh.jpg

 

As you can see the .paa-pictures are in a folder called "pictures" in your mission-root-folder.

BTW: This will show the textures in Eden too.
 

  • Like 1
  • Thanks 1

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

×