Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - GMG_Monkey

Pages: [1]
1
Technical Support / Custom store double charging
« on: Feb 25, 2019, 10:13 AM »
I've recently resurrected my server after being dormant for nearly a year. Which is leading to some interesting bugs on in systems that used to work perfectly.

I have a custom store for base building objects, which has learned a new very frustrating trick. It's somehow managing to run both the version of the buy script that is present in my PBO and another version of the same script (that exists somewhere somehow) at the same time.

Code for the buy button:
Code: [Select]
class BuyItem: w_RscButton
{
idc = BaseStore_buy;
action = "[0] execVM 'client\systems\BasePartsStore\buyParts.sqf'";
text = "Buy";
sizeEx = BaseStoreButton_textSize;

x = BaseStoreMainBG_X + (0.334 * SZ_SCALE);
y = BaseStoreMainBG_Y + (0.507 * SZ_SCALE);
w = 0.096 * SZ_SCALE;
h = 0.040 * SZ_SCALE;
};

Code for the buy script (complete with debug edits)

Code: [Select]
// ******************************************************************************************
// * This project is licensed under the GNU Affero GPL v3. Copyright © 2014 A3Wasteland.com *
// ******************************************************************************************
// @file Version: 1.0
// @file Name: buyParts.sqf
// @file Author: [404] Deadbeat, [404] Costlyy, GMG_Monkey
// @file Created: 20/11/2012 05:13
// @file Args: [int (0 = buy to player 1 = buy to crate)]

if (!isNil "storePurchaseHandle" && {typeName storePurchaseHandle == "SCRIPT"} && {!scriptDone storePurchaseHandle}) exitWith {hint "Please wait, your previous purchase is being processed"};

#include "dialog\BaseStoreDefines.sqf";

#define PURCHASED_CRATE_TYPE_AMMO 60
#define PURCHASED_CRATE_TYPE_WEAPON 61
 
#define CEIL_PRICE(PRICE) (ceil ((PRICE) / 5) * 5)

