Jump to content

[UPGRADED DEC2017][scarCODE] Virtual Garage System by IT07


IT07

Recommended Posts

  On 2/9/2016 at 11:25 PM, Tech_Support said:

ok for anyone else stuck on this error

you need to download the global.hpp file from this link

https://github.com/IT07/A3_scarCODE_Bundle

I dont know why the global.hpp file is not in the zip and neither is the add

#include "scarCODE\global.hpp"

to your description.ext with

#include "scarCODE\VGS\main_VGS.hpp"

so it looks like this

#include "scarCODE\global.hpp"
#include "scarCODE\VGS\main_VGS.hpp"

in the install guide on the git.

but that is the fix for this error

File mpmissions\__cur_mp.Altis\scarCODE\VGS\rsc_VGS.hpp, line 0: /SC_vgsDiag/controls.bgMainLeft: Undefined base class 'IGUIBack'

Expand  

updated link for global.hpp:  https://github.com/Psychosiss/A3_ScarCode_ScriptBundle

some other scarCODE work in there, SRW works good if BE scheduler configured properly.  PSR looks kinda cool, but I cannot get it to work completely...PSR dialogue box/menu comes up, shows online support when player with said UID is in fact online, but never receive in-game message for the type of support players select.

Link to comment
Share on other sites

  • 2 months later...

error! help me plizz

5f1991714c1a.jpg

my description

  Reveal hidden contents

 

Link to comment
Share on other sites

my fresh RPT

  Reveal hidden contents

 

Link to comment
Share on other sites

  • 3 months later...

Thanks for the Answer.

But i cant "Script" by myself. So i would really thankful if IT07 can help me out again ?! 

I have one more question.
On my Server i have a "Parkzone" . Is it Possible to allow using the VGS only at this Place?

Maybe only Open at Coord. XXX.XXX.XX:XXX within Range 100meter or Something?

Thanks again ! 

Link to comment
Share on other sites

Thank you He-Man !!!

I will try it ASAP.

Is there a Possibility to set a fix Place where you can store vehicles in the garage ? 

So as i said on my Server there is a Safezone called Parkzone so maybe a Option to set fix Coordinates to store vehicles inside. 

Or maybe only near jammer? 

That would be nice !

 

Thanks

Link to comment
Share on other sites

You can try to change in fn_vgsInitClient.sqf (clientside)

_aa = player addAction ["<t size='2' shadow='0'>VGS</t>",{createDialog'SC_vgsDiag';}, "", -1, false, true];

to 

_aa = player addAction ["<t size='2' shadow='0'>VGS</t>",{createDialog'SC_vgsDiag';}, "", -1, false, true,"",(player distance [xx,yy,0]) < 150];

_aa = player addAction ["<t size='2' shadow='0'>VGS</t>",{createDialog'SC_vgsDiag';}, "", -1, false, true,"","(player distance [xx,yy,0]) < 150"];

change xx,yy to your parking zone coordinates. It is also UNTESTED

BUT!!!! This takes a bit performance, because the client checks the condition on each frame!

 

And a question from me: Does the scrolldown also works after revive? Should not, if I am right.

Link to comment
Share on other sites

The "qick'n'dirty" solution is:

Also in  fn_vgsInitClient.sq (but here without your coord changes! Change it by yourself):

  Reveal hidden contents

 

Link to comment
Share on other sites

I just //ed out addAction in fn_vgsInitClient.sqf like

/*
    Author: IT07

    Description:
    init file for Virtual Garage System menu
*/

if not hasInterface exitWith {};
[] spawn
{
    if not isNull(findDisplay 46) exitWith
     {
        if not isNil"EPOCH_loadingScreenDone" then
        {
            ["[EPOCH VGS] ERROR! fn_initClientVGS called when display 46 AND EPOCH_loadingScreenDone are not(isNull/isNil)"] call BIS_fnc_errorMsg
        };
    };
    waitUntil { uiSleep 2; (not(isNull(findDisplay 46)) AND not(isNil"EPOCH_loadingScreenDone")) };
    //_aa = player addAction ["<t size='2' shadow='0'>VGS</t>",{createDialog'SC_vgsDiag';}, "", -1, false, true];
    "DynamicBlur" ppEffectEnable false;
    waitUntil { uiSleep 0.5; not isNil"EPOCH_vgsMyKey" };
    if not(EPOCH_vgsMyKey isEqualTo "") then
    {
        EPOCH_vgsPV = ["Request",[player,EPOCH_vgsMyKey]];
        publicVariableServer "EPOCH_vgsPV";
        EPOCH_vgsPV = nil;
    };
};

then I added to CfgActionMenu_target.hpp




class VirtualGarageSystem
{
    condition = "dyna_cursorTargetType isEqualTo 'Land_MapBoard_F' && (damage dyna_cursorTarget < 2)";
    action = "dyna_cursorTarget call createDialog'SC_vgsDiag'";
    icon = "x\addons\a3_epoch_code\Data\UI\buttons\player_inspect.paa";
    tooltip = "VGS";
};

What gives a spacebar interact menu for it.

On editor I added a Land_MapBoard_F with a mapmarker and it works for me for only that item.. I also tested it with the Frequency Jammer + worked

But I think it's a very noobie way and if someone can support my Idea and make it better, that would be nice

 

Link to comment
Share on other sites

It's such a great pleasure beeing part of this community.. thank you again He-Man

 if I open VGS I see empty slots one time, the other time I have to relog (once,twice) to see them.. any idea to prevent me from that issue ? Only happens sometimes,like script is not as fast finish loaded as me..

"wrong pp adjust input" is written in upper right corner, after using

Also I'm looking for the reason, why the vehicle engine is startet after taking from garage back to map.

Link to comment
Share on other sites

Thanks for the update He-Man! Now if someone could add a group check to allow everyone from the same group to share the vehicles from the garage... It may also be very cool to increase the number of available slots based on the size of the group. I'm not feeling brave enough to mess around with this script. Besides, group functionality is sort of complicated.

Link to comment
Share on other sites

Hi He-Man, one of my users reported a problem. He was moving his CUP_B_Wildcat_Cannon_Armed_Green_AAF into the garage and it did not move-in correctly. The error report is below. I guess there is a need to check for size of the array returned by weaponsItemsCargo

 

14:54:41 "[EPOCH VGS] EPOCH_vgsWrite: _data = [3,617ac100# 1698155: cup_aw159.p3d REMOTE,B Alpha 1-1:2 (Amolgaut) REMOTE,""EPOCH_vgsKey_4537uT5673tUhF371273""]"
14:54:41 Error in expression <select 1) pushBack [_mag select 0, _mag select 1] };
_bipod = _x select 5;
if no>
14:54:41   Error position: <select 1] };
_bipod = _x select 5;
if no>
14:54:41   Error Zero divisor
14:54:41 File a3_epoch_virtualGarage\functions_VGS\fn_vgsInitServer.sqf, line 151
14:54:41 Error in expression <select 1) pushBack [_mag select 0, _mag select 1] };
_bipod = _x select 5;
if no>
14:54:41   Error position: <select 1] };
_bipod = _x select 5;
if no>
14:54:41   Error Zero divisor
14:54:41 File a3_epoch_virtualGarage\functions_VGS\fn_vgsInitServer.sqf, line 151
14:54:41 "[EPOCH VGS] Client (Amolgaut) put his/her CUP_B_Wildcat_Cannon_Armed_Green_AAF in garage"

Link to comment
Share on other sites

I think I got it. Need to replace a line

if not(_mag isEqualTo "")

with

if not(_mag isEqualTo [])

10:33:57 "[EPOCH VGS] forEach weaponsItemsCargo _vehObj: [""LMG_Zafir_F"","""",""acc_pointer_IR"",""optic_LRPS"",[""150Rnd_762x54_Box_Tracer"",150],""""]"
10:33:57 "[EPOCH VGS] forEach weaponsItemsCargo _vehObj: [""hgun_P07_F"",""muzzle_snds_L"","""","""",[""30Rnd_9x21_Mag"",30],""""]"
10:33:57 "[EPOCH VGS] forEach weaponsItemsCargo _vehObj: [""Rangefinder"","""","""","""",[],""""]"

_mag = _x select 4;
if not(_mag isEqualTo []) then { (_gear select 1) pushBack [_mag select 0, _mag select 1] };
_bipod = _x select 5;

Link to comment
Share on other sites

  • 2 weeks later...

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...