Jump to content

{Request} Vehicle Garage


emwilsh

Recommended Posts

Hey

 

Has anyone managed to get Zupa's SC 3.0 (or any single currency) working  with the virtual garage? If i store coin in a vehicle, store the vehicle in the garage and then retrieve it again, i lose all my coin.

 

I managed to get it to store the vehicle with coin, but when i get it back, i have "any" as my coin value and can take as much as i want out of the vehicle.

 

any tips would be great  :D 

 

EDIT : I have the same issue with with the combo key changer , when changing codes on vaults, as soon as you change a code, the safe appears to be recreated, ignoring the coin stored in it.

Link to comment
Share on other sites

no vehicles spawn alot error

10:06:52 "extDB: Sleep [4]: 778.67"
10:06:54 "HIVE: WRITE: "CHILD:388:1024011024028001790:""
10:06:54 "CUSTOM: Selected "1865""
10:06:54 Error in expression <)];
};
_countr = _countr + 1;
} forEach _objWpnTypes; 


_objWpnTypes = (_invent>
10:06:54   Error position: <_objWpnTypes; 


_objWpnTypes = (_invent>
10:06:54   Error Variable indéfinie dans une expression: _objwpntypes
10:06:54 File z\addons\dayz_server\compile\garage\server_spawnVehicle.sqf, line 129
10:07:00 "TIME SYNC: Local Time set to [2013,8,3,14,7]"
10:07:09 Error in expression <_return = _result select 0;

_class = 		_return select 0;
_characterID =	_return>
10:07:09   Error position: <_return select 0;
_characterID =	_return>
10:07:09   Error Variable indéfinie dans une expression: _return
10:07:09 File z\addons\dayz_server\compile\garage\server_spawnVehicle.sqf, line 14
10:07:09 Error in expression <e] call fn_asyncCall;




[_object,_uid,_characterID,_class,_dir,_location,_inve>
10:07:09   Error position: <_characterID,_class,_dir,_location,_inve>
10:07:09   Error Variable indéfinie dans une expression: _characterid
10:07:09 File z\addons\dayz_server\compile\garage\server_spawnVehicle.sqf, line 52
10:07:11 "HIVE: WRITE: "CHILD:388:1024011024028001696:""
10:07:11 "CUSTOM: trying again to get id for: "1024011024028001696""
10:07:12 "HIVE: WRITE: "CHILD:388:1024011024028001696:""
10:07:12 "CUSTOM: trying again to get id for: "1024011024028001696""
10:07:13 "HIVE: WRITE: "CHILD:388:1024011024028001696:""
10:07:13 "CUSTOM: trying again to get id for: "1024011024028001696""
10:07:14 "HIVE: WRITE: "CHILD:388:1024011024028001696:""
10:07:14 "CUSTOM: trying again to get id for: "1024011024028001696""
10:07:15 "HIVE: WRITE: "CHILD:388:1024011024028001696:""
10:07:15 "CUSTOM: trying again to get id for: "1024011024028001696""
10:07:16 "HIVE: WRITE: "CHILD:388:1024011024028001696:""
10:07:16 "CUSTOM: trying again to get id for: "1024011024028001696""
10:07:17 "HIVE: WRITE: "CHILD:388:1024011024028001696:""
10:07:17 "CUSTOM: trying again to get id for: "1024011024028001696""
10:07:19 "HIVE: WRITE: "CHILD:388:1024011024028001696:""
10:07:19 "CUSTOM: trying again to get id for: "1024011024028001696""
10:07:20 "HIVE: WRITE: "CHILD:388:1024011024028001696:""
10:07:20 "CUSTOM: trying again to get id for: "1024011024028001696""
10:07:21 "HIVE: WRITE: "CHILD:388:1024011024028001696:""
10:07:21 "CUSTOM: trying again to get id for: "1024011024028001696""
10:07:21 Error in expression <icle _object;

_object = createVehicle [_class, _location, [], 0, "CAN_COLLIDE"]>
10:07:21   Error position: <_class, _location, [], 0, "CAN_COLLIDE"]>
10:07:21   Error Variable indéfinie dans une expression: _class
10:07:21 File z\addons\dayz_server\compile\garage\server_spawnVehicle.sqf, line 98
Link to comment
Share on other sites

Hi guys trying to add this to my server, been at it for 4 days I just don't get the menu when i stand in front of the garages, I have installed the script as best to my knowledge correctly (see below) any help would be appreciated. I think it might be a problem with the extDB as this seems to be the point where it is not straight forward to me.

 

1. Add to your init.sqf:

 

I added this here in init.sqf:

progressLoadingScreen 0.5;
call compile preprocessFileLineNumbers "server_traders_napf_24.sqf";     //Compile trader configs
progressLoadingScreen 1.0;

"filmic" setToneMappingParams [0.153, 0.357, 0.231, 0.1573, 0.011, 3.750, 6, 4]; setToneMapping "Filmic";
//Garage
DZE_Garage = ["Land_MBG_Garage_Single_D","Land_MBG_Garage_Single_A","Land_MBG_Garage_Single_B","Land_MBG_Garage_Single_C"];

if (isServer) then {
//Compile vehicle configs
call compile preprocessFileLineNumbers "\z\addons\dayz_server\missions\DayZ_Epoch_24.Napf\dynamic_vehicle.sqf";   
// Add trader citys
----------------------------------------------------------
2. Add to the bottom of description.ext:

 

I added this here in description.ext:

 

#include "custom\Buildables\Crafting_Dialogs.hpp"
#include "ZSC\config\ZSCdefines.hpp"
#include "ZSC\config\ZSCdialogs.hpp"
#include "scripts\garage\common.hpp"
#include "scripts\garage\vehicle_garage.hpp"

------------------------------------------------------------------

3. Add to your fn_selfActions:

 

I added to fn_selfActions

 

if(_cursorTarget == dayz_hasFire) then {
  if ((s_player_fireout < 0) && !(inflamed _cursorTarget) && (player distance _cursorTarget < 3)) then {
   s_player_fireout = player addAction [localize "str_actions_self_06", "\z\addons\dayz_code\actions\fire_pack.sqf",_cursorTarget, 0, false, true, "",""];
  };
} else {
  player removeAction s_player_fireout;
  s_player_fireout = -1;
};

    // Garage
    if(_typeOfCursorTarget in DZE_Garage && (player distance _cursorTarget < 5) && (_removeallowed or !canbuild)) then {
  if (s_garage_dialog2 < 0) then {
   s_garage_dialog2 = player addAction ["Vehicle Garage", "gza\scripts\garage\vehicle_dialog.sqf",_cursorTarget, 3, true, true, "", ""];
  };
  if (s_garage_dialog < 0) then {
   s_garage_dialog = player addAction ["Store Vehicle in Garage", "gza\scripts\garage\vehicle_store_list.sqf",_cursorTarget, 3, true, true, "", ""];
  };
} else {
  player removeAction s_garage_dialog2;
  s_garage_dialog2 = -1;
  player removeAction s_garage_dialog;
  s_garage_dialog = -1;
};



//Packing my tent
if(_isTent && (player distance _cursorTarget < 3)) then {
  if (_ownerID == dayz_characterID) then {
   if (s_player_packtent < 0) then {
    s_player_packtent = player addAction [localize "str_actions_self_07", "\z\addons\dayz_code\actions\tent_pack.sqf",_cursorTarget, 0, false, true, "",""];
   };
--------------------------------------------------------------

3.1 And in the same  file search for:

 

I added:

 

player removeAction s_player_fuelauto;
s_player_fuelauto = -1;
player removeAction s_player_fuelauto2;
s_player_fuelauto2 = -1;
//Coins
player removeAction s_givemoney_dialog;
s_givemoney_dialog = -1;
player removeAction s_bank_dialog;
s_bank_dialog = -1;
player removeAction s_bank_dialog2;
s_bank_dialog2 = -1;
//Garage
player removeAction s_garage_dialog2;
s_garage_dialog2 = -1;
player removeAction s_garage_dialog;
s_garage_dialog = -1;
};

----------------------------------------------------------------------
4. Add to your compiles.sqf:

 

I added this in my custom compiles.sqf

 

if (!isDedicated) then {
//Garage
player_getVehicle =    compile preprocessFileLineNumbers "scripts\garage\getvehicle.sqf";
player_storeVehicle =    compile preprocessFileLineNumbers "scripts\garage\player_storeVehicle.sqf";
vehicle_info = compile preprocessFileLineNumbers "scripts\garage\vehicle_info.sqf";


};

---------------------------------------------------------------------------

5. Add to your publicEH.sqf below if (isServer) then { :

 

I added to publicEH.sqf

 

//Server only
if (isServer) then {
/* PVS/PVC - Skaronator */
"PVDZE_send" addPublicVariableEventHandler {(_this select 1) call server_sendToClient};
"PVDZE_maintainArea" addPublicVariableEventHandler {(_this select 1) spawn server_maintainArea};
//Garage
"PVDZE_queryGarageVehicle" addPublicVariableEventHandler {(_this select 1) spawn server_queryGarageVehicle};
"PVDZE_spawnVehicle" addPublicVariableEventHandler {(_this select 1) spawn server_spawnVehicle};
"PVDZE_storeVehicle" addPublicVariableEventHandler {(_this select 1) spawn server_storeVehicle};

"PVDZE_atp" addPublicVariableEventHandler {
  _x = _this select 1;
  if (typeName _x == "STRING") then {
   diag_log _x;
  };
};
------------------------------------------------------------------------

Next steps in dayz_server:

6. Add to your server_functions.sqf:

7. Also add to your server_functions.sqf:

 

I added to server_functions.sqf


server_spawnEvents =   compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\server_spawnEvent.sqf";
//server_weather =    compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\server_weather.sqf";
fnc_plyrHit   =     compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\fnc_plyrHit.sqf";
server_deaths =     compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\server_playerDeaths.sqf";
server_maintainArea =    compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\server_maintainArea.sqf";
//garage
server_queryGarageVehicle =  compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\garage\server_queryGarageVehicle.sqf";
server_spawnVehicle =  compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\garage\server_spawnVehicle.sqf";
server_storeVehicle =  compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\garage\server_storeVehicle.sqf";
fn_asyncCall =  compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\garage\fn_async.sqf";

/* PVS/PVC - Skaronator */
server_sendToClient =   compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\server_sendToClient.sqf";

//onPlayerConnected    {[_uid,_name] call server_onPlayerConnect;};
onPlayerDisconnected   {[_uid,_name] call server_onPlayerDisconnect;};

//DB Garage
"extDB" callExtension "9:DATABASE:Database2";
"extDB" callExtension format["9:ADD:DB_RAW_V2:%1",1];
"extDB" callExtension "9:LOCK";

server_updateNearbyObjects = {
private["_pos"];
_pos = _this select 0;
{
  [_x, "gear"] call server_updateObject;
} count nearestObjects [_pos, dayz_updateObjects, 10];
};

-------------------------------------------------------

Battleye:
Add to publicvariable.txt:

 

I added to BE publicvariable.txt

//new
5 "" !"PVDZE_" !"norrn" !"usec" !="remExField" !="remExFP" !="drn_AskServerDynamicWeatherEventArgs" !="norrinRAlie" !="BIS_effects_gepv" !="dayzPlayerLogin" !="dayzPlayerLogin2" !"PVAHR_" !="PVAH_AdminReq" !="PVAH_WriteLogReq" !="PVOZ_adminSkin" !="waitDebug" !="PVDZE_queryGarageVehicle" !="PVDZE_storeVehicle" !="PVDZE_spawnVehicle"

--------------------------------------------------------

Infistar:

Add to _ALLOWED_Dialogs: 2800,3800


I added to AH

_ALLOWED_Dialogs = [-1,106,2200,6900,6901,6902,6903,420420,41144,711194,2800,3800];

-------------------------------------------------

Open SQL.txt and use the SQL Command to insert the garage table in your DB.

 

Run to command and got a extra garage table:

 

1 idPrimary int(11)   No None AUTO_INCREMENT Change Change Drop Drop
Primary Primary
Unique Unique
Index Index
Spatial Spatial
More
2 PlayerUID varchar(20) latin1_swedish_ci  No 0  Change Change Drop Drop
Primary Primary
Unique Unique
Index Index
Spatial Spatial
More
3 Classname varchar(50) latin1_swedish_ci  Yes NULL  Change Change Drop Drop
Primary Primary
Unique Unique
Index Index
Spatial Spatial
More
4 Datestamp timestamp   Yes CURRENT_TIMESTAMP  Change Change Drop Drop
Primary Primary
Unique Unique
Index Index
Spatial Spatial
More
5 CharacterID int(11)  UNSIGNED No 0  Change Change Drop Drop
Primary Primary
Unique Unique
Index Index
Spatial Spatial
More
6 Inventory mediumtext latin1_swedish_ci  Yes NULL  Change Change Drop Drop
Primary Primary
Unique Unique
Index Index
Spatial Spatial
More
7 Hitpoints mediumtext latin1_swedish_ci  Yes NULL  Change Change Drop Drop
Primary Primary
Unique Unique
Index Index
Spatial Spatial
More
8 Fuel double(13,5)   No 1.00000  Change Change Drop Drop
Primary Primary
Unique Unique
Index Index
Spatial Spatial
More
9 Damage double(13,5)   No 0.00000  Change Change Drop Drop
Primary Primary
Unique Unique
Index Index
Spatial Spatial
More
10 Colour varchar(50) latin1_swedish_ci  No None  Change Change Drop Drop
Primary Primary
Unique Unique
Index Index
Spatial Spatial
More
11 Colour2 varchar(50) latin1_swedish_ci  No None  Change Change Drop Drop
Primary Primary
Unique Unique
Index Index
Spatial Spatial
More

----------------------------------------------------------------------------------------------

To allow players to build garages and helipads you could use Alchemical Crafting.

Added these garages to Alchemical Crafting.

Land_MBG_Garage_Single_D","Land_MBG_Garage_Single_A","Land_MBG_Garage_Single_B","Land_MBG_Garage_Single_C
--------------------------------------------------------------------

Not to sure about this bit, I copied the 2 files, - extdb-conf.ini - @extDB and added thes eto my server files where you see the @ epoch_server and @ Epoch foldes ect:
server_functions.sqf seems to be correct, but you also need the extDB addon (https://github.com/T...ease/windows/21) and add @extDB to your server startup parameter. (Example: -mod=@DayZ_Epoch;@DayZ_Epoch_Server;@extDB;)
 
 
Submit @DayzOverwatch   
Submit @DayzOverwatch_Server  
Submit @DayZ_Epoch 
Submit @DayZ_Epoch_Server
Submit @extDB


---------------------------------------------------------


Set up the extdb-conf.ini as
[Main]
;Threads = 0 
; Default Value is number of CPU Cores Detected

Randomize Config File = false
;This is a legacy option to randomize config file for Arma2 Servers.

Error Database Kill Server = true
;Kill ArmaServer if Database Connection Fails.

[Logging]
; If u are going to disable Logging for performance reasons, grab the No-Logging Version of extdb
Filter = 2
; 2 = Default Setting, this doesn't take effect till after Config File has been loaded.
; 0 = more cpu intensive, 5 = barely anything except exception handling
;
; 0 trace
; 1 debug
; 2 info
; 3 warning
; 4 error
; 5 fatal

[Example1]
Type = SQLite
Name = sqlite.db

minSessions = 1
; minSession Default Value = 1

;maxSessions = 4
; maxSession Default Value = number of Main->Threads
;  u really should leave this value alone
idleTime = 60
; idleTime no Default Value yet, needs to be defined.
;  idleTime is the time before a database session is stopped if not used.
; If Database Sessions are greater than minSessions

[Example2]
Type = SQLite
Name = sqlite.db

minSessions = 1
; minSession Default Value = 1

;maxSessions = 4
; maxSession Default Value = number of Main->Threads
;  u really should leave this value alone
idleTime = 60
; idleTime no Default Value yet, needs to be defined.
;  idleTime is the time before a database session is stopped if not used.
; If Database Sessions are greater than minSessions

[My server]
Type = MySQL
Name = 
Database2

Username = my name that used to log into the DB
Password = my password that used to log into the DB
IP = 127.0.0.1
Port = 3306

minSessions = 1
;maxSessions = 4
idleTime = 60

compress = false
; Should only use this if MySQL server is external. Also only for MySQL

--------------------------------------------------------------------

 

Thanks

Megaz

Link to comment
Share on other sites

Hi guys trying to add this to my server, been at it for 4 days I just don't get the menu when i stand in front of the garages, I have installed the script as best to my knowledge correctly (see below) any help would be appreciated. I think it might be a problem with the extDB as this seems to be the point where it is not straight forward to me.

 

 

if your not getting the option  for garage when scroll on  garage then i would guess its an fn_Self_actions problem.....

 

you should at least get the option.

 

I placed it at verry bottom....

 

3. Add to your fn_selfActions:
 
    // Garage
    if(_typeOfCursorTarget in DZE_Garage && (player distance _cursorTarget < 5)) then {
if (s_garage_dialog2 < 0) then {
s_garage_dialog2 = player addAction ["Vehicle Garage", "scripts\garage\vehicle_dialog.sqf",_cursorTarget, 3, true, true, "", ""];
};
if (s_garage_dialog < 0) then {
s_garage_dialog = player addAction ["Store Vehicle in Garage", "scripts\garage\vehicle_store_list.sqf",_cursorTarget, 3, true, true, "", ""];
};
} else {
player removeAction s_garage_dialog2;
s_garage_dialog2 = -1;
player removeAction s_garage_dialog;
s_garage_dialog = -1;
};

you also really don't need  the @extDB added to start parameter....(works fine without the added parameter.....)

Link to comment
Share on other sites

 

no vehicles spawn alot error

 

Seems like you didn't install extDB.

 

 

Hi thank for the info: Have gone through this again and I now get the option to store Vehicles but when I choose store it takes the key but not the Vehicle - Vehicle stay on map. Any idea of what I have done wrong. thanks

MegaZ

 

Probably you didn't install the serverside code correctly because the client waits until vehicle is stored in DB and delete it after that.

Link to comment
Share on other sites

Seems like you didn't install extDB.

 

 

 

Probably you didn't install the serverside code correctly because the client waits until vehicle is stored in DB and delete it after that.

 

Hi thanks for the reply: I havd done this:

 

 

6. Add to your server_functions.sqf:

//DB

"extDB" callExtension "9:DATABASE:Database2";

"extDB" callExtension format["9:ADD:DB_RAW_V2:%1",1];

"extDB" callExtension "9:LOCK";

7. Also add to your server_functions.sqf:

server_queryGarageVehicle =     compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\garage\server_queryGarageVehicle.sqf";

server_spawnVehicle =   compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\garage\server_spawnVehicle.sqf";

server_storeVehicle =   compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\garage\server_storeVehicle.sqf";

fn_asyncCall =  compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\garage\fn_async.sqf";

 

does this have to go any where percific ? I have it as below:

 

//server_weather =    compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\server_weather.sqf";

fnc_plyrHit   =     compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\fnc_plyrHit.sqf";

server_deaths =     compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\server_playerDeaths.sqf";

server_maintainArea =    compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\server_maintainArea.sqf";

//garage

server_queryGarageVehicle =  compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\garage\server_queryGarageVehicle.sqf";

server_spawnVehicle =  compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\garage\server_spawnVehicle.sqf";

server_storeVehicle =  compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\garage\server_storeVehicle.sqf";

fn_asyncCall =  compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\garage\fn_async.sqf";

/* PVS/PVC - Skaronator */

server_sendToClient =   compile preprocessFileLineNumbers "\z\addons\dayz_server\compile\server_sendToClient.sqf";

 

and the DB call here:

 

//onPlayerConnected    {[_uid,_name] call server_onPlayerConnect;};

onPlayerDisconnected   {[_uid,_name] call server_onPlayerDisconnect;};

//DB Garage

"extDB" callExtension "9:DATABASE:Database2";

"extDB" callExtension format["9:ADD:DB_RAW_V2:%1",1];

"extDB" callExtension "9:LOCK";

server_updateNearbyObjects = {

private["_pos"];

 

Thanks MegaZ

_pos = _this select 0;

Link to comment
Share on other sites

Hi GZA thanks for the help, Getting closer, Garage will now take the key and remove the car: Client RPT has no errors but Server RTP has this multiple time:

_key = _key select 1;

sleep (random .03);

_q>
23:26:56   Error position: <_key select 1;

sleep (random .03);

_q>
23:26:56   Error Undefined variable in expression: _key
23:26:56 File z\addons\dayz_server\compile\garage\fn_async.sqf, line 26
23:26:56 Error in expression < = "extDB" callExtension format["4:%1", _key];
if (_queryResult == "[5]") then {>
23:26:56   Error position: <_key];
if (_queryResult == "[5]") then {>
23:26:56   Error Undefined variable in expression: _key
23:26:56 File z\addons\dayz_server\compile\garage\fn_async.sqf, line 35
23:26:56 Error in expression <ult = call compile _queryResult;

if ((_queryResult select 0) == 0) exitWith {d>
23:26:56   Error position: <_queryResult select 0) == 0) exitWith {d>
23:26:56   Error Undefined variable in expression: _queryresult
23:26:56 File z\addons\dayz_server\compile\garage\fn_async.sqf, line 66
23:26:56 Error in expression <all;

PVDZE_queryGarageVehicleResult = _result;

if(!isNull _player) then {
_c>
23:26:56   Error position: <_result;

if(!isNull _player) then {
_c>
23:26:56   Error Undefined variable in expression: _result
23:26:56 File z\addons\dayz_server\compile\garage\server_queryGarageVehicle.sqf, line 13

 

thanks

MegaZ

Link to comment
Share on other sites

Hi GZA, Link to the files is dead but I have already downloaded the 2 files (To install extDB put the extDB.dll and extdb-conf.ini in your servers main directory.) installed these bits:

 

extdb-conf.ini

[Main]
;Threads = 0 
; Default Value is number of CPU Cores Detected

Randomize Config File = false
;This is a legacy option to randomize config file for Arma2 Servers.

Error Database Kill Server = true
;Kill ArmaServer if Database Connection Fails.

[Logging]
; If u are going to disable Logging for performance reasons, grab the No-Logging Version of extdb
Filter = 2
; 2 = Default Setting, this doesn't take effect till after Config File has been loaded.
; 0 = more cpu intensive, 5 = barely anything except exception handling
;
; 0 trace
; 1 debug
; 2 info
; 3 warning
; 4 error
; 5 fatal

[Example1]
Type = SQLite
Name = sqlite.db

minSessions = 1
; minSession Default Value = 1

;maxSessions = 4
; maxSession Default Value = number of Main->Threads
;  u really should leave this value alone
idleTime = 60
; idleTime no Default Value yet, needs to be defined.
;  idleTime is the time before a database session is stopped if not used.
; If Database Sessions are greater than minSessions

[Database2]
Type = MySQL
Name = JohnT-2

Username = xxxxxxxxxxxxx my password to log in
Password = xxxxxxxxxxxxx my password to log in
IP = 127.0.0.1
Port = 3306

minSessions = 1
;maxSessions = 4
idleTime = 60

compress = false
; Should only use this if MySQL server is external. Also only for MySQL

 

In my server root along with @extDB folder with the dll file in. It has even created a new folder extDB with logs in but is empty.

I ran the sql on the database and it installed the extra table called garage.

 

Is that correct not sure what else to do thanks

MegaZ

Link to comment
Share on other sites

Someone should Make a post with all the code and fixes all in one post, on how to make this Garage work

 

Probably i will do that after i improved the install instructions.

 

 

 Yes still get the same errors and cars dont appear in garage and nothing in the DB either

 

MegaZ

 

Weird then extDB is still not running because there should be logs in the extDB folder.

Link to comment
Share on other sites

Hey GZA I get this in my rpt log when I try to remove a vehicle from the garage, the vehicle does come out but it spawns in the middle of the map, any ideas?

 

15:10:00 "HIVE: WRITE: "CHILD:388:71001774973095470:""
15:10:00 "CUSTOM: Selected "350""
15:10:00 Error in expression <)];
};
_countr = _countr + 1;
} forEach _objWpnTypes; 
 
 
_objWpnTypes = (_invent>
15:10:00   Error position: <_objWpnTypes; 
 
 
_objWpnTypes = (_invent>
15:10:00   Error Undefined variable in expression: _objwpntypes
15:10:00 File z\addons\dayz_server\compile\garage\server_spawnVehicle.sqf, line 129
Link to comment
Share on other sites

 

operates at half.
I have the vehicles in the database, but when I did spawn the vehicle apparai the center of the map in the sky and it just exploded on the ground

 

 

Try placing a HeliH close by, should spawn the vehicles on there.

Link to comment
Share on other sites

Here is a money fix when using ZSC 3.0 with this version of the garage script (the value is stored regardless if the vehicle is saved with inventory or without)

 

All changes are server side

 

in DAYZ_SERVER\addons\dayz_server\compile\garage\server_storeVehicle.sqf

 

1) replace the first line with 

private ["_money","_object","_player","_clientID","_playerUID","_class","_charID","_damage","_fuel","_hit","_inventory","_query","_pipe","_array","_hit","_selection","_colour","_colour2"];

2) add

//ZSC 3.0 fix
_money = _object getVariable["bankMoney","0"];

under

_colour = _object getVariable ["Colour","0"];
_colour2 = _object getVariable ["Colour2","0"];

3) replace

if (!_wogear) then {
	_inventory = [
		getWeaponCargo _object,
		getMagazineCargo _object,
		getBackpackCargo _object
	];
} else {
_inventory = [];
};

with 

if (!_wogear) then {
  _inventory = [
  getWeaponCargo _object,
  getMagazineCargo _object,
  getBackpackCargo _object,
  _money
];

} else {
//ZSC 3.0 fix
  _inventory = format ["[[[],[]],[[],[]],[[],[]],%1]",_money];
};

 

In DAYZ_SERVER\addons\dayz_server\compile\garage\server_spawnVehicle.sqf

 

replace first line with 

private ["_money","_object","_worldspace","_unit","_id","_query","_pipe","_pipe1","_return","_class","_characterID","_inventory","_hitpoints","_fuel","_damage","_dir","_location","_uid","_key","_query1","_pipe1","_colour","_colour2","_result"];

search for 

//Add weapons

and right above add

	/*ZSC Fix*/			
	if( count (_inventory) > 3)then{
			_object setVariable ["bankMoney", _inventory select 3, true];
		}else{
			_object setVariable ["bankMoney", 0, true];
	};

repack your server.pbo and give it a try

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
×
×
  • Create New...