| Blockland Forums > Modification Help |
| Saving And Loading Vars |
| << < (6/8) > >> |
| MegaScientifical:
--- Quote from: jes00 on December 08, 2011, 03:33:56 PM ---Which is bad because it would execute the file every time someone joins and spam the console. --- End quote --- You specifically asked for individual files to be loaded for each player. That will always spam console. That's why I suggested saving information for everyone in one file so it's only loaded and saved under less frequent situations. |
| jes00:
--- Quote from: MegaScientifical on December 08, 2011, 04:03:44 PM ---You specifically asked for individual files to be loaded for each player. That will always spam console. That's why I suggested saving information for everyone in one file so it's only loaded and saved under less frequent situations. --- End quote --- I suppose it would either have to load individual files or load when anyone joins because if someone new joins, leaves, and comes back it would need to reload it to get the new info. In this case it would need to be saving whenever a players vars are changed, which is why I think individual files would be better. |
| MegaScientifical:
What you do is keep saving them to a file, but keep the actual data live on the game. Then all you worry about is reloading the saved information on startup. You could create periodic save everyone's info. You wouldn't need to load it every join. |
| jes00:
--- Quote from: MegaScientifical on December 08, 2011, 04:59:27 PM ---What you do is keep saving them to a file, but keep the actual data live on the game. Then all you worry about is reloading the saved information on startup. You could create periodic save everyone's info. You wouldn't need to load it every join. --- End quote --- Why would I not need to load it every join? |
| MegaScientifical:
--- Quote from: jes00 on December 08, 2011, 05:03:15 PM ---Why would I not need to load it every join? --- End quote --- What makes you think exporting the variables removes them from the games memory? They're still there, you don't need to reload them. |
| Navigation |
| Message Index |
| Next page |
| Previous page |