Jump to content
Sign in to follow this  
Kommiekat

setObjetTexture for a vehicle (ship)

Recommended Posts

I want this image, on the side of an assault boat:

chinastart_zps432eef16.jpg

I was able to do it in Arma 2 with hookie's mod of ships and mines, using this code:

this setObjectTexture [1,"Images\chinastar.jpg"];

This seems to be no longer working.

BIS WIKI has this code:

_objectname setObjectTexture [1,"\pboname\texture2.paa"]

First of all, I'm using jpg

Secondly, I have no idea what this "pboname" is all about.

I'm I going to be at a loss on this?

This Patrol boat has to be Chinese and is the main Star of my mission.

Any ideas to help a kommie out?

Share this post


Link to post
Share on other sites

So I guess I'm out of luck?

Any body have a thread or link to hook me up with?

Cheers

Share this post


Link to post
Share on other sites

Here are the available hidden selections for the ArmA3 minigun boat:

Z57dmCY.jpg

You could copy one of these files, add your Star to it and include it with the mission: "\A3\boat_f\Boat_Armed_01\data\Boat_Armed_01_ext_co.paa","\A3\boat_f\Boat_Armed_01\data\Boat_Armed_01_int_co.paa","\A3\boat_f\Boat_Armed_01\data\Boat_Armed_01_crows_blufor_co.paa"

Edited by kylania

Share this post


Link to post
Share on other sites

I really appreciate you taking the time to reply and with that pic as well!

BTW, this is Opfor boat.

Pic Dimentions:

64 X 64

Object name: v1

So, in unit (ship) init box:

v1 setObjectTexture [1,"\A3\boat_f\Boat_Armed_01\data\chinesestar.jpg"];

or

v1 setObjectTexture [2, "\A3\boat_f\Boat_Armed_01\data\chinesestar.jpg"];

or

v1 setObjectTexture [0, "\A3\boat_f\Boat_Armed_01\data\chinesestar.jpg"];

Correct?

---------- Post added at 06:50 PM ---------- Previous post was at 06:34 PM ----------

OK, Pic at 64 X 64

v1 setObjectTexture [1,"\A3\boat_f\Boat_Armed_01\data\chinesestar.jpg"];

setat1_zpsaa1a9c86.jpg

v1 setObjectTexture [2, "\A3\boat_f\Boat_Armed_01\data\chinesestar.jpg"];

setat2_zpsa66e5941.jpg

v1 setObjectTexture [0, "\A3\boat_f\Boat_Armed_01\data\chinesestar.jpg"];

http://i10.photobucket.com/albums/a126/buddhaboyjp/CIA_SAD/arma32013-10-0716-52-05-40_zps511ed742.png (384 kB)

Perhaps the pic is too big?

I'll try one size smaller......but that's getting real small...............

---------- Post added at 07:08 PM ---------- Previous post was at 06:50 PM ----------

Brought pic down to:

32 X 32

No luck

16 X 16

No luck

256 X 256

No luck

I'll try something else....

Edited by Kommiekat

Share this post


Link to post
Share on other sites

More referrences added:

Boat_Armed_01\Data\boat_armed_01_crows_indp_co.paa
Boat_Armed_01\Data\boat_armed_01_ext_indp_co.paa
Boat_Armed_01\Data\boat_armed_01_int_indp_co.paa
Boat_Armed_01\Data\boat_armed_01_body_co.paa:Wed Jun 12 00:08:44 2013: size 1323303
Boat_Armed_01\Data\boat_armed_01_crows_blufor_co.paa:Wed Jun 12 00:08:09 2013: size 415648
Boat_Armed_01\Data\boat_armed_01_crows_opfor_co.paa:Wed Jun 12 00:07:45 2013: size 437485
Boat_Armed_01\Data\boat_armed_01_ctrls.rvmat:Wed Jun 12 00:09:32 2013: size 1478
Boat_Armed_01\Data\boat_armed_01_ctrls_as.paa:Wed Jun 12 00:06:00 2013: size 1242864
Boat_Armed_01\Data\boat_armed_01_ctrls_co.paa:Wed Jun 12 00:05:55 2013: size 1604201
Boat_Armed_01\Data\boat_armed_01_ctrls_damage.rvmat:Wed Jun 12 00:09:34 2013: size 1481
Boat_Armed_01\Data\boat_armed_01_ctrls_destruct.rvmat:Wed Jun 12 00:09:34 2013: size 1429
Boat_Armed_01\Data\boat_armed_01_ctrls_nohq.paa:Wed Jun 12 00:05:57 2013: size 132674
Boat_Armed_01\Data\boat_armed_01_ctrls_smdi.paa:Wed Jun 12 00:06:04 2013: size 1399207
Boat_Armed_01\Data\boat_armed_01_ctrls_ti_ca.paa:Wed Jun 12 00:06:04 2013: size 121110
Boat_Armed_01\Data\boat_armed_01_ext.rvmat:Wed Jun 12 00:09:32 2013: size 1470
Boat_Armed_01\Data\boat_armed_01_ext_as.paa:Wed Jun 12 00:06:20 2013: size 1047305
Boat_Armed_01\Data\boat_armed_01_ext_co.paa:Wed Jun 12 00:06:13 2013: size 1806094
Boat_Armed_01\Data\boat_armed_01_ext_damage.rvmat:Wed Jun 12 00:09:34 2013: size 1475
Boat_Armed_01\Data\boat_armed_01_ext_destruct.rvmat:Wed Jun 12 00:09:34 2013: size 1427
Boat_Armed_01\Data\boat_armed_01_ext_nohq.paa:Wed Jun 12 00:06:17 2013: size 1026793
Boat_Armed_01\Data\boat_armed_01_ext_opfor_co.paa:Wed Jun 12 00:06:54 2013: size 1864257
Boat_Armed_01\Data\boat_armed_01_ext_smdi.paa:Wed Jun 12 00:06:25 2013: size 1437611
Boat_Armed_01\Data\boat_armed_01_ext_ti_ca.paa:Wed Jun 12 00:06:26 2013: size 445186
Boat_Armed_01\Data\boat_armed_01_int.rvmat:Wed Jun 12 00:09:32 2013: size 1470
Boat_Armed_01\Data\boat_armed_01_int_as.paa:Wed Jun 12 00:06:39 2013: size 1569712
Boat_Armed_01\Data\boat_armed_01_int_co.paa:Wed Jun 12 00:06:33 2013: size 1815187
Boat_Armed_01\Data\boat_armed_01_int_damage.rvmat:Wed Jun 12 00:09:34 2013: size 1475
Boat_Armed_01\Data\boat_armed_01_int_destruct.rvmat:Wed Jun 12 00:09:34 2013: size 1427
Boat_Armed_01\Data\boat_armed_01_int_nohq.paa:Wed Jun 12 00:06:37 2013: size 937275
Boat_Armed_01\Data\boat_armed_01_int_opfor_co.paa:Wed Jun 12 00:07:01 2013: size 1834632
Boat_Armed_01\Data\boat_armed_01_int_smdi.paa:Wed Jun 12 00:06:45 2013: size 1137531
Boat_Armed_01\Data\boat_armed_01_int_ti_ca.paa:Wed Jun 12 00:06:46 2013: size 422395
Boat_Armed_01\Data\Boat_Armed_01_minigun_cargo_proxy.p3d:Mon Sep 16 23:19:47 2013: size 488802
Boat_Armed_01\Data\Boat_Armed_01_minigun_proxy.p3d:Mon Sep 16 23:19:47 2013: size 196421
Boat_Armed_01\Data\boat_armed_01_wire.rvmat:Wed Jun 12 00:09:33 2013: size 1420
Boat_Armed_01\Data\boat_armed_01_wire_co.paa:Wed Jun 12 00:07:02 2013: size 67857
Boat_Armed_01\Data\boat_armed_01_wire_nohq.paa:Wed Jun 12 00:07:03 2013: size 174612
Boat_Armed_01\Data\boat_armed_01_wire_smdi.paa:Wed Jun 12 00:07:03 2013: size 80371
Boat_Armed_01\Data\minigun.rvmat:Wed Jun 12 00:09:33 2013: size 1545
Boat_Armed_01\Data\minigun_boat_armed_01_add.rvmat:Wed Jun 12 02:27:05 2013: size 1599
Boat_Armed_01\Data\minigun_boat_armed_01_add_co.paa:Wed Jun 12 00:08:26 2013: size 315027
Boat_Armed_01\Data\minigun_boat_armed_01_add_nohq.paa:Wed Jun 12 02:26:47 2013: size 632335
Boat_Armed_01\Data\minigun_boat_armed_01_add_smdi.paa:Wed Jun 12 02:26:48 2013: size 358387
Boat_Armed_01\Data\minigun_boat_armed_01_add_ti_ca.paa:Wed Jun 12 02:26:49 2013: size 29474
Boat_Armed_01\Data\minigun_co.paa:Wed Jun 12 00:08:15 2013: size 1244557
Boat_Armed_01\Data\minigun_nohq.paa:Wed Jun 12 00:08:19 2013: size 1394205
Boat_Armed_01\Data\minigun_smdi.paa:Wed Jun 12 00:08:23 2013: size 1380773
Boat_Armed_01\Data\minigun_ti_ca.paa:Wed Jun 12 00:08:24 2013: size 536095
Boat_Armed_01\Data\staticturret_01.rvmat:Wed Jun 12 00:09:33 2013: size 1450
Boat_Armed_01\Data\staticturret_01_co.paa:Wed Jun 12 00:07:11 2013: size 2114174
Boat_Armed_01\Data\staticturret_01_damage.rvmat:Wed Jun 12 00:09:34 2013: size 1452
Boat_Armed_01\Data\staticturret_01_nohq.paa:Wed Jun 12 00:07:15 2013: size 3632782
Boat_Armed_01\Data\staticturret_01_smdi.paa:Wed Jun 12 00:07:21 2013: size 2129393
Boat_Armed_01\Data\staticturret_01_ti_ca.paa:Wed Jun 12 00:07:23 2013: size 586230
Boat_Armed_01\Data\staticturret_02.rvmat:Wed Jun 12 00:09:33 2013: size 1450
Boat_Armed_01\Data\staticturret_02_co.paa:Wed Jun 12 00:07:31 2013: size 2161849
Boat_Armed_01\Data\staticturret_02_nohq.paa:Wed Jun 12 00:07:36 2013: size 2507203
Boat_Armed_01\Data\staticturret_02_smdi.paa:Wed Jun 12 00:07:42 2013: size 1683352
Boat_Armed_01\Data\staticturret_02_ti_ca.paa:Wed Jun 12 00:07:43 2013: size 452247
Boat_Armed_01\Data\UI\boat_armed_01_base.paa:Wed Jun 12 00:08:39 2013: size 11081
Boat_Armed_01\Data\UI\boat_armed_01_minigun.paa:Wed Jun 12 01:10:23 2013: size 11081
Boat_Armed_01\Data\UI\map_boat_armed_01.paa:Wed Jun 12 00:08:39 2013: size 45036
Boat_Armed_01\Data\UI\map_boat_armed_01_minigun.paa:Wed Jun 12 00:08:39 2013: size 44787

