-
Posts
128 -
Joined
-
Last visited
-
Days Won
1
Content Type
Profiles
Forums
Articles
Posts posted by Vladick
-
-
On 5/6/2021 at 4:01 PM, looter809 said:
I know this was a year and a half ago but this helped me. Thank you!
I transferred my database from one server to another and it didn't transfer the procedure correctly, re-executing the sql procedure fixed it :)
I am having this same issue with a newly created 1.0.7.1 Epoch server: The trader takes the coins, the red arrow appears but no vehicle spawns. It happens with some vehicles but not with others. How exactly do I employ this DB fix? Do I just run the following procedure in the database once to fix it? And would changing the distance for the vehicle spawn help? Thanks for any help!
SpoilerDROP procedure IF EXISTS `retObjID`; DELIMITER $$ CREATE PROCEDURE `retObjID`( IN objTableName VARCHAR(256), IN SID INT(11), IN UID bigint(24), OUT OID INT(11)unsigned ) BEGIN DECLARE x INT; declare sqlstr VARCHAR(256); SET @OID = 0; SET @x = 1; SET @sqlstr = CONCAT('SELECT `ObjectID` from `', objTableName ,'` where `Instance` = ', SID ,' AND `ObjectUID` = ', UID ,' INTO @OID'); PREPARE stmt FROM @sqlstr; WHILE (@x <= 5) DO EXECUTE stmt; IF (@OID > 0) then SET @x = 6; else SET @x = @x + 1; DO sleep(0.1); END IF; END WHILE; DEALLOCATE PREPARE stmt; SET OID = @OID; SELECT @OID; END;$$ DELIMITER ; -
On 9/27/2022 at 5:28 AM, Knorf said:
Does anyone know where i can download this? the link is dead
@oldmatechoc I was hoping to reinstall this also for 1.0.7.1 but the link to github is dead. I have the old version from my previous install on 1.0.7 but I'm not sure I installed it correctly. Do I just move the Recipes and Catalogue folders over and then add the three lines to the description.ext? Is that all there is to it? Also, which key do you use to open the display? LOL, it's been a while! Thanks!
-
Hi there,
Just wanted to report some weirdness happening with the vote day/night function in this mod. It seems that after a vote for day or night, when a player gets killed or disconnects when they relog it's different from what it was before but just for that player. So it's night for some players and day for others. I have confirmed this by using two accounts on two different PCs at one time. While it's day on one account, it's night on the other. BTW, I have my server set to -11 GMT if that makes any difference. I used to just have it set to 24/7 day but some players are wanting some nigh time play so I changed it.
Any idea what the problem could be here or Is there some other config I need to change to make this work as expected?
Thanks for your help!
Vlad
-
Hey All,
I'm getting multiple WAI errors in my RPT on startup from the dynamic_crate.sqf. Anyone know how I can fix these?
RPT Errors:
Spoiler12:10:19 Error in expression < + (wai_num_mags select 0))];
};
};if(_num_backpacks > 0) then {
for "_i" fro>
12:10:19 Error position: <_num_backpacks > 0) then {for "_i" fro>
12:10:19 Error Undefined variable in expression: _num_backpacks
12:10:19 File z\addons\dayz_server\WAI\compile\dynamic_crate.sqf, line 148
12:10:19 Error in expression <ct 0;
_pistols_array = (_loot select 3) select 1;
} else {
_num_pistols = _loot >
12:10:19 Error position: <select 1;
} else {
_num_pistols = _loot >
12:10:19 Error Zero divisor
12:10:19 File z\addons\dayz_server\WAI\compile\dynamic_crate.sqf, line 57
12:10:19 Error in expression <eCargoGlobal [_item,1];
};
};
};
};if(_num_pistols > 0) then {
for "_i" from >
12:10:19 Error position: <_num_pistols > 0) then {for "_i" from >
12:10:19 Error Undefined variable in expression: _num_pistols
12:10:19 File z\addons\dayz_server\WAI\compile\dynamic_crate.sqf, line 138
12:10:20 Error in expression < + (wai_num_mags select 0))];
};
};if(_num_backpacks > 0) then {
for "_i" fro>
12:10:20 Error position: <_num_backpacks > 0) then {for "_i" fro>
12:10:20 Error Undefined variable in expression: _num_backpacks
12:10:20 File z\addons\dayz_server\WAI\compile\dynamic_crate.sqf, line 148
12:10:20 Error in expression <ct 0;
_pistols_array = (_loot select 3) select 1;
} else {
_num_pistols = _loot >
12:10:20 Error position: <select 1;
} else {
_num_pistols = _loot >
12:10:20 Error Zero divisor
12:10:20 File z\addons\dayz_server\WAI\compile\dynamic_crate.sqf, line 57
12:10:20 Error in expression <eCargoGlobal [_item,1];
};
};
};
};if(_num_pistols > 0) then {
for "_i" from >
12:10:20 Error position: <_num_pistols > 0) then {for "_i" from >
12:10:20 Error Undefined variable in expression: _num_pistols
12:10:20 File z\addons\dayz_server\WAI\compile\dynamic_crate.sqf, line 138
12:10:20 Error in expression <ct 0;
_pistols_array = (_loot select 3) select 1;
} else {
_num_pistols = _loot >
12:10:20 Error position: <select 1;
} else {
_num_pistols = _loot >
12:10:20 Error Zero divisor
12:10:20 File z\addons\dayz_server\WAI\compile\dynamic_crate.sqf, line 57
12:10:20 Error in expression <eCargoGlobal [_item,1];
};
};
};
};if(_num_pistols > 0) then {
for "_i" from >
12:10:20 Error position: <_num_pistols > 0) then {for "_i" from >
12:10:20 Error Undefined variable in expression: _num_pistols
12:10:20 File z\addons\dayz_server\WAI\compile\dynamic_crate.sqf, line 138
12:10:20 Error in expression <ct 0;
_pistols_array = (_loot select 3) select 1;
} else {
_num_pistols = _loot >
12:10:20 Error position: <select 1;
} else {
_num_pistols = _loot >
12:10:20 Error Zero divisor
12:10:20 File z\addons\dayz_server\WAI\compile\dynamic_crate.sqf, line 57
12:10:20 Error in expression <eCargoGlobal [_item,1];
};
};
};
};if(_num_pistols > 0) then {
for "_i" from >
12:10:20 Error position: <_num_pistols > 0) then {for "_i" from >
12:10:20 Error Undefined variable in expression: _num_pistols
12:10:20 File z\addons\dayz_server\WAI\compile\dynamic_crate.sqf, line 138
12:10:20 Error in expression <ct 0;
_pistols_array = (_loot select 3) select 1;
} else {
_num_pistols = _loot >
12:10:20 Error position: <select 1;
} else {
_num_pistols = _loot >
12:10:20 Error Zero divisor
12:10:20 File z\addons\dayz_server\WAI\compile\dynamic_crate.sqf, line 57
12:10:20 Error in expression <eCargoGlobal [_item,1];
};
};
};
};if(_num_pistols > 0) then {
for "_i" from >
12:10:20 Error position: <_num_pistols > 0) then {for "_i" from >
12:10:20 Error Undefined variable in expression: _num_pistols
12:10:20 File z\addons\dayz_server\WAI\compile\dynamic_crate.sqf, line 138
12:10:21 Error in expression <ct 0;
_pistols_array = (_loot select 3) select 1;
} else {
_num_pistols = _loot >
12:10:21 Error position: <select 1;
} else {
_num_pistols = _loot >
12:10:21 Error Zero divisor
12:10:21 File z\addons\dayz_server\WAI\compile\dynamic_crate.sqf, line 57
12:10:21 Error in expression <eCargoGlobal [_item,1];
};
};
};
};if(_num_pistols > 0) then {
for "_i" from >
12:10:21 Error position: <_num_pistols > 0) then {for "_i" from >
12:10:21 Error Undefined variable in expression: _num_pistols
12:10:21 File z\addons\dayz_server\WAI\compile\dynamic_crate.sqf, line 138
12:10:21 Error in expression < + (wai_num_mags select 0))];
};
};if(_num_backpacks > 0) then {
for "_i" fro>
12:10:21 Error position: <_num_backpacks > 0) then {for "_i" fro>
12:10:21 Error Undefined variable in expression: _num_backpacks
12:10:21 File z\addons\dayz_server\WAI\compile\dynamic_crate.sqf, line 148
12:10:21 Error in expression <ct 0;
_pistols_array = (_loot select 3) select 1;
} else {
_num_pistols = _loot >
12:10:21 Error position: <select 1;
} else {
_num_pistols = _loot >
12:10:21 Error Zero divisor
12:10:21 File z\addons\dayz_server\WAI\compile\dynamic_crate.sqf, line 57
12:10:21 Error in expression <eCargoGlobal [_item,1];
};
};
};
};if(_num_pistols > 0) then {
for "_i" from >
12:10:21 Error position: <_num_pistols > 0) then {for "_i" from >
12:10:21 Error Undefined variable in expression: _num_pistols
12:10:21 File z\addons\dayz_server\WAI\compile\dynamic_crate.sqf, line 138dynamic_crate.sqf:
Spoilerprivate ["_multiArrItem","_multiArrWep","_loot","_vehicles","_complete","_marker","_ammo","_tool","_crate","_weapon","_item","_backpack","_num_tools","_num_items","_num_backpacks","_num_weapons","_weapons_array","_tool_array","_item_array","_backpack_array","_num_pistols","_pistols_array","_pistol","_pistolammo"];
_crate = _this select 0;
_loot = _this select 1;
if ((count _this) > 2) then {
_complete = _this select 2;
};
_multiArrItem = false;
_multiArrWep = false;if !(isNil "_complete") then {
if (typeOf _crate in (crates_large + crates_medium + crates_small)) then {
if (wai_crates_smoke && sunOrMoon == 1) then {
_marker = "smokeShellPurple" createVehicle getPosATL _crate;
_marker setPosATL (getPosATL _crate);
_marker attachTo [_crate,[0,0,0]];
};
if (wai_crates_flares && sunOrMoon != 1) then {
_marker = "RoadFlare" createVehicle getPosATL _crate;
_marker setPosATL (getPosATL _crate);
_marker attachTo [_crate, [0,0,0]];
PVDZ_obj_RoadFlare = [_marker,0];
publicVariable "PVDZ_obj_RoadFlare";
};
};
};if(typeName (_loot select 0) == "ARRAY") then {
_num_weapons = (_loot select 0) select 0;
_weapons_array = (_loot select 0) select 1;
} else {
_num_weapons = _loot select 0;
_weapons_array = ai_wep_random;
_multiArrWep = true;
};if(typeName (_loot select 1) == "ARRAY") then {
_num_tools = (_loot select 1) select 0;
_tool_array = (_loot select 1) select 1;
} else {
_num_tools = _loot select 1;
_tool_array = crate_tools;
};if(typeName (_loot select 2) == "ARRAY") then {
_num_items = (_loot select 2) select 0;
_item_array = (_loot select 2) select 1;
} else {
_num_items = _loot select 2;
_item_array = crate_items_random;
_multiArrItem = true;
};if(typeName (_loot select 3) == "ARRAY") then {
_num_pistols = (_loot select 3) select 0;
_pistols_array = (_loot select 3) select 1;
} else {
_num_pistols = _loot select 3;
if (WAI_Overpoch) then {
_pistols_array = ai_wep_owpistol;
} else {
_pistols_array = ai_wep_pistol;
};
};if(typeName (_loot select 4) == "ARRAY") then {
_num_backpacks = (_loot select 4) select 0;
_backpack_array = (_loot select 4) select 1;
} else {
_num_backpacks = _loot select 4;
_backpack_array = crate_backpacks_all;
};if(_num_weapons > 0) then {
if (_multiArrWep) then {for "_i" from 1 to _num_weapons do {
_weapons_array = ai_wep_random select (floor (random (count ai_wep_random)));
_weapon = _weapons_array select (floor (random (count _weapons_array)));
_ammo = _weapon call find_suitable_ammunition;
_crate addWeaponCargoGlobal [_weapon,1];
_crate addMagazineCargoGlobal [_ammo, (round(random((wai_num_mags select 1) - (wai_num_mags select 0))) + (wai_num_mags select 0))];
};
} else {
for "_i" from 1 to _num_weapons do {
_weapon = _weapons_array select (floor (random (count _weapons_array)));
_ammo = _weapon call find_suitable_ammunition;
_crate addWeaponCargoGlobal [_weapon,1];
_crate addMagazineCargoGlobal [_ammo, (round(random((wai_num_mags select 1) - (wai_num_mags select 0))) + (wai_num_mags select 0))];
};
};
};if(_num_tools > 0) then {
for "_i" from 1 to _num_tools do {
_tool = _tool_array select (floor (random (count _tool_array)));if(typeName (_tool) == "ARRAY") then {
_crate addWeaponCargoGlobal [_tool select 0,_tool select 1];
} else {
_crate addWeaponCargoGlobal [_tool,1];
};
};
};if(_num_items > 0) then {
if (_multiArrItem) then {
for "_i" from 1 to _num_items do {
_item_array = crate_items_random select (floor (random (count crate_items_random)));
_item = _item_array select (floor (random (count _item_array)));if(typeName (_item) == "ARRAY") then {
_crate addMagazineCargoGlobal [_item select 0,_item select 1];
} else {
_crate addMagazineCargoGlobal [_item,1];
};
};
} else {
for "_i" from 1 to _num_items do {
_item = _item_array select (floor (random (count _item_array)));if(typeName (_item) == "ARRAY") then {
_crate addMagazineCargoGlobal [_item select 0,_item select 1];
} else {
_crate addMagazineCargoGlobal [_item,1];
};
};
};
};if(_num_pistols > 0) then {
for "_i" from 1 to _num_pistols do {
_pistol = _pistols_array select (floor (random (count _pistols_array)));
_pistolammo = _pistol call find_suitable_ammunition;
_crate addWeaponCargoGlobal [_pistol,1];
_crate addMagazineCargoGlobal [_pistolammo, (round(random((wai_num_mags select 1) - (wai_num_mags select 0))) + (wai_num_mags select 0))];
};
};if(_num_backpacks > 0) then {
for "_i" from 1 to _num_backpacks do {
_backpack = _backpack_array select (floor (random (count _backpack_array)));if(typeName (_backpack) == "ARRAY") then {
_crate addBackpackCargoGlobal [_backpack select 0,_backpack select 1];
} else {
_crate addBackpackCargoGlobal [_backpack,1];
};
};
};if (wai_high_value_chance > 0) then {
if(random 100 < wai_high_value_chance) then {
_item = crate_items_high_value select (floor (random (count crate_items_high_value)));
_crate addMagazineCargoGlobal [_item,1];
};
};if(wai_debug_mode) then {
diag_log format["WAI: Spawning in a dynamic crate with %1 guns, %2 tools, %3 items and %4 pistols and %5 backpacks",_num_weapons,_num_tools,_num_items,_num_pistols,_num_backpacks];
};
Thanks for any help you can give!
Vlad
-
@oldmatechocThis is awesome work btw! Saves me answering soooooooo many questions! Thanks!
-
Hey there,
I'm trying to get a PVP Zone set up on my Epoch 1.0.7 server and have tried to make it happen using the configs recommended in this message string. So far here's what I've done:
1. In mission.sqm added this zone:
Spoilerclass Item10
{
position[]={6814.31,0,2656.95};
//TRGDEF
name="zonepvp";
expCond="(player distance zonepvp) < 400;";
expActiv="inPVPZone = true; systemChat (format [""You are entering the PVP zone.""]);";
expDesactiv="inPVPZone = false; systemChat (format [""You are leaving the PVP zone.""]);";
init="this enableSimulation false;this allowDamage true;this enableAI 'FSM';this enableAI 'ANIM';this enableAI 'MOVE';";
};2. Also in mission.sqm added this map marker:
Spoilerclass Item28
{
position[]={6814.31,0,2656.95};
name="pvpzone";
text="PVP ZONE";
type="mil_circle";
colorName="ColorBlue";
};3. Pulled the fn_damageHandler.sqf out of the dayz_code pbo and placed it into the mission dayz_code\compile folder.
4. Added this line in my compiles.sqf to call the fn_damageHandler.sqf:
call compile preprocessFileLineNumbers "dayz_code\compile\fn_damageHandler.sqf";
5. In fn_damageHandler.sqf changed this: if (DZE_PVE_Mode && {_isPlayer} && {!_falling})) exitWith {};
To this: if (DZE_PVE_Mode && {_isPlayer} && {!_falling} && {!inPVPZone})) exitWith {};
That's it. That's all I could gather to do from the message string above. A couple of things:
1. When joining, I get a "cannot load mission" error but after clicking ok it goes away and let's me in.
2. Nothing happens when I enter the PVP zone, which is in the middle of Cherno. The Anti PVE is still on and you cannot damage a player.
3. The map icon shows up fine but I would like to know if there is a way to make the map icon circle as large as the PVP zone itself so that it shows the borders of the zone.
Anyway, if anyone has some time to point me in the right direction on this I would very much appreciate it.
Thanks!
Vlad
-
11 hours ago, oldmatechoc said:
@Vladick
Looks like you havent redirected the custom keyboard.sqf In your compiles correctly.add
DZ_KeyDown_EH = compile preprocessFileLineNumbers "path_to your\keyboard.sqf";
some where under
if (!isDedicated) then {
in your compiles.sqf
@oldmatechocThat did it! Thanks so much for your help!
-
6 hours ago, oldmatechoc said:
if (_dikCode == 0x15) then { []execVM "scripts\catalogue\catalog_menu.sqf"; };
@oldmatechocI thought so. Thanks for confirming. I've done something wrong in the install then and I can't figure out what it is. Can you see anything wrong with my config (below)?
1. First, I put the catalogue folder folder in the mission scripts folder.
2, I extracted the keyboard.sqf file from the dayz_code pbo into the dayz_code\compile folder and added the following at the very bottom just above _handled
:
Spoiler//---------------------------------------------------------------- Catalogue Start
if (_dikCode == 0x15) then { []execVM "scripts\catalogue\catalog_menu.sqf"; };
private ["_isBusy"];
_isBusy = player getVariable["isBusy",false];
if (_isBusy) then {
if (_dikCode == 0x05) then {
[15,preview_bot] call fnc_rotate_bot;
[15,vehicle_bot] call fnc_rotate_bot;
};
if (_dikCode == 0x07) then {
[-15,preview_bot] call fnc_rotate_bot;
[-15,vehicle_bot] call fnc_rotate_bot;
};
};
//---------------------------------------------------------------- Catalogue End_handled
3. In init.sqf I called the keyboard.sqf this way:
Spoilerif (!isDedicated) then {
call compile preprocessFileLineNumbers "dayz_code\Configs\CfgServerTraderZSC\chernarus11.sqf";
call compile preprocessFileLineNumbers "dayz_code\compile\keyboard.sqf";if (toLower worldName in ["chernarus","chernarus_winter"]) then {
execVM "\z\addons\dayz_code\system\mission\chernarus\hideGlitchObjects.sqf";
};4. In compiles.sqf I added the following at the very end:
Spoilerif (!isDedicated) then {
diag_log "Loading custom client compiles";fnc_usec_selfActions = compile preprocessFileLineNumbers "dayz_code\compile\fn_selfActions.sqf";
player_selectSlot = compile preprocessFileLineNumbers "dayz_code\compile\ui_selectSlot.sqf";
locateVehicle = compile preprocessFileLineNumbers "scripts\locateVehicle.sqf";
remoteVehicle = compile preprocessFileLineNumbers "scripts\remoteVehicle\remoteVehicle.sqf";
local_lockUnlock = compile preprocessFileLineNumbers "dayz_code\compile\local_lockUnlock.sqf";
//---------------------------------------------------------------- Catalogue Start
weapon_preview = compile preprocessFileLineNumbers "scripts\catalogue\weapon_preview.sqf";
vehicle_preview = compile preprocessFileLineNumbers "scripts\catalogue\vehicle_preview.sqf";
trader_preview = compile preprocessFileLineNumbers "scripts\catalogue\trader_preview.sqf";
fnc_rotate_bot = {
private ["_dir","_input","_bot"];
disableSerialization;
_input = _this select 0;
_bot = _this select 1;
_dir = getDir _bot;
_dir = _dir + _input;
_bot setDir _dir;
};
//---------------------------------------------------------------- Catalogue End
};5. In variables.sqf I added this:
Spoilerif (!isDedicated) then {
diag_log "Loading custom client variables";
weapon_preview=objNull;
vehicle_bot=objNull;
preview_bot=objNull;
preview_camera = nil;
preview_cameraPos = nil;dayz_resetSelfActions = {
s_player_equip_carry = -1;
s_player_fire = -1;
s_player_cook = -1;
s_player_boil = -1;
s_player_packtent = -1;
s_player_packtentinfected = -1;
s_player_fillfuel = -1;
s_player_grabflare = -1;
s_player_removeflare = -1;
s_player_studybody = -1;
s_player_deleteBuild = -1;
s_player_flipveh = -1;
s_player_sleep = -1;
s_player_fillfuel210 = -1;
s_player_fillfuel20 = -1;
s_player_fillfuel5 = -1;
s_player_siphonfuel = -1;
s_player_repair_crtl = -1;
s_player_fishing = -1;
s_player_fishing_veh = -1;
s_player_gather = -1;
s_player_destroytent = -1;// Epoch Additions
s_player_packvault = -1;
s_player_lockvault = -1;
s_player_unlockvault = -1;
s_player_attack = -1;
s_player_callzombies = -1;
s_player_showname = -1;
s_player_pzombiesattack = -1;
s_player_pzombiesvision = -1;
s_player_pzombiesfeed = -1;
s_player_tamedog = -1;
s_player_parts_crtl = -1;
s_player_movedog = -1;
s_player_speeddog = -1;
s_player_calldog = -1;
s_player_feeddog = -1;
s_player_waterdog = -1;
s_player_staydog = -1;
s_player_trackdog = -1;
s_player_barkdog = -1;
s_player_warndog = -1;
s_player_followdog = -1;
s_player_information = -1;
s_player_fuelauto = -1;
s_player_fuelauto2 = -1;
s_player_fillgen = -1;
s_player_upgrade_build = -1;
s_player_maint_build = -1;
s_player_downgrade_build = -1;
s_player_towing = -1;
s_halo_action = -1;
s_player_SurrenderedGear = -1;
s_player_maintain_area = -1;
s_player_maintain_area_force = -1;
s_player_maintain_area_preview = -1;
s_player_heli_lift = -1;
s_player_heli_detach = -1;
s_player_lockUnlock_crtl = -1;
s_player_lockUnlockInside_ctrl = -1;
s_player_toggleSnap = -1;
s_player_toggleSnapSelect = -1;
snapActions = -1;
s_player_plot_boundary = -1;
s_player_plotManagement = -1;
s_player_toggleDegree = -1;
degreeActions = -1;
s_player_toggleVector = -1;
vectorActions = -1;
s_player_manageDoor = -1;
s_player_hide_body = -1;
s_player_changeDoorCode = -1;
s_player_changeVaultCode = -1;
s_givemoney_dialog = -1;
s_bank_dialog = -1;
s_bank_dialog1 = -1;
s_bank_dialog2 = -1;
s_bank_dialog3 = -1;
s_player_checkWallet = -1;
s_garage_dialog = -1;
s_player_bury_human = -1;
s_player_butcher_human = -1;
s_player_gdoor_opener = [];
s_player_gdoor_opener_ctrl = -1;
s_player_clothes = -1;
s_player_copyToKey = -1;
s_player_claimVehicle = -1;
};
call dayz_resetSelfActions;
};
6. Since I don't have a server_traders.sqf I defined the trader array in chernarus11.sqf which is being called from the init.sqf just as keyboard.sqf is. I added this to chernarus11.sqf:
SpoilerserverTraders = ["trader_catalog","BAF_Soldier_SniperH_MTP","FR_AC","GUE_Commander","GUE_Woodlander2","RU_Citizen4","Profiteer1","Rita_Ensler_EP1","Dr_Hladik_EP1","Worker2","Villager1","TK_CIV_Worker01_EP1","CIV_EuroMan01_EP1","CIV_EuroMan02_EP1","RU_WorkWoman5","Doctor","Worker1","TK_CIV_Worker02_EP1","Rocker4","RU_Citizen3","RU_WorkWoman1","Dr_Annie_Baker_EP1","Worker3","RU_Pilot","RU_Villager3","HouseWife1","Profiteer2","Profiteer3","Functionary1_EP1"];
6. And this at the bottom of chernarus11.sqf:
Spoilermenu_trader_catalog= [
[
//Start of categories
[ "BLACKMARKET",11],
[ "ATTACHMENTS",12],
[ "PISTOLS",13],
[ "SUB MACHINE GUNS",14],
[ "SINGLESHOT",15],
[ "ASSAULT RIFLES",16],
[ "SNIPER RIFLES",17],
[ "LIGHT MACHINE GUNS",18],
[ "PISTOL AMMO",19],
[ "SUB MACHINEGUN AMMO",20],
[ "SINGLE SHOT AMMO",21],
[ "ASSAULT RIFLE AMMO",22],
[ "SNIPER RIFLE AMMO",23],
[ "LIGHT MACHINEGUN AMMO",24],
[ "PACKAGEFOOD",27],
[ "COOKMEAT",28],
[ "DRINKS",29],
[ "CLOTHES",30],
[ "BACKPACKS",31],
[ "MISCELLANEOUS",32],
[ "MEDICAL SUPPLIES",33],
[ "SMOKE GRENADES",25],
[ "FLARES",26],
[ "TOOLS",34],
[ "BUILDING SUPPLIES",35],
[ "VEHICLE PARTS",36],
[ "BIKES ATVS",37],
[ "CARS",38],
[ "PICKUPS",39],
[ "UAZS",40],
[ "SUVS",41],
[ "CARGO TRUCKS",42],
[ "FUEL TRUCKS",43],
[ "MILITARY UNARMED",44],
[ "MISCELLANEOUS VEHICLES",45],
[ "BOATS ARMED",48],
[ "BOATS UNARMED",49],
[ "AIRPLANES",46],
[ "HELICOPTER",47]
//End of categories
],
[],
"neutral"
];7. Finally, in description.ext I added this at the very bottom:
Spoiler#include "scripts\catalogue\chx_defines.hpp"
#include "scripts\catalogue\chx_catalog.hpp"Do you see anything wrong with this config? I assume it's probably broken because I'm using chernarus11.sqf instead of server_traders.sqf but I don't have a server_traders.sqf and did not find one in any of my folders. Any ideas how I can make this work? Thanks for your help!
-
Thanks for this! I installed it but I'm not sure it's working. What key do I press to make the catalogue appear or under what circumstances does it appear?
Thanks!
-
Hi @LadyVal, did you ever get this to work on your server? I'm wondering if it would work in 1.0.7. If you did get it to work, can you share the steps needed to get it working?
Thanks!
Vladick
-
@JasonTM Hey Jason. After using this on my sever for the past couple of weeks I have some feedback from a couple of players who have noticed that a couple of the new missions fail to complete, including the Bandit MV-22 Air Drop and the C-130 Air Drop. I have confirmed that even when the counter says all the AI are dead the mission fails to complete. The mission map icon remains, the mines remain and the crate does not populate. This is a problem on these missions since you need the key from the crate to unlock the vehicles.
Anyway, just passing along some feedback. Thanks for all of your hard work on this!
Vladick
-
Nevermind. Got it to work. Thanks!
Hi All,
Okay, so this might seem very similar to a previous post of mine for 1.0.6.2 but I'm trying to add a superhero trader to my server and it seems the 1.0.7 folder structure and code is very different. I just want a guy to stand next to the hero trader and sell military vehicles, weapons and ammo. I got the guy to appear, but I can't get the menu to appear.
Vladick
-
On 5/5/2021 at 7:30 PM, Voltan said:
If I was going to spawn crates in 1.0.7, I'd give Salival's crate script a go, and modify it to my needs, changing all the classnames and spawn locations etc.
Thanks for this. Although, this looks like it spawns one crate randomly between a choice of positions. I want to spawn 6 crates every restart in the same positions. Would I still use this? If so, what would that look like? Sorry, I'm not a coder. Thanks!
-
11 hours ago, Voltan said:
Your problem is right here:
16:06:52 Error Undefined variable in expression: wai_crate_setup
I see in your spoilered part that your crate config calls on it many times, but where is it defined?
Take a look through your old WAI files and search for wai_crate_setup and find where it was defined. As I don't have your full crate config file, I cannot look through the whole thing, but if it is defined in there, it is being defined late for the script, causing issues so it would need to be defined earlier.
Welp, it looks like that fixed the wai_crate_setup error but I am still getting a bunch of WAI crate errors. Any idea about the ones in the spoiler below?
Should I be using this to spawn crates?
[[
[_loot,"USVehicleBox",[0,0]], // [loot variable, crate classname, 2d offsets]
[[0,0,[3,crate_items_crop_raider],0,0],crates_large,[0,0,0]], // [loot variable, crate array, 3d offsets]
[[0,0,0,0,0],crates_large,[0,0],60] // [loot array, crate array, 2d offsets, optional direction]
],_position] call wai_spawnCrate;Rather than this?
_crate = createVehicle ["USVehicleBox",[13697.3,2937.91,0.001],[],0,"CAN_COLLIDE"];
_crate1 = createVehicle ["USVehicleBox",[13711.3,2943.25,0.001],[],0,"CAN_COLLIDE"];
//Dichina
_crate2 = createVehicle ["USVehicleBox",[3891.1,7888.03,0.00140381],[],0,"CAN_COLLIDE"];
_crate3 = createVehicle ["USVehicleBox",[3907.08,7886.69,0.00140381],[],0,"CAN_COLLIDE"];//Devils Castle
_crate4 = createVehicle ["USVehicleBox",[6881.97,11463.4,0.00149536],[],0,"CAN_COLLIDE"];//Zub Bandit Crate
//_crate5 = createVehicle //["USVehicleBox",[6546.79,5609.04,0.0015564],[],0,"CAN_COLLIDE"];//Rog Bandit Crate (Bandit Hideout)
//_crate6 = createVehicle //["USVehicleBox",[11249.2,4282.31,0.00170898],[],0,"CAN_COLLIDE"];//Bandit Camp Crate
//_crate7 = createVehicle //["USVehicleBox",[1633.03,4322.43,0.00134277],[],0,"CAN_COLLIDE"];//Bandit Hilltop
_crate8 = createVehicle ["USVehicleBox",[10044.3,13380,0.00178528],[],0,"CAN_COLLIDE"];//Bandit Oil Dump
_crate9 = createVehicle ["USVehicleBox",[2816.38,12063.6,0.00137329],[],0,"CAN_COLLIDE"];
_crate10 = createVehicle ["USVehicleBox",[2809.15,12056.1,0.00135803],[],0,"CAN_COLLIDE"];_crate call wai_crate_setup;
_crate1 call wai_crate_setup;
_crate2 call wai_crate_setup;
_crate3 call wai_crate_setup;
_crate4 call wai_crate_setup;
//_crate5 call wai_crate_setup;
//_crate6 call wai_crate_setup;
//_crate7 call wai_crate_setup;
_crate8 call wai_crate_setup;
_crate9 call wai_crate_setup;
_crate10 call wai_crate_setup;
[_crate,[[2,crate_weapons_buildables],[4,crate_tools_buildable],[30,crate_items_buildables],4]] call dynamic_crate;
[_crate1,[[16,ai_wep_sniper],[8,crate_tools_sniper],[4,crate_items_high_value],[]]] call dynamic_crate;
[_crate2,[[2,crate_weapons_buildables],[4,crate_tools_buildable],[30,crate_items_buildables],4]] call dynamic_crate;
[_crate3,[[16,ai_wep_sniper],[8,crate_tools_sniper],[4,crate_items_high_value],[]]] call dynamic_crate;
[_crate4,[[16,ai_wep_sniper],[8,crate_tools_sniper],[4,crate_items_high_value],[]]] call dynamic_crate;
//[_crate5,[[16,ai_wep_sniper],[8,crate_tools_sniper],[4,crate_items_high_value],[]]] call dynamic_crate;
//[_crate6,[[16,ai_wep_sniper],[8,crate_tools_sniper],[4,crate_items_high_value],[]]] call dynamic_crate;
//[_crate7,[[16,ai_wep_sniper],[8,crate_tools_sniper],[4,crate_items_high_value],[]]] call dynamic_crate;
[_crate8,[[16,ai_wep_sniper],[8,crate_tools_sniper],[4,crate_items_high_value],[]]] call dynamic_crate;
[_crate9,[[2,crate_weapons_buildables],[4,crate_tools_buildable],[30,crate_items_buildables],4]] call dynamic_crate;
[_crate10,[[16,ai_wep_sniper],[8,crate_tools_sniper],[4,crate_items_high_value],[]]] call dynamic_crate;If so, what would that look like?
Thanks again for your help.
Vladick
Spoiler16:07:02 Error in expression < + (wai_num_mags select 0))];
};
};if(_num_backpacks > 0) then {
for "_i" fro>
16:07:02 Error position: <_num_backpacks > 0) then {for "_i" fro>
16:07:02 Error Undefined variable in expression: _num_backpacks
16:07:02 File z\addons\dayz_server\WAI\compile\dynamic_crate.sqf, line 148
16:07:02 Error in expression <ct 0;
_pistols_array = (_loot select 3) select 1;
} else {
_num_pistols = _loot >
16:07:02 Error position: <select 1;
} else {
_num_pistols = _loot >
16:07:02 Error Zero divisor
16:07:02 File z\addons\dayz_server\WAI\compile\dynamic_crate.sqf, line 57
16:07:03 Error in expression <eCargoGlobal [_item,1];
};
};
};
};if(_num_pistols > 0) then {
for "_i" from >
16:07:03 Error position: <_num_pistols > 0) then {for "_i" from >
16:07:03 Error Undefined variable in expression: _num_pistols
16:07:03 File z\addons\dayz_server\WAI\compile\dynamic_crate.sqf, line 138
16:07:03 Error in expression < + (wai_num_mags select 0))];
};
};if(_num_backpacks > 0) then {
for "_i" fro>
16:07:03 Error position: <_num_backpacks > 0) then {for "_i" fro>
16:07:03 Error Undefined variable in expression: _num_backpacks
16:07:03 File z\addons\dayz_server\WAI\compile\dynamic_crate.sqf, line 148
16:07:03 Error in expression <ct 0;
_pistols_array = (_loot select 3) select 1;
} else {
_num_pistols = _loot >
16:07:03 Error position: <select 1;
} else {
_num_pistols = _loot >
16:07:03 Error Zero divisor
16:07:03 File z\addons\dayz_server\WAI\compile\dynamic_crate.sqf, line 57
16:07:03 Error in expression <eCargoGlobal [_item,1];
};
};
};
};if(_num_pistols > 0) then {
for "_i" from >
16:07:03 Error position: <_num_pistols > 0) then {for "_i" from >
16:07:03 Error Undefined variable in expression: _num_pistols
16:07:03 File z\addons\dayz_server\WAI\compile\dynamic_crate.sqf, line 138
16:07:03 Error in expression <ct 0;
_pistols_array = (_loot select 3) select 1;
} else {
_num_pistols = _loot >
16:07:03 Error position: <select 1;
} else {
_num_pistols = _loot >
16:07:03 Error Zero divisor
16:07:03 File z\addons\dayz_server\WAI\compile\dynamic_crate.sqf, line 57
16:07:03 Error in expression <eCargoGlobal [_item,1];
};
};
};
};if(_num_pistols > 0) then {
for "_i" from >
16:07:03 Error position: <_num_pistols > 0) then {for "_i" from >
16:07:03 Error Undefined variable in expression: _num_pistols
16:07:03 File z\addons\dayz_server\WAI\compile\dynamic_crate.sqf, line 138
16:07:03 Error in expression <ct 0;
_pistols_array = (_loot select 3) select 1;
} else {
_num_pistols = _loot >
16:07:03 Error position: <select 1;
} else {
_num_pistols = _loot >
16:07:03 Error Zero divisor
16:07:03 File z\addons\dayz_server\WAI\compile\dynamic_crate.sqf, line 57
16:07:04 Error in expression <eCargoGlobal [_item,1];
};
};
};
};if(_num_pistols > 0) then {
for "_i" from >
16:07:04 Error position: <_num_pistols > 0) then {for "_i" from >
16:07:04 Error Undefined variable in expression: _num_pistols
16:07:04 File z\addons\dayz_server\WAI\compile\dynamic_crate.sqf, line 138
16:07:04 Error in expression < + (wai_num_mags select 0))];
};
};if(_num_backpacks > 0) then {
for "_i" fro>
16:07:04 Error position: <_num_backpacks > 0) then {for "_i" fro>
16:07:04 Error Undefined variable in expression: _num_backpacks
16:07:04 File z\addons\dayz_server\WAI\compile\dynamic_crate.sqf, line 148
16:07:04 Error in expression <ct 0;
_pistols_array = (_loot select 3) select 1;
} else {
_num_pistols = _loot >
16:07:04 Error position: <select 1;
} else {
_num_pistols = _loot >
16:07:04 Error Zero divisor
16:07:04 File z\addons\dayz_server\WAI\compile\dynamic_crate.sqf, line 57
16:07:04 Error in expression <eCargoGlobal [_item,1];
};
};
};
};if(_num_pistols > 0) then {
for "_i" from >
16:07:04 Error position: <_num_pistols > 0) then {for "_i" from >
16:07:04 Error Undefined variable in expression: _num_pistols
16:07:04 File z\addons\dayz_server\WAI\compile\dynamic_crate.sqf, line 138 -
8 hours ago, Voltan said:
Your problem is right here:
16:06:52 Error Undefined variable in expression: wai_crate_setup
I see in your spoilered part that your crate config calls on it many times, but where is it defined?
Take a look through your old WAI files and search for wai_crate_setup and find where it was defined. As I don't have your full crate config file, I cannot look through the whole thing, but if it is defined in there, it is being defined late for the script, causing issues so it would need to be defined earlier.
Thanks for your help! It appears that that the wai_crate_setup code is missing. I grabbed it from another post:
wai_crate_setup = {
private ["_crate"];
_crate = _this;
_crate setVariable ["ObjectID","1",true];
_crate setVariable ["ObjectUID", "1", true];
_crate setVariable ["permaLoot",true];
clearWeaponCargoGlobal _crate;
clearMagazineCargoGlobal _crate;
dayz_serverObjectMonitor set [count dayz_serverObjectMonitor,_crate];
_crate addEventHandler ["HandleDamage", {}];
_crate enableSimulation false;
};I will place it at the top of the default.sqf and see if that fixes it.
Thanks again!
-
8 hours ago, Voltan said:
Hello there!
The error message you're referencing is from player_getVehicle.sqf:
if ((count _heliPad == 0) && ((_vehicle select 1) isKindOf "Air")) exitWith {localize "STR_CL_VG_NEED_HELIPAD" call dayz_rollingMessages;};
Which just says that it cannot see a _helipad within range. The list of helipads is defined by vg_heliPads, which is defined in ConfigVariables:
Are the helipads that your players are putting down these types of helipads? What method are your players using to build helipads?
Hope this helps
I had the old heli pad class name defined in the deploy anything config and it was absent from vg_heliPads array in ConfigVariable. Thanks again!
-
Hey there,
I'm having some trouble with my static crate spawns. I'm using my config from 1.0.6.2 for my 1.0.7 server. Sometimes they load in and other times they don't. I get this error in the RPT when they don't"
_crate call wai_crate_setup;
_crate1 call wai_crate_>
16:06:52 Error position: <wai_crate_setup;
_crate1 call wai_crate_>
16:06:52 Error Undefined variable in expression: wai_crate_setup
16:06:52 File z\addons\dayz_server\WAI\static\default.sqf, line 708
16:06:53 Error in expression < + (wai_num_mags select 0))];
};
};Does anyone know what I'm doing wrong? My crate config is below:
Thanks!
SpoilerPlace your crate spawns under this line
*/
//Skalisky
_crate = createVehicle ["USVehicleBox",[13697.3,2937.91,0.001],[],0,"CAN_COLLIDE"];_crate1 = createVehicle ["USVehicleBox",[13711.3,2943.25,0.001],[],0,"CAN_COLLIDE"];
//Dichina
_crate2 = createVehicle ["USVehicleBox",[3891.1,7888.03,0.00140381],[],0,"CAN_COLLIDE"];
_crate3 = createVehicle ["USVehicleBox",[3907.08,7886.69,0.00140381],[],0,"CAN_COLLIDE"];//Devils Castle
_crate4 = createVehicle ["USVehicleBox",[6881.97,11463.4,0.00149536],[],0,"CAN_COLLIDE"];//Zub Bandit Crate
//_crate5 = createVehicle //["USVehicleBox",[6546.79,5609.04,0.0015564],[],0,"CAN_COLLIDE"];//Rog Bandit Crate (Bandit Hideout)
//_crate6 = createVehicle //["USVehicleBox",[11249.2,4282.31,0.00170898],[],0,"CAN_COLLIDE"];//Bandit Camp Crate
//_crate7 = createVehicle //["USVehicleBox",[1633.03,4322.43,0.00134277],[],0,"CAN_COLLIDE"];//Bandit Hilltop
_crate8 = createVehicle ["USVehicleBox",[10044.3,13380,0.00178528],[],0,"CAN_COLLIDE"];//Bandit Oil Dump
_crate9 = createVehicle ["USVehicleBox",[2816.38,12063.6,0.00137329],[],0,"CAN_COLLIDE"];
_crate10 = createVehicle ["USVehicleBox",[2809.15,12056.1,0.00135803],[],0,"CAN_COLLIDE"];_crate call wai_crate_setup;
_crate1 call wai_crate_setup;
_crate2 call wai_crate_setup;
_crate3 call wai_crate_setup;
_crate4 call wai_crate_setup;
//_crate5 call wai_crate_setup;
//_crate6 call wai_crate_setup;
//_crate7 call wai_crate_setup;
_crate8 call wai_crate_setup;
_crate9 call wai_crate_setup;
_crate10 call wai_crate_setup;
[_crate,[[2,crate_weapons_buildables],[4,crate_tools_buildable],[30,crate_items_buildables],4]] call dynamic_crate;
[_crate1,[[16,ai_wep_sniper],[8,crate_tools_sniper],[4,crate_items_high_value],[]]] call dynamic_crate;
[_crate2,[[2,crate_weapons_buildables],[4,crate_tools_buildable],[30,crate_items_buildables],4]] call dynamic_crate;
[_crate3,[[16,ai_wep_sniper],[8,crate_tools_sniper],[4,crate_items_high_value],[]]] call dynamic_crate;
[_crate4,[[16,ai_wep_sniper],[8,crate_tools_sniper],[4,crate_items_high_value],[]]] call dynamic_crate;
//[_crate5,[[16,ai_wep_sniper],[8,crate_tools_sniper],[4,crate_items_high_value],[]]] call dynamic_crate;
//[_crate6,[[16,ai_wep_sniper],[8,crate_tools_sniper],[4,crate_items_high_value],[]]] call dynamic_crate;
//[_crate7,[[16,ai_wep_sniper],[8,crate_tools_sniper],[4,crate_items_high_value],[]]] call dynamic_crate;
[_crate8,[[16,ai_wep_sniper],[8,crate_tools_sniper],[4,crate_items_high_value],[]]] call dynamic_crate;
[_crate9,[[2,crate_weapons_buildables],[4,crate_tools_buildable],[30,crate_items_buildables],4]] call dynamic_crate;
[_crate10,[[16,ai_wep_sniper],[8,crate_tools_sniper],[4,crate_items_high_value],[]]] call dynamic_crate; -
Hi there,
I used this mod pack on 1.0.6.2 and now I'm using it on 1.0.7 and it's working great! Thanks so much for creating this mod pack! It really helps for getting a server up and running with some bells and whistles!
One issue I am having is that when spawning vehicles out of the virtual garage, the vehicles are being spawned in random spots perhaps 200 meters away from the plot poll even if there is a heli pad present. I would expect them to either spawn in their original spot where they were when they were placed into the VG or on the heli pad. Is there some way to fix that?
Also, when trying to remove helis from the VG you get the message, "You need a heli pad to do this," even when there is a heli pad installed at the base.
Thanks!
Vlad
-
On 4/28/2021 at 3:22 PM, Voltan said:
It seems to work fine on my 1.0.7 server.
Yep, works great! Thanks!
-
7 minutes ago, WLF said:
Sorry, it was private pastebin. Try one more time.
Thank you! I will give it a try.
-
6 hours ago, WLF said:
I don't remember where I got this script from, but it removes the AI from the safe zone if you enable this option:
I got the forbidden 403 error when I tried to view the pastebin. Can you spoiler it for me please?
Thanks!
-
Hey there. I'm having trouble adding this to my 1.0.7 server. I used the original install instructions and the edited mf-tow files but it doesn't seem to be working. Does anyone have files and install instructions that can be used for Epoch 1.0.7?
Thanks!
Vlad
-
Thanks for this, I am really enjoying it! I really like that you including options for the safe zones, including removing zeds that spawn near. I'm wondering if it would also be possible to add an anti AI option to this script so that AI are also removed. Otherwise, another safe zone script is needed and I really like this one. Is there some other option for removing AI around the safe zones? I checked in DZAI but did not find any options.
Thanks!
-
On 4/21/2021 at 8:51 PM, Voltan said:
Is this good to go for 1.0.7 or still a WiP?
I'm also curious if this version on Github is ready to be used on 1.0.7. It's says it's still a WIP. Any feedback? Thanks!
[RELEASE] Traps server menu
in A2: Epoch Mods
Posted
I have installed this on a 1.0.7.1 Epoch server and have applied the changes above but am still getting an error: ErrorMessage: File mpmissions\__cur_mp.chernarus\scripts\tmenu\dialog.hpp, line 114: '/tmenu/Controls/TMButton2.': '"' encountered instead of '='
The referenced line is in bold below:
class TMButton2: RscButton
{
idc = 1601;
text = "Color Change";
x = 0.6575 * safezoneW + safezoneX;
y = 0.332 * safezoneH + safezoneY;
w = 0.13125 * safezoneW;
h = 0.042 * safezoneH;
colorText[] = {1,1,1,1};
colorBackground[] = {0,0,0,0.7};
colorActive[] = {0,0,0,0.7};
onButtonClick = 'scripts\tmenu\scripts\color.sqf';";
};
I'm not seeing the problem. Anyone?
Also related question: Does this even work with 1.0.7.1? Can anyone recommend another script that I could use to change view distance and display rules?
Thanks for any help!