| Blockland Forums > Modification Help |
| Saving And Loading Vars |
| << < (4/8) > >> |
| jes00:
--- Quote from: MegaScientifical on December 07, 2011, 05:10:08 PM ---If all works correctly, you shouldn't have to. You manage the variables in the game, and only load them on first startup so the information is ready. Of course, if you have enough people, individual files might be better, but you can't expect that many. You might want to export maybe every time people leave to make sure a server crash doesn't lose as much information, though. Just execute the file on server startup, export in joins or leaves or something, and once more for regular closing. Stuff like that. --- End quote --- If enough people go to the server and it saves their variables will it not eventually crash from too many variables? I would rather make it so each person has their own txt file so it only executes their own variables when they join. |
| MegaScientifical:
--- Quote from: jes00 on December 08, 2011, 08:40:07 AM ---If enough people go to the server and it saves their variables will it not eventually crash from too many variables? I would rather make it so each person has their own txt file so it only executes their own variables when they join. --- End quote --- I doubt there would be enough people playing an individual server within a reasonable time to create a large enough list that would break the game. Age of Time is set up like that, but the files track tons of information. |
| jes00:
--- Quote from: MegaScientifical on December 08, 2011, 12:10:57 PM ---I doubt there would be enough people playing an individual server within a reasonable time to create a large enough list that would break the game. Age of Time is set up like that, but the files track tons of information. --- End quote --- Ok. I know the function for someone leaving the game but what are the functions for the game ending, for the game beginning and for someone entering the game? |
| Superb:
--- Quote from: jes00 on December 08, 2011, 12:15:15 PM ---Ok. I know the function for someone leaving the game but what are the functions for the game ending, for the game beginning and for someone entering the game? --- End quote --- You don't need functions for the "game ending/beginning". package this function gameConnection::autoAdminCheck(%client) { parent::autoAdminCheck(%client); } |
| Port:
--- Quote from: Superb on December 08, 2011, 02:32:17 PM ---You don't need functions for the "game ending/beginning". package this function autoAdminCheck(%client) { parent::autoAdminCheck(%client); } --- End quote --- Change function autoAdminCheck to function gameConnection::autoAdminCheck. |
| Navigation |
| Message Index |
| Next page |
| Previous page |