Jump to content
Sign in to follow this  
Woodstock21

add pic to intro cam

Recommended Posts

can anyone let know how to add a jpg or paa pic to the intro cam script like they have in the domination maps. i tried looking through the intro script and the animtionletter scripts but couldn't find anything about adding in the paa file. any help would be great

Share this post


Link to post
Share on other sites

will create two files:

1_description.ext

#define FONT_Z 				"Zeppelin32"
#define CT_STATIC			0
#define CT_SHORTCUT_BUTTON 	16
#define ST_PICTURE 			48 
#define ST_NOBORDER			512 
#define ST_LEFT 			0x00
#define ST_RIGHT			0x01
#define ST_CENTER 			0x02
#define ST_SHADOW 			0x100 

class RscPicture
{
idc = -1;
type = CT_STATIC;
style = ST_CENTER + ST_PICTURE;
colorBackground[] = {0,0,0,0};
colorText[] = {1,1,1,1};
font = FONT_Z;
sizeEx = 0.02;
};

class RscType
{
idd = -1;
movingEnable = 0;
duration = 6;
};

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

class Image1 : RscType
{
	controls[] = {"Image1_1"};

	class Image1_1: RscPicture
	{
		text = "image.paa";
		x = 0.4;
		y = 0.3;
		w = 0.2;
		h = 0.25;
	};
};

2_init.sqf

Insert the following command in the file init.sqf:

TitleRsc [ "Image1", "Plain", 2];

Exemple_afficherImage

Share this post


Link to post
Share on other sites

Thanks for the reply, im now able to get the picture to show up, the problem that i have is that the picture stays up during my entire intro, i tried to add

~3 at the end of the init info "TitleRsc ["Image1", "PLAIN",2];" but it still just is always there

Share this post


Link to post
Share on other sites
Thanks for the reply, im now able to get the picture to show up, the problem that i have is that the picture stays up during my entire intro, i tried to add

~3 at the end of the init info "TitleRsc ["Image1", "PLAIN",2];" but it still just is always there

maybe you could try using a trigger?

Share this post


Link to post
Share on other sites
Thanks for the reply, im now able to get the picture to show up, the problem that i have is that the picture stays up during my entire intro, i tried to add

~3 at the end of the init info "TitleRsc ["Image1", "PLAIN",2];" but it still just is always there

class RscType
{
idd = -1;
movingEnable = 0;
duration = [color="Red"]6[/color]; < change this number in your description
};

Share this post


Link to post
Share on other sites

yup that did it, it was right under my nose, i was looking for something along the lines of duration, i should of clued in, thanks man

Share this post


Link to post
Share on other sites

Ok so i got that niffty picture to work, just fine now my question is how can i get it to cover the entire screen, I created a PAA of a TV set and i want it to cover the entire screen so that it looks like the cam scene is being played on tv, now the issue is that i created a PAA that is 2048*1024, and it only covers a small section in the middle of the screen, about the same amount that the same image at 1024*512 did.

#define CT_STATIC 0
#define ST_LEFT 0
#define ST_CENTER 2
#define ST_SHADOW 256

class RscText
{
type = CT_STATIC;
idc = -1;
style = ST_CENTER;
h = 0.4; 
colorBackground[] = {0, 0, 0, 0};
colorText[] = {1, 0, 1, 0};
font = BitStream;
	size = 2;
};
class RscTitles
{
class Image1
   {
       idd=-1;
       movingEnable=0;
         duration=3;
    fadein = 0;
    fadeout = 0;
           name="Image1";
           controls[]={"blackfon","logotip"};
        	    class blackfon
	  {
		   x = -10;
		   y = -10;
		   w = 42;
		   h = 42;
		   type = 0;
		   idc = -100;
		   style = 48;
		   colorBackground[] = {0,0,0,0};
		   colorText[] = {1, 1, 1, 1};
		   font = BitStream;
		   sizeEx = 0;
		   lineSpacing = 0;
		   access = ReadAndWrite;
		   text = "#(argb,8,8,3)color(0,0,0,0)";
	  };
         		class logotip
  {
	   x = 0;
	   y = 0;
	   w = 1;
	   h = 1;
	   type = 0;
	   idc = -1;
	   style = 48;
	   colorBackground[] = {0, 0, 0, 0};
	   colorText[] = {1, 1, 1, 1};
	   font = BitStream;
	   sizeEx = 0;
	   lineSpacing = 0;
	   access = ReadAndWrite;
	   text = "tv.paa";
  };
};
};

in the bottom section i did try and change the h=1 and w=1 both to a value of 2 but then all i get is the top left corner of the image. any suggestions would be great

Share this post


Link to post
Share on other sites

So doing a little looking around i came across this part of the wiki

http://community.bistudio.com/wiki/SafeZone

talks about the borders and stuff for the pics, so i figured i would need to add

SafeZoneW and SafeZoneH somewhere into my above script somewhere, but i have no idea any help? from someone smarter then i with scripts

Share this post


Link to post
Share on other sites

For a fullscreen image it should be like this:

x = safeZoneX;
y = safeZoneY;
w = safeZoneW;
h = safeZoneH;

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×