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: Would this be cut off if saved in a datastore

Previous Thread :: Next Thread 
62GB is not online. 62GB
Joined: 03 Oct 2011
Total Posts: 4157
02 Nov 2015 10:01 AM
I remembered the article on the wiki that said something about mixed record styles will get cut off.. I'm pretty sure this will, I could just transform everything into a table rather than doing variables, if that would fix it:

Gold = {game.Workspace.Base.Gold.Value,game.Workspace.Base.GoldCapacity.Value}


local list = {
Gold = game.Workspace.Base.Gold.Value,
Wood = game.Workspace.Base.Wood.Value,
Stone = game.Workspace.Base.Stone.Value,
Iron = game.Workspace.Base.Iron.Value,
XP = game.Workspace.Base.XP.Value,
XPNeeded = game.Workspace.Base.XPNeeded.Value,
Level = game.Workspace.Base.Level.Value,
LastLogin = os.time(),
["BoomCannon1"] = {},
["BoomCannon2"] = {},
["BoomCannon3"] = {},
["BoomCannon4"] = {},
["BoomCannon5"] = {},
["MachineGun1"] = {},
["MachineGun2"] = {},
["MachineGun3"] = {},
["MachineGun4"] = {},
["MachineGun5"] = {},
["Cannon1"] = {},
["Cannon2"] = {},
["Cannon3"] = {},
["Cannon4"] = {},
["Cannon5"] = {},
["Cannon6"] = {},
["Flamethrower1"] = {},
["Flamethrower2"] = {},
["Flamethrower3"] = {},
["Flamethrower4"] = {},
["Mortar1"] = {},
["Mortar2"] = {},
["Mortar3"] = {},
["Mortar4"] = {},
["RPG1"] = {},
["RPG2"] = {},
["RPG3"] = {},
["Shock1"] = {},
["Shock2"] = {},
["Sniper1"] = {},
["Sniper2"] = {},
["Sniper3"] = {},
["Sniper4"] = {},
["Sniper5"] = {},
["Sniper6"] = {},
}
Report Abuse
NovusTheory is not online. NovusTheory
Joined: 14 Oct 2009
Total Posts: 4532
02 Nov 2015 10:03 AM
"x=3"

".x" = nil

Yes it'll be cut off
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
02 Nov 2015 10:03 AM
"I could just transform everything into a table rather than doing variables, if that would fix it:"

This doesn't use mixed styles.
This just uses two variables as well.
Report Abuse
62GB is not online. 62GB
Joined: 03 Oct 2011
Total Posts: 4157
02 Nov 2015 10:05 AM
So this wouldn't work regardless of both ways >_<
Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
02 Nov 2015 10:07 AM
What do you mean? This doesn't use mixed key styles, so it shouldn't be cut off.
Report Abuse
62GB is not online. 62GB
Joined: 03 Oct 2011
Total Posts: 4157
02 Nov 2015 10:08 AM
Oh.. :P

I guess I'll try it out.
Report Abuse
larr1212 is not online. larr1212
Joined: 06 Jan 2015
Total Posts: 259
02 Nov 2015 10:20 AM
If you tried to save this table:
{
5
x = 4,
3,
2,
y = 1,
0,
}

It would actually save this:

{
5,
3,
2,
0,
}
Report Abuse
62GB is not online. 62GB
Joined: 03 Oct 2011
Total Posts: 4157
02 Nov 2015 10:24 AM
Oh, okay. Thanks.
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