I have got this to work apart from the fact that I dont know where to get the image from! I uploaded the image I want to use to imageshack and then linked the image instead of using the 'Rescource1' variable. It came back with the error that the image was not found. What am I doing wrong?
This is the code:
///////////////////////////////////////////////////////////
// Armed Assault Description File
// Created with ArmA Edit - Version 1.2.9500
///////////////////////////////////////////////////////////
showCompass = 1;
showGPS = 1;
showWatch = 1;
respawn = 3;
respawnDelay = 15;
class RscTitles
{
class Resource1
{
idd = -1;
movingEnable = false;
duration = 5;
fadein = 1;
fadeout = 1;
name = "http://img297.imageshack.us/img297/3751/983fn2.jpg";
controls[] = {Resource1};
class Resource1
{
x=0.28;
y=0.35;
w=0.45;
h=0.36;
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 = "http://img297.imageshack.us/img297/3751/983fn2.jpg";
};
};
};
and in the init file:
;Note: a variation of this code is only needed if the advanced scripting method is used
;ie. this code is not needed if you are executing the script from the individual units init lines.
~0.01
["w1",0] exec "weapons_respawn.sqs"
["e1",0] exec "weapons_respawn.sqs"
cutRsc ["http://img297.imageshack.us/img297/3751/983fn2.jpg","plain"]
Thanks for your help in advance.
Dale
Edit:
I have put the image in the same folder as the rest of the mission files and then used the filename instead of the imageshack location but it still comes up with the same error: Resource title {image name} not found.
This is the code I am using now:
Description file:
///////////////////////////////////////////////////////////
// Armed Assault Description File
// Created with ArmA Edit - Version 1.2.9500
///////////////////////////////////////////////////////////
showCompass = 1;
showGPS = 1;
showWatch = 1;
respawn = 3;
respawnDelay = 15;
class RscTitles
{
class Resource1
{
idd = -1;
movingEnable = false;
duration = 5;
fadein = 1;
fadeout = 1;
name = "Resource1";
controls[] = {Resource1};
class Resource1
{
x=0.28;
y=0.35;
w=0.45;
h=0.36;
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 = "Resource1.jpg";
};
};
};
init file:
;Note: a variation of this code is only needed if the advanced scripting method is used
;ie. this code is not needed if you are executing the script from the individual units init lines.
~0.01
["w1",0] exec "weapons_respawn.sqs"
["e1",0] exec "weapons_respawn.sqs"
cutRsc ["Resource1","plain"]
I now get the message "picture resource1.jpg not found"
Sorry for the long post but I am at least being proactive but now I am stuck!
2nd Edit:
Got it sorted out.