Home   Help Search Login Register  

Author Topic: problem with custom texture in baracken addon  (Read 2144 times)

0 Members and 1 Guest are viewing this topic.

Offline moritus

  • Members
  • *
problem with custom texture in baracken addon
« 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

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: problem with custom texture in baracken addon
« Reply #1 on: 12 Aug 2008, 14:16:59 »
I think you cannot use a jpg for that, but I know little or nothing about textures.

Offline moritus

  • Members
  • *
Re: problem with custom texture in baracken addon
« Reply #2 on: 13 Aug 2008, 00:10:16 »
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...
« Last Edit: 13 Aug 2008, 00:18:57 by moritus »

Offline Gnat

  • Addons Depot
  • Moderator
  • *****
  • I Bite!
    • Gnats
Re: problem with custom texture in baracken addon
« Reply #3 on: 13 Aug 2008, 14:42:15 »
Is the texture the correct / compatible size?
64x128, 128x64, 256x256, etc etc

Offline moritus

  • Members
  • *
Re: problem with custom texture in baracken addon
« Reply #4 on: 14 Aug 2008, 03:16:10 »
the size is 256 x 128


Offline Gnat

  • Addons Depot
  • Moderator
  • *****
  • I Bite!
    • Gnats
Re: problem with custom texture in baracken addon
« Reply #5 on: 14 Aug 2008, 12:08:46 »
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

Offline moritus

  • Members
  • *
Re: problem with custom texture in baracken addon
« Reply #6 on: 14 Aug 2008, 13:38:53 »
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
« Last Edit: 14 Aug 2008, 13:58:35 by moritus »

Offline Gnat

  • Addons Depot
  • Moderator
  • *****
  • I Bite!
    • Gnats
Re: problem with custom texture in baracken addon
« Reply #7 on: 14 Aug 2008, 17:17:38 »
- 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.


Offline moritus

  • Members
  • *
Re: problem with custom texture in baracken addon
« Reply #8 on: 15 Aug 2008, 00:30:31 »
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?