Jump to content
t-800a

script snippet - downlad data from a laptop

Recommended Posts

class RscTitles
{    
    class CutsceneDisplay
    {    
         idd = 80000;
         movingEnable = false;
         name = "";
         fadein = 0;
         fadeout = 0;
         duration = 99999;
         controls[] = {"Background"};
        
         class Background: RscPicture
         {    
            text = "background_Altis.jpg";
            x = 0 * safezoneW + safezoneX;
            y = 0 * safezoneH + safezoneY;
            w = 1 * safezoneW;
            h = 1 * safezoneH;
         };    
   };
};
    

Use the RscTitle class to create a display instead of a dialogue.

Share this post


Link to post
Share on other sites
class RscTitles
{    
    class CutsceneDisplay
    {    
         idd = 80000;
         movingEnable = false;
         name = "";
         fadein = 0;
         fadeout = 0;
         duration = 99999;
         controls[] = {"Background"};
        
         class Background: RscPicture
         {    
            text = "background_Altis.jpg";
            x = 0 * safezoneW + safezoneX;
            y = 0 * safezoneH + safezoneY;
            w = 1 * safezoneW;
            h = 1 * safezoneH;
         };    
   };
};
    

Use the RscTitle class to create a display instead of a dialogue.

 

I tried to figure this out a bit last night but I'm really bad/new to this coding language segment of the ARMA 3 editor. What would I do with this? I got it to sort of work by going into downloadData.hpp and replacing the "class T8L_DataDownloadDialog" with your "class CutsceneDisplay", is that all ? It seems to work with downloading and allowing me to move but I get an error saying "Resource T8L_datadownloaddialog" is missing and the GUI showing the download progress disappears, otherwise it works fine

Share this post


Link to post
Share on other sites

Hey, I am trying to use this script and keep getting an error. The error is with an undefined variable. I haven't changed any of your code except for removing the bomb script lines from the init.sqf that you include and to be clear the same error resulted before removing that code.

mI21NOM.png

Share this post


Link to post
Share on other sites

Hey, I am trying to use this script and keep getting an error. The error is with an undefined variable. I haven't changed any of your code except for removing the bomb script lines from the init.sqf that you include and to be clear the same error resulted before removing that code.

 

 

I have the exact same problem. 

Share this post


Link to post
Share on other sites

Make sure all variables are initialized at the time you spawn BIS_fnc_MP (or similar line in your case):

waitUntil {!(isNil "laptop01" || isNil "laptop02" || isNil "laptop03")};
[ [ laptop01, laptop02, laptop03 ], "T8L_fnc_addActionLaptop", true, true] spawn BIS_fnc_MP;

Demo version has this in init.sqf

sleep 10; // I dont know why, but some sleep is requied or the Actions on the Objects wont work ... this is beyond my knowledge

Yours probably don't (or 10 is not enough).

Share this post


Link to post
Share on other sites

I like this a lot, but I think it would be better if an animation fired off when this is used as well.

Share this post


Link to post
Share on other sites

Hi, i got this error:

 

36e4d3aa7d8d69c5d1b88a0f1cb2c2b6o.jpg

 

 

This is the Init.sqf part:

/*
 =======================================================================================================================

    File:        init.sqf
    Author:        T-800a

=======================================================================================================================
*/

enableSaving [ false, false ];

call compile preprocessFile "downloadData.sqf";

waitUntil { !isNil "T8L_var_INITDONE" };


if ( !isServer ) exitWith {};

sleep 10; // I dont know why, but some sleep is required or the Actions on the Objects wont work ... this is beyond my knowledge

[ bomb1234, "T8_SB_fnc_addAction", true, true] spawn BIS_fnc_MP;
[ [ laptop01, laptop02, laptop03 ], "T8L_fnc_addActionLaptop", true, true] spawn BIS_fnc_MP;

I'm tried using @pedeathtrian's solution before but no works for me.

I use laptop1. Laptop2 and 3 are out of the mission.

 

I use others scripts in my mission like:

Jboy Burning/Exploding Barrel script - https://forums.bistudio.com/topic/174218-jboy-burningexploding-barrel-script-released/(i think that jboy's script and this are in conflict)

POLPOX's Animations - https://forums.bistudio.com/topic/192292-polpoxs-calm-animations-3/

 

Greetings.

 

Share this post


Link to post
Share on other sites

Sorry that this is an old thread, but I can't find a solution. 

 

I'm literally copying the script files into my mission folder, setting it up exactly the same way as in the test mission, even naming it the same way, but I can't seem to get it to work? 

Share this post


Link to post
Share on other sites

I think this script should add animation for press button to download data from notebook.

5135.jpg

 

i add this script in downloadData.sqf line 100 

_caller switchMove "AinvPercMstpSrasWrflDnon_Putdown_AmovPercMstpSrasWrflDnon";

5136.jpg

  • Like 1

Share this post


Link to post
Share on other sites

Is there a way to make this script CREATE a task? I copied the tasks on the demo mission, and also tried to change this in the trigger condition (laptop01 getVariable [ "T8L_pvar_dataDownloaded", true ];), but it automatically creates the task.

Share this post


Link to post
Share on other sites
On 09/11/2015 at 6:46 AM, R3vo said:

class RscTitles
{    
    class CutsceneDisplay
    {    
         idd = 80000;
         movingEnable = false;
         name = "";
         fadein = 0;
         fadeout = 0;
         duration = 99999;
         controls[] = {"Background"};
        
         class Background: RscPicture
         {    
            text = "background_Altis.jpg";
            x = 0 * safezoneW + safezoneX;
            y = 0 * safezoneH + safezoneY;
            w = 1 * safezoneW;
            h = 1 * safezoneH;
         };    
   };
};
    

Use the RscTitle class to create a display instead of a dialogue.

Forgive me for reliving this topic.

 

But in what file and where is this added?

I'm pretty noob about the script, mainly because English is not my language.

 

 

On 22/10/2017 at 1:22 AM, novainfuse said:

Is there a way to make this script CREATE a task? I copied the tasks on the demo mission, and also tried to change this in the trigger condition (laptop01 getVariable [ "T8L_pvar_dataDownloaded", true ];), but it automatically creates the task.

If the completion of the download activates a trigger, you can do this trigger after being activated activate a task module.

 

Share this post


Link to post
Share on other sites

**EDIT** Figured it out, I'll leave this here in case anyone else comes across the error.
So the way T-800a wrote the script it calls for x3 laptops to be placed and named, otherwise one of the "-x" variables will not be present, thus it will throw up the error.
So just make sure you place down x3 laptops (laptop01, laptop02, laptop03). Otherwise you will need to edit the script to only include the number of laptops you have in your mission. 



Talk about reviving a topic! 

Was anyone able to find a solution to the "Undefined variable: _x" issue?
@T-800a , anybody? Please any advice would be very much appreciated.

 

In the demo mission no errors pop up.
But as soon as I copy the script to another WIP mission this error pops up on start :

if !( |#|_x getVariable [ "T8L_pvar_dataDownloade..."
Error Undefined variable in expression: _x

The action still functions, so it isn't action breaking but still doesn't look good to post a mission with an error at the start. 

Edited by VedKay
Figured it out!
  • Thanks 1

Share this post


Link to post
Share on other sites

Hello, can anyone explain how to make an interactive laptop with textures. Similar to the laptops in the Oldman dlc.

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

×