OFPEC Forum
Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: greg147 on 14 Mar 2007, 18:06:41
-
Hi all,
I've been trying to get acouple of pictures ingame for a intro. I found an old OFP tutorial, but it appears it doesn't work the same as ArmA, as I get a CTD on opening the mission in the editor.
Unfortuntly, the BIS wiki page doesn't have an example of what needs to be put in the Description.ext, so i'm pretty stuck on this one.
Does anyone have any ideas of how to get this to work?
Thanks
-
class RscPicture
{
type = 0;
style = 48;
idc = -1;
colorBackground[] = {1, 1, 1, 1};
colorText[] = {1, 1, 1, 1};
font = "Bitstream";
size = 0;
sizeEx = 1;
lineSpacing = 1.0;
};
class RscTitles
{
class RadarDisplay
{
idd=-1;
movingEnable=true;
duration=10;
name="radar";
controls[]={"pantalla"};
class pantalla : RscPicture
{
text = "radar.jpg";
x = 0.31; y = 0.15;
w = 0.38; h = 0.5;
};
};
};
Create a 256x256 jpg named radar placed in your mission folder and try CutRsc with "radar" resource.
-
Thanks, but I get an 'Resource title 'Radar.jpg' not found' error when trying it. Image is definatly a jpg file, sized 256x256.
Any ideas?
-
You need that jpg, just pick any jpg resize it to 256x256, rename it to radar.jpg and copy it into your mission folder
-
Yep, thats what I've got. Still get the error though.
Does the position of the text in the Description.ext matter? I've got it at the bottom, under a weapons section and some smaller ones at the top.
-
The position in the description.ext shouldn't be a problem. I'll test this.
EDIT: works for me. Attached a working mission.
-
Ah thanks, got it. I was activating it in completely the wrong way.
On a side note, what would I have to change to get the picture to show up larger, like the whole screen? Resizing the image didn't seem to work.
Thanks
-
From my mind (don't kill me if I'm wrong please..):
class RscTitles
{
class RadarDisplay
{
idd=-1;
movingEnable=true;
duration=10;
name="radar";
controls[]={"pantalla"};
class pantalla : RscPicture
{
text = "radar.jpg";
x = 0.31; y = 0.15;
w = 0.95; h = 0.95;
};
};
};
Notice the last line of real code, with w= and h= (width and height) play with them to find the correct numbers.
-
Ah right. Thanks lads, got it working fine.