generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Saving

Previous Thread :: Next Thread 
TwentyOneFroot is not online. TwentyOneFroot
Joined: 29 Jan 2012
Total Posts: 156
24 May 2017 12:07 PM
Hi, does anyone know how games like Miner's Haven saves a player's items and their positions?


Report Abuse
Goulstem is not online. Goulstem
Joined: 04 Jul 2012
Total Posts: 7177
24 May 2017 12:13 PM
DataStore


Report Abuse
TwentyOneFroot is not online. TwentyOneFroot
Joined: 29 Jan 2012
Total Posts: 156
24 May 2017 12:18 PM
Yeah, I get that it's a datastore but how do you save parts?


Report Abuse
TakeALookInTheMirror is not online. TakeALookInTheMirror
Joined: 25 Dec 2011
Total Posts: 16463
24 May 2017 12:23 PM
read Wunder_Wulfe's replies in first page of this thread: https://forum.roblox.com/Forum/ShowPost.aspx?PostId=217098788

and eventually check otjer pages to know why not (try to) save Instances


Report Abuse
Goulstem is not online. Goulstem
Joined: 04 Jul 2012
Total Posts: 7177
24 May 2017 12:24 PM
serialize and compile your object into a string/table.


Report Abuse
Unsubtleties is not online. Unsubtleties
Joined: 28 Nov 2016
Total Posts: 9203
24 May 2017 12:29 PM
If you're saving the pre-made items then you don't need to store properties other than the position if they're customizable. Just save each string or ID that is assigned to each object along with the position inside a table.


Report Abuse
Unsubtleties is not online. Unsubtleties
Joined: 28 Nov 2016
Total Posts: 9203
24 May 2017 12:29 PM
not customizable*


Report Abuse
Wunder_Wulfe is online. Wunder_Wulfe
Joined: 13 Sep 2016
Total Posts: 8356
24 May 2017 12:54 PM
this is an example of how i save mine
i make sure to leave all un-used fields blank and use shortcut names to make it as small as possible (without using arrays)

goo.gl/TX0M2V

this is the json table
Report Abuse
Wunder_Wulfe is online. Wunder_Wulfe
Joined: 13 Sep 2016
Total Posts: 8356
24 May 2017 12:55 PM
if its at 0,0,0 it removes position and whatever axis that are 0 are also removed
Report Abuse
Unsubtleties is not online. Unsubtleties
Joined: 28 Nov 2016
Total Posts: 9203
24 May 2017 12:55 PM
> z, x, y

triggered


Report Abuse
Wunder_Wulfe is online. Wunder_Wulfe
Joined: 13 Sep 2016
Total Posts: 8356
24 May 2017 12:56 PM
thats due to the order of dictionaries in lua
when i called JSONEncode it did that
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image