Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me



Go Back   Dev Hardware ForumsSOFTWAREProgramming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Hardware Forums Sponsor:
  Trader Rating: 0 · #1  
Old December 8th, 2012, 12:34 PM
byrne byrne is offline
n00b DevH'er
Dev Hardware Newbie (0 - 499 posts)
 
Join Date: Dec 2012
Location: United States
Posts: 3 byrne User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 49 m 55 sec
Reputation Power: 0
Batch Save Text File

Hello, I am making a text based game in batch but I want the game to save progress in a text file. Including Inventory, Save Names, Health, and game progress. How would I go about doing this? For now I'd just like the progress save and possibly go into the other things later. Also, I didn't know to put this under DOS Batch or NT Batch, what one is correct?

Reply With Quote
  Trader Rating: 0 · #2  
Old December 8th, 2012, 04:21 PM
JohnFrank's Avatar
JohnFrank JohnFrank is offline
Contributing User
Click here for more information. Click here for more information
Click here for more information
 
Join Date: Jan 2008
Location: Lilyfield NSW Australia
Posts: 2,149 JohnFrank User rank is General 135th Grade (Above 100000 Reputation Level)JohnFrank User rank is General 135th Grade (Above 100000 Reputation Level)JohnFrank User rank is General 135th Grade (Above 100000 Reputation Level)JohnFrank User rank is General 135th Grade (Above 100000 Reputation Level)JohnFrank User rank is General 135th Grade (Above 100000 Reputation Level)JohnFrank User rank is General 135th Grade (Above 100000 Reputation Level)JohnFrank User rank is General 135th Grade (Above 100000 Reputation Level)JohnFrank User rank is General 135th Grade (Above 100000 Reputation Level)JohnFrank User rank is General 135th Grade (Above 100000 Reputation Level)JohnFrank User rank is General 135th Grade (Above 100000 Reputation Level)JohnFrank User rank is General 135th Grade (Above 100000 Reputation Level)JohnFrank User rank is General 135th Grade (Above 100000 Reputation Level)JohnFrank User rank is General 135th Grade (Above 100000 Reputation Level)JohnFrank User rank is General 135th Grade (Above 100000 Reputation Level)JohnFrank User rank is General 135th Grade (Above 100000 Reputation Level)JohnFrank User rank is General 135th Grade (Above 100000 Reputation Level)  Folding Points: 25499921 Folding Title: Super Ultimate Folder - Level 51Folding Points: 25499921 Folding Title: Super Ultimate Folder - Level 51Folding Points: 25499921 Folding Title: Super Ultimate Folder - Level 51Folding Points: 25499921 Folding Title: Super Ultimate Folder - Level 51Folding Points: 25499921 Folding Title: Super Ultimate Folder - Level 51Folding Points: 25499921 Folding Title: Super Ultimate Folder - Level 51Folding Points: 25499921 Folding Title: Super Ultimate Folder - Level 51Folding Points: 25499921 Folding Title: Super Ultimate Folder - Level 51Folding Points: 25499921 Folding Title: Super Ultimate Folder - Level 51Folding Points: 25499921 Folding Title: Super Ultimate Folder - Level 51
Time spent in forums: 3 Months 4 Weeks 1 Day 3 h 28 sec
Reputation Power: 9968
Send a message via MSN to JohnFrank
Facebook
There are several batch software programs which one are you using?

The batch in these forums normally refers to the batch command line utility for processing command lines in a batch (.bat) script.
__________________

Reply With Quote
  Trader Rating: 0 · #3  
Old December 8th, 2012, 10:30 PM
byrne byrne is offline
n00b DevH'er
Dev Hardware Newbie (0 - 499 posts)
 
Join Date: Dec 2012
Location: United States
Posts: 3 byrne User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 49 m 55 sec
Reputation Power: 0
I'm just saving code in a .bat file and running it.

Reply With Quote
  Trader Rating: 0 · #4  
Old December 8th, 2012, 10:45 PM
JohnFrank's Avatar
JohnFrank JohnFrank is offline
Contributing User
Click here for more information. Click here for more information
Click here for more information
 