player globalChat "Spawning buy Parts Scipt";
storePurchaseHandle = _this spawn
{
disableSerialization;

private ["_playerMoney", "_size", "_price", "_dialog", "_itemlist", "_totalText", "_playerMoneyText", "_itemText", "_class", "_uniformClass", "_vestClass", "_backpackClass", "_itemClass", "_markerPos", "_obj", "_currentBinoc", "_confirmResult", "_successHint", "_hasNVG", "_requestKey"];
player globalChat "Starting Buy Script";
//Initialize Values
_playerMoney = player getVariable ["cmoney", 0];
_successHint = true;

// Grab access to the controls
_dialog = findDisplay BaseStore_DIALOG;
_itemlist = _dialog displayCtrl BaseStore_item_list;
_totalText = _dialog displayCtrl BaseStore_total;
_playerMoneyText = _Dialog displayCtrl BaseStore_money;

_itemIndex = lbCurSel BaseStore_item_list;
_itemText = _itemlist lbText _itemIndex;
_itemData = _itemlist lbData _itemIndex;

_showInsufficientFundsError =
{
_itemText = _this select 0;
hint parseText format ["Not enough money for<br/>""%1""", _itemText];
playSound "FD_CP_Not_Clear_F";
_price = -1;
};

_showInsufficientSpaceError =
{
_itemText = _this select 0;
hint parseText format ["Not enough space for<br/>""%1""", _itemText];
playSound "FD_CP_Not_Clear_F";
_price = -1;
};

_showItemSpawnTimeoutError =
{
_itemText = _this select 0;
hint parseText format ["<t color='#ffff00'>An unknown error occurred.</t><br/>The purchase of ""%1"" has been cancelled.", _itemText];
playSound "FD_CP_Not_Clear_F";
_price = -1;
};

_showItemSpawnedOutsideMessage =
{
_itemText = _this select 0;
hint format ["""%1"" has been spawned outside, in front of the store.", _itemText];
playSound "FD_Finish_F";
_successHint = false;
};

_showReplaceConfirmMessage =
{
_itemText = _this select 0;

if (param [1, false, [false]]) then
{
_itemText = format ["Purchasing these %1 will replace your current ones.", _itemText];
}
else
{
if (param [2, false, [false]]) then
{
_itemText = format ["Purchasing this %1 will replace your current one.", _itemText];
}
else
{
_itemText = format ["Purchasing this %1 will replace your current one, and its contents will be lost.", _itemText];
};
};

_confirmResult = [parseText _itemText, "Confirm", "Buy", true] call BIS_fnc_guiMessage;

if (!_confirmResult) then
{
_price = -1;
};

_confirmResult
};

_showAlreadyHaveItemMessage =
{
_itemText = _this select 0;

if (param [1, false, [false]]) then
{
_itemText = format ["You already have these %1.", _itemText];
}
else
{
_itemText = format ["You already have this %1.", _itemText];
};

playSound "FD_CP_Not_Clear_F";
_price = -1;

[parseText _itemText, "Error"] call BIS_fnc_guiMessage
};

if (isNil "_price") then
{
{
if (_itemData == _x select 1) exitWith
{
_class = _x select 1;
player globalChat "Setting Price";
_price = (_x select 2) / 5;
player globalchat format ["Price is: %1", _price];

// Ensure the player has enough money
player globalChat "Checking for sufficiant funds";
if (_price > _playerMoney) exitWith
{
[_itemText] call _showInsufficientFundsError;
};

_requestKey = call A3W_fnc_generateKey;
player globalChat "Requesting Item Spawn";
_x call requestStoreObject;
};
} forEach (call AllBaseParts);
};

if (!isNil "_price" && {_price > -1}) then
{
_playerMoney = player getVariable ["cmoney", 0];

// Re-check for money after purchase
player globalChat "Checking for sufficiant funds again";
player globalchat format ["Price is: %1", _price];
if ((_price) > _playerMoney) then
{
if (!isNil "_requestKey" && {!isNil _requestKey}) then
{
player globalChat "deleting item";
deleteVehicle objectFromNetId (missionNamespace getVariable _requestKey);
};

[_itemText] call _showInsufficientFundsError;
}
else
{
player globalChat "Subtracting Money";
player setVariable ["cmoney", _playerMoney - _price, true];
_playerMoneyText ctrlSetText format ["Cash: $%1", [player getVariable ["cmoney", 0]] call fn_numbersText];
if (_successHint) then { hint "Purchase successful!" };
playSound "FD_Finish_F";
};
};

if (!isNil "_requestKey" && {!isNil _requestKey}) then
{
missionNamespace setVariable [_requestKey, nil];
};

sleep 0.25; // double-click protection
};

if (typeName storePurchaseHandle == "SCRIPT") then
{
private "_storePurchaseHandle";
_storePurchaseHandle = storePurchaseHandle;
waitUntil {scriptDone _storePurchaseHandle};
};

storePurchaseHandle = nil;


Here's the fun part, one of the instances of the script will run the above, complete with price adjustment, and globalchats. The second will not. It charges full price and doesn't post any of the debug message I inserted.

The best part is it dosn't complete two purchases, it complete one. if the player has enough money for both, the base object will spawn as expected, and they'll be charged both transactions. If they have enough for one transaction it will spawn, and then be deleted for insufficient funds.

Occasionally the script that doesn't contain any edits will take priority, in that case no globalchats will post, but the outcome is the same.

I've been banging my head against this for a few days now, and it makes zero sense to me.

2
Editing & Coding / addaction on map objects now working
« on: Mar 06, 2018, 07:14 PM »
So this one has me stumped.

in spawnstoreobject.sqf I have the following working.

Code: [Select]
if (_object iskindof "Static") then
{
[_object, ["Lock Door", {(_this select 0) setVariable ['bis_disabled_Door_1',1,true]}, nil, -99, false, true, "", "(_target  getVariable ['bis_disabled_Door_1', 0]) == 0 && (_target getVariable 'ownerUID') == (getPlayerUID _this)", 50, false, "door_1"]] remoteExec ["addAction", -2, _object];
[_object, ["Unlock Door", {(_this select 0) setVariable ['bis_disabled_Door_1',0,true]}, nil, -99, false, true, "", "(_target getVariable ['bis_disabled_Door_1', 0]) == 1 && (_target getVariable 'ownerUID') == (getPlayerUID _this)", 50, false, "door_1"]] remoteExec ["addAction", -2, _object];
};

however in oload.sqf the following does not.

Code: [Select]
if (_obj iskindof "Static") then
{
[_obj, ["Lock Door", {(_this select 0) setVariable ['bis_disabled_Door_1',1,true]}, nil, -99, false, true, "", "(_target  getVariable ['bis_disabled_Door_1', 0]) == 0 && (_target getVariable 'ownerUID') == (getPlayerUID _this)", 50, false, "door_1"]] remoteExec ["addAction", -2, _obj];
[_obj, ["Unlock Door", {(_this select 0) setVariable ['bis_disabled_Door_1',0,true]}, nil, -99, false, true, "", "(_target getVariable ['bis_disabled_Door_1', 0]) == 1 && (_target getVariable 'ownerUID') == (getPlayerUID _this)", 50, false, "door_1"]] remoteExec ["addAction", -2, _obj];
};

The only differance between the two is the variable _object vs. _obj

Could it be a JIP problem? The addactions are being pushed to the player when it's purchased, but not when they join after it's spawned in after restart?

complete files attached.

3
Technical Support / Vehicles disapearing from parking
« on: Dec 08, 2017, 08:56 PM »
I've had this issue for a while and I can't for the life of my figure out what's causing it.

Occasionally when players park a vehicle it will be deleted after the next server restart. This seems to happen most commonly when players park multiple vehicles in quick succession or retrieve and re-park the same vehicle quickly.

I've confirmed that the vehicles are saved to the database, and are flagged as parked prior to the server restart, however they are deleted once the server restarts.

4
lately I've been getting a lot of battleye kicks for signature checks for base arma .pbo's (like Soft_F.pbo). deleting the mission .pbo seemed to solve the problem. However it seems to be getting worse. I'm not sure where to look to fix this, or if it is something I can even fix.

edit: Seems to have been a network configuration error. I reset a few thing on my backend, and it seems to be fixed.

5
last night I updated to DB 2.06, I ran the sql script to update from 2.05 to 2.06, copied in the new .ini file, and added in the changes to the persistence files. Now after every restart ATM balances are reset to 0.


6
Technical Support / Problems with sentry Turrets
« on: Jul 01, 2017, 11:34 PM »
I've been trying to get the new turrets to work with all sides, and I've run into a wall. For whatever reason, the normal method for loading AI into UAV's doesn't work with them. I can only get them to work with blufor. This problem seems to be specific to StaticWeapon UAV's as all sentry turrets wont work outside of their default side.

I know that many of your will look at this and say "Sentry Turrets are OP, don't use them" however my server is based on giving the players full access to the Arma arsenal, and my player base has been asking when I'm going to get the new turrets in.

7
Editing & Coding / Enemy Uniforms
« on: Mar 20, 2017, 07:22 PM »
So after quite a bit of experimenting I've come up with a somewhat functional script for picking up enemy uniform off of dead bodies. I'm going to post it here to share with the community and to see if any of you can help me to improve it. It's mostly a modification of the hide body script used on some servers.

 https://github.com/Brothers-In-Blood/A3Wasteland.Altis/commit/b2b4733510290a4a5a8cff54d7dd7bed9cd7b736

The Current limitation is that it does not transfer any items in the uniform. So the player must empty the contents into a vest or backpack before taking the uniform.

8
Editing & Coding / Randomized Convoy Path
« on: Jun 26, 2016, 01:20 PM »
I've been working on single vehicle SF team missions (CSAT Viper and NATO CTRG). I've got everything working creating the soldiers, and vehicles. However, I've tried creating a randomized convoy path, so that that players can't predict where to ambush them based on spawn location. However I suck at coding and it isn't working.
 
This is my latest iteration, anybody have any thoughts? I'm out of ideas.

Code: [Select]
Private ["_StartsList", "_WaypointList1",, "_WaypointList2", "_WaypointList3", "_WaypointList4", "_WaypointList5", "_WaypointList6", "_WaypointList7", "_WaypointList8", "_WaypointList9", "_WaypointList10", "_WaypointList11"];

_StartsList = [[10839.7,4970.59], [9474.54,3638.77], [9164.44,4806.89], [12682.4,2088.94], [12316.4,1848.86], [11581.8,2148.71], [11116.3,6059.5], [11446,6254.93], [11014.3,6561.12], [11944.2,8214.64], [11330.2,7871.54], [10818.3,8034.4], [9282.29,7682.62], [8278.31,7989.3], [8222.05,7705.28], [7605.66,7499.62], [7243.64,7440.86], [11622,5258.05], [7869.83,9054.34], [8283.2,9054.34], [5995.95,9169.09], [5533.45,9145.35], [6580.98,10427.3], [7640.38,10502.5], [9095.07,9976.27], [9192.22,11015.7], [11063.3,11505.4], [9964.23,11775.7], [12079.4,5358.44], [11976,10396.8], [13400.2,12058.9], [11846.2,13138.4], [9733.15,13515.6], [8611.4,13559.9], [7926.41,13355.8], [6929.72,13057.3], [6716.15,12556.5], [6015.77,12525.7], [5574.75,11828.2], [12634.7,5035.25], [5361.17,11310.1], [6388.65,10695.8], [6271.28,9520.93], [6777.32,11079], [5898,9189.66], [5426.59,9322.55], [4383.72,8594.54], [4918.62,9723.15], [5197.62,8373.05], [5647.86,8675.43], [11943.5,3249.71], [6660.09,7114.06], [9057.78,7238.75], [9335.94,7518.89], [9612.17,7106.34], [9829.6,6998.48], [9916.18,6412.99], [10476.1,6782.78], [10980.2,7129.45], [10957.8,2620.99], [11644,7347.08], [10622.3,7969.17], [12371.4,8554.67], [13568.2,8645.18], [13954.9,9138.23], [12371.4,8554.67], [14158.9,9910.54], [13568.2,8645.18], [13954.9,9138.23], [14158.9,9910.54], [13062.3,10657.8], [12316.6,2259.94], [13308.6,3090.98]] call BIS_fnc_selectRandom;
_WaypointList1 = [[10839.7,4970.59], [9474.54,3638.77], [9164.44,4806.89], [12682.4,2088.94], [12316.4,1848.86], [11581.8,2148.71], [11116.3,6059.5], [11446,6254.93], [11014.3,6561.12], [11944.2,8214.64], [11330.2,7871.54], [10818.3,8034.4], [9282.29,7682.62], [8278.31,7989.3], [8222.05,7705.28], [7605.66,7499.62], [7243.64,7440.86], [11622,5258.05], [7869.83,9054.34], [8283.2,9054.34], [5995.95,9169.09], [5533.45,9145.35], [6580.98,10427.3], [7640.38,10502.5], [9095.07,9976.27], [9192.22,11015.7], [11063.3,11505.4], [9964.23,11775.7], [12079.4,5358.44], [11976,10396.8], [13400.2,12058.9], [11846.2,13138.4], [9733.15,13515.6], [8611.4,13559.9], [7926.41,13355.8], [6929.72,13057.3], [6716.15,12556.5], [6015.77,12525.7], [5574.75,11828.2], [12634.7,5035.25], [5361.17,11310.1], [6388.65,10695.8], [6271.28,9520.93], [6777.32,11079], [5898,9189.66], [5426.59,9322.55], [4383.72,8594.54], [4918.62,9723.15], [5197.62,8373.05], [5647.86,8675.43], [11943.5,3249.71], [6660.09,7114.06], [9057.78,7238.75], [9335.94,7518.89], [9612.17,7106.34], [9829.6,6998.48], [9916.18,6412.99], [10476.1,6782.78], [10980.2,7129.45], [10957.8,2620.99], [11644,7347.08], [10622.3,7969.17], [12371.4,8554.67], [13568.2,8645.18], [13954.9,9138.23], [12371.4,8554.67], [14158.9,9910.54], [13568.2,8645.18], [13954.9,9138.23], [14158.9,9910.54], [13062.3,10657.8], [12316.6,2259.94], [13308.6,3090.98]] call BIS_fnc_selectRandom;
_WaypointList2 = [[10839.7,4970.59], [9474.54,3638.77], [9164.44,4806.89], [12682.4,2088.94], [12316.4,1848.86], [11581.8,2148.71], [11116.3,6059.5], [11446,6254.93], [11014.3,6561.12], [11944.2,8214.64], [11330.2,7871.54], [10818.3,8034.4], [9282.29,7682.62], [8278.31,7989.3], [8222.05,7705.28], [7605.66,7499.62], [7243.64,7440.86], [11622,5258.05], [7869.83,9054.34], [8283.2,9054.34], [5995.95,9169.09], [5533.45,9145.35], [6580.98,10427.3], [7640.38,10502.5], [9095.07,9976.27], [9192.22,11015.7], [11063.3,11505.4], [9964.23,11775.7], [12079.4,5358.44], [11976,10396.8], [13400.2,12058.9], [11846.2,13138.4], [9733.15,13515.6], [8611.4,13559.9], [7926.41,13355.8], [6929.72,13057.3], [6716.15,12556.5], [6015.77,12525.7], [5574.75,11828.2], [12634.7,5035.25], [5361.17,11310.1], [6388.65,10695.8], [6271.28,9520.93], [6777.32,11079], [5898,9189.66], [5426.59,9322.55], [4383.72,8594.54], [4918.62,9723.15], [5197.62,8373.05], [5647.86,8675.43], [11943.5,3249.71], [6660.09,7114.06], [9057.78,7238.75], [9335.94,7518.89], [9612.17,7106.34], [9829.6,6998.48], [9916.18,6412.99], [10476.1,6782.78], [10980.2,7129.45], [10957.8,2620.99], [11644,7347.08], [10622.3,7969.17], [12371.4,8554.67], [13568.2,8645.18], [13954.9,9138.23], [12371.4,8554.67], [14158.9,9910.54], [13568.2,8645.18], [13954.9,9138.23], [14158.9,9910.54], [13062.3,10657.8], [12316.6,2259.94], [13308.6,3090.98]] call BIS_fnc_selectRandom;
_WaypointList3 = [[10839.7,4970.59], [9474.54,3638.77], [9164.44,4806.89], [12682.4,2088.94], [12316.4,1848.86], [11581.8,2148.71], [11116.3,6059.5], [11446,6254.93], [11014.3,6561.12], [11944.2,8214.64], [11330.2,7871.54], [10818.3,8034.4], [9282.29,7682.62], [8278.31,7989.3], [8222.05,7705.28], [7605.66,7499.62], [7243.64,7440.86], [11622,5258.05], [7869.83,9054.34], [8283.2,9054.34], [5995.95,9169.09], [5533.45,9145.35], [6580.98,10427.3], [7640.38,10502.5], [9095.07,9976.27], [9192.22,11015.7], [11063.3,11505.4], [9964.23,11775.7], [12079.4,5358.44], [11976,10396.8], [13400.2,12058.9], [11846.2,13138.4], [9733.15,13515.6], [8611.4,13559.9], [7926.41,13355.8], [6929.72,13057.3], [6716.15,12556.5], [6015.77,12525.7], [5574.75,11828.2], [12634.7,5035.25], [5361.17,11310.1], [6388.65,10695.8], [6271.28,9520.93], [6777.32,11079], [5898,9189.66], [5426.59,9322.55], [4383.72,8594.54], [4918.62,9723.15], [5197.62,8373.05], [5647.86,8675.43], [11943.5,3249.71], [6660.09,7114.06], [9057.78,7238.75], [9335.94,7518.89], [9612.17,7106.34], [9829.6,6998.48], [9916.18,6412.99], [10476.1,6782.78], [10980.2,7129.45], [10957.8,2620.99], [11644,7347.08], [10622.3,7969.17], [12371.4,8554.67], [13568.2,8645.18], [13954.9,9138.23], [12371.4,8554.67], [14158.9,9910.54], [13568.2,8645.18], [13954.9,9138.23], [14158.9,9910.54], [13062.3,10657.8], [12316.6,2259.94], [13308.6,3090.98]] call BIS_fnc_selectRandom;
_WaypointList4 = [[10839.7,4970.59], [9474.54,3638.77], [9164.44,4806.89], [12682.4,2088.94], [12316.4,1848.86], [11581.8,2148.71], [11116.3,6059.5], [11446,6254.93], [11014.3,6561.12], [11944.2,8214.64], [11330.2,7871.54], [10818.3,8034.4], [9282.29,7682.62], [8278.31,7989.3], [8222.05,7705.28], [7605.66,7499.62], [7243.64,7440.86], [11622,5258.05], [7869.83,9054.34], [8283.2,9054.34], [5995.95,9169.09], [5533.45,9145.35], [6580.98,10427.3], [7640.38,10502.5], [9095.07,9976.27], [9192.22,11015.7], [11063.3,11505.4], [9964.23,11775.7], [12079.4,5358.44], [11976,10396.8], [13400.2,12058.9], [11846.2,13138.4], [9733.15,13515.6], [8611.4,13559.9], [7926.41,13355.8], [6929.72,13057.3], [6716.15,12556.5], [6015.77,12525.7], [5574.75,11828.2], [12634.7,5035.25], [5361.17,11310.1], [6388.65,10695.8], [6271.28,9520.93], [6777.32,11079], [5898,9189.66], [5426.59,9322.55], [4383.72,8594.54], [4918.62,9723.15], [5197.62,8373.05], [5647.86,8675.43], [11943.5,3249.71], [6660.09,7114.06], [9057.78,7238.75], [9335.94,7518.89], [9612.17,7106.34], [9829.6,6998.48], [9916.18,6412.99], [10476.1,6782.78], [10980.2,7129.45], [10957.8,2620.99], [11644,7347.08], [10622.3,7969.17], [12371.4,8554.67], [13568.2,8645.18], [13954.9,9138.23], [12371.4,8554.67], [14158.9,9910.54], [13568.2,8645.18], [13954.9,9138.23], [14158.9,9910.54], [13062.3,10657.8], [12316.6,2259.94], [13308.6,3090.98]] call BIS_fnc_selectRandom;
_WaypointList5 = [[10839.7,4970.59], [9474.54,3638.77], [9164.44,4806.89], [12682.4,2088.94], [12316.4,1848.86], [11581.8,2148.71], [11116.3,6059.5], [11446,6254.93], [11014.3,6561.12], [11944.2,8214.64], [11330.2,7871.54], [10818.3,8034.4], [9282.29,7682.62], [8278.31,7989.3], [8222.05,7705.28], [7605.66,7499.62], [7243.64,7440.86], [11622,5258.05], [7869.83,9054.34], [8283.2,9054.34], [5995.95,9169.09], [5533.45,9145.35], [6580.98,10427.3], [7640.38,10502.5], [9095.07,9976.27], [9192.22,11015.7], [11063.3,11505.4], [9964.23,11775.7], [12079.4,5358.44], [11976,10396.8], [13400.2,12058.9], [11846.2,13138.4], [9733.15,13515.6], [8611.4,13559.9], [7926.41,13355.8], [6929.72,13057.3], [6716.15,12556.5], [6015.77,12525.7], [5574.75,11828.2], [12634.7,5035.25], [5361.17,11310.1], [6388.65,10695.8], [6271.28,9520.93], [6777.32,11079], [5898,9189.66], [5426.59,9322.55], [4383.72,8594.54], [4918.62,9723.15], [5197.62,8373.05], [5647.86,8675.43], [11943.5,3249.71], [6660.09,7114.06], [9057.78,7238.75], [9335.94,7518.89], [9612.17,7106.34], [9829.6,6998.48], [9916.18,6412.99], [10476.1,6782.78], [10980.2,7129.45], [10957.8,2620.99], [11644,7347.08], [10622.3,7969.17], [12371.4,8554.67], [13568.2,8645.18], [13954.9,9138.23], [12371.4,8554.67], [14158.9,9910.54], [13568.2,8645.18], [13954.9,9138.23], [14158.9,9910.54], [13062.3,10657.8], [12316.6,2259.94], [13308.6,3090.98]] call BIS_fnc_selectRandom;
_WaypointList6 = [[10839.7,4970.59], [9474.54,3638.77], [9164.44,4806.89], [12682.4,2088.94], [12316.4,1848.86], [11581.8,2148.71], [11116.3,6059.5], [11446,6254.93], [11014.3,6561.12], [11944.2,8214.64], [11330.2,7871.54], [10818.3,8034.4], [9282.29,7682.62], [8278.31,7989.3], [8222.05,7705.28], [7605.66,7499.62], [7243.64,7440.86], [11622,5258.05], [7869.83,9054.34], [8283.2,9054.34], [5995.95,9169.09], [5533.45,9145.35], [6580.98,10427.3], [7640.38,10502.5], [9095.07,9976.27], [9192.22,11015.7], [11063.3,11505.4], [9964.23,11775.7], [12079.4,5358.44], [11976,10396.8], [13400.2,12058.9], [11846.2,13138.4], [9733.15,13515.6], [8611.4,13559.9], [7926.41,13355.8], [6929.72,13057.3], [6716.15,12556.5], [6015.77,12525.7], [5574.75,11828.2], [12634.7,5035.25], [5361.17,11310.1], [6388.65,10695.8], [6271.28,9520.93], [6777.32,11079], [5898,9189.66], [5426.59,9322.55], [4383.72,8594.54], [4918.62,9723.15], [5197.62,8373.05], [5647.86,8675.43], [11943.5,3249.71], [6660.09,7114.06], [9057.78,7238.75], [9335.94,7518.89], [9612.17,7106.34], [9829.6,6998.48], [9916.18,6412.99], [10476.1,6782.78], [10980.2,7129.45], [10957.8,2620.99], [11644,7347.08], [10622.3,7969.17], [12371.4,8554.67], [13568.2,8645.18], [13954.9,9138.23], [12371.4,8554.67], [14158.9,9910.54], [13568.2,8645.18], [13954.9,9138.23], [14158.9,9910.54], [13062.3,10657.8], [12316.6,2259.94], [13308.6,3090.98]] call BIS_fnc_selectRandom;
_WaypointList7 = [[10839.7,4970.59], [9474.54,3638.77], [9164.44,4806.89], [12682.4,2088.94], [12316.4,1848.86], [11581.8,2148.71], [11116.3,6059.5], [11446,6254.93], [11014.3,6561.12], [11944.2,8214.64], [11330.2,7871.54], [10818.3,8034.4], [9282.29,7682.62], [8278.31,7989.3], [8222.05,7705.28], [7605.66,7499.62], [7243.64,7440.86], [11622,5258.05], [7869.83,9054.34], [8283.2,9054.34], [5995.95,9169.09], [5533.45,9145.35], [6580.98,10427.3], [7640.38,10502.5], [9095.07,9976.27], [9192.22,11015.7], [11063.3,11505.4], [9964.23,11775.7], [12079.4,5358.44], [11976,10396.8], [13400.2,12058.9], [11846.2,13138.4], [9733.15,13515.6], [8611.4,13559.9], [7926.41,13355.8], [6929.72,13057.3], [6716.15,12556.5], [6015.77,12525.7], [5574.75,11828.2], [12634.7,5035.25], [5361.17,11310.1], [6388.65,10695.8], [6271.28,9520.93], [6777.32,11079], [5898,9189.66], [5426.59,9322.55], [4383.72,8594.54], [4918.62,9723.15], [5197.62,8373.05], [5647.86,8675.43], [11943.5,3249.71], [6660.09,7114.06], [9057.78,7238.75], [9335.94,7518.89], [9612.17,7106.34], [9829.6,6998.48], [9916.18,6412.99], [10476.1,6782.78], [10980.2,7129.45], [10957.8,2620.99], [11644,7347.08], [10622.3,7969.17], [12371.4,8554.67], [13568.2,8645.18], [13954.9,9138.23], [12371.4,8554.67], [14158.9,9910.54], [13568.2,8645.18], [13954.9,9138.23], [14158.9,9910.54], [13062.3,10657.8], [12316.6,2259.94], [13308.6,3090.98]] call BIS_fnc_selectRandom;
_WaypointList8 = [[10839.7,4970.59], [9474.54,3638.77], [9164.44,4806.89], [12682.4,2088.94], [12316.4,1848.86], [11581.8,2148.71], [11116.3,6059.5], [11446,6254.93], [11014.3,6561.12], [11944.2,8214.64], [11330.2,7871.54], [10818.3,8034.4], [9282.29,7682.62], [8278.31,7989.3], [8222.05,7705.28], [7605.66,7499.62], [7243.64,7440.86], [11622,5258.05], [7869.83,9054.34], [8283.2,9054.34], [5995.95,9169.09], [5533.45,9145.35], [6580.98,10427.3], [7640.38,10502.5], [9095.07,9976.27], [9192.22,11015.7], [11063.3,11505.4], [9964.23,11775.7], [12079.4,5358.44], [11976,10396.8], [13400.2,12058.9], [11846.2,13138.4], [9733.15,13515.6], [8611.4,13559.9], [7926.41,13355.8], [6929.72,13057.3], [6716.15,12556.5], [6015.77,12525.7], [5574.75,11828.2], [12634.7,5035.25], [5361.17,11310.1], [6388.65,10695.8], [6271.28,9520.93], [6777.32,11079], [5898,9189.66], [5426.59,9322.55], [4383.72,8594.54], [4918.62,9723.15], [5197.62,8373.05], [5647.86,8675.43], [11943.5,3249.71], [6660.09,7114.06], [9057.78,7238.75], [9335.94,7518.89], [9612.17,7106.34], [9829.6,6998.48], [9916.18,6412.99], [10476.1,6782.78], [10980.2,7129.45], [10957.8,2620.99], [11644,7347.08], [10622.3,7969.17], [12371.4,8554.67], [13568.2,8645.18], [13954.9,9138.23], [12371.4,8554.67], [14158.9,9910.54], [13568.2,8645.18], [13954.9,9138.23], [14158.9,9910.54], [13062.3,10657.8], [12316.6,2259.94], [13308.6,3090.98]] call BIS_fnc_selectRandom;
_WaypointList9 = [[10839.7,4970.59], [9474.54,3638.77], [9164.44,4806.89], [12682.4,2088.94], [12316.4,1848.86], [11581.8,2148.71], [11116.3,6059.5], [11446,6254.93], [11014.3,6561.12], [11944.2,8214.64], [11330.2,7871.54], [10818.3,8034.4], [9282.29,7682.62], [8278.31,7989.3], [8222.05,7705.28], [7605.66,7499.62], [7243.64,7440.86], [11622,5258.05], [7869.83,9054.34], [8283.2,9054.34], [5995.95,9169.09], [5533.45,9145.35], [6580.98,10427.3], [7640.38,10502.5], [9095.07,9976.27], [9192.22,11015.7], [11063.3,11505.4], [9964.23,11775.7], [12079.4,5358.44], [11976,10396.8], [13400.2,12058.9], [11846.2,13138.4], [9733.15,13515.6], [8611.4,13559.9], [7926.41,13355.8], [6929.72,13057.3], [6716.15,12556.5], [6015.77,12525.7], [5574.75,11828.2], [12634.7,5035.25], [5361.17,11310.1], [6388.65,10695.8], [6271.28,9520.93], [6777.32,11079], [5898,9189.66], [5426.59,9322.55], [4383.72,8594.54], [4918.62,9723.15], [5197.62,8373.05], [5647.86,8675.43], [11943.5,3249.71], [6660.09,7114.06], [9057.78,7238.75], [9335.94,7518.89], [9612.17,7106.34], [9829.6,6998.48], [9916.18,6412.99], [10476.1,6782.78], [10980.2,7129.45], [10957.8,2620.99], [11644,7347.08], [10622.3,7969.17], [12371.4,8554.67], [13568.2,8645.18], [13954.9,9138.23], [12371.4,8554.67], [14158.9,9910.54], [13568.2,8645.18], [13954.9,9138.23], [14158.9,9910.54], [13062.3,10657.8], [12316.6,2259.94], [13308.6,3090.98]] call BIS_fnc_selectRandom;
_WaypointList10 = [[10839.7,4970.59], [9474.54,3638.77], [9164.44,4806.89], [12682.4,2088.94], [12316.4,1848.86], [11581.8,2148.71], [11116.3,6059.5], [11446,6254.93], [11014.3,6561.12], [11944.2,8214.64], [11330.2,7871.54], [10818.3,8034.4], [9282.29,7682.62], [8278.31,7989.3], [8222.05,7705.28], [7605.66,7499.62], [7243.64,7440.86], [11622,5258.05], [7869.83,9054.34], [8283.2,9054.34], [5995.95,9169.09], [5533.45,9145.35], [6580.98,10427.3], [7640.38,10502.5], [9095.07,9976.27], [9192.22,11015.7], [11063.3,11505.4], [9964.23,11775.7], [12079.4,5358.44], [11976,10396.8], [13400.2,12058.9], [11846.2,13138.4], [9733.15,13515.6], [8611.4,13559.9], [7926.41,13355.8], [6929.72,13057.3], [6716.15,12556.5], [6015.77,12525.7], [5574.75,11828.2], [12634.7,5035.25], [5361.17,11310.1], [6388.65,10695.8], [6271.28,9520.93], [6777.32,11079], [5898,9189.66], [5426.59,9322.55], [4383.72,8594.54], [4918.62,9723.15], [5197.62,8373.05], [5647.86,8675.43], [11943.5,3249.71], [6660.09,7114.06], [9057.78,7238.75], [9335.94,7518.89], [9612.17,7106.34], [9829.6,6998.48], [9916.18,6412.99], [10476.1,6782.78], [10980.2,7129.45], [10957.8,2620.99], [11644,7347.08], [10622.3,7969.17], [12371.4,8554.67], [13568.2,8645.18], [13954.9,9138.23], [12371.4,8554.67], [14158.9,9910.54], [13568.2,8645.18], [13954.9,9138.23], [14158.9,9910.54], [13062.3,10657.8], [12316.6,2259.94], [13308.6,3090.98]] call BIS_fnc_selectRandom;
_WaypointList11 = [[10839.7,4970.59], [9474.54,3638.77], [9164.44,4806.89], [12682.4,2088.94], [12316.4,1848.86], [11581.8,2148.71], [11116.3,6059.5], [11446,6254.93], [11014.3,6561.12], [11944.2,8214.64], [11330.2,7871.54], [10818.3,8034.4], [9282.29,7682.62], [8278.31,7989.3], [8222.05,7705.28], [7605.66,7499.62], [7243.64,7440.86], [11622,5258.05], [7869.83,9054.34], [8283.2,9054.34], [5995.95,9169.09], [5533.45,9145.35], [6580.98,10427.3], [7640.38,10502.5], [9095.07,9976.27], [9192.22,11015.7], [11063.3,11505.4], [9964.23,11775.7], [12079.4,5358.44], [11976,10396.8], [13400.2,12058.9], [11846.2,13138.4], [9733.15,13515.6], [8611.4,13559.9], [7926.41,13355.8], [6929.72,13057.3], [6716.15,12556.5], [6015.77,12525.7], [5574.75,11828.2], [12634.7,5035.25], [5361.17,11310.1], [6388.65,10695.8], [6271.28,9520.93], [6777.32,11079], [5898,9189.66], [5426.59,9322.55], [4383.72,8594.54], [4918.62,9723.15], [5197.62,8373.05], [5647.86,8675.43], [11943.5,3249.71], [6660.09,7114.06], [9057.78,7238.75], [9335.94,7518.89], [9612.17,7106.34], [9829.6,6998.48], [9916.18,6412.99], [10476.1,6782.78], [10980.2,7129.45], [10957.8,2620.99], [11644,7347.08], [10622.3,7969.17], [12371.4,8554.67], [13568.2,8645.18], [13954.9,9138.23], [12371.4,8554.67], [14158.9,9910.54], [13568.2,8645.18], [13954.9,9138.23], [14158.9,9910.54], [13062.3,10657.8], [12316.6,2259.94], [13308.6,3090.98]] call BIS_fnc_selectRandom;

// starting positions for this route
_starts =_StartsList;

// starting directions in which the vehicles are spawned on this route
_startDirs =
[
349
];

// the route
_waypoints =
[
[_WaypointList1],
[_WaypointList2],
[_WaypointList3],
[_WaypointList4],
[_WaypointList5],
[_WaypointList6],
[_WaypointList7],
[_WaypointList8],
[_WaypointList9],
[_WaypointList10],
[_WaypointList11],
];


9
Editing & Coding / Unmanned Vehicles on Map
« on: May 06, 2016, 01:28 PM »
Does anybody have a method for preventing non-friendly unmanned vehicles from showing up on the map?

This applies specifically to the indie faction.

10
Server Discussion / BIB A3 Wasteland
« on: Apr 24, 2016, 06:03 AM »
Hello Wastelanders, I would like to announce a new wasteland server by BIBGaming


$10K Starting Cash

Territory Control: There is one strategic location that if held will provide significant income to the group or faction that controls it. Initial payout is $5K, with $50 per second that the territory is controlled

Revive: Reviving a player consumes a medkit. Players may heal themselves or other repeatedly from the same medkit

Vehicle Repair: Engineers can field repair any damaged vehicle, so long as they have a tool kit in their inventory. For complete repair a repair vehicle or object is required. Repair kits have been removed from the store, and will not spawn with player

Vehicle Thermals: All vehicles that have thermal sights by default may use them. This is the to counter for Titan missiles, and is reflected in increased costs for vehicles with thermal weapon sights.

Vehicle Re-Arm: Vehicle re-arm can be conducted at designated service points throughout Altis, as well as by purchasing a re-arm object or Taru

Vehicle towing: Most vehicles are capable of towing other vehicles, simply park one directly in front of the other and select tow from the scroll menu.

Vehicle Loading: Most vehicles have a load capacity, and a cargo value. Some large vehicles have a cargo capacity large enough to fit smaller vehicles inside. Please note that vehicle lifting by helicopters is disabled, However, sling loading is still available on equiped helos.

Base building: There are many base building objects available in the general store. Objects will save once locked for up to 14 days, and will continue to save even if unlocked for that duration. Unlocking by a player other than the one who locked the object takes 20 minutes.

Vehicle Locking: Vehicle owner may lock vehicles. Lock state will persist across server restarts. Pin locks are available to grant locking and unlocking access to friendly players. Engineers may attempt to break into a locked vehicle using a tool kit. Success will grant the engineer access to the locked vehicle as well as transfer them ownership. Failure will result in the destruction of the tool kit.

Sentry Guns: Remote operated, semi autonomous HMGs and GMGs are available at the gun store. Sentry guns become inoperative after server restart, owner are no longer able to connect to them via UAV terminal. Independant faction sentry guns may not attack hostile independants while operating in autonomous mode.

Air Drop: Supplies and vehicles can be air dropped at player location for an extra fee. Option available via scroll wheel.

Just Search: BIBA3Wasteland Altis For more information please visit: BIBGaming.com

I do want to thank the community contributors like AgentRev, APOC and others who's code I have so shamelessly "borrowed" and modified for my own purposes.

11
Editing & Coding / Re-Arm Vehicles
« on: Mar 24, 2016, 12:02 PM »
I've been working on setting up an A3Wasteland server for my clan. However, I've run into a small problem.

I want to be able to use the re-arm trucks and crates, to allow players another option than the service points. The problem is, the crates and vehicles are auto-refreshing the ammo inventory. I've found where I can edit the ammo contents of each vehicle. It just keeps refilling up to that amount though, instead of running out like it does in vanilla Arma.

Can anybody point me to the code that is causing them to restock?

Pages: [1]