OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: InFeErNiTo on 29 Apr 2004, 13:07:50

Title: Picture intro
Post by: InFeErNiTo on 29 Apr 2004, 13:07:50
hi i want to make a intro for my map.

i want 3 different jpg's to fade in/out on the screen after one another. i dont have any idea how to do this, can anyone help?
Title: Re:Picture intro
Post by: alimag on 29 Apr 2004, 17:18:21
Hi,

Put this in your description.ext file:

class RscPicture
{
   type=0;
   idc=-1;
   style=48;
   colorBackground[]={0,0,0,0};
   colorText[]={1,1,1,0.3};
   font="tahomaB24";
   size=0;
};

class RscTitles
{
   class TitlePic1
   {
      idd=-1;
      movingEnable=0;
      duration=4;
      name="TitlePic1";
      controls[]={"Title"};
      class Title: RscPicture
      {
         text="NameOfPicFile";
         x=0.420000;
         y=0.300000;
         w=0.160000;
         h=0.300000;
      };
   };
};

Just replace the bold text with the name of your picture file.

And then use the class name (TitlePic1) to show your picture:

titleRSC ["TitlePic1", "plain"]

You can also edit the duration field, distance from left (x), distance from top (y), width (w) and height (h) to your own needs.

Repeat the process 3 times (with different class names) putting the names of each picture and your done.

Cheers
Title: Re:Picture intro
Post by: InFeErNiTo on 29 Apr 2004, 21:44:30
i put the script u gave in the description.ext and then put the

["TitlePic1", "plain"]

into a sqs file called intro, i then ran this script from a trigger in the editor using this line

[] exec "intro.sqs";

when i start the mission i get a error sayng that the pic isnt found, i put the picture in my mission folder, do i need to put it elsewere?

i want the picture to cover the whole screen, is this possible?
Title: Re:Picture intro
Post by: Blanco on 29 Apr 2004, 22:15:00
When you change (and save) something in a description.ext , you always have to reload your mission to see the effect.
Title: Re:Picture intro
Post by: rhysduk on 29 Apr 2004, 22:16:45
Read this mate..  its a tut by Sui on getting pictures up in missions..

Works perfectly!!

Rhyse
Title: Re:Picture intro
Post by: InFeErNiTo on 01 May 2004, 02:11:37
thanks ill read up
Title: Re:Picture intro
Post by: WAKA-WAKA on 10 Jun 2004, 21:04:50
Do you know how to insert a video clip aswell?
Title: Re:Picture intro
Post by: rhysduk on 10 Jun 2004, 22:31:05
No but im guesin you have to deine its as a CutRSC in the Description.EXt file though..

Download the COC Tomahawk pack.. thye do this in the introdutcion mission.. take it apart and look at it.

Rhys
Title: Re:Picture intro
Post by: WAKA-WAKA on 10 Jun 2004, 22:57:13
I mean something like a .mpeg video clip
Title: Re:Picture intro
Post by: rhysduk on 10 Jun 2004, 23:32:38
Thast what i meant!
Title: Re:Picture intro
Post by: WAKA-WAKA on 10 Jun 2004, 23:34:02
ohhhhh. Can u give me a link to the download if it isn't too hard, i can't find it.
Title: Re:Picture intro
Post by: rhysduk on 11 Jun 2004, 11:18:56
Go to the Home page and click on affiliated mods with OFPEC.. the link for the COC website is there.. and the COC Tomahawks are in there..

They are also in the Addons Depot..

Rhys
Title: Re:Picture intro
Post by: WAKA-WAKA on 11 Jun 2004, 17:59:08
Thnx

 And does anybody know why it says I'm a Llama under my name everytime i post something?
Title: Re:Picture intro
Post by: j-man on 11 Jun 2004, 20:04:05
Quote
And does anybody know why it says I'm a Llama under my name everytime i post something?

It sayds that by default when ever you register here. Just login and click the "profile" button near the top of the page. There you can change "I am a Llama" to what ever you want ;)
Title: Re:Picture intro
Post by: Homefry31464 on 12 Jun 2004, 05:06:39
I mean something like a .mpeg video clip

Not possible, CoC used 200+ JPEG files shown in rapid succesion.  
Title: Re:Picture intro
Post by: ponq on 12 Jun 2004, 22:41:55
CoC used 162 files for their launch movie. Still a lot.

Just consider that if you want a smooth movie you'll need 20-24 frames per second (so 20-24 .jpg per second). Even a short movie of 5 seconds would still require at least 500kb of jpg files in  low quality.
But it is possible.
Title: Re:Picture intro
Post by: WAKA-WAKA on 12 Jun 2004, 23:06:40
You took my I'm a Llama! thing