@BatVink:
Ok... didn't know that, i thought that it had the file size saved in the first few bytes and if the file size didn't match the size writen in the file iself, then it would be "corrupt"...
Weeeeelllll, what i could do then, would be take out the first few lines of the file, that outta stuff it up, then just re-add them through DB in-game...
Thanks for the info though...
@M00NSHiNE:
Ok.. Good idea, here is the sample that I personally use:
`In format: Class,Name,Cost,amount of Attack,amount of Dexterety,amount of Strength,amount of Life,amount of Mana,amount of Stamina
[WEAPONS]
Weapon,Cracked Sword,50,12,2,0,0,0,0
Weapon,Hammer,5,3,0,1,0,0,0
[RINGS]
Ring,Thor's Ring,120,0,20,32,15,10,0
[POTIONS]
Potion,Healing Potion,5,0,0,0,40,0,0
Potion,Mana Potion,5,0,0,0,0,40,0
Potion,Stamina Potion,10,0,0,0,0,0,15
ENDFILE
And don't forget, you can add more info, delete some or change the whole file completely... That's what the first function is for, reading the amount of data you put in it, so it can set up the array correctly...
You could also do something like:
`In format: Object number,Type,X-value/radius,Y-value,Z-value,new X-value/new radius,new Y-value,new Z-value
[CAMERA]
0,Camera,0,50,0,100,50,100
[OBJECTS]
1,Cube,50,50,50,2000,50,2000
2,Sphere,600,20,0,0,20,10
3,Cylinder,0,100,0,10,100,20
4,Cone,50,50,50,2000,50,2000
[SIZES]
1,Cube,50,200,60,10,20,680
2,Sphere,20,0,0,100,0,0
4,Cone,10,10,10,50,50,50
ENDFILE
And you could use that to set all the starting positions for your objects, and then use the new values as waypoints or something... And then you could use the sizes etc...
PS. I've put exactly what i wrote above into the file for others to see... sorry bout the lack of information...

Team EOD :: Programmer/Logical Engineer/All-Round Nice Guy