Page 1 of 1

Theater.lst update utility by Malc

Posted: 2007-02-16 13:35:37
by Snake Man
Malc released lstupdate v1.0.2.2 theater.lst file editing utility.

Here is the readme

Code: Select all

This program edits the theater.lst file in the current active F4 or AF directory.

Useage
..\lstupdate.exe [AF|F4] [+|-]description

[AF|F4]
Use AF to look for Allied Force installation
Use F4 to look for Falcon4 installation

[+|-]
Use + to add the description
Use - to remove the description

description
Describe the line to add or remove, e.g. panama\definitions\panama.tdf

Notes:
v1.0.2.2
- Fixed a bug where the commandline parameter was not being interpreted properly, resulting in a hang! Right royal f***-up this one. Am I trying to do too much with this...?
- Fixed a bug where similar lines would be deleted. For example, if you wanted to delete "europe\definitions\europe.tdf" and you had three entries - "..\europe.tdf", "..\europe2005.tdf", and "..\europe2010.tdf" - all three were deleted at once. While in practice this might not be a problem per se, it was a bug and it bothered me.

v1.0.2.1
- Improved error-checking to allow for changes in case of description (i.e. Proper, all lower-case, etc.) while retaining original casing as desired.

v1.0.2
- Changed name, dropped AF, now lstupdate.exe
- Added option to work with either Allied Force or Falcon4 installs.
- Added more error-checking.

v1.0.1
- Added error-checking to ensure no spaces were at the start of the description, and remove them if there is.
- Added a cleaning routine to remove blank lines and any crap from theater.lst that didn't look it should be there.

v1.0.0
- There should be no spaces between the [+|-] and the description.
- Use backslashes (\) to maintain commonality with LP default theaters.
- Example - ..\lstupdate.exe AF +panama\definitions\panama.tdf

Any problems, suggestions, etc. - (email removed)
I have tested it and it works nicely. Its okay now as it reads the Falcon 4 path from the registry directly, also it neatly cleans the theater.lst for unecessary empty spaces.

Looks good, thanks for the utility Malc!

Download here - 12kb.

Posted: 2007-02-16 14:16:02
by T_Rex
Bah! And here, I thought I was *special* - got a super-secret link and everything!

*bwaaaaah*

;)

But seriously, yeah - that a good utility to have.

Posted: 2007-02-16 15:46:11
by Sherlock
Nice work Malc. Thanks for sharing! :)

Posted: 2007-02-17 10:41:44
by Malc
Just sent Snake Man version 1.0.2.1 which has better error-checking while allowing for description letter case to remain as intended (in previous versions everything was made lowercase). Although this was changed in 1.0.2 the error-checking could be tripped up when removing lines if the description wasn't exactly the same as the theater.lst entry.

All in all, 1.0.2.1 is a helluva lot more "user-friendly" than 1.0.0 ever was... but I'm like that see... :)

Posted: 2007-02-17 11:30:38
by Snake Man
New version added to the download page and first post edited. Thanks Malc.

Posted: 2007-02-17 18:47:11
by Snake Man
Malc asked me to remove the v1.0.2.1 so now there is only the lstupdate_v1.0.2.rar online. Malc will update us all soon I hope :)

Posted: 2007-02-17 20:58:24
by Malc
1.0.2.2 on the wires to SM now.

I've gotten a wee bit too complicated with this, I feel. Ultimately, if its used as designed - lstupdate.exe [AF|F4] [+|-]description - it works and works well. Unpredictable results may occur if the command-line parameters are not as designed. I've fell into the trap of trying to account for every error someone might ever make, and as a result its gotten too complicated. Perhaps I need to be less fussy... :)

Used as designed it will serve us well. If you do happen to come across an error WHICH IS PREVALENT WHEN COMMAND-LINE PARAMETERS ARE ENTERED AS DESIGNED, please let me know!

Posted: 2007-02-17 21:17:13
by Snake Man
lstupdate_v1.0.2.2.rar received and added to downloads page, first post in this topic updated. Good job Malc, thanks.