Page 1 of 1

List names of saved variables

PostPosted: Mon Feb 28, 2011 7:48 pm
by tzoli
Hi.How can i write a list (in game) of variables from a file(variables save file)?
the data file doesn't made by this program

Re: List names of saved variables

PostPosted: Mon Feb 28, 2011 8:18 pm
by skydereign
It depends on what you are inputting, and the format of the file you are loading from, but here's an example of loading a bunch of strings into an array.
http://game-editor.com/forum/viewtopic.php?f=1&t=8984&hilit=+txt#p62607

Re: List names of saved variables

PostPosted: Tue Mar 01, 2011 2:38 pm
by tzoli
With loadVars can make it?

Re: List names of saved variables

PostPosted: Wed Mar 02, 2011 9:36 am
by needaname
not to barge in but id like to help. so you want to create a list of variables and put it into a file? what do you mean by doesn't made by this program? is the data not created by ge or is what?

Re: List names of saved variables

PostPosted: Thu Mar 03, 2011 4:09 pm
by tzoli
data created by an another ge game.And I wan't to read it from a file this list.

Re: List names of saved variables

PostPosted: Thu Mar 03, 2011 7:23 pm
by skydereign
If it is data from another game, then you can use saveVars and loadVars, or the method suggested in that link. Again, it depends on what you are inputting. If it is just a list of numbers or strings, then if you are more comfortable with saveVars and loadVars then you should use that.