506th IR Realism Unit

Recruiting => The Duty Desk => Topic started by: SFC (Ret) Otto on February 22, 2016, 07:58:52 PM

Title: Can't place explosives or drop friendly personnel [RESOLVED]
Post by: SFC (Ret) Otto on February 22, 2016, 07:58:52 PM
I think I may have found the issue with not being able to place explosives or drop friendly personnel.

It appears that the removeAllActions script command interferes with ACE 3. See below.

Github ACE 3 Issue Tracker (https://github.com/acemod/ACE3/issues/1677)

Our "Viewdistance.sqf" script
Code: [Select]
/*
50 - smoothest, less lag
25 - default in multiplayer
12.5 - default in singleplayer
6.25
3.125 - bumpiest, higher lag
*/

 if (!local _unit) exitWith {};

removeallactions player;

view1 = player addAction ["Grass Off", {
setTerrainGrid 50;
player removeAction view1;
player removeAction view2;
player removeAction view3;
player removeAction view4;
player removeAction view5;
player removeAction view6;
player removeAction view7;
view = player addAction ["Settings", "scripts\Viewdistance.sqf", [],-99,false,false];
}, [],-93,false,false,"","alive player"];

view2 = player addAction ["Low", {
setTerrainGrid 25;
player removeAction view1;
player removeAction view2;
player removeAction view3;
player removeAction view4;
player removeAction view5;
player removeAction view6;
player removeAction view7;
view = player addAction ["Settings", "scripts\Viewdistance.sqf", [],-99,false,false];
}, [],-94,false,false,"","alive player"];

view3 = player addAction ["Normal", {
setTerrainGrid 12.5;
player removeAction view1;
player removeAction view2;
player removeAction view3;
player removeAction view4;
player removeAction view5;
player removeAction view6;
player removeAction view7;
view = player addAction ["Settings", "scripts\Viewdistance.sqf", [],-99,false,false];
}, [],-95,false,false,"","alive player"];

view4 = player addAction ["High", {
setTerrainGrid 6.25;
player removeAction view1;
player removeAction view2;
player removeAction view3;
player removeAction view4;
player removeAction view5;
player removeAction view6;
player removeAction view7;
view = player addAction ["Settings", "scripts\Viewdistance.sqf", [],-99,false,false];
}, [],-96,false,false,"","alive player"];

view5 = player addAction ["Ultra", {
setTerrainGrid 3.125;
player removeAction view1;
player removeAction view2;
player removeAction view3;
player removeAction view4;
player removeAction view5;
player removeAction view6;
player removeAction view7;
view = player addAction ["Settings", "scripts\Viewdistance.sqf", [],-99,false,false];
}, [],-97,false,false,"","alive player"];

view6 = player addAction ["", {}, [],-98,false,false,"","alive player"];

view7 = player addAction ["Disable Settings", {
Removeallactions player;
}, [],-99,false,false,"","alive player"];

Title: Re: Can't place explosives or drop friendly personnel
Post by: SGT (Ret) T. Cummings on February 22, 2016, 10:54:23 PM
From my Point of View I don't understand why we don't remove this script entirely?

Considering the fact is that you can change it in your own settings.

Yes that it may be quick to change the terrain quality but if it causes this issue then the script is of more concern and logical to remove.
Title: Re: Can't place explosives or drop friendly personnel
Post by: 1LT (Ret) Ryan on February 23, 2016, 08:45:43 AM
Thanks for reporting this, frankly that bug is annoying as hell.

I'll test it tonight to be sure and hopefully have a fix by the op.
Title: Re: Can't place explosives or drop friendly personnel
Post by: 1LT (Ret) Ryan on February 23, 2016, 08:01:12 PM
Solution found and applied, it was fairly easy, wish i'd caught it sooner.

This will be applied for Operation, my mission pack will follow this weekend at some point.

Thanks for posting this SSG.
Title: Re: Can't place explosives or drop friendly personnel
Post by: SFC (Ret) Otto on February 23, 2016, 08:06:46 PM
I'm glad it was an easy fix! Thanks for looking into it LT.