| www.ClassicTW.com https://mail.black-squirrel.com/ |
|
| TWX Game Reset https://mail.black-squirrel.com/viewtopic.php?f=15&t=32316 |
Page 1 of 1 |
| Author: | Spectre [ Fri Sep 23, 2011 12:54 pm ] |
| Post subject: | TWX Game Reset |
Tonight will be the first rebang of a game I have used TWX in. Obviously I need to manually delete the various text files created by some of the scripts. Is there a way to reset the data that TWX has kept on the game? I know Swath has a reset option but I don't see anything like that for TWX. Do I just delete the game in setup and add it back in? |
|
| Author: | Oso [ Fri Sep 23, 2011 3:39 pm ] |
| Post subject: | Re: TWX Game Reset |
That is how I would do it. You can delete the database from inside the TWX command line, but I've always had problems that way. |
|
| Author: | T0yman [ Fri Sep 23, 2011 4:01 pm ] |
| Post subject: | Re: TWX Game Reset |
There was a version of TWX that had a reset option, but it was never implemented in the newest release 2.05. |
|
| Author: | Archy [ Fri Sep 23, 2011 10:34 pm ] | ||
| Post subject: | Re: TWX Game Reset | ||
I have found that using the internal delete option in TWX setup to delete databases works fine as long as i exit TWX AFTER i delete the database and re-enter BEFORE i create a new database. Also there may be a number of files created in the TWX root folder by various scripts that you run. You need to delete these files manually. I have created a batch file that i use to delete the extra files from the TWX root but it requires that you use a naming convention when creating these files. Most of them are generally created using the database name as part of the filename. Example: GAMENAME_sectorlist.txt where GAMENAME is the name of the database for the game you are playing. So if I were playing in game A on UTW i would name the database UTWA and whenever i need to give a script a filename i would precede it with UTWA_ ... so the filename might end up as UTWA_SECTORLIST.txt. The batch file i created asks for the database name and after showing a list of the files it proposes to delete and waiting for confirmation it will delete all files that contain UTWA_ in the name. I will attach the batch file to this post. Place it in your TWX root and make a shortcut to it on your desktop. NOTE that this batch file does NOT delete the actual databases. I usually do that from within TWX's setup before i run this batch file.
|
|||
| Author: | Spectre [ Sat Sep 24, 2011 9:22 am ] |
| Post subject: | Re: TWX Game Reset |
ok, thanks for the advice. Seem to be up and running in the new game with no conflicts |
|
| Author: | Promethius [ Sun Sep 25, 2011 1:57 pm ] |
| Post subject: | Re: TWX Game Reset |
I just sort my TWX directory by date and delete - being careful to verify the file names before I hit the delete button. Most of my scripts, but not all, use the GAMENAME_xxxxxx.txt naming convention to make it easier. |
|
| Author: | Vid Kid [ Sun Sep 25, 2011 8:08 pm ] |
| Post subject: | Re: TWX Game Reset |
I use Archy's file to delete game txt files .. a no brainer and very quick & clean. Great job , I think every player should get the .cmd and make a shortcut to it because it will help in cleaning all those leftover files from the TWX root directory. Archy is a wiz when it comes to .cmd and .bat files. He even has a few for sysops to help setup games too. Thank you Archy |
|
| Author: | ElderProphet [ Mon Sep 26, 2011 11:42 pm ] |
| Post subject: | Re: TWX Game Reset |
Archy wrote: I have created a batch file that i use to delete the extra files from the TWX root but it requires that you use a naming convention when creating these files. Most of them are generally created using the database name as part of the filename. Example: GAMENAME_sectorlist.txt where GAMENAME is the name of the database for the game you are playing. Brilliant. Currently, when you press Delete, you are prompted with a message dialog asking 'Are you sure you want to delete this database?'. I could add an additional dialog if the user clicks YES, that says 'Remove all files labelled $GAMENAME_?', and have it perform this function. Also, I was hesitant to implement Maniac's Rebang button, but I find myself clearing and recreating the same database a lot, so I'll work to add this into my builds. |
|
| Author: | T0yman [ Tue Sep 27, 2011 6:53 am ] |
| Post subject: | Re: TWX Game Reset |
Sounds Great EP, I miss that button |
|
| Page 1 of 1 | All times are UTC - 5 hours |
| Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |
|