OFPEC Forum
Addons & Mods Depot => OFP - Addons & Mods General => Topic started by: moritus on 12 Aug 2008, 02:03:46
-
hi,
I want to set custom texture to the ad panel in baracken addon (Schild_united)
i have a jpeg file and used the following code
panel setObjectTexture [0,"images\test.jpg"]
but the pic on the panels stay the same...
did i do something wrong or we can'T change pic??
I want to make custom panel like "shooting range" etc...
thanks
-
I think you cannot use a jpg for that, but I know little or nothing about textures.
-
Hi..
ok i have try .paa files but the picture on the panel doesn't change
If i can't change this one.. someone know a panel like the one where we can change the pic...
-
Is the texture the correct / compatible size?
64x128, 128x64, 256x256, etc etc
-
the size is 256 x 128
-
The correct syntax for the command is;
_objectname setobjecttexture [0,"\pboname\texture2.paa"]
- Have you named the sign "panel" ?
- I assume your images are in a PBO file called "images.pbo"
- Inside the PBO is at least 1 file, 1 called "test.paa"
- Where is your PBO located ?
- Are you sure the image.pbo is being loaded
-
Oh..
no my pic is not in the pbo file i was thinking that i can do the same as the flag...
so i just to add my pic to the pbo file and it should work?
did i have to put the pic in the same pbo as the panel (baracken) or i can put the pic in other pbo
i have try to make a pbo with my pic and try to put the pic in the same pbo as the panel....both don't wwork
i can't tell you if my pic or my pbo is loaded..how i check that
-
- Create a folder "images"
- Inside that folder place the file test.paa
- PBO the folder so its name is "images.pbo"
- Place that PBO in the same directory as where you keep baracken pbo files
Run the game and in editor;
- place a panel on the map
- name it "panelX"
- in the INIT field place: this setobjecttexture [0,"\images\test.paa"]
if that doesnt work, create a Alpha radio trigger. in the "on Act." field put: panelX setobjecttexture [0,"\images\test.paa"]
Use the radio trigger and see if it works.
if that doesnt work, replace the 0 with a 1 or a 2 or a 3
If that doesnt work .... ? ..... then theres something wrong with the panel.
-
i tr4y these but the pic doesn't change so may be something wrong with the panel...
can i ask you if you can make an addon with this panel but a working one?