1.

Solve : Batch Game Save?

Answer»

I am currently creating a batch game (297 lines of coding on my first DAY!!!) but I can't get it to save your progress. PLEASE HELP. ANYTHING WILL BE APRECIATED!!!We'll have to see the code to help....
save to a txt, like this
Quote

name1 - progress1
name2 - progress2
What i did in my batch game ,FOUND here odn.t35.com/DEAD , was have all game features set in variables, when save is pressed have all variables sent to a file similar to this...

score 993

Then for load, i used for /f and seperated it as TOKENS.. so score WOULD become %%a and 993 would become %%b for example:


for /f "tokens=1*" %%a in (savefile.txt) Do set %%a=%%b


Discussion

No Comment Found