Page 1 of 4

TC2M -> SOWGB - Order Of Battle Converter

Posted: Sun Apr 11, 2010 10:44 am
by Garnier
I made a TC2M -> SOWGB OOB Converter, I've tested it with OB_2ndM and OB_3rdM as well as a bunch of my own OOBs, and they worked in SOWGB without any hand editing.

It is accessible in the Tools menu in the Order Of Battle Editor.

In the menu click "Tools -> TC2M - SOWGB Converter -> Convert File", select a TC2M OOB File, click open, and it converts the file to SOWGB format, saves it, and then opens it in the editor.

Image

I think this will save many many hours of time. :)

It is extendable (the sprite name replacements &c are in csv files) so it can be made to convert modded OOBs as well.

Re:TC2M -> SOWGB - Order Of Battle Converter - Available

Posted: Sun Apr 11, 2010 12:29 pm
by rudy
Thanks for this.

Where in the new game folder do I save the converted OOB?

Re:TC2M -> SOWGB - Order Of Battle Converter - Available

Posted: Sun Apr 11, 2010 12:36 pm
by Garnier
Modding isn't officially supported yet, but you can make a mod like this:

Create a folder called Mods in your gettysburg main folder. Inside Mods create a folder with your mod's name.

Then to use an OOB, inside your mod's folder that you made, create a folder called OOBs, and inside that place your OOB file. Note the OOB file name as far as I can tell has to start with "OOB_SB".

Re:TC2M -> SOWGB - Order Of Battle Converter - Available

Posted: Sun Apr 11, 2010 12:42 pm
by Southern Son
:dry:
I selected a TC2M OOB File, clicked open and got this message:

Invalid SOWGB OOB File 'OB_2ndM.csv'

:blush:

Re:TC2M -> SOWGB - Order Of Battle Converter - Available

Posted: Sun Apr 11, 2010 12:45 pm
by Garnier
That's because you tried to open it as a normal SOWGB OOB via the "File -> Open" menu. To CONVERT a TC2M oob you have to use the "Tools -> Converter -> Convert File" menu, as shown in the screenshot.

Re:TC2M -> SOWGB - Order Of Battle Converter - Available

Posted: Sun Apr 11, 2010 12:50 pm
by rudy
I've converted a TC2M OOB (Texas), renamed it as you indicated and placed it in the folders also as you indicated.

It then reads in the game, but when I click on it, I get a CTD.

What TC2M OOB's have you successfully converted?

Re:TC2M -> SOWGB - Order Of Battle Converter - Available

Posted: Sun Apr 11, 2010 12:54 pm
by Garnier
I converted the original OB_2ndM and OB_3rdM as well as tons of OOBs I generated with my old TC2M oob generator.

If the OOB you are converting is from a mod, and the OOB uses sprites, flags etc from the mod that arent in the original game, it won't work unless you edit the replacement csv files. I don't recommend doing that work yet unless you really want to and can figure it out. Once the SOW SDK is released it'll be easier to set up conversions from mods.

Re:TC2M -> SOWGB - Order Of Battle Converter - Available

Posted: Sun Apr 11, 2010 12:58 pm
by Southern Son
:blush: :blush: :blush:

It works, but i couldn't convert some of my own OOBs.
Got this message:
Invalid TC2M OOB File ' OB_1863_Brandy_Station1.csv ' :dry:

:blink:

Re:TC2M -> SOWGB - Order Of Battle Converter - Available

Posted: Sun Apr 11, 2010 1:01 pm
by rudy
I think that's the problem then. I modded TC2M with the CMP 3.0 a long time ago, so all of my favorite OOB's I have in that game are for CMP 3.0.

Look like I'll have to wait.

Re:TC2M -> SOWGB - Order Of Battle Converter - Available

Posted: Sun Apr 11, 2010 1:01 pm
by Garnier
It works, but i couldn't convert some of my own OOBs.
Got this message:
Invalid TC2M OOB File ' OB_1863_Brandy_Station1.csv '
Is the OOB you are trying to convert one that works in the original game without any mods?

If so, post the oob file and I'll look at it. If not, then read my post above about mod compatibility.