OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: greg147 on 14 Mar 2007, 18:06:41

Title: CutRsc Problems
Post by: greg147 on 14 Mar 2007, 18:06:41
Hi all,

I've been trying to get acouple of pictures ingame for a intro. I found an old OFP tutorial, but it appears it doesn't work the same as ArmA, as I get a CTD on opening the mission in the editor.
Unfortuntly, the BIS wiki page doesn't have an example of what needs to be put in the Description.ext, so i'm pretty stuck on this one.

Does anyone have any ideas of how to get this to work?

Thanks
Title: Re: CutRsc Problems
Post by: Mandoble on 14 Mar 2007, 19:41:28
class RscPicture
{
   type = 0;
   style = 48;
   idc = -1;
   colorBackground[] = {1, 1, 1, 1};
   colorText[] = {1, 1, 1, 1};
   font = "Bitstream";
   size = 0;
   sizeEx = 1;
   lineSpacing = 1.0;
};

class RscTitles
{   
   class RadarDisplay
   {
      idd=-1;
      movingEnable=true;
      duration=10;
      name="radar";
      controls[]={"pantalla"};
      class pantalla : RscPicture
      {
         text = "radar.jpg";
         x = 0.31; y = 0.15;
         w = 0.38; h = 0.5;
      };
   };
};

Create a 256x256 jpg named radar placed in your mission folder and try CutRsc with "radar" resource.
Title: Re: CutRsc Problems
Post by: greg147 on 14 Mar 2007, 20:35:31
Thanks, but I get an 'Resource title 'Radar.jpg' not found' error when trying it. Image is definatly a jpg file, sized 256x256.

Any ideas?
Title: Re: CutRsc Problems
Post by: Mandoble on 14 Mar 2007, 22:28:55
You need that jpg, just pick any jpg resize it to 256x256, rename it to radar.jpg and copy it into your mission folder
Title: Re: CutRsc Problems
Post by: greg147 on 15 Mar 2007, 08:54:37
Yep, thats what I've got. Still get the error though.

Does the position of the text in the Description.ext matter? I've got it at the bottom, under a weapons section and some smaller ones at the top.
Title: Re: CutRsc Problems
Post by: Cheetah on 15 Mar 2007, 15:03:42
The position in the description.ext shouldn't be a problem. I'll test this.

EDIT: works for me. Attached a working mission.
Title: Re: CutRsc Problems
Post by: greg147 on 15 Mar 2007, 19:15:59
Ah thanks, got it. I was activating it in completely the wrong way.

On a side note, what would I have to change to get the picture to show up larger, like the whole screen? Resizing the image didn't seem to work.

Thanks
Title: Re: CutRsc Problems
Post by: Cheetah on 15 Mar 2007, 23:08:28
From my mind (don't kill me if I'm wrong please..):

Code: [Select]
class RscTitles
{   
   class RadarDisplay
   {
      idd=-1;
      movingEnable=true;
      duration=10;
      name="radar";
      controls[]={"pantalla"};
      class pantalla : RscPicture
      {
         text = "radar.jpg";
         x = 0.31; y = 0.15;
         w = 0.95; h = 0.95;
      };
   };
};

Notice the last line of real code, with w= and h= (width and height) play with them to find the correct numbers.
Title: Re: CutRsc Problems
Post by: greg147 on 16 Mar 2007, 18:13:57
Ah right. Thanks lads, got it working fine.