Hello,
I've seen a server storing player's data in a database. So your data wouldn't get lost when you rejoin.
I was wondering if it would be possible to store data in an external file/database. If so, an example would be really appreciated.
Thanks in advance.
-MScull
This forum is locked and will eventually go offline. If you have feedback to share you can find us in our Discord channel "MythoLogic Interactive" https://discord.gg/nECKnbT7gk
Forum rules
Forum rules
Storing data in database/file
Forum rules
By using the forum you agree to the following rules.
By using the forum you agree to the following rules.
- JakSparro98
- Superfighter

- Posts: 530
- Joined: Fri Jul 15, 2016 7:56 pm
- Started SFD: PreAlpha 1.0.5
- Location: Rome, Italy
- Gender:
- Age: 27
In the past I asked that, in this thread.
we are waiting for that will become possible with a class in the script API because, due for security problems, we cannot use C#'s namespaces for storing data.
The thing you have seen is a trick some server hosts uses to get data from the game and put inside again. For this you can use Cheat Engine or other memory debugger programs, your script needs to save all in the "Game.Data" variable as a long string and then before the server shuts down the string is collected. When the server is reopened, the reverse way.
we are waiting for that will become possible with a class in the script API because, due for security problems, we cannot use C#'s namespaces for storing data.
The thing you have seen is a trick some server hosts uses to get data from the game and put inside again. For this you can use Cheat Engine or other memory debugger programs, your script needs to save all in the "Game.Data" variable as a long string and then before the server shuts down the string is collected. When the server is reopened, the reverse way.
2 x
- Billy
- Superfighter

- Posts: 285
- Joined: Fri Apr 22, 2016 3:56 pm
- Title: Owner of a failed Clan
- SFD Account: Billy
- SFD Alias: Billy
- Started SFD: October 2015
- Location: Austria
- Gender:
- Age: 24
Antonikon did that.
I miss his server so much...
I miss his server so much...
2 x
Join Delta Squad today, if you mail me now you will get this cool private rank for FREE, but thats not all, you will also get an imaginary Cookie, so better hurry up!
Yea, ehh, that was a big fail...
Yea, ehh, that was a big fail...
- MScull
- Fighter

- Posts: 33
- Joined: Sun May 29, 2016 9:43 pm
- Title: No Title
- SFD Account: MScull
- SFD Alias: Scull
- Started SFD: PreAlpha 1.8.8
- Location: The Netherlands
- Gender:
- Age: 24
Thanks for posting a link to the original thread. I'm really happy that there will be a way to do it in the future.JakSparro98 wrote:In the past I asked that, in this thread.
we are waiting for that will become possible with a class in the script API because, due for security problems, we cannot use C#'s namespaces for storing data.
The thing you have seen is a trick some server hosts uses to get data from the game and put inside again. For this you can use Cheat Engine or other memory debugger programs, your script needs to save all in the "Game.Data" variable as a long string and then before the server shuts down the string is collected. When the server is reopened, the reverse way.
1 x
hi