Jump to content

[Release] Virtual Garage [Updated for 1.0.7]


salival

Recommended Posts

10 hours ago, salival said:

in your dayz_server\system\server_monitor.sqf find: 


_hiveLoaded = false;

add below:


PVDZE_EvacChopperFields = [];

find this line:


if (_isDZ_Buildable || {(_isSafeObject && !_isTrapItem)}) then {

Add this above:


			if ((typeOf _object) == "HeliHRescue") then {
				PVDZE_EvacChopperFields set [count PVDZE_EvacChopperFields, _object];
			};

Add at bottom of server_monitor.sqf:


if (isServer && (isNil "EvacServerPreload")) then {
    publicVariable "PVDZE_EvacChopperFields";
    
    ON_fnc_evacChopperFieldsUpdate = {
        private ["_action","_targetField"];
        _action = _this select 0;
        _targetField = _this select 1;
        
        if (_action == "add") then {
            PVDZE_EvacChopperFields = PVDZE_EvacChopperFields + [_targetField];
        };
        
        if (_action == "rem") then {
            PVDZE_EvacChopperFields = PVDZE_EvacChopperFields - [_targetField];
        };
        
        publicVariable "PVDZE_EvacChopperFields";
    };

    "PVDZE_EvacChopperFieldsUpdate" addPublicVariableEventHandler {(_this select 1) spawn ON_fnc_evacChopperFieldsUpdate};

    EvacServerPreload = true;
};

 

OMG Salival. I'll be installing this ASAP to see if it works. Can't thank you enough for what you do for the community.

Link to comment
Share on other sites

Hallo,

bei mir kann ich die Fahrzeuge in der Garage abstellen, die Schlüssel werden auch aus dem Inventar genommen, aber ich kann kein Fahrzeug aus der Garage nehmen, da er keins findet.

Hello,

with me I can park the vehicles in the garage, the keys are also taken from the inventory, 
but I can not take any vehicle out of the garage, since he finds none.

[16:44:05 +02:00] [Thread 1833127214] extDB: Version: 35
[16:44:05 +02:00] [Thread 1833127214] extDB: Windows Version
[16:44:05 +02:00] [Thread 1833127214] Message: Arma Linux Servers are using Older Physic Library (than Windows Servers), due to Debian 7 using old version of Glibc
[16:44:05 +02:00] [Thread 1833127214] Message: If you like extDB consider donating or bug BIS to drop support for Debian 7 thanks, so Linux Servers get same Physic Library Version as Windows
[16:44:05 +02:00] [Thread 1833127214] Message: Note currently most/all development for extDB is done on a Linux Server
[16:44:05 +02:00] [Thread 1833127214] Message: Torndeco: 24/01/15
[16:44:05 +02:00] [Thread 1833127214] 
[16:44:05 +02:00] [Thread 1833127214] extDB: Found extdb-conf.ini
[16:44:05 +02:00] [Thread 1833127214] extDB: Detected 32 Cores, Setting up 6 Worker Threads
[16:44:05 +02:00] [Thread 1833127214] extDB: Database Type: MySQL
[16:44:07 +02:00] [Thread 1833127214] extDB: Database Exception Error: Connection attempt failed: Can't connect to MySQL server on 'localhost' (10061)
[16:44:07 +02:00] [Thread 1833127214] extDB: DB_RAW_V3: No Database Connection
[16:44:07 +02:00] [Thread 1833127214] extDB: Failed to Load Protocol
[16:47:27 +02:00] [Thread 1833127214] extDB: Unknown Protocol: 1
[16:47:27 +02:00] [Thread 1833127214] extDB: Error: Syntax error: Not a valid integer: Error Unknown Protocol
[16:47:39 +02:00] [Thread 1833127214] extDB: Unknown Protocol: 1
[16:47:40 +02:00] [Thread 1833127214] extDB: Error: Syntax error: Not a valid integer: Error Unknown Protocol

 

[Database]
Type = MySQL
; Name of the database you want to store the virtual garage data in, if you want to use your main database enter that here, or use extDB for an external database (if you are doing a hive of virtual garage basically)
Name = ni88xxxxxxxx
; mysql username
Username = ni889xxxxxx
; mysql password
Password = Hnixxxxxx

; ip for your mysql database, you can use localhost if it's on the local machine or an ip address if it's remote (i.e: 1.2.3.4)
IP = localhost
; mysql port
Port = 3306

Kann mir da jemand helfen?

Can someone help me?

 

Weitere Modifikationen:@extDB;@DayzOverwatch;@DayZ_Epoch;@DayZ_Epoch_Server;@ruegen;@a2_infiSTAR

 

Link to comment
Share on other sites

57 minutes ago, motschler1 said:

Hallo,

bei mir kann ich die Fahrzeuge in der Garage abstellen, die Schlüssel werden auch aus dem Inventar genommen, aber ich kann kein Fahrzeug aus der Garage nehmen, da er keins findet.


Hello,

with me I can park the vehicles in the garage, the keys are also taken from the inventory, 
but I can not take any vehicle out of the garage, since he finds none.

[16:44:05 +02:00] [Thread 1833127214] extDB: Version: 35
[16:44:05 +02:00] [Thread 1833127214] extDB: Windows Version
[16:44:05 +02:00] [Thread 1833127214] Message: Arma Linux Servers are using Older Physic Library (than Windows Servers), due to Debian 7 using old version of Glibc
[16:44:05 +02:00] [Thread 1833127214] Message: If you like extDB consider donating or bug BIS to drop support for Debian 7 thanks, so Linux Servers get same Physic Library Version as Windows
[16:44:05 +02:00] [Thread 1833127214] Message: Note currently most/all development for extDB is done on a Linux Server
[16:44:05 +02:00] [Thread 1833127214] Message: Torndeco: 24/01/15
[16:44:05 +02:00] [Thread 1833127214] 
[16:44:05 +02:00] [Thread 1833127214] extDB: Found extdb-conf.ini
[16:44:05 +02:00] [Thread 1833127214] extDB: Detected 32 Cores, Setting up 6 Worker Threads
[16:44:05 +02:00] [Thread 1833127214] extDB: Database Type: MySQL
[16:44:07 +02:00] [Thread 1833127214] extDB: Database Exception Error: Connection attempt failed: Can't connect to MySQL server on 'localhost' (10061)
[16:44:07 +02:00] [Thread 1833127214] extDB: DB_RAW_V3: No Database Connection
[16:44:07 +02:00] [Thread 1833127214] extDB: Failed to Load Protocol
[16:47:27 +02:00] [Thread 1833127214] extDB: Unknown Protocol: 1
[16:47:27 +02:00] [Thread 1833127214] extDB: Error: Syntax error: Not a valid integer: Error Unknown Protocol
[16:47:39 +02:00] [Thread 1833127214] extDB: Unknown Protocol: 1
[16:47:40 +02:00] [Thread 1833127214] extDB: Error: Syntax error: Not a valid integer: Error Unknown Protocol

 

[Database]
Type = MySQL
; Name of the database you want to store the virtual garage data in, if you want to use your main database enter that here, or use extDB for an external database (if you are doing a hive of virtual garage basically)
Name = ni88xxxxxxxx
; mysql username
Username = ni889xxxxxx
; mysql password
Password = Hnixxxxxx

; ip for your mysql database, you can use localhost if it's on the local machine or an ip address if it's remote (i.e: 1.2.3.4)
IP = localhost
; mysql port
Port = 3306

Kann mir da jemand helfen?

Can someone help me?

 

Weitere Modifikationen:@extDB;@DayzOverwatch;@DayZ_Epoch;@DayZ_Epoch_Server;@ruegen;@a2_infiSTAR

 

Hi there,

I would guess that somewhere there's a ":" either in the players name or the vehicle name.

Can you post your server RPT?

Link to comment
Share on other sites

1 hour ago, motschler1 said:

Hallo,

bei mir kann ich die Fahrzeuge in der Garage abstellen, die Schlüssel werden auch aus dem Inventar genommen, aber ich kann kein Fahrzeug aus der Garage nehmen, da er keins findet.


Hello,

with me I can park the vehicles in the garage, the keys are also taken from the inventory, 
but I can not take any vehicle out of the garage, since he finds none.

[16:44:05 +02:00] [Thread 1833127214] extDB: Version: 35
[16:44:05 +02:00] [Thread 1833127214] extDB: Windows Version
[16:44:05 +02:00] [Thread 1833127214] Message: Arma Linux Servers are using Older Physic Library (than Windows Servers), due to Debian 7 using old version of Glibc
[16:44:05 +02:00] [Thread 1833127214] Message: If you like extDB consider donating or bug BIS to drop support for Debian 7 thanks, so Linux Servers get same Physic Library Version as Windows
[16:44:05 +02:00] [Thread 1833127214] Message: Note currently most/all development for extDB is done on a Linux Server
[16:44:05 +02:00] [Thread 1833127214] Message: Torndeco: 24/01/15
[16:44:05 +02:00] [Thread 1833127214] 
[16:44:05 +02:00] [Thread 1833127214] extDB: Found extdb-conf.ini
[16:44:05 +02:00] [Thread 1833127214] extDB: Detected 32 Cores, Setting up 6 Worker Threads
[16:44:05 +02:00] [Thread 1833127214] extDB: Database Type: MySQL
[16:44:07 +02:00] [Thread 1833127214] extDB: Database Exception Error: Connection attempt failed: Can't connect to MySQL server on 'localhost' (10061)
[16:44:07 +02:00] [Thread 1833127214] extDB: DB_RAW_V3: No Database Connection
[16:44:07 +02:00] [Thread 1833127214] extDB: Failed to Load Protocol
[16:47:27 +02:00] [Thread 1833127214] extDB: Unknown Protocol: 1
[16:47:27 +02:00] [Thread 1833127214] extDB: Error: Syntax error: Not a valid integer: Error Unknown Protocol
[16:47:39 +02:00] [Thread 1833127214] extDB: Unknown Protocol: 1
[16:47:40 +02:00] [Thread 1833127214] extDB: Error: Syntax error: Not a valid integer: Error Unknown Protocol

 

[Database]
Type = MySQL
; Name of the database you want to store the virtual garage data in, if you want to use your main database enter that here, or use extDB for an external database (if you are doing a hive of virtual garage basically)
Name = ni88xxxxxxxx
; mysql username
Username = ni889xxxxxx
; mysql password
Password = Hnixxxxxx

; ip for your mysql database, you can use localhost if it's on the local machine or an ip address if it's remote (i.e: 1.2.3.4)
IP = localhost
; mysql port
Port = 3306

Kann mir da jemand helfen?

Can someone help me?

 

Weitere Modifikationen:@extDB;@DayzOverwatch;@DayZ_Epoch;@DayZ_Epoch_Server;@ruegen;@a2_infiSTAR

 

vg_removeKey = true; // Remove the key from the players inventory after storing vehicle?

Change this to false.

If like us, you are also using vehicle key changer and have merged your vehicles on to one key, you are better setting this to false anyway.

Link to comment
Share on other sites

I have everything set as in the description. how is it right?

  Error Undefined variable in expression: dze_safevehicle
File z\addons\dayz_server\system\scheduler\sched_safetyVehicle.sqf, line 4
Error in expression <ectMonitor) && !((typeOf vehicle _x) in DZE_safeVehicle)) then {
diag_log [ "z\a>
  Error position: <DZE_safeVehicle)) then {
diag_log [ "z\a>
  Error Undefined variable in expression: dze_safevehicle
File z\addons\dayz_server\system\scheduler\sched_safetyVehicle.sqf, line 4
Error in expression <ectMonitor) && !((typeOf vehicle _x) in DZE_safeVehicle)) then {
diag_log [ "z\a>
  Error position: <DZE_safeVehicle)) then {
diag_log [ "z\a>
  Error Undefined variable in expression: dze_safevehicle
File z\addons\dayz_server\system\scheduler\sched_safetyVehicle.sqf, line 4
Error in expression <ectMonitor) && !((typeOf vehicle _x) in DZE_safeVehicle)) then {
diag_log [ "z\a>
  Error position: <DZE_safeVehicle)) then {
diag_log [ "z\a>
  Error Undefined variable in expression: dze_safevehicle
File z\addons\dayz_server\system\scheduler\sched_safetyVehicle.sqf, line 4
Error in expression <ectMonitor) && !((typeOf vehicle _x) in DZE_safeVehicle)) then {
diag_log [ "z\a>
  Error position: <DZE_safeVehicle)) then {
diag_log [ "z\a>
  Error Undefined variable in expression: dze_safevehicle
File z\addons\dayz_server\system\scheduler\sched_safetyVehicle.sqf, line 4

 

Link to comment
Share on other sites

37 minutes ago, motschler1 said:

I have everything set as in the description. how is it right?

  Error Undefined variable in expression: dze_safevehicle
File z\addons\dayz_server\system\scheduler\sched_safetyVehicle.sqf, line 4
Error in expression <ectMonitor) && !((typeOf vehicle _x) in DZE_safeVehicle)) then {
diag_log [ "z\a>
  Error position: <DZE_safeVehicle)) then {
diag_log [ "z\a>
  Error Undefined variable in expression: dze_safevehicle
File z\addons\dayz_server\system\scheduler\sched_safetyVehicle.sqf, line 4
Error in expression <ectMonitor) && !((typeOf vehicle _x) in DZE_safeVehicle)) then {
diag_log [ "z\a>
  Error position: <DZE_safeVehicle)) then {
diag_log [ "z\a>
  Error Undefined variable in expression: dze_safevehicle
File z\addons\dayz_server\system\scheduler\sched_safetyVehicle.sqf, line 4
Error in expression <ectMonitor) && !((typeOf vehicle _x) in DZE_safeVehicle)) then {
diag_log [ "z\a>
  Error position: <DZE_safeVehicle)) then {
diag_log [ "z\a>
  Error Undefined variable in expression: dze_safevehicle
File z\addons\dayz_server\system\scheduler\sched_safetyVehicle.sqf, line 4
Error in expression <ectMonitor) && !((typeOf vehicle _x) in DZE_safeVehicle)) then {
diag_log [ "z\a>
  Error position: <DZE_safeVehicle)) then {
diag_log [ "z\a>
  Error Undefined variable in expression: dze_safevehicle
File z\addons\dayz_server\system\scheduler\sched_safetyVehicle.sqf, line 4

 

I would guess you are running old versions of stuff, this should never happen.

I will pm you my email address, please send me your dayz_server.pbo and your mission pbo

Link to comment
Share on other sites

On 10/23/2017 at 11:30 PM, salival said:

in your dayz_server\system\server_monitor.sqf find: 


_hiveLoaded = false;

add below:


PVDZE_EvacChopperFields = [];

find this line:


if (_isDZ_Buildable || {(_isSafeObject && !_isTrapItem)}) then {

Add this above:


			if ((typeOf _object) == "HeliHRescue") then {
				PVDZE_EvacChopperFields set [count PVDZE_EvacChopperFields, _object];
			};

Add at bottom of server_monitor.sqf:


if (isServer && (isNil "EvacServerPreload")) then {
    publicVariable "PVDZE_EvacChopperFields";
    
    ON_fnc_evacChopperFieldsUpdate = {
        private ["_action","_targetField"];
        _action = _this select 0;
        _targetField = _this select 1;
        
        if (_action == "add") then {
            PVDZE_EvacChopperFields = PVDZE_EvacChopperFields + [_targetField];
        };
        
        if (_action == "rem") then {
            PVDZE_EvacChopperFields = PVDZE_EvacChopperFields - [_targetField];
        };
        
        publicVariable "PVDZE_EvacChopperFields";
    };

    "PVDZE_EvacChopperFieldsUpdate" addPublicVariableEventHandler {(_this select 1) spawn ON_fnc_evacChopperFieldsUpdate};

    EvacServerPreload = true;
};

 

Did you just casually fix evac chopper?! Holy crap dude. - To the test server!

Link to comment
Share on other sites

1 hour ago, _Lance_ said:

Did you just casually fix evac chopper?! Holy crap dude. - To the test server!

Maybe, I didn't.test it but logically it should work.

If there's enough interest I can go back through that mod and update it and tidy it up.

I have your files you sent me, too. Work has been shit the last few weeks so I'll try and look at it this weekend

Link to comment
Share on other sites

Just now, salival said:

Maybe, I didn't.test it but logically it should work.

If there's enough interest I can go back through that mod and update it and tidy it up.

I have your files you sent me, too. Work has been shit the last few weeks so I'll try and look at it this weekend

All good with me man, no rush. I've installed the chopper mod on the test server and going through the files now updating the variables, I'll let you know what I get! If it works you're gonna have to do a re-release everyone will want this fa-sho.

Link to comment
Share on other sites

Hi guys,

Pushed a commit today that many people have wanted since the start, it's a good starting place to get it dialed in to work better.

At the moment it's tied to a plot pole but this can be expanded on in the future (with ideas from you guys)

Basically how it works, if vg_tiedToPole = true then the script will use the PUID of the person who placed the pole for getting/storing vehicles instead of the players UID as it did when released.

If no plot pole is found or vg_tiedToPole = false, it will default back to the players UID

I've tested this but there could be issues, please test and let me know how it goes for you/your players.

https://github.com/oiad/virtualGarage/commit/d9ad17ef2e5d02bfb82e0921b58cc0a7db4fdd2e

Link to comment
Share on other sites

5 hours ago, salival said:

Hi guys,

Pushed a commit today that many people have wanted since the start, it's a good starting place to get it dialed in to work better.

At the moment it's tied to a plot pole but this can be expanded on in the future (with ideas from you guys)

Basically how it works, if vg_tiedToPole = true then the script will use the PUID of the person who placed the pole for getting/storing vehicles instead of the players UID as it did when released.

If no plot pole is found or vg_tiedToPole = false, it will default back to the players UID

I've tested this but there could be issues, please test and let me know how it goes for you/your players.

https://github.com/oiad/virtualGarage/commit/d9ad17ef2e5d02bfb82e0921b58cc0a7db4fdd2e

Does anything need to be done with the db or just drop in the edits and go? Thanks!

Link to comment
Share on other sites

1 hour ago, _Lance_ said:

Does anything need to be done with the db or just drop in the edits and go? Thanks!

Nothing needs doing with the database, just run with the updates.

Hopefully it doesn't make anything implode, it worked fine for me. My stored vehicles on my plot still showed, on another plot pole with a different PUID showed his stored vehicles.

Link to comment
Share on other sites

3 minutes ago, salival said:

Nothing needs doing with the database, just run with the updates.

Hopefully it doesn't make anything implode, it worked fine for me. My stored vehicles on my plot still showed, on another plot pole with a different PUID showed his stored vehicles.

I gots backups, I'll let you know if anyone's lada disappears.

Link to comment
Share on other sites

  • 2 weeks later...
4 hours ago, motschler1 said:

Hello, I get the following error message:

Database Exception Error: Connection attempt failed: Access denied for user '<ni8xxxxxxx>'@'46.251.235.69' (using password: YES)

what can i do?

As your log says "Access denied for user '<ni8xxxxxxx>'@'46.251.235.69' ", you need to check your mysql user and database permission. 
you need to grant permissions to "extdb" database. (you need to grant permissions per database)

Link to comment
Share on other sites

My server is at nitrado. I have data from hostname, port, username, password, database. 
everything correctly entered. I am despairing. I am not a database professional. 
Could anyone help me, please. Greetings from Germany

Hostname
 ms1xxx.nitrado.net

Port
 3306

Benutzername
 ni88xxxx_5_DB

Passwort
 ******** 

Datenbank
 ni88xxxx_5_DB

here my extdb-conf

[Database]
Type = MySql
; Name of the database you want to store the virtual garage data in, if you want to use your main database enter that here, or use extDB for an external database (if you are doing a hive of virtual garage basically)
Name = <ni88xxxx_5_DB>
; mysql username
Username = <ni88xxxx_5_DB>
; mysql password
Password = <xxxxxxxx>

; ip for your mysql database, you can use localhost if it's on the local machine or an ip address if it's remote (i.e: 1.2.3.4)
IP = ms15xx.nitrado.net
; mysql port
Port = 3306

minSessions = 1
maxSessions = 4
idleTime = 60

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...