Home   Help Search Login Register  

Author Topic: Picture Overlay during beginning and Ending of a Multi-player Mission  (Read 1673 times)

0 Members and 1 Guest are viewing this topic.

Offline Landdon

  • Members
  • *
I was wondering has anyone mastered displaying a picture during the opening and closing of a Multi-player mission yet?  I would like display a picture during beginning and a different on one at the end of my Multi-player Mission.  Thanks in advance!

Offline Mandoble

  • Former Staff
  • ****
    • Grunt ONE and MandoMissile suite
put a cutRsc with your picture in the init.sqs and in where the mission ends.

Offline JasonO

  • OFPEC Patron
  • ****
  • Oh no...
    • The New Life RPG
This needs to be in your description.ext

Code: [Select]
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";
};
};
};

And show it by using this:
Code: [Select]
cutRsc ["Resource1","plain"]
You need a jpg file which dimensions are x^2*x^2 eg - 16x16,32x32,128x128,256x256.. 512,1024,2048...

Good luck ;)

Offline Landdon

  • Members
  • *
Thanks, I got it to work!

Offline dale0404

  • Members
  • *
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:

Code: [Select]
///////////////////////////////////////////////////////////
// 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:

Code: (init file) [Select]
;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.
« Last Edit: 18 Aug 2008, 01:48:09 by dale0404 »