Home   Help Search Login Register  

Author Topic: CutRsc Problems  (Read 1733 times)

0 Members and 1 Guest are viewing this topic.

Offline greg147

  • Contributing Member
  • **
    • Royal Air Assault Battalion
CutRsc Problems
« 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
Royal Air Assault Battalion - [L/Cpl] Greg
RAAB

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: CutRsc Problems
« Reply #1 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.

Offline greg147

  • Contributing Member
  • **
    • Royal Air Assault Battalion
Re: CutRsc Problems
« Reply #2 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?
Royal Air Assault Battalion - [L/Cpl] Greg
RAAB

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: CutRsc Problems
« Reply #3 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

Offline greg147

  • Contributing Member
  • **
    • Royal Air Assault Battalion
Re: CutRsc Problems
« Reply #4 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.
Royal Air Assault Battalion - [L/Cpl] Greg
RAAB

Offline Cheetah

  • Former Staff
  • ****
Re: CutRsc Problems
« Reply #5 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.
« Last Edit: 15 Mar 2007, 15:36:01 by Cheetah »
Like missions? Help with Beta Testing! or take a look at the OFPEC Missions Depot for reviewed missions!

Offline greg147

  • Contributing Member
  • **
    • Royal Air Assault Battalion
Re: CutRsc Problems
« Reply #6 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
Royal Air Assault Battalion - [L/Cpl] Greg
RAAB

Offline Cheetah

  • Former Staff
  • ****
Re: CutRsc Problems
« Reply #7 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.
Like missions? Help with Beta Testing! or take a look at the OFPEC Missions Depot for reviewed missions!

Offline greg147

  • Contributing Member
  • **
    • Royal Air Assault Battalion
Re: CutRsc Problems
« Reply #8 on: 16 Mar 2007, 18:13:57 »
Ah right. Thanks lads, got it working fine.
Royal Air Assault Battalion - [L/Cpl] Greg
RAAB