PossibIy
|
  |
| Joined: 27 Mar 2014 |
| Total Posts: 214 |
|
|
| 16 Aug 2017 05:36 PM |
For future reference is it possible to transfer a game's DataStore to another game?
|
|
|
| Report Abuse |
|
|
sonihi
|
  |
| Joined: 27 Jun 2009 |
| Total Posts: 3655 |
|
| |
|
PossibIy
|
  |
| Joined: 27 Mar 2014 |
| Total Posts: 214 |
|
| |
|
KEVEKEV77
|
  |
| Joined: 12 Mar 2009 |
| Total Posts: 6961 |
|
| |
|
sonihi
|
  |
| Joined: 27 Jun 2009 |
| Total Posts: 3655 |
|
| |
|
KEVEKEV77
|
  |
| Joined: 12 Mar 2009 |
| Total Posts: 6961 |
|
|
| 16 Aug 2017 05:54 PM |
Well you could always make a universe; but to make it possible from completely different games; I would do:
Whenever a Key is added to the Datastore, it is stored in a datastore called keys, in one huge table with the key name "Datastore" aka its not player sensitive.
When transfering, loop through every single key in the datastore, and use it to access every bit of information in the main datastore, one with info.
Then, perhaps convert it all to string and make a function to convert it back in the new place, and then add it to a datastore and your good.
Just make sure to start saving all the keys now. Or in future there may be a :GetKeys(
or something. GL |
|
|
| Report Abuse |
|
|
sonihi
|
  |
| Joined: 27 Jun 2009 |
| Total Posts: 3655 |
|
|
| 16 Aug 2017 05:56 PM |
| Another idea is to just have all games in one Universe and maybe have them share something unique, like a premium currency. |
|
|
| Report Abuse |
|
|
OldGoldie
|
  |
| Joined: 17 Aug 2010 |
| Total Posts: 8210 |
|
|
| 16 Aug 2017 05:59 PM |
The only way it would be possible without universes is having each palyers data stored on a webserver.
|
|
|
| Report Abuse |
|
|
sonihi
|
  |
| Joined: 27 Jun 2009 |
| Total Posts: 3655 |
|
| |
|
Ajastra
|
  |
| Joined: 01 Aug 2017 |
| Total Posts: 1461 |
|
|
| 16 Aug 2017 06:05 PM |
AcheTtpService works but the costs scale. I don't recommend using anything that is *not* intended for data storage (such as Google Docs, Trello, Discord, whatnot).
A temporary transfer process between places is pretty doable, but it depends on how many players will visit your game.
If you get a decent VPS with unlimited bandwith ("unlimited" meaning dozens of terabytes per month), you could do this with most games that get under a few thousand players for maybe $15 for a month?
|
|
|
| Report Abuse |
|
|
SimpleSet
|
  |
| Joined: 25 Feb 2017 |
| Total Posts: 165 |
|
|
| 16 Aug 2017 06:07 PM |
Forgive me if I miss something, but don't yo just have to put in the key to access your datastore? Am I missing something? If not, then how do all those games who teleport you to different games (like PBB to trade resort) keep your stuff saved there?
#YoungDev |
|
|
| Report Abuse |
|
|
Ajastra
|
  |
| Joined: 01 Aug 2017 |
| Total Posts: 1461 |
|
|
| 16 Aug 2017 06:08 PM |
Sorry for my very low quality answer, I've been up for a while.
Here's how you'd do it:
- For a period of like a few weeks to a month, players need to join the game to get their data transferred. - When the data is loaded, if it can be, it is sent to the server and stored in an RDBMS (such as an SQL database). - When the players visit the other game, it checks to see what's stored on the server, and loads the data if it exists. - After a few weeks / a month or whatever, you stop supporting data transfers.
If you are actually seriously interested in doing this, hit me up with your Discord or whatever. I have my own VPS and could host this for some time for free provided your game isn't on the front page or anything.
|
|
|
| Report Abuse |
|
|
sonihi
|
  |
| Joined: 27 Jun 2009 |
| Total Posts: 3655 |
|
|
| 16 Aug 2017 06:11 PM |
Yes you only need the key to save and read. HOWEVER it's currently not possible to get all keys of a Datastore without saving them. Also I have another idea in mind: Give every Player player points, and that'll index them all on the website. Or you could try making an ordered datastore and iterate till the limit (for i=1,whatever) |
|
|
| Report Abuse |
|
|