TOAW III Scenario Viewer

Norm Koger's The Operational Art of War III is the next game in the award-winning Operational Art of War game series. TOAW3 is updated and enhanced version of the TOAW: Century of Warfare game series. TOAW3 is a turn based game covering operational warfare from 1850-2015. Game scale is from 2.5km to 50km and half day to full week turns. TOAW3 scenarios have been designed by over 70 designers and included over 130 scenarios. TOAW3 comes complete with a full game editor.

Moderators: ralphtricky, JAMiAM

User avatar
parmenio
Posts: 268
Joined: Thu Aug 06, 2009 8:02 am
Location: United Kingdom

TOAW III Scenario Viewer

Post by parmenio »

I've recently updated a utility I wrote a while back to load and parse scenario text dump files from the TOAW III Editor. The sections are displayed in a navigable tree in one pane and the contents of a section in another when a tree node selected. It's been ported to C# (the original was written in C++) to ease updating it to the new XML scenario format going forward. In addition, because of the issue with the detailed equipment inventory (i.e. Force 2 doesn't display correctly) it can use the XML OOB dump from the editor to generate this information (always assuming the XML OOB dump is correct). If a .OOB file exists with the same name in the same location as the .TXT file it will use it. I've also further enhanced it to allow navigating through equipment types and seeing what units (sorted by formation) have that equipment assigned - sort of a reverse view of the sections that show formations and units. It can help you, for example, determine which formations have ferry-bridging teams or engineer squads or rail-repair units etc. without wading through the entire OOB unit by unit.

There are some screenshots using Overlord 44 from the Classic TOAW folder that probably explain it better:

Application once a dump file is loaded:

Image

A formation node:

Image

The complete Allied inventory calculated from Overlord 44.oob:

Image

Where are my Engineer squads?

Image

It's called the TOAW III Scenario Viewer and is available for download from here.

Hopefully it will be of use to others.
Wargame Design Studio
Lead Programmer
https://wargameds.com/
User avatar
Silvanski
Posts: 2511
Joined: Sun Jan 23, 2005 3:16 pm
Location: Belgium, residing in TX-USA

RE: TOAW III Scenario Viewer

Post by Silvanski »

ORIGINAL: parmenio

I've also further enhanced it to allow navigating through equipment types and seeing what units (sorted by formation) have that equipment assigned
That is a brilliant feature[&o]
The TOAW Redux Dude
User avatar
L`zard
Posts: 362
Joined: Fri Jun 03, 2005 6:12 am
Location: Oregon, USA

RE: TOAW III Scenario Viewer

Post by L`zard »

ORIGINAL: Silvanski

ORIGINAL: parmenio

I've also further enhanced it to allow navigating through equipment types and seeing what units (sorted by formation) have that equipment assigned
That is a brilliant feature[&o]

@Sil; "aint this guy the cat's pajamas" ????

Hiself needs drafted to Toad, less I miss my guess, LOLOL!
"I have the brain of a genius, and the heart of a little child! I keep them in a jar under my bed."

User avatar
Boonierat
Posts: 528
Joined: Tue Nov 11, 2003 7:46 pm
Location: The Boonies
Contact:

RE: TOAW III Scenario Viewer

Post by Boonierat »

Your site seems to be down right now, I'll try later, maybe you should upload it to Gamesquad as well [8D]
Image
User avatar
parmenio
Posts: 268
Joined: Thu Aug 06, 2009 8:02 am
Location: United Kingdom

RE: TOAW III Scenario Viewer

Post by parmenio »

ORIGINAL: Boonierat

Your site seems to be down right now, I'll try later, maybe you should upload it to Gamesquad as well [8D]

Site seems to be ok at the moment.

Upload to Gamesquad? .....tried and failed....twice. [&:]

Is that a permissions thing?
Wargame Design Studio
Lead Programmer
https://wargameds.com/
User avatar
Boonierat
Posts: 528
Joined: Tue Nov 11, 2003 7:46 pm
Location: The Boonies
Contact:

RE: TOAW III Scenario Viewer

Post by Boonierat »

Cheers, I can access it now.
Image
damezzi
Posts: 299
Joined: Wed Jul 18, 2007 2:02 am

RE: TOAW III Scenario Viewer

Post by damezzi »

