Base Building DayZ 1.2 Released

I already shared the code to fix publishing to the database

How are you testing if a database built deployable spawns on server restart if yours aren't saving to the database?

I have had base building before the update, so the deployables are saved, they didn't spawn like normal, so when I added the list to safe objects in variables.sqf it worked...

However the future building of new objects do not publish to the server, I assume because of what you guys have been talking about which is code has been changed to publish?
 
I have had base building before the update, so the deployables are saved, they didn't spawn like normal, so when I added the list to safe objects in variables.sqf it worked...

However the future building of new objects do not publish to the server, I assume because of what you guys have been talking about which is code has been changed to publish?

http://opendayz.net/threads/base-building-dayz-1-2-released.8579/page-38#post-56237

Here you go dude, I haven't been able to test object removal yet Constrictor's post if you want to give that a test too they are definitely deleted in game but need to verify database side removal when my internet connection behaves enough to let me into my own server :mad:
 
Confirmed you need the following in player_remove.sqf and player_disarmbomb.sqf + player_bomb.sqf (replace dayzDeleteObj with PVDZ_obj_Delete) to remove database side, thanks constrictor :) Testing others bits now like non owner removal and smelting but seems ok so far :D

Code:
        PVDZ_obj_Delete = [_objectID,_objectUID];
    publicVariableServer "PVDZ_obj_Delete";
    if (isServer) then {
        PVDZ_obj_Delete call local_deleteObj;
    };
        deletevehicle _obj;
        breakout "exit";
 
};

Code:
//Player removes object successfully
if (!isNull _obj) then {
cutText [format["You removed a %1 successfully!",_text], "PLAIN DOWN"];
    PVDZ_obj_Delete = [_objectID,_objectUID];
publicVariableServer "PVDZ_obj_Delete";
if (isServer) then {
    PVDZ_obj_Delete call server_deleteObj;
};
 
Cheers Seaweed, Ive done a fresh install on 1.7.7.1 updated my Variables and Updated the PVDZ_obj code and everything seems to be working :)

Thank you
 
On a side note, Did anyone notice that it breaks refueling Vehicles? I dont get the option to Refuel now. Anyone else this problem?
 
On a side note, Did anyone notice that it breaks refueling Vehicles? I dont get the option to Refuel now. Anyone else this problem?


Which fn_selfActions.sqf did you use? You need to use the 1.7.7.1 one and merge the changes, don't use the one from the basebuilding plugin.
 
Yea been using the 1.7.7.1 files. Going to readd my scripts one by one tonight to narrow down the cause. will update ya later

Edit - On a Side note. Would it be possible for you to post your 1.7.7.1 files so I can compare them to my own?
 
Found my problem. For some reason extracting the variables.sqf to change the "safe objects" code and then changing the path to fixes/variables in my init.sqf file to point to the new changes was causing the problem. Wierd as it was the 1.7.7.1 version. So instead I added the safeobjects code to the top of the custom Variables.sqf in the dayz_code/init/ Section.

Wierd I know, But at least now I can refuel. Still trying to figure out why changing it the first way was causing the problem :( But nevertheless working now :)
 
Yeah changes are could be required there too, I hadn't got as far as checking the removal code out. I will look at that once I have things showing up after restart...

As for the BE exceptions, you need to go through the code, see what is being run before the code you see in the BE logs and add an exception for it. I remember "SetV" for example was on of them caused by setVariable. It's a bit of a pain for public variable ones because it will always say line 0 for the kick, when in fact its a specific line number in the publicvariableval filters causing the kick. You can verify this by running with a blank publicvariableval file I think...

A lot of people on here seem to just stick a 1 infront of their kicks or comment them out, not exactly the smartest most secure way to go about doing things but it will work if you are struggling with it.


What I have found so far is that I did not have to create any modifications for the publish and remove commands in the publicvariableval.txt file and I can create and remove objects and they persist through the server restarting. What I am having trouble with now is that when I attempt to operate the gates, the code is accepted but I am kicked on a public variable restriction #0 still, but this time the RPT shows that I was kicked for executing "dayz_updateNearbyObjects" . I added this to the file with a 1 and am still unable to operate the gates. Is it possible there is a new command for this function that is allowed (like the publish and remove commands)? I am attaching the contents of my publicvariableval.txt file.

Maybe someone with fresh eyes can help. Has anyone been able to operate gates ok?
 
