Modding OOBs

This is where our experts try to teach you the very flexible modding system for our previous release - SOW Gettysburg and its add-ons. It's powerful, but dangerous. Post your tips and your questions.
User avatar
norb
Reactions:
Posts: 3778
Joined: Mon Nov 26, 2007 9:59 am
Location: Central Florida
Contact:

Re:Modding OOBs

Post by norb »

I wonder if open office is putting quotes in the cells. I don't have it or I would check. If someone would just paste the csv output of some lines from an open office csv we could see what the problem is.
Marching Thru Georgia
Reactions:
Posts: 1769
Joined: Mon Mar 29, 2010 9:56 pm

Re:Modding OOBs

Post by Marching Thru Georgia »

Norb:
I did some checking concerning Open Office after Little Powell mentioned it, and it turns out that the program puts extra commas in for blank cells. So all rows need to be exactly the same length and no extra columns beyond the last cell that contains data. It's definitely not the program to use in modding SOW. :angry: It might be a good idea to mention this in the SDK manual.
I can make this march and I will make Georgia howl.
Jim
Reactions:
Posts: 1082
Joined: Tue Nov 27, 2007 8:53 am

Re:Modding OOBs

Post by Jim »

I did a test with version 3.2.0 of Open Office Calc. With the default settings, it was adding a quotation mark as a delimiter around each text field. This does not work at least for battlescript.csv files:

Default values:
"Time","ID NAME","Command","X Coord","Z Coord","time var"
,"TDIH Day 1",,,,
10:00:00 AM,"OOB_U_GGMeade","hideunit",,,
10:00:00 AM,"OOB_C_JLongstreet","Ahideunit",,,
10:00:00 AM,"OOB_C_RRansom","Ashowunit",,,
10:00:00 AM,"OOB_C_RRansom","detach",,,
10:00:00 AM,"OOB_C_RRansom","Amoveto",96252,90783,
10:00:00 AM,"OOB_C_RRansom","orders:attack",,,
10:00:00 AM,"OOB_C_RRansom","Tactics:5",96252,90783,
10:00:00 AM,"OOB_U_GSykes","courier:OOB_U_SWCrawford:loadscreen:Courier:TD_1_1",,,
10:00:01 AM,"OOB_U_GSykes","hideunit",,,
10:00:20 AM,,"logmsg:courier:TD_1_1",,,
,,,,,
10:40:00 AM,,"endscenario",,,


When you open a csv file in OO, a dialog box pops up. In the separator section of this popup, the default in 'Text delimiter' is: ". If you erase this and then open the file, it saves the resulting csv file without the extra "s and the resulting battlescript.csv file runs correctly. So far I have not found a way to make this the default behavior so you have to remember to do it every time you load a csv file with OO. :unsure:

With text delimiter value erased on load:

Time,ID NAME,Command,X Coord,Z Coord,time var
,TDIH Day 1,,,,
10:00:00 AM,OOB_U_GGMeade,hideunit,,,
10:00:00 AM,OOB_C_JLongstreet,Ahideunit,,,
10:00:00 AM,OOB_C_RRansom,Ashowunit,,,
10:00:00 AM,OOB_C_RRansom,detach,,,
10:00:00 AM,OOB_C_RRansom,Amoveto,96252,90783,
10:00:00 AM,OOB_C_RRansom,orders:attack,,,
10:00:00 AM,OOB_C_RRansom,Tactics:5,96252,90783,
10:00:00 AM,OOB_U_GSykes,courier:OOB_U_SWCrawford:loadscreen:Courier:TD_1_1,,,
10:00:01 AM,OOB_U_GSykes,hideunit,,,
10:00:20 AM,,logmsg:courier:TD_1_1,,,
,,,,,
10:40:00 AM,,endscenario,,,

-Jim
"My God, if we've not got a cool brain and a big one too, to manage this affair, the nation is ruined forever." Unknown private, 14th Vermont, 2 July 1863
User avatar
norb
Reactions:
Posts: 3778
Joined: Mon Nov 26, 2007 9:59 am
Location: Central Florida
Contact:

Re:Modding OOBs

Post by norb »

Thanks Jim.
Post Reply