ORIGINAL: L`zard

ORIGINAL: Silvanski

ORIGINAL: parmenio

I've also further enhanced it to allow navigating through equipment types and seeing what units (sorted by formation) have that equipment assigned
That is a brilliant feature[&o]

@Sil; "aint this guy the cat's pajamas" ????

Hiself needs drafted to Toad, less I miss my guess, LOLOL!


Parmenio may fill the empty daytime coder seat from Toad.

Seriously (as if I wasn`t serious)... thanks Parmenio for your efforts.
User avatar
laska2k8
Posts: 556
Joined: Fri Nov 18, 2005 8:17 am
Location: Italy

RE: TOAW III Scenario Viewer

Post by laska2k8 »

crash at startup...

maybe need some libriaries ?
"Sa vida pro sa Patria"
kenwolfe
Posts: 51
Joined: Wed Mar 12, 2008 4:02 am
Contact:

RE: TOAW III Scenario Viewer

Post by kenwolfe »

I had a problem trying to load the TXT and OOB exports from the Italian Campaign 1943-1945 scenario. It came up with this message:

Unhandled exception ' ' hexadecimal value 0x01 is an invalid character, line 11323 position 30.

I think it is getting hung up on this line from the dump:

Unit:16 RF PzGr HQ,16 RF PzGr Div (2298)
This is an SS unit and the unit name includes the special lightning-bolt character. XMLPad Pro also flags this in the OOB as an invalid token. I presume removing the special characters from the dump and/or the OOB would resolve this. The problem is, after I encounter this problem once the utility will not even start up any more, even after I uninstall and reinstall it. I have tried this on two different Windows XP machines with the same result, one is at Service Pack 2 and the other at SP3. Any suggestions? Thanks.


Ken Wolfe
Winnipeg, Manitoba, Canada
User avatar
parmenio
Posts: 268
Joined: Thu Aug 06, 2009 8:02 am
Location: United Kingdom

RE: TOAW III Scenario Viewer

Post by parmenio »

ORIGINAL: laska2k4

crash at startup...

maybe need some libriaries ?

Details of the crash?

It may be the same as above...
Wargame Design Studio
Lead Programmer
https://wargameds.com/
User avatar
parmenio
Posts: 268
Joined: Thu Aug 06, 2009 8:02 am
Location: United Kingdom

RE: TOAW III Scenario Viewer

Post by parmenio »

I think it is getting hung up on this line from the dump:

Unit:16 RF PzGr HQ,16 RF PzGr Div (2298)

I've got exactly the same problem with the "Holland - A Bridge Too Far 1944" scenario - chock full of invalid characters in the unit names. I ended up having to open it up in a HEX editor and do a "search and replace" to get rid of them. Can't work round it - the XmlTextReader expects characters that are text.

It looks like the uninstall is failing to remove a registry entry...

In "HKEY_LOCAL_MACHINE\SOFTWARE\Matrix Games\The Operational Art of War III" is an entry named "scenario viewer". Delete it or clear it - that's the "last file opened". I'm about to release a new version, so I'll add a workaround for this problem.

Edit: Alternatively, if you don't want to edit the registry, temporarily rename the OOB file. The text dump should display, you'll just see a number of odd characters appearing in the display.
Wargame Design Studio
Lead Programmer
https://wargameds.com/
User avatar
parmenio
Posts: 268
Joined: Thu Aug 06, 2009 8:02 am
Location: United Kingdom

RE: TOAW III Scenario Viewer

Post by parmenio »

Can't work round it - the XmlTextReader expects characters that are text.

Actually I can work round it.... I'm basically going to pre-process the file to translate the lightning bolt (hex 01) to an 'S'. So, for example your problematic unit will appear as '16SS RF PzGr Div'.

I'll do that for both the TXT and OOB files.

Wargame Design Studio
Lead Programmer
https://wargameds.com/
kenwolfe
Posts: 51
Joined: Wed Mar 12, 2008 4:02 am
Contact:

RE: TOAW III Scenario Viewer

Post by kenwolfe »

I renamed the OOB and now the viewer starts up fine, thanks. For now I'll just manually change all the invalid characters in the OOB file to printable ones using XMLPad... I've had to do that in the past just so that XMLPad will process the XML file properly.
Ken Wolfe
Winnipeg, Manitoba, Canada
User avatar
parmenio
Posts: 268
Joined: Thu Aug 06, 2009 8:02 am
Location: United Kingdom

