Pivity

Two GMOD servers

Last read Never
#1

Hello, I come here you today because I have a question: How to synchronise two servers and when a player buy a VIP on server n°1 he also has it on server n°2. Similar for vehicles and for money in the bank and the pocket. Sorry for any misspelling. Kind regards

Friendly x 1
#2

The two server are on the same machine ?

Best way is to use a SQL DB

Lazy way is to store VIPs in /data and just have one folder for the two servers just use one .bat/.sh file per server

Agree x 1
#3

use the same mysql database for whatever addon it is, idk if it works for ulx though

Agree x 1
#4
ByLapinat 17th of January 2018 16:38:31
The two server are on the same machine ?Best way is to use a SQL DBLazy was is to store VIPs in /data and just have one folder for the two servers just use one .bat/.sh file per server

Yes I own a dedicated server on OVH

Winner x 1
#5

What donation system are you using? Becuase with Prometheus, just give the servers the same ServerID

Agree x 1
#6
ByOwain Owjoat 17th of January 2018 16:51:34
What donation system are you using? Becuase with Prometheus, just give the servers the same ServerID

Yes but i know and for Vehicles, money....

#7

I think I might have miss understood. I thought you were asking how you would share the VIP package.

If you're on about cars and money ect, then you'd need an external database that you have both servers share. All DarkRP gamemode data is savable through sql in the darkrpmodification settings. But for standalone addons like car dealers, you'll need to check with the car dealer you're using as only some will support it. Same with your inv system. I know that ItemStore has a MySQL option. It's a very much so addon-to-addon thing.

#8
ByOwain Owjoat 17th of January 2018 18:05:40
I think I might have miss understood. I thought you were asking how you would share the VIP package.If you're on about cars and money ect, then you'd need an external database that you have both servers share. All DarkRP gamemode data is savable through sql in the darkrpmodification settings. But for standalone addons like car dealers, you'll need to check with the car dealer you're using as only some will support it. Same with your inv system. I know that ItemStore has a MySQL option. It's a very much so addon-to-addon thing.

But if I put database on darkrpmodifcation, it will reset all on my server because my server is open ^^

Friendly x 1
#9
ByFalkioat 17th of January 2018 18:41:26
But if I put database on darkrpmodifcation, it will reset all on my server because my server is open ^^

Then you'd need to port your data from your current local sv.db into the new external sql one. It's pretty simple once you've done some basic research.

Winner x 1
#10
ByOwain Owjoat 17th of January 2018 22:07:50
Then you'd need to port your data from your current localsv.dbinto the new external sql one. It's pretty simple once you've done some basic research.

Ok thank you very much ! I will try asap. Because I don't want my players to buy 2 times a VIP or vehicles... Appreciate your help :)

#11
ByFalkioat 18th of January 2018 06:26:56
Ok thank you very much !I will try asap.Because I don't want my players to buy 2 times a VIP or vehicles...Appreciate your help :)

No worries! You're welcome to add me on steam if you need any help.

Friendly x 1
#12
ByOwain Owjoat 18th of January 2018 09:48:03
No worries! You're welcome to add me on steam if you need any help.

I already have you in my friend list But thanks alot

Users viewing this thread
Nobody