Search found 4 matches

by RobinTendo
01 Mar 2021 02:44
Forum: DOS Batch Forum
Topic: How does this script work?
Replies: 1
Views: 3129

How does this script work?

Okay so, this isn't really a problem I'm having, but just a question. Someone recommended me this script for saving and loading: :save set sav> savegame.sav cls echo Progress Saved! pause>nul cls goto gamemenu :loadgame for /f "usebackq delims=" %%x in (savegame.sav) do set "%%x" cls echo Game Loade...
by RobinTendo
19 Feb 2021 11:43
Forum: DOS Batch Forum
Topic: Problem loading variable from file
Replies: 6
Views: 7041

Re: Problem loading variable from file

:save ( set money set story set name ) > settings.ini :load for /f "usebackq delims=" %%x in (.\settings.ini) do set "%%x" I tried this method, and the saving part works, but when loading my file crashes. This is my code: :load for /f "usebackq delims=" %%x in (savegame.sav) do set "%%x" cls echo G...
by RobinTendo
19 Feb 2021 01:44
Forum: DOS Batch Forum
Topic: Problem loading variable from file
Replies: 6
Views: 7041

Re: Problem loading variable from file

Hi, thanks for the post. But I'm kind of new to batch programming, and I dont really know how this works or how to implement it in my own script. Could you explain that a little further please? Thanks :D
by RobinTendo
18 Feb 2021 07:37
Forum: DOS Batch Forum
Topic: Problem loading variable from file
Replies: 6
Views: 7041

Problem loading variable from file

So I'm making a batch game, and wanted to be able to save progress. After some searching this is what I came up with, although it might be completely wrong. Save script: :save cls echo %money%>money.sgf echo %story%>story.sgf echo %name%>name.sgf goto gamemenu Load script: :loadgame cls set /p money...