RE: TOAW III Scenario Viewer

Post by parmenio »

New update released:

TOAW III Scenario Viewer 1.1.0.0

New features: A new "Places" node will be displayed if an MML file is present for a scenario. This also provides named location information for another new feature - a replacement "Deployment" node (per force) calculated from the OOB file. This provides a turn by turn view of formations and units. In addition, the unit names are hyperlinks. Clicking on them will open up a Unit Info dialog. These dialogs are closed either by clicking on the usual "x" in the top right corner or automatically after two minutes. This feature has also been added to the "Complete Inventory" nodes.

Note: Up to now, SS rune characters (present in a number of scenarios) caused the TOAW III Scenario Viewer to throw exceptions when reading an OOB file and would cause odd characters to appear in a TXT dump. These lightning bolts are now converted to 'SS' and should no longer cause problems.

Known limitation: The new Deployment nodes currently don't display units activated via an event. I want to add in using the Event XML file in the next version so that information on the event can be displayed rather than the raw event no.

Screenshots:

New deployment section:

Image

New Unit Info dialog:

Image

New Places section:

Image

Updated inventory section:

Image

Note: The Places section display is from Overlord 44, the rest from Holland - A Bridge Too Far 1944.
Wargame Design Studio
Lead Programmer
https://wargameds.com/
Erik2
Posts: 785
Joined: Thu Nov 02, 2000 10:00 am
Location: Oslo, Norway

RE: TOAW III Scenario Viewer

Post by Erik2 »

Excellent...

Erik
User avatar
parmenio
Posts: 268
Joined: Thu Aug 06, 2009 8:02 am
Location: United Kingdom

RE: TOAW III Scenario Viewer

Post by parmenio »

Version 1.1.1.0 update

I've had to do an update to the Viewer due to a bug I discovered today....

24th September 2009. Bug fix/Change release

Change: Now adds a "Deployed by Event" node to the Deployment section if required.
Fix: Duplicate formation names no longer cause problems.

Wargame Design Studio
Lead Programmer
https://wargameds.com/
User avatar
ralphtricky
Posts: 6675
Joined: Sun Jul 27, 2003 4:05 am
Location: Colorado Springs
Contact:

RE: TOAW III Scenario Viewer

Post by ralphtricky »

Awesome tool!
Ralph Trickey
TOAW IV Programmer
Blog: http://operationalwarfare.com
---
My comments are my own, and do not represent the views of any other person or entity. Nothing that I say should be construed in any way as a promise of anything.
User avatar
Boonierat
Posts: 528
Joined: Tue Nov 11, 2003 7:46 pm
Location: The Boonies
Contact:

RE: TOAW III Scenario Viewer

Post by Boonierat »

You should wrap it with 3.4 Ralph [8D]
Image
User avatar
ralphtricky
Posts: 6675
Joined: Sun Jul 27, 2003 4:05 am
Location: Colorado Springs
Contact:

RE: TOAW III Scenario Viewer

Post by ralphtricky »

ORIGINAL: Boonierat

You should wrap it with 3.4 Ralph [8D]
I'd love to. I need to check with Matrix to see if there are any issues with doing that.
Ralph Trickey
TOAW IV Programmer
Blog: http://operationalwarfare.com
---
My comments are my own, and do not represent the views of any other person or entity. Nothing that I say should be construed in any way as a promise of anything.
macgregor
Posts: 1058
Joined: Tue Feb 10, 2004 6:44 pm

RE: TOAW III Scenario Viewer

Post by macgregor »

Please forgive this dumb question. But what is this for -just viewing units? Monster scenarios where one needs to find equipment jammed up in the rear? It doesn't allow one to edit? i have yet to get an editor to work without crashing. But i'm having other problems with this game. For the second time in EA, practically the entire German army and air force has been stopped by units with a strength of 5 or less, causing 7-9% casualties and almost none to the defender. We're talking 20+ to 1. Whatever special circumstances are responsible I'm sorry, but that's too much of a combat power differential. It's like the defenders are killing 12 germans each without loss.
Post Reply

Return to “Norm Koger's The Operational Art Of War III”