Theater.lst update utility by Malc

F4Browse, CATE, Tacedit, Terrainview & TheaterMaker etc utility related

Moderators: Lone Wolf, Snake Man

Post Reply
Snake Man
Commander-In-Chief
Posts: 9338
Joined: 2000-07-31 22:01:01
Gaming Interests: ArmA, ArmA 2, Falcon 4.0 and OFP.
Editing Interests: All, I (try) to edit everything.
Location: PMC
Contact:

Theater.lst update utility by Malc

Post by Snake Man » 2007-02-16 13:35:37

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.
Last edited by Snake Man on 2007-02-17 21:16:04, edited 3 times in total.
PMC Tactical Forum New User Registration please read new info here.

PMC since 1984

Editing knowledge, visit PMC Editing Wiki
The leading, most detailed and comprehensive modification made for the Vietnam War - Vietnam: The Experience homepage
View our videos in PMC Youtube channel

PMC Tactical forum Advanced Search is power.

"ALPHA BLACK TO PAPA BEAR. ALL RUSSIANS ARE TOAST. OVER."

T_Rex
FreeFalcon
Posts: 848
Joined: 2001-03-04 23:01:01
Location: here

Post by T_Rex » 2007-02-16 14:16:02

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.
Sic Semper tyrannosauro.

User avatar
Sherlock
Lt. General
Posts: 1167
Joined: 2006-05-24 22:01:01
Gaming Interests: Falcon 4.0
Editing Interests: All, I (try) to edit everything.
Location: Arizona, USA

Post by Sherlock » 2007-02-16 15:46:11

Nice work Malc. Thanks for sharing! :)
Sherlock
Victurous te Saluto

Malc
Lt Colonel
Posts: 294
Joined: 2000-12-24 23:01:01
Location: England
Contact:

Post by Malc » 2007-02-17 10:41:44

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... :)

Snake Man
Commander-In-Chief
Posts: 9338
Joined: 2000-07-31 22:01:01
Gaming Interests: ArmA, ArmA 2, Falcon 4.0 and OFP.
Editing Interests: All, I (try) to edit everything.
Location: PMC
Contact:

Post by Snake Man » 2007-02-17 11:30:38

New version added to the download page and first post edited. Thanks Malc.
PMC Tactical Forum New User Registration please read new info here.

PMC since 1984

Editing knowledge, visit PMC Editing Wiki
The leading, most detailed and comprehensive modification made for the Vietnam War - Vietnam: The Experience homepage
View our videos in PMC Youtube channel

PMC Tactical forum Advanced Search is power.

"ALPHA BLACK TO PAPA BEAR. ALL RUSSIANS ARE TOAST. OVER."

Snake Man
Commander-In-Chief
Posts: 9338
Joined: 2000-07-31 22:01:01
Gaming Interests: ArmA, ArmA 2, Falcon 4.0 and OFP.
Editing Interests: All, I (try) to edit everything.
Location: PMC
Contact:

Post by Snake Man » 2007-02-17 18:47:11

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 :)
PMC Tactical Forum New User Registration please read new info here.

PMC since 1984

Editing knowledge, visit PMC Editing Wiki
The leading, most detailed and comprehensive modification made for the Vietnam War - Vietnam: The Experience homepage
View our videos in PMC Youtube channel

PMC Tactical forum Advanced Search is power.

"ALPHA BLACK TO PAPA BEAR. ALL RUSSIANS ARE TOAST. OVER."

Malc
Lt Colonel
Posts: 294
Joined: 2000-12-24 23:01:01
Location: England
Contact:

Post by Malc » 2007-02-17 20:58:24

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!

Snake Man
Commander-In-Chief
Posts: 9338
Joined: 2000-07-31 22:01:01
Gaming Interests: ArmA, ArmA 2, Falcon 4.0 and OFP.
Editing Interests: All, I (try) to edit everything.
Location: PMC
Contact:

Post by Snake Man » 2007-02-17 21:17:13

lstupdate_v1.0.2.2.rar received and added to downloads page, first post in this topic updated. Good job Malc, thanks.
PMC Tactical Forum New User Registration please read new info here.

PMC since 1984

Editing knowledge, visit PMC Editing Wiki
The leading, most detailed and comprehensive modification made for the Vietnam War - Vietnam: The Experience homepage
View our videos in PMC Youtube channel

PMC Tactical forum Advanced Search is power.

"ALPHA BLACK TO PAPA BEAR. ALL RUSSIANS ARE TOAST. OVER."

Post Reply

Who is online

Users browsing this forum: No registered users and 15 guests