Home   Help Search Login Register  

Author Topic: CutRsc, Description.ext and me  (Read 863 times)

0 Members and 1 Guest are viewing this topic.

Offline icarus_uk

  • Members
  • *
  • LiarLiarPants Inflame True
    • [furryclan]
CutRsc, Description.ext and me
« on: 12 Feb 2003, 14:57:54 »
How do I set up the description.ext for multiple pictures?  Infact how do I set it up for one?

I thought I had it, but whenever the picture is meant to show up, I get the error that the title can not be found?!

My desription.ext thus far is;

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

class RscTitles
{

class b2zgroup.paa
{
idd=-2;
movingEnable=1;
duration=8;
name="b2zgroup.paa";
controls[]={"b2zgroup.paa"};

class b2zgroup.paa: RscPicture
{
text="b2zgroup.paa";
x=0.00000;
y=0.00000;
w=0.75;
h=0.375;
};


};
titles[]={"b2zgroup.paa"};
};
};



And I have a picture in my unsers>Missions>MissionName folder called b2zgroup.paa, but when I call it from the mission with the command;

cutRsc ["b2zgroup.paa", "PLAIN"]

I get the error;

b2zgroup.paa title not found.

So where am I going wrong?
« Last Edit: 12 Feb 2003, 15:01:07 by [icarus_uk] »

Offline Black_Feather

  • Former Staff
  • ****
  • I'll never forget you Daisey.
Re:CutRsc, Description.ext and me
« Reply #1 on: 12 Feb 2003, 19:36:39 »
I wouldn't use b2zgroup.paa as a classname just b2zgroup will do, then use cutRsc ["b2zgroup", "PLAIN"] to get it working, so it should look like this

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

class RscTitles
{

class b2zgroup
{
idd=-2;
movingEnable=1;
duration=8;
name="b2zgroup";
controls[]={"b2zgroup"};

class b2zgroup: RscPicture
{
text="b2zgroup.paa";
x=0.00000;
y=0.00000;
w=0.75;
h=0.375;
};
};

titles[]={"b2zgroup"};
};
};

if you want two different resources use this


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

class RscTitles
{

class b2zgroup
{
idd=-2;
movingEnable=1;
duration=8;
name="b2zgroup";
controls[]={"b2zgroup"};

class b2zgroup: RscPicture
{
text="b2zgroup.paa";
x=0.00000;
y=0.00000;
w=0.75;
h=0.375;
};
};



class differentpic
{
idd=-2;
movingEnable=1;
duration=8;
name="differentpic";
controls[]={differentpic};

class differentpic: RscPicture
{
text="differentpic.paa";
x=0.00000;
y=0.00000;
w=0.75;
h=0.375;
};
};


titles[]={"b2zgroup","differentpic"};
};
};


but if you want one resource with two pictures so you don't have stetch them use this and adjust x & y positions


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

class RscTitles
{

class b2zgroup
{
idd=-2;
movingEnable=1;
duration=8;
name="b2zgroup";
controls[]={"b2zgroup","b2zgroup2"};

class b2zgroup: RscPicture
{
text="b2zgroup.paa";
x=0.00000;
y=0.00000;
w=0.75;
h=0.375;
};


class b2zgroup2: RscPicture
{
text="b2zgroup2.paa";
x=0.50000;
y=0.50000;
w=0.75;
h=0.375;
};
};


titles[]={"b2zgroup"};
};
};