DayZHive - Hive application [MySQL] [Node.js]
This is an application which simulates DayZ's hive/saving system. In comparision to other implementations, mine saves the character data in a MySQL database.
GitHub repo:
https://github.com/matsuiman/DayZHive
Download:
https://github.com/matsuiman/DayZHiv...ive/master.zip
Requirements:
How to use:
- Install Node.js and MySQL (I'm not giving instructions for that)
- Run the install.bat file included (multiple times if needed)
- Open up server.js in a text editor, edit the MySQL details:
PHP Code:
var connection = mysql.createConnection({
host: 'localhost',
user: 'root',
password: '',
database: 'hive'
});
- Run run.bat
- Start up your DayZ Server
You can also edit the port and allowed IP's if you want to.
TODO:
Re: DayZHive - Hive application [MySQL] [Node.js]
This should hopefully save people a lot of headaches trying to get the other way of saving working.
Very nice work man. Downloaded and using now. Hope to see more from you in the future :):
Re: DayZHive - Hive application [MySQL] [Node.js]
wow one person shared anything? you got a piece of my heart.
Re: DayZHive - Hive application [MySQL] [Node.js]
not work on linux ubuntu :-(
Re: DayZHive - Hive application [MySQL] [Node.js]
Fantastic work, thank you very much for sharing <3 Much better than raw dumps on a webserver
Re: DayZHive - Hive application [MySQL] [Node.js]
Added MySQL pooling to the application.
Re: DayZHive - Hive application [MySQL] [Node.js]
Great application so far, I have noticed one game breaking bug which is sometimes, when the server saves/queues data the hive application crashes. Or if it somehow finds player data not there when it trys to /load/queue/find it will crash out. Undefined data error.
Yeah its happening when a player either looses connection while dying, the server trys to queue them when they logout, no data is found so the application is crashed, because kill before queue had deleted the data.
Re: DayZHive - Hive application [MySQL] [Node.js]
I'll try fixing the crash bugs, but for now just edit the run.bat:
Quote:
:start
node index.js
goto start
Re: DayZHive - Hive application [MySQL] [Node.js]
Thanks for the swift response!
Maybe make queue ignore the request if it cannot find the uid in database, and make save remake the uid if it cannot find the uid in database.
Re: DayZHive - Hive application [MySQL] [Node.js]
Hi trying to use this on my windows server ,installed node.js and had mysql all ready installed , when running the install.bat it comes back with "npm is not recognized as a internal or external command" also the run.bat says similar ""node is not recognized as a internal or external command"" any help please ?
Re: DayZHive - Hive application [MySQL] [Node.js]
Quote:
Originally Posted by
linuxking51
not work on linux ubuntu :-(
It should work. Node.js was made to work on linux.
Re: DayZHive - Hive application [MySQL] [Node.js]
Re: DayZHive - Hive application [MySQL] [Node.js]
Working well ! Many thanks ;)
Re: DayZHive - Hive application [MySQL] [Node.js]
Re: DayZHive - Hive application [MySQL] [Node.js]
can any one explaine that