OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: Nemesis6 on 10 Nov 2007, 19:02:05

Title: Description.ext - Adding pictures to a mission
Post by: Nemesis6 on 10 Nov 2007, 19:02:05
Where am I going wrong? -
Quote
class RscPicture
{
type=0;
idc=-1;
style=2;
colorBackground[]={0,0,0,0};
colorText[]={1,1,1,1};
font="BitStream";
size=1;
};

class RscTitles
{
titles[]={"Pic1"};

class Pic1
{
  idd=-1;
  movingEnable=0;
  duration=22;
  fadein=0;   
  name="Photo";
  controls[]={"Photo1"};

class Photo1 : RscPicture
{
style=48;
    text="coupletogether.jpg";
sizeEx = 0.04;
    x=0.25;
    y=0.30;
    w=0.50;
    h=0.35;
};
};
};

dimensions not 413x510 not 2^n is the error I'm getting. What am I doing wrong with the JPG?
Title: Re: Description.ext - Adding pictures to a mission
Post by: Mandoble on 10 Nov 2007, 20:58:04
Dimensions of the picture must be power of 2, for example 512x512.
Title: Re: Description.ext - Adding pictures to a mission
Post by: Nemesis6 on 11 Nov 2007, 00:17:58
Well, that took care of the error message, but the resource doesn't show when I trigger it through triggers or the titlersc/whatever things. If it matters, it's supposed to appear in game during a cinematic, not during the intro...
Title: Re: Description.ext - Adding pictures to a mission
Post by: LCD on 11 Nov 2007, 00:24:20
u need 2 have dis at da top of da description.ext

Code: [Select]
#define ST_PICTURE    48
#define ST_CENTER    2

da rscpicture shud look like

Code: [Select]
class RscPicture
{
type = CT_STATIC;
style = ST_PICTURE;
idc = -1;
colorBackground[] = {1, 1, 1, 1};
colorText[] = {1, 1, 1, 1};
font = "TahomaB";
size = 0;
sizeEx = 1;
lineSpacing = 1.0;
};

shud work...

LCD OUT
Title: Re: Description.ext - Adding pictures to a mission
Post by: Nemesis6 on 11 Nov 2007, 00:46:55
Ah, got it to work by adjusting the
Quote
sizeEx = 0.04;
    x=0;
    y=0;
    w=1;
    h=1;
things. The image was being shown, it was just being shown at 0x0 dimensions! Anyways, I appreciate the help guys!  :)