OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: Platoon Patton on 31 Jul 2004, 14:08:29
-
How can I put a full screen picture (JPG or PAA,whats the best?) in the intro of MP game? ???
And let it show for x seconds?
Thank you
-
it has to be a paa, in a special format, and described in the description.ext
example:
onLoadMission= "USI MAP MAKING STUDIO"
onLoadIntro= "USI MAP MAKING STUDIO"
onLoadIntroTime = false;
onLoadMissionTime = false;
class CfgSounds
{
sounds[]={usi};
class usi
{name = "usi";sound[] = {"usi.ogg", 10, 1.0};titles[] = {};
};
};
class RscStdText
{
type=0;
idc=-1;
style=2;
colorBackground[]={0,0,0,0};
colorText[]={1,1,1,1};
font="TahomaB14";
size=3;
};
class RscTitles
{
titles[]={starttext1,};
class starttext1
{
idd=-1;
movingEnable=0;
duration=3000;
fadein=2;
fadeout=2;
name="starttext1";
controls[]={"Screen"};
class Screen : RscStdText
{
style=48;
text="usicredits.paa";
colorBackground[]={0,0,0,1};
// across screen
x=0;
// up screen
y=0;
// pic width
w=1;
// pic height
h=1;
};
};
-
Thx alot Zombie.
Works fine...
Another prob:my game resolution is 1280 x 1024.
I would like to implement an old screenshot in the intro..
Converting JPG to PAA , Textview only allows powers of 2... :-\
Ehm,how can i do that without misform the original pic?
-
1024 x 1024 would probably not distort the pic so much.
-
To Zombie;
It also works with JPG files,and bcos PAA is about 6 times bigger then JPG...
(also reso of powers of 2; 512 x 512 or 1024 x 1024)
Final Solution:
in Description .ext:
class starttextx
{
idd=-1;
movingEnable=0;
duration=6;
fadein=2;
fadeout=2;
name="starttext_x";
controls[]={"Picture_blabla",};
class Uniforms : RscStdText
{
style=48;
text="Picture_blabla.jpg";
colorBackground[]={0,0,0,1};
size=0.75;
x=0;
y=0;
w=1;
h=1;
};
};
activate in intro.sqs:
TitleRsc ["starttext_x","plain",8]
Thx to Zombie and rOk for the help.
Topic solved :)
-
If you resize the picture to 1204x1204, the game will strech it out.. And it will look normal
- Ben
PS, you didnt' click the solved button :P
-
Ah ok,done ;D
Btw its 1024 x 1024 ;) :P