Posted By
|
Message
|
tecbug
Registered 05/02/2004
Points 312
|
19th February, 2007 at 03:57:03 -
What is the best way to save(load) multiple (more than 100) object infotmation to the file?
n/a
|
Peblo Custom ratings must be 50 characters or less
Registered 05/07/2002
Points 185
|
19th February, 2007 at 04:00:31 -
Grow thumbs, you sheep.
"Isn't it always amazing how we characterize a person's intelligence by how closely their thinking matches ours?"
~Belgarath
|
Deleted User
|
19th February, 2007 at 04:15:38 -
You should look into Arrays, INI files could also work, it depends on exactly what you are going to save.
|
AndyUK Mascot Maniac
Registered 01/08/2002
Points 14586
|
19th February, 2007 at 19:37:20 -
define 'best'
also say what information you are saving.
.
|
tecbug
Registered 05/02/2004
Points 312
|
20th February, 2007 at 07:20:20 -
best = quickest, least work
saving: x, y position and alt.values of more than 100 objects
INI isn't good because of its work consumption.
n/a
|
Hernan
Registered 04/03/2003
Points 707
|
20th February, 2007 at 12:20:22 -
Well, there is the Save Game object included in one of the MMF Bonus Packs, but I have no idea how it works though. Never used it. The object allowed the user to store all info from active objects.
This space is for rent
|
Deleted User
|
20th February, 2007 at 13:57:19 -
An Array would work best in this case then. ^^
Warning, noobish explanation:
Make all objects that should be saved have the same qualifier, then spread a value in all those objects Alt. Value A(this will be the ID number of the object).
The Y cordinate in the array then is the ID number of the object, X1 is their x-position, X2 the y-position and X3 and so on will be their alt. values.
Save/load by using a fastloop, quick and simple.
Should work, ne? Tell me if you need an example... but Im sure you know how to do it x)
|
The Chris Street Administrator
Unspeakably Lazy Admin
Registered 14/05/2002
Points 48488
|
20th February, 2007 at 17:59:22 -
I made an example for MMF1.5 - http://klikacademy.com/circy/examples.php
n/a
|
AndyUK Mascot Maniac
Registered 01/08/2002
Points 14586
|
20th February, 2007 at 19:41:19 -
If you're making a game, being lazy is not good.
.
|
tecbug
Registered 05/02/2004
Points 312
|
21st February, 2007 at 04:16:37 -
i'll try with arrays.
Thx Chris!
n/a
|
|
|