Code:
//1 "" //+2
1 "draw"
1 "hint" !="hintC" !="hintS"
1 "create"
1 "add" !="ladder"
1 "delete"
1 "set"
//1 "play" !="playmove" !="player" !="dayzPlayerSave" //+3
1 "clear"
1 "disable"
1 "copy"
1 "switch" !="\"switchmove\"" !="\"remExField\" = [,<NULL-object>,\"switchmove\",\"ActsPercMrunSlowWrflDf_FlipFlopPara\"]" !="[<NULL-object>,<NULL-object>,\"switchmove\",\"amovpercmstpsnonwnondnon_zevl\"]" !="[<NULL-object>,<NULL-object>,\"switchmove\",\"amovpercmstpslowwrfldnon_gear\"]" !="[<NULL-object>,<NULL-object>,\"switchmove\",\"aidlpercmstpsnonwnondnon_player_idlesteady03\"]" !="[<NULL-object>,<NULL-object>,\"switchmove\",\"aidlpercmstpsraswpstdnon_player_idlesteady02\"]" !="[<NULL-object>,<NULL-object>,\"switchmove\",\"aidlpercmstpsraswpstdnon_player_idlesteady03\"]" !="[<NULL-object>,<NULL-object>,\"switchmove\",\"aswmpercmstpsnonwnondnon\"]" !="[<NULL-object>,<NULL-object>,\"switchmove",\"aidlpercmstpslowwrfldnon_player_idlesteady04\"]"
1 "text"
1 "init"
1 "hide" !"hideObject"
1 "group"
1 "icon"
1 "marker"
1 "server"
5 "compile"
5 "loadFile"
//1 "say" //+4
5 "call"
1 "move" !="\"switchmove\"" !="\"playmove\"" !"moveIn" !"remove" !="\"remExField\" = [,<NULL-object>,\"switchmove\",\"ActsPercMrunSlowWrflDf_FlipFlopPara\"]" !="[<NULL-object>,<NULL-object>,\"switchmove\",\"amovpercmstpsnonwnondnon_zevl\"]" !="[<NULL-object>,<NULL-object>,\"switchmove\",\"amovpercmstpslowwrfldnon_gear\"]" !="[<NULL-object>,<NULL-object>,\"switchmove\",\"aidlpercmstpsnonwnondnon_player_idlesteady03\"]" !="[<NULL-object>,<NULL-object>,\"switchmove\",\"aidlpercmstpsraswpstdnon_player_idlesteady02\"]" !="[<NULL-object>,<NULL-object>,\"switchmove\",\"aidlpercmstpsraswpstdnon_player_idlesteady03\"]" !="[<NULL-object>,<NULL-object>,\"switchmove\",\"aswmpercmstpsnonwnondnon\"]" !="[<NULL-object>,<NULL-object>,\"switchmove",\"aidlpercmstpslowwrfldnon_player_idlesteady04\"]"
1 "chat"
1 "fade"
1 "action"
1 "exec" !"execVM" !"execFSM" !"jipexec"
5 "mission"
1 "kb" !="FoodCanFrankBeans" !="\"FoodCanFrankBeans\"" !"kbTell" !"kbReact" !"\"FoodCanFrankBeans\""
1 "side"
1 "show"
1 "task" !"taskHint"
1 "allow"
5 "enable"
5 "spawn"
//1 "for"
1 "this"
5 "format"
1 "skip" !"skipTime"
1 "fail"
1 "force"
5 "parse"
5 "terminate"
1 "start"
5 "eventhandler"
//5 "setTask" //covered by 5 "setT"
5 "hintC"
5 "hintS"
5 "loading"
//5 "callVar" //covered by 5 "call"
//5 "rspawn" //covered by 5 "spawn"
//5 "\"spawn\"" //covered by 5 "spawn"
5 "\"call\""
5 "call compile"
1 "jiprequest" !="<NULL-object>,,\"JIPrequest\"" !="[<NULL-object>,,\"JIPrequest\"]"
1 "jipexec" //1 "rjipexec"
//5 "setDate" //covered by 5 "setD"
//5 "setAccTime" //covered by 5 "setA"
5 "toString"
5 "toArray"
5 "ctrlset"
5 "rsay"
5 "rland"
5 "rsetDir"
5 "_YakB"
1 "BIS_"
5 "local_sefFuel"
//1 "object_setFixServer"
1 "object_delLocal"
1 "fnc_vehicleEventHandler"
1 "player_medInject"
1 "fnc_usec_damageVehicle"
1 "dayzplayermorph"
1 "server_playerMorph"
5 "getVariable"
5 "hiveupdateresu"
5 "isServer"
5 "isDedicated"
5 "cutText"
5 "publicVariable"
//5 "setVariable" //covered by 5 "setV"
5 "code"
5 "onPlayer"
5 "select"
5 "while"
5 "count"
5 "markerText"
5 "BIS_fnc"
5 "+" //!"e+"
5 "\+" //!"e+"
5 "_bis"
//5 "trigger"
5 "markerType"
5 "teamtype"
//5 "BIS_fnc_swapVars" // covered by 5 "BIS_fnc"
5 "composeText"
5 "teamName"
//5 "createTeam" //covered by 5 "createT"
5 "execVM"
5 "fn_swapVars.sqf"
//5 "setVehicleInit" //covered by 5 "setV"
5 "processInitCommands"
//5 "clearVehicleInit" //covered by 5 "clearV"
//5 "createTrigger" //covered by 5 "createT"
//5 "setTriggerStatements" //covered by 5 "setT"
//5 "setTriggerText" //covered by 5 "setT"
5 "promptRName.sqf"
5 "%"
5 ".sqf\"]" !="init.sqf\"]"
5 "rpcCodeVarName"
5 "rpcDirectCall"
5 "broadcastRpcCallAll"
5 "broadcastRpcCallIfLocal"
5 "norrnRACarUp"
5 "norrnRAPicUp"
5 "markerBrush"
5 "hideObject"
5 "deleteCollection"
5 "forceEnd"
//5 "createUnit" //covered by 5 "createU"
//5 "createGroup" //covered by 5 "createG"
//5 "createVehicle" //covered by 5 "createV"
//5 "createMarker" //covered by 5 "createM"
//5 "createMine" //covered by 5 "createM"
5 "createAgent"
//5 "createSoundsource" //covered by 5 "createS"
//5 "createSimpleTask" //covered by 5 "createS"
//5 "createDialog" //covered by 5 "createD"
//5 "createDiaryRecord" //covered by 5 "createD"
5 "deleteVehicle"
5 "deleteTeam"
//5 "setVehicleVarName" //covered by 5 "setV"
5 "getPlayerUID"
5 "getVariable"
5 "addAction"
//5 "addEventHandler" //covered by 5 "eventhandler"
//5 "addMagazine" //covered by 5 "addM"
5 "AddM"
5 "AddP"
5 "AddS"
5 "AddV"
5 "AddW"
//5 "setVehicleAmmo" //covered by 5 "setV"
//5 "setA"
5 "setAcc"
5 "setAtt"
5 "setC"
5 "setD"
5 "setF"
5 "setG"
5 "setH"
5 "setM"
//5 "setO"
5 "setObj"
5 "setOver"
5 "setP"
5 "setR"
5 "setS"
5 "setT"
//5 "setU"
5 "setUnit"
5 "setV"
5 "setW"
5 "execFSM"
5 "clearM"
5 "clearV"
5 "clearW"
5 "createD"
5 "createG"
5 "createM"
5 "createS"
5 "createT"
5 "createU"
5 "createV"
5 "debugLog"
5 "debugFSM"
5 "deleteM"
//5 "enableSimulation" //covered by 5 "enable"
5 "kbTell"
5 "kbReact"
5 "fadeSound"
5 "fadeMusic"
5 "showC"
5 "skipTime"
5 "taskHint"
5 "titleCut"
5 "titleText" !",\"titleText\","
5 "getM"
5 "getFSMvariable"
5 "getG"
5 "moveIn"
5 "synchronizeO"
5 "synchronizeT"
5 "synchronizeW"
5 "triggerA"
5 "triggerS"
5 "triggerT"
5 "MarkerColor"
5 "MarkerDir"
5 "MarkerPos"
5 "MarkerSize"
5 "onEachFrame"
5 "hasInterface"
5 "onMapS"
5 "OnGroup"
5 "onDouble"
5 "onPreload"
5 "onTeamS"
5 "onShowNew"
//5 "setUnitRecoilCoefficient" //covered 5 "setUnit"
5 "setUnconscious"
//5 "setUnitPos" //covered 5 "setUnit"
//5 "parseText" //covered by 5 "parse"
5 " exec "
5 " set "
5 " str "
5 "exec("
5 "set("
5 "str("
5 "exec["
5 "set["
5 "str["
5 "exec{"
5 "set{"
5 "str{"
5 "exec'"
5 "set'"
5 "str'"
5 "exec\""
5 "set\""
5 "str\""
5 ")exec"
5 ")set"
5 ")str"
5 "]exec"
5 "]set"
5 "]str"
5 "}exec"
5 "}set"
5 "}str"
5 "'exec"
5 "'set"
5 "'str"
//5 "\"exec" !" \"exec"
//5 "\"set" !" \"set"
//5 "\"str" !" \"str"
5 "str    "
5 "    \nstr"
5 "\nstr"
5 "str\n"
5 "str\n    "
5 ",str"
5 "str,"
5 "str "
5 "set    "
5 "    \nset"
5 "\nset"
5 "set\n"
5 "set\n    "
5 ",set"
5 "set,"
5 "set "
5 "exec    "
5 "    \nexec"
5 "\nexec"
5 "exec\n"
5 "exec\n    "
5 ",exec"
5 "exec,"
5 "exec "
5 "isNil"
5 "object_setFixServer"
5 "allowConnection"
5 "check_publishobject"
5 "dayz_disco"
5 "dayz_hiveVersionNo"
5 "dayz_objectUID"
5 "dayz_objectUID2"
5 "dayz_players"
5 "dayz_serverObjectMonitor"
5 "dayz_versionNo"
5 "dayz_zombifiedTowns"
5 "dayzPlayerLogin"
5 "dayzPlayerLogin2"
5 "isSinglePlayer"
5 "needUpdate_objects"
5 "server_characterSync"
5 "server_getDiff"
5 "server_getDiff2"
5 "server_hiveReadWrite"
5 "server_hiveWrite"
5 "server_onPlayerDisconnect"
5 "server_spawnCrashSite"
1 "server_updateNearbyObjects"
5 "vehicle_handleInteract"
5 "vehicle_handleServerKilled"
5 "allunits"
5 "preprocess"
5 "runinitscript"
5 "createdialog"
5 "modify"
5 "BIS_Alice_fnc_CivilianHit"
5 "BIS_Alice_mainscope"
5 "BIS_fnc_getFactions"
//1 "" +5
5 "allowConnection"
5 "check_publishobject"
5 "dayz_disco"
5 "dayz_hiveVersionNo"
5 "dayz_objectUID"
5 "dayz_objectUID2"
5 "dayz_players"
5 "dayz_serverObjectMonitor"
1 "dayz_updateNearbyObjects"
5 "dayz_versionNo"
5 "dayz_zombifiedTowns"
5 "dayzPlayerLogin"
5 "dayzPlayerLogin2"
5 "isSinglePlayer"
5 "needUpdate_objects"
5 "server_characterSync"
5 "server_getDiff"
5 "server_getDiff2"
5 "server_hiveReadWrite"
5 "server_hiveWrite"
5 "server_onPlayerDisconnect"
5 "server_spawnCrashSite"
5 "server_updateNearbyObjects"
5 "vehicle_handleInteract"
5 "vehicle_handleServerKilled"
5 "allunits"
5 "preprocess"
5 "runinitscript"
5 "createdialog"
 
