cs8425 / SDGO-server

SDGO local server
GNU Affero General Public License v3.0
31 stars 28 forks source link

do you know how to change this code to connect with DB #3

Closed stank2010 closed 4 years ago

stank2010 commented 4 years ago

I don't know what is process of each packet ,Can you change this.

cs8425 commented 4 years ago

Connect to DB for accessing what data? If you means robot.txt and egg.txt, they can be easily saved into DB. Just modify parseConfig.go, and you can do what you want.

stank2010 commented 4 years ago

Thank you. and if I want to open LAN server and make my own user and friend user , Could you guide me how to change your own code.

cs8425 commented 4 years ago

I'm not sure what type of LAN server you want. For 'Practice mode', you can modify following line for different grids for each user connection: https://github.com/cs8425/SDGO-server/blob/master/server.go#L101-L103 Or just let other user connect to the server by IP & port.

But If you means PvP/PvE mode, I'm afraid that I can't help you too much. We still missing lots of data and need lots of work for building a playable multiplayer server.