Best method? - Object Saving.
#1

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.
Reply
#2

files?
Reply
#3

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.
Reply
#4

MySQL-saving system is better than INI-file to save positions as far as I know
Reply
#5

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
Reply
#6

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...
Reply
#7

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)