Join Date: Jan 2008
Location: Lilyfield NSW Australia
Posts: 2,149 JohnFrank User rank is General 135th Grade (Above 100000 Reputation Level)JohnFrank User rank is General 135th Grade (Above 100000 Reputation Level)JohnFrank User rank is General 135th Grade (Above 100000 Reputation Level)JohnFrank User rank is General 135th Grade (Above 100000 Reputation Level)JohnFrank User rank is General 135th Grade (Above 100000 Reputation Level)JohnFrank User rank is General 135th Grade (Above 100000 Reputation Level)JohnFrank User rank is General 135th Grade (Above 100000 Reputation Level)JohnFrank User rank is General 135th Grade (Above 100000 Reputation Level)JohnFrank User rank is General 135th Grade (Above 100000 Reputation Level)JohnFrank User rank is General 135th Grade (Above 100000 Reputation Level)JohnFrank User rank is General 135th Grade (Above 100000 Reputation Level)JohnFrank User rank is General 135th Grade (Above 100000 Reputation Level)JohnFrank User rank is General 135th Grade (Above 100000 Reputation Level)JohnFrank User rank is General 135th Grade (Above 100000 Reputation Level)JohnFrank User rank is General 135th Grade (Above 100000 Reputation Level)JohnFrank User rank is General 135th Grade (Above 100000 Reputation Level)  Folding Points: 25499921 Folding Title: Super Ultimate Folder - Level 51Folding Points: 25499921 Folding Title: Super Ultimate Folder - Level 51Folding Points: 25499921 Folding Title: Super Ultimate Folder - Level 51Folding Points: 25499921 Folding Title: Super Ultimate Folder - Level 51Folding Points: 25499921 Folding Title: Super Ultimate Folder - Level 51Folding Points: 25499921 Folding Title: Super Ultimate Folder - Level 51Folding Points: 25499921 Folding Title: Super Ultimate Folder - Level 51Folding Points: 25499921 Folding Title: Super Ultimate Folder - Level 51Folding Points: 25499921 Folding Title: Super Ultimate Folder - Level 51Folding Points: 25499921 Folding Title: Super Ultimate Folder - Level 51
Time spent in forums: 3 Months 4 Weeks 1 Day 3 h 28 sec
Reputation Power: 9968
Send a message via MSN to JohnFrank
Facebook
I don't know how you are going to make a game out of a batch file, so that is interesting.

To redirect text output to a file you just run the program or command and "> filename" at the end of the line (no quotes) to send the standard text output to the file named filename in this example.

Reply With Quote
  Trader Rating: 0 · #5  
Old December 9th, 2012, 12:42 PM
byrne byrne is offline
n00b DevH'er
Dev Hardware Newbie (0 - 499 posts)
 
Join Date: Dec 2012
Location: United States
Posts: 3 byrne User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 49 m 55 sec
Reputation Power: 0
I was making a text based zombie sort of thing. =). Can it read the file and look for things such as a name of the player they submitted before?

Reply With Quote
  Trader Rating: 0 · #6  
Old December 9th, 2012, 03:56 PM
JohnFrank's Avatar
JohnFrank JohnFrank is offline
Contributing User
Click here for more information. Click here for more information
Click here for more information
 
Join Date: Jan 2008
Location: Lilyfield NSW Australia
Posts: 2,149 JohnFrank User rank is General 135th Grade (Above 100000 Reputation Level)JohnFrank User rank is General 135th Grade (Above 100000 Reputation Level)JohnFrank User rank is General 135th Grade (Above 100000 Reputation Level)JohnFrank User rank is General 135th Grade (Above 100000 Reputation Level)JohnFrank User rank is General 135th Grade (Above 100000 Reputation Level)JohnFrank User rank is General 135th Grade (Above 100000 Reputation Level)JohnFrank User rank is General 135th Grade (Above 100000 Reputation Level)JohnFrank User rank is General 135th Grade (Above 100000 Reputation Level)JohnFrank User rank is General 135th Grade (Above 100000 Reputation Level)JohnFrank User rank is General 135th Grade (Above 100000 Reputation Level)JohnFrank User rank is General 135th Grade (Above 100000 Reputation Level)JohnFrank User rank is General 135th Grade (Above 100000 Reputation Level)JohnFrank User rank is General 135th Grade (Above 100000 Reputation Level)JohnFrank User rank is General 135th Grade (Above 100000 Reputation Level)JohnFrank User rank is General 135th Grade (Above 100000 Reputation Level)JohnFrank User rank is General 135th Grade (Above 100000 Reputation Level)  Folding Points: 25499921 Folding Title: Super Ultimate Folder - Level 51Folding Points: 25499921 Folding Title: Super Ultimate Folder - Level 51Folding Points: 25499921 Folding Title: Super Ultimate Folder - Level 51Folding Points: 25499921 Folding Title: Super Ultimate Folder - Level 51Folding Points: 25499921 Folding Title: Super Ultimate Folder - Level 51Folding Points: 25499921 Folding Title: Super Ultimate Folder - Level 51Folding Points: 25499921 Folding Title: Super Ultimate Folder - Level 51Folding Points: 25499921 Folding Title: Super Ultimate Folder - Level 51Folding Points: 25499921 Folding Title: Super Ultimate Folder - Level 51Folding Points: 25499921 Folding Title: Super Ultimate Folder - Level 51
Time spent in forums: 3 Months 4 Weeks 1 Day 3 h 28 sec
Reputation Power: 9968
Send a message via MSN to JohnFrank
Facebook
I am sure there are utilities outside of normal batch commands that can help, you will need to search for them.

What you are trying to do sounds more like something you would do with a unix shell script.

Reply With Quote
Reply

Viewing: Dev Hardware ForumsSOFTWAREProgramming > Batch Save Text File


Developer Shed Affiliates

 


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
     
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap