Results 1 to 7 of 7

Thread: How to extent the RscTitles class in description.ext

  1. #1

    How to extent the RscTitles class in description.ext

    Ello I was just wondering about 2 things !

    1: How do I add a second to this object here?, I got everytime errors with } and such. ( no I'm not a scriptkiddy )
    I think or I misplace it or miss one but witch one ?

    Code:
    class RscTitles
    {
     titles[] = {"LDDK"}; 
    
     class LDDK {
       idd = -1;
       movingEnable = 0;
       duration = 10;  
       fadein = 2;
       fadeout = 2;
       name="LDDK";
    
       controls[]={"Picture"};
    
       class Picture {
         x=0.0; y=0.0; w=1.0; h=1.0;
         text="lddk.paa";
         sizeEx = -1;
         type=0;
         idc=-1;
         style=48;
         colorBackground[]={0,0,0,0};
         colorText[]={1,1,1,1};
         font="Bitstream";
       };
     };
    };
    2: What does this mean !

    sizeEx = -1;
    Thank you for the time and the help
    Greetz KillerBee !

  2. #2
    Quote Originally Posted by [LOL]clan Killer Bee View Post

    2: What does this mean !

    sizeEx = -1;

    Thank you for the time and the help
    Greetz KillerBee !
    to change the size of the writing.

  3. #3
    Okay !
    So I understand this is notmally a writting script but is ussed for a .paa on the moment.
    Still I need to know how to add more .paa's
    I want atleast 3

    mission,MadKiller,lol

    If I do it I get errors all the time ?
    Don't know what I'm doing wrong ?
    Problem is also I'm dislectic as hell so that doesn't help.

    This is what I got !

    Code:
    
    class RscTitles
    {
     titles[] = {"mission","madkiller", "lol"}; 
    
     class mission {
       idd = -1;
       movingEnable = 0;
       duration = 10;  
       fadein = 2;
       fadeout = 2;
       name="mission";
    
       controls[]={"Picture"};
    
       class Picture {
         x=0.0; y=0.0; w=1.0; h=1.0;
         text="mission.paa";
         sizeEx = -1;
         type=0;
         idc=-1;
         style=48;
         colorBackground[]={0,0,0,0};
         colorText[]={1,1,1,1};
         font="Bitstream";
       };
    {
    
    
     class madkiller {
       idd = -1;
       movingEnable = 0;
       duration = 10;  
       fadein = 2;
       fadeout = 2;
       name="madkiller";
    
       controls[]={"Picture"};
    
       class Picture {
         x=0.0; y=0.0; w=1.0; h=1.0;
         text="madkiller.paa";
         sizeEx = -1;
         type=0;
         idc=-1;
         style=48;
         colorBackground[]={0,0,0,0};
         colorText[]={1,1,1,1};
         font="Bitstream";
       };
    {
    
    class lol {
       idd = -1;
       movingEnable = 0;
       duration = 10;  
       fadein = 2;
       fadeout = 2;
       name="lol";
    
       controls[]={"Picture"};
    
       class Picture {
         x=0.0; y=0.0; w=1.0; h=1.0;
         text="lol.paa";
         sizeEx = -1;
         type=0;
         idc=-1;
         style=48;
         colorBackground[]={0,0,0,0};
         colorText[]={1,1,1,1};
         font="Bitstream";
       };
    };
    };
    Last edited by [LOL]clan Killer Bee; Sep 15 2010 at 15:36.

  4. #4
    Nobody who can lend me a hand !?

  5. #5
    Just a quick curly braces matching in UltraEdit, I have no idea if this works:
    Code:
    class RscTitles
    {
     titles[] = {"mission","madkiller", "lol"}; 
    
     class mission {
       idd = -1;
       movingEnable = 0;
       duration = 10;  
       fadein = 2;
       fadeout = 2;
       name="mission";
    
       controls[]={"Picture"};
    
       class Picture {
         x=0.0; y=0.0; w=1.0; h=1.0;
         text="mission.paa";
         sizeEx = -1;
         type=0;
         idc=-1;
         style=48;
         colorBackground[]={0,0,0,0};
         colorText[]={1,1,1,1};
         font="Bitstream";
       };
     };
    
     class madkiller {
       idd = -1;
       movingEnable = 0;
       duration = 10;  
       fadein = 2;
       fadeout = 2;
       name="madkiller";
    
       controls[]={"Picture"};
    
       class Picture {
         x=0.0; y=0.0; w=1.0; h=1.0;
         text="madkiller.paa";
         sizeEx = -1;
         type=0;
         idc=-1;
         style=48;
         colorBackground[]={0,0,0,0};
         colorText[]={1,1,1,1};
         font="Bitstream";
       };
     };
    
     class lol {
       idd = -1;
       movingEnable = 0;
       duration = 10;  
       fadein = 2;
       fadeout = 2;
       name="lol";
    
       controls[]={"Picture"};
    
       class Picture {
         x=0.0; y=0.0; w=1.0; h=1.0;
         text="lol.paa";
         sizeEx = -1;
         type=0;
         idc=-1;
         style=48;
         colorBackground[]={0,0,0,0};
         colorText[]={1,1,1,1};
         font="Bitstream";
       };
     };
    };
    Busy with my own stuff atm, so I didn't have time to do proper tab indents or make it any cleaner. But the point is to match opening curlys { with closing curclys }; A good text editor (UltraEdit or NotePad++) offers bracket matching and highlighting.
    Regards
    Carl Gustaffa - left this game due becoming Steam Exclusive

  6. #6
    Thank you for your post.
    I gonna try it.
    I'm glad that someone is willing to help.
    I have all those Idea's for missions but I'm so damn limited as it comes to scripting and reading it with this damn dislectie.
    If It works it solve ¾ of my mission and be the happiest muppet in town !

  7. #7
    Thanks for the help it works !


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •