Home   Help Search Login Register  

Author Topic: Resource addon config.cpp  (Read 832 times)

0 Members and 1 Guest are viewing this topic.

Offline CapMorgan

  • Members
  • *
  • OFP fan
    • Cazadores de monte
Resource addon config.cpp
« on: 27 Mar 2003, 15:09:04 »
Hi all. I'm tring to stuff some pics in a pbo and i'm having a cpp problem. How do the pictures must be defined? i tried this, but it's not working. I cant see it as a resource in the trigger's list.

Code: [Select]
class CfgPatches
{
class Foto01
{
units[] = {Foto01};
weapons[] = {};
requiredVersion = 1.75;
};
};

class RscPicture
{
access=3;
type=0;
idc=-1;
style=48;
colorBackground[]={0,0,0,0};
colorText[]={1,1,1,1};
font="tahomaB24";
sizeEx=0;
};

class RscTitles
{
class Default
{
idd=-1;
movingEnable=0;
duration=4;
};
class DefPic: Default
{
type=0;
idc=-1;
style=48;
colorBackground[]={0,0,0,0};
colorText[]={1,1,1,1};
font="tahomaB24";
sizeEx=0;
};
class Foto01
{
idd=-1;
movingEnable=0;
duration=4;
name="foto 01";
controls[]={"foto01"};
class foto01: RscPicture
{
text="fotos\anim01.paa";
x=0.25;
y=0.25;
w=0.5;
h=0.25;
};
};
};

Rubble_Maker

  • Guest
Re:Resource addon config.cpp
« Reply #1 on: 28 Mar 2003, 00:09:00 »
To my very best knowledge, resources can't be defined in a config file :(
The only place where OFP even looks for them is the resource.bin file I think, so patching that file (like the Dynamic Range sound addon did) seems to be the only way. I really hope BIS will fix this stupid limitation soon.