Best method? - Object Saving. -
Lynn - 09.01.2013
Alright, so I've created a system In-Game pertaining the placement of Objects.
However, I'd like to know the best way to go about saving/loading them once they're placed.
I'm using EditObject to move them, etc.
I do not want them to be Static objects, I'm looking to be able to move them, etc. While in-game.
This way I don't have to do 500 server restarts just to move some objects.
Re: Best method? - Object Saving. -
u3ber - 09.01.2013
files?
Re: Best method? - Object Saving. -
denNorske - 09.01.2013
You could use a INI-file to save position to objects. Anyways, thats the only way i know which is working. Each object is loaded from their own file, and they load when any player is near them (IsPlayerInRangeOfPoint).
I dont know for what purpose your objects should load.
Re: Best method? - Object Saving. -
Superdude - 09.01.2013
MySQL-saving system is better than INI-file to save positions as far as I know
Re: Best method? - Object Saving. -
denNorske - 09.01.2013
Quote:
Originally Posted by Superdude
MySQL-saving system is better than INI-file to save positions as far as I know
|
That system is faster yes, but it is not required in this purpose. MySQL is advanced, and is for REALLY fast loading, like accounts. An Object doesnt have so much information to load, thats why INI is better in MY opinion.
regards
Re: Best method? - Object Saving. -
u3ber - 09.01.2013
Quote:
Originally Posted by Superdude
MySQL-saving system is better than INI-file to save positions as far as I know
|
he's not storing data for the cia...
Re: Best method? - Object Saving. -
Vince - 09.01.2013
MySQL is actually SLOWER than file reading, because of the remote connection. For this purpose I would look at SQLite. Best of both worlds. Small DB that's stored locally, with 500 rows, rather than 500 files stored locally.