/////////////////////////// Illegal chars:
5 "+" !"e+00"
5 ";"
5 "{"
5 "(" !"TELEPORT REVERT"
5 "&"
5 "%"
5 "'"
//////////////////////// GV and functions from DayZ Mod:
5 actionmonitor
5 bis_
5 building_spawnloot
5 building_spawnzombies
5 camp_spawnzombies
//5 dayz
5 dog_
5 drn_
5 eh_localcleanup
5 fnc_
5 fn_nicespot
5 gear_ui_init
5 horde_epeen_determine_humanity_fnc
5 horde_epeen_fnc_fill_page
5 infectedcamps
5 local_eventkill
5 local_gutobject
5 local_setfuel
5 local_zombiedamage
5 object_
5 player_alertzombies
5 player_animalcheck
5 player_checkstealth
5 player_combatroll
5 player_countmagazines
5 player_crossbowbolt
5 player_death
5 player_fired
5 player_firemonitor
5 player_gearset
5 player_gearsync
5 player_guicontrolflash
5 player_humanitychange
5 player_humanitymorph
5 player_medbandage
5 player_medepi
5 player_medmorphine
5 player_medpainkiller
5 player_medtransfuse
5 player_music
5 player_packtent
5 player_projectilenear
5 player_spawn_1
5 player_spawn_2
5 player_spawncheck
5 player_summedical
5 player_switchmodel
5 player_temp_calculation
5 player_throwobject
5 player_updategui
5 player_weaponfirednear
5 player_zombieattack
5 player_zombiecheck
5 r_player_removeactions2
5 PVDZ_
1 server_
5 stream_locationcheck
5 stream_locationdel
5 stream_locationfill
5 ui_changedisplay
5 ui_initdisplay
5 vehicle_gethitpoints
5 world_isday
5 world_sunrise
5 world_surfacenoise
5 zombie_
 
