List names of saved variables

Non-platform specific questions.

List names of saved variables

Postby tzoli » Mon Feb 28, 2011 7:48 pm

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
Creepers are capable of climbing ladders, despite lacking arms. (Minecraft wiki)
User avatar
tzoli
 
Posts: 343
Joined: Sat Jun 12, 2010 6:54 pm
Location: Behind you
Score: 15 Give a positive score

Re: List names of saved variables

Postby skydereign » Mon Feb 28, 2011 8:18 pm

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
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score

Re: List names of saved variables

Postby tzoli » Tue Mar 01, 2011 2:38 pm

With loadVars can make it?
Creepers are capable of climbing ladders, despite lacking arms. (Minecraft wiki)
User avatar
tzoli
 
Posts: 343
Joined: Sat Jun 12, 2010 6:54 pm
Location: Behind you
Score: 15 Give a positive score

Re: List names of saved variables

Postby needaname » Wed Mar 02, 2011 9:36 am

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?
needaname
 
Posts: 69
Joined: Tue Nov 09, 2010 2:07 am
Score: 4 Give a positive score

Re: List names of saved variables

Postby tzoli » Thu Mar 03, 2011 4:09 pm

data created by an another ge game.And I wan't to read it from a file this list.
Creepers are capable of climbing ladders, despite lacking arms. (Minecraft wiki)
User avatar
tzoli
 
Posts: 343
Joined: Sat Jun 12, 2010 6:54 pm
Location: Behind you
Score: 15 Give a positive score

Re: List names of saved variables

Postby skydereign » Thu Mar 03, 2011 7:23 pm

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.
User avatar
skydereign
 
Posts: 3510
Joined: Mon Jul 28, 2008 8:29 am
Score: 589 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest