View unanswered posts | View active topics It is currently Sat Apr 25, 2026 10:17 pm



Reply to topic  [ 9 posts ] 
 TWX Game Reset 
Author Message
1st Sergeant

Joined: Mon Aug 01, 2011 12:11 pm
Posts: 31
Unread post 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?


Fri Sep 23, 2011 12:54 pm
Profile
Commander

Joined: Wed Apr 14, 2004 2:00 am
Posts: 1324
Location: USA
Unread post 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.

_________________
Infecting others with a Polymorphic Virus since 1975.

Curing ignorance and terminal stupidity since 1999.

Questioning the intellectual abilities of three digit annual salary earners since 2015.


Fri Sep 23, 2011 3:39 pm
Profile WWW
Veteran Op
User avatar

Joined: Sat Dec 29, 2007 5:06 pm
Posts: 2059
Location: Oklahoma
Unread post 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.

_________________
T0yman (Permanently Retired since 2012)
Proverbs 17:28 <-- Don't know it, most should it would stop a lot of the discussions on here.


Fri Sep 23, 2011 4:01 pm
Profile ICQ YIM WWW
Immortal Op
User avatar

Joined: Fri Jun 25, 2010 6:33 am
Posts: 257
Location: Sydney Australia
Unread post 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.


Attachments:
File comment: A batch file to clear files created by various scripts after a game has finished.
ClearTWX.zip [581 Bytes]
Downloaded 494 times

_________________
Teamspeak3: 60.242.57.40:9987
Z-Bot does my dirty work!
Fri Sep 23, 2011 10:34 pm
Profile ICQ
1st Sergeant

Joined: Mon Aug 01, 2011 12:11 pm
Posts: 31
Unread post Re: TWX Game Reset
ok, thanks for the advice. Seem to be up and running in the new game with no conflicts


Sat Sep 24, 2011 9:22 am
Profile
Ambassador
User avatar

Joined: Mon Feb 09, 2004 3:00 am
Posts: 3141
Location: Kansas
Unread post 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.

_________________
               / Promethius / Enigma / Wolfen /

"A man who has no skills can be taught, a man who has no honor has nothing."


Sun Sep 25, 2011 1:57 pm
Profile ICQ
Commander

Joined: Sun Feb 25, 2001 3:00 am
Posts: 1838
Location: Guam USA
Unread post 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 :D

_________________
TWGS V2 Vids World on Guam Port 2002
Telnet://vkworld.ddns.net:2002
Discord @ DiverDave#8374
Vid's World Discord

Founding Member -=[Team Kraaken]=- Ka Pla

Image
Winners of Gridwars 2010
MBN Fall Tournament 2011 winners Team Kraaken
Undisputed Champions of 2019 HHT Just for showing up!

The Oldist , Longist Running , Orginal Registered Owner of a TWGS server :
Vids World On Guam


Sun Sep 25, 2011 8:08 pm
Profile WWW
Commander
User avatar

Joined: Tue Oct 07, 2003 2:00 am
Posts: 1134
Location: Augusta, GA
Unread post 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.

_________________
Claim to Fame: only guy to ever crack the TW haggle algorithm, and fig/shield/hold price formula, twice.


Mon Sep 26, 2011 11:42 pm
Profile WWW
Veteran Op
User avatar

Joined: Sat Dec 29, 2007 5:06 pm
Posts: 2059
Location: Oklahoma
Unread post Re: TWX Game Reset
Sounds Great EP, I miss that button :)

_________________
T0yman (Permanently Retired since 2012)
Proverbs 17:28 <-- Don't know it, most should it would stop a lot of the discussions on here.


Tue Sep 27, 2011 6:53 am
Profile ICQ YIM WWW
Display posts from previous:  Sort by  
Reply to topic   [ 9 posts ] 

Who is online

Users browsing this forum: No registered users and 34 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by wSTSoftware.