1 _this
 
Can someone teach me how to insert new constructions in recipe menu?


Can someone send me Batleeye script.txt for me not to be expelled from the server when trying to build?

PLEASE!!!
 
Just an update, I emptied my publicvariableval.txt file but it is still kicking on the on a public variable restriction #0 still, the RPT still shows that I was kicked for executing "dayz_updateNearbyObjects" so I bet we need to update the mod for a new syntax, but I haven't determined what the syntax for the command is yet. Wonder if it's something like PVDZ_updateNearbyObjects !?

(this is when I try to operate the gates with a keypad)
 
Just an update, I emptied my publicvariableval.txt file but it is still kicking on the on a public variable restriction #0 still, the RPT still shows that I was kicked for executing "dayz_updateNearbyObjects" so I bet we need to update the mod for a new syntax, but I haven't determined what the syntax for the command is yet. Wonder if it's something like PVDZ_updateNearbyObjects !?

(this is when I try to operate the gates with a keypad)


I'll take a look tonight, I've always disabled the key panels on my server because they have never worked fully for me unless using kikyou's modification anyway.
 
Found my problem. For some reason extracting the variables.sqf to change the "safe objects" code and then changing the path to fixes/variables in my init.sqf file to point to the new changes was causing the problem. Wierd as it was the 1.7.7.1 version. So instead I added the safeobjects code to the top of the custom Variables.sqf in the dayz_code/init/ Section.

Wierd I know, But at least now I can refuel. Still trying to figure out why changing it the first way was causing the problem :( But nevertheless working now :)

I can't get the refueling to work for me!? Where exactly in the variables.sqf did you place the safeobjects code?
 
I can't get the refueling to work for me!? Where exactly in the variables.sqf did you place the safeobjects code?


You should already see safeobjects = in the code, you just add the extra items to the list. If you don't see safeobjects in your variables.sqf you are using an old file that's not from 1.7.7.1

edit: its line 32
Code:
SafeObjects = ["Land_Fire_DZ","TentStorage", "Hedgehog_DZ", "Sandbag1_DZ", "TrapBear", "Wire_cat1", "StashSmall", "StashMedium", "Grave", "Concrete_Wall_EP1", "Infostand_2_EP1", "WarfareBDepot", "Base_WarfareBBarrier10xTall", "WarfareBCamp", "Base_WarfareBBarrier10x", "Land_fortified_nest_big", "Land_Fort_Watchtower", "Land_fort_rampart_EP1", "Land_HBarrier_large", "Land_fortified_nest_small", "Land_BagFenceRound", "Land_fort_bagfence_long", "Land_Misc_Cargo2E", "Misc_Cargo1Bo_military", "Ins_WarfareBContructionSite", "Land_pumpa", "Land_CncBlock", "Misc_cargo_cont_small_EP1", "Land_prebehlavka", "Fence_corrugated_plate", "ZavoraAnim", "Land_tent_east", "Land_CamoNetB_EAST", "Land_CamoNetB_NATO", "Land_CamoNetVar_EAST", "Land_CamoNetVar_NATO", "Land_CamoNet_EAST", "Land_CamoNet_NATO", "Fence_Ind_long", "Fort_RazorWire", "Fence_Ind"];
 
daimyo21, have a question regarding hive and database:

i'm using R4ZoR49 (more or less the official community) dayz version 1.7.6.1, thus rajkosto's hive version fo9.6.14-po.8.0.4 as it comes with dayz. your installation instructions include the part where a table named deployable is to be set up in the database, which holds a list of deployable items or whatever ...

my question is, how and where exactly in your code is this table accessed? i was not able to find any reference to a table with the name deployable. not in your own code, not in the standard dayz code and also not in the source code for the hive? so, how is it supposed to be accessed? is this table used at all?

Same problem with Pwnozor's package ! Is it planned to adapt your mod ?
 
Back
Top