Maybe you have to retexture the module as making an addon if setObjectTexture doesn't support smaller parts I guess.

Share this post


Link to post
Share on other sites

You could also spawn a helper-object like "UserTexture1m_F", paint your star on it and attach that to the boat. That might not be as beautiful as using a properly modified skin but it is easier to do and uses less filesize.

Share this post


Link to post
Share on other sites
You could also spawn a helper-object like "UserTexture1m_F", paint your star on it and attach that to the boat. That might not be as beautiful as using a properly modified skin but it is easier to do and uses less filesize.

Could you kindly give me a bit more info on how to code that in the unit?

v1 setObjectTexture [0, "\A3\boat_f\UserTexture1m_F\data\chinesestar.jpg"]; ??

Share this post


Link to post
Share on other sites

when you say 64x64, I assume there is only the cstar in your bitmap and no camo texture background?

setObjectTexture don't add textures to the vehicle, setObjectTexture change the whole texture.

you need a 1024x1024 or 2048x2048 camo-texture and a paintprogramm to make a vehicletextures with flagsigns or other stickers.

Share this post


Link to post
Share on other sites
when you say 64x64, I assume there is only the cstar in your bitmap and no camo texture background?

setObjectTexture don't add textures to the vehicle, setObjectTexture change the whole texture.

you need a 1024x1024 or 2048x2048 camo-texture and a paintprogramm to make a vehicletextures with flagsigns or other stickers.

Thanks for that.

Seems a bit of a big project for me to do at this time.

Hopefully majoris who got PLA mod going or the guys from China with PLA_VME will do something about that.

cheers

Share this post


Link to post
Share on other sites

Was thinking about something like this: (you'll have to adjust the coordinates and orientation)

tex = "UserTexture1m_F" createVehicle position boat;
tex setObjectTexture [0, "\A3\boat_f\Boat_Armed_01\data\chinesestar.jpg"];
tex attachTo [boat,[1,0,0]];
tex setVectorDirAndUp [[1,0,0],[0,0,0]];

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
Sign in to follow this  

×