Saving+Loading Problems!
by Wol · in Torque Game Builder · 02/22/2012 (5:29 pm) · 0 replies
Okay so from this site: http://www.garagegames.com/community/forums/viewthread/94387
I got a save/load code for the Plat former kit. (I'm using a different profile because the plat former kit one is one I have no access to now)
I have tried different ways, scripts and codes but this one has worked the best. That is not saying much. I am on the verge of giving up. Please help!
Anyway, it doesn't work all the way when I execute it in my game when I try
EDIT: I managed to shrink it. See explanation.
Maybe it won't work because it's for iTorque 2D? If so, making it for normal 2D would be greatly appreciated.
EDIT: My bad, I see the problem
I got a save/load code for the Plat former kit. (I'm using a different profile because the plat former kit one is one I have no access to now)
I have tried different ways, scripts and codes but this one has worked the best. That is not saying much. I am on the verge of giving up. Please help!
Anyway, it doesn't work all the way when I execute it in my game when I try
savegamedata();. I get the following error
EDIT: I managed to shrink it. See explanation.
==>savegamedata(); creating path /Users/Wol/Library/Application Support/MyStudio/MyGame/game/data/save/MyGameSaveData.cs game/gamescripts/saveprogress.cs (14): FileObject::readLine - wrong number of arguments. game/gamescripts/saveprogress.cs (14): usage: () Use the readLine method to read a single line from a file previously opened for reading. Use isEOF to check for end of file while reading. @return Returns the next line in the file, or a NULL string if the end-of-file has been reached. @sa isEOF, openForReadAnd the same script is repeated like a hundered times-literally! I am not exaggerating.
Maybe it won't work because it's for iTorque 2D? If so, making it for normal 2D would be greatly appreciated.
EDIT: My bad, I see the problem
About the author
The creator of HandDrawn. I keep this account seperate from my studio account.