DirtySanchez

[RESOLVEDbyDP]-PLS Fix:New Cup vehicles bad variable kicks

6 posts in this topic

Hey Chris, long time.

I installed the new cup updates this afternoon and noticed that the harrier is throwing badvar kicks.something about a rearm script built into cup...

Spoiler

04-02-2016 20:27:52 infiSTAR.de | 3h 15min 13s | Spamurai(76561197970724720) | BadVariableContent in missionNamespace: [setVehicleAmmo] in [av8b_loadout_service]\r\n {
private ["_veh","_damage"];
_veh = _this select 0;

_veh setvariable ["isrepairing",true];

_veh setfuel 0;

_damage = damage _veh;
while {_damage > 0} do {
_percentage = 100 - (_damage * 100);
if ((_damage - 0.01) <= 0) then {
_veh setdamage 0;
_damage = 0;
} else {
_veh setdamage (_damage - 0.01);
_damage = _damage - 0.01;
};

titletext ["repairing...","plain down",0.3];

sleep 1;
};
titletext ["repair complete","plain down"];

sleep 1;

titletext ["rearming...","plain down",0.3];
sleep 3;
_veh setvehicleammo 1;
titletext ["rearm complete","plain down"];

sleep 1;

titletext ["refueling...","plain down",0.3];
sleep 3;
_veh setfuel 1;
titletext ["refuel complete","plain down"];

sleep 1;

titletext ["service complete","plain down"];
_veh setvariable ["isrepairing",false];
}

EDIT: LOLZ guys it looks like CUP vehicles is following suit with RHS mod in terms of adding in scripted functions to their vehicles. [setVehicleAmmo] is already in the AntiHack. Just turn compatibility for RHS_Enabled to true

 

LINE 175 RHS_MOD_ENABLED = false;   /* You need to set this option to true if you run RHS mod */

becomes

LINE 175 RHS_MOD_ENABLED = true;   /* You need to set this option to true if you run RHS mod */

 

ps. Hey Chris, @infiSTAR for next version can you please add to the RHS_MOD_ENABLED either more comment in reference to CUP or can you change the VAR setting to RHS_CUP_MOD_ENABLED. THX

 

EDIT: LOLZ guys it looks like CUP vehicles is following suit with RHS mod in terms of adding in scripted functions to their vehicles. [setVehicleAmmo] is already in the AntiHack. Just turn compatibility for RHS_Enabled to true

 

LINE 175 RHS_MOD_ENABLED = false;   /* You need to set this option to true if you run RHS mod */

becomes

LINE 175 RHS_MOD_ENABLED = true;   /* You need to set this option to true if you run RHS mod */

 

ps. Hey Chris, @infiSTAR for next version can you please add to the RHS_MOD_ENABLED either more comment in reference to CUP or can you change the VAR setting to RHS_CUP_MOD_ENABLED. THX

Edited by DirtySanchez
3 people like this

Share this post


Link to post
Share on other sites
Advertisement

05-02-2016 13:22:56 infiSTAR.de | 1h 15min 58s | Saxarok(76561198065517214) | BadVariableContent in missionNamespace: [setVehicleAmmo] in [av8b_loadout_service]\r\n {
private ["_veh","_damage"];
_veh = _this select 0;

_veh setvariable ["isrepairing",true];

_veh setfuel 0;

_damage = damage _veh;
while {_damage > 0} do {
_percentage = 100 - (_damage * 100);
if ((_damage - 0.01) <= 0) then {
_veh setdamage 0;
_damage = 0;
} else {
_veh setdamage (_damage - 0.01);
_damage = _damage - 0.01;
};

titletext ["repairing...","plain down",0.3];

sleep 1;
};
titletext ["repair complete","plain down"];

sleep 1;

titletext ["rearming...","plain down",0.3];
sleep 3;
_veh setvehicleammo 1;
titletext ["rearm complete","plain down"];

sleep 1;

titletext ["refueling...","plain down",0.3];
sleep 3;
_veh setfuel 1;
titletext ["refuel complete","plain down"];

sleep 1;

titletext ["service complete","plain down"];
_veh setvariable ["isrepairing",false];
} [FPS: 45.0704|SERVERTHREADS: 11] 

Edited by Alipuh

Share this post


Link to post
Share on other sites

Ok I posted this for everyone knowledge and so we can try to fix it with/ for Chris and the community.

 

Reading our kick logs, I see the bad variable is [setVehicleAmmo] 

Will pick this up shortly, 

 

EDIT: LOLZ guys it looks like CUP vehicles is following suit with RHS mod in terms of adding in scripted functions to their vehicles. [setVehicleAmmo] is already in the AntiHack. Just turn compatibility for RHS_Enabled to true

 

LINE 175 RHS_MOD_ENABLED = false;   /* You need to set this option to true if you run RHS mod */

becomes

LINE 175 RHS_MOD_ENABLED = true;   /* You need to set this option to true if you run RHS mod */

 

ps. Hey Chris, @infiSTAR for next version can you please add to the RHS_MOD_ENABLED either more comment in reference to CUP or can you change the VAR setting to RHS_CUP_MOD_ENABLED. THX

 

 

 

Edited by DirtySanchez

Share this post


Link to post
Share on other sites
6 hours ago, DirtySanchez said:

ps. Hey Chris, @infiSTAR for next version can you please add to the RHS_MOD_ENABLED either more comment in reference to CUP or can you change the VAR setting to RHS_CUP_MOD_ENABLED. THX

done :)

3 people like this

Share this post


Link to post
Share on other sites
Advertisement
Guest
This topic is now closed to further replies.

  • Recently Browsing   0 members

    No registered users viewing this page.