Home   Help Search Login Register  

Author Topic: Description.ext - Adding pictures to a mission  (Read 1203 times)

0 Members and 1 Guest are viewing this topic.

Offline Nemesis6

  • Members
  • *
Description.ext - Adding pictures to a mission
« 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?
I am actually flying into a star... this is incredible!

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
Re: Description.ext - Adding pictures to a mission
« Reply #1 on: 10 Nov 2007, 20:58:04 »
Dimensions of the picture must be power of 2, for example 512x512.

Offline Nemesis6

  • Members
  • *
Re: Description.ext - Adding pictures to a mission
« Reply #2 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...
« Last Edit: 11 Nov 2007, 00:23:21 by Nemesis6 »
I am actually flying into a star... this is incredible!

Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re: Description.ext - Adding pictures to a mission
« Reply #3 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
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta

Offline Nemesis6

  • Members
  • *
Re: Description.ext - Adding pictures to a mission
« Reply #4 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!  :)
I am actually flying into a star... this is incredible!