Inconsistency scenario csv file

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.
Post Reply
Kalliser
Reactions:
Posts: 70
Joined: Sun Feb 06, 2011 5:33 am

Inconsistency scenario csv file

Post by Kalliser »

Hello,

I have noticed that some scenarios have a scenario csv file with a strange hierarchy.

For example :
In scenario GBCH05-July3-Take Back Those Works (U-Corps) from Gettysburg Cemetery Hill - Culps Hill Series mod
Here are the 2 first line of scenario.csv

Code: Select all

Maj Gen George G Meade,OOB_U_GGMeade,1,0,0,0,0,0,0,0.958107,0.286411,102105.8516,27356.79492,DRIL_LVL4_INF_LINE,1,0,0
Maj Gen John Newton,OOB_U_JNewton2,1,1,1,0,0,0,0,-0.248875,0.968536,102391.2344,26469.36328,DRIL_LVL4_INF_DOUBLELINE,1,0,0
If you watch carefully OOB_U_GGMeade is at Side level id 1
and OOB_U_JNewton2 is rattached to side 1, Army 1, Corps 1
but the link between the two is missing there is no element with Side 1, Army 1 existing

How the game is handling that ? can the Corps be directly rattached to Side level ?

if yes, what about lower level element ? can a regiment level element be rattached to an side level too or a corps or a division without have a complete hierarchy link ?
Last edited by Kalliser on Fri Aug 05, 2011 5:44 pm, edited 1 time in total.
User avatar
Little Powell
Reactions:
Posts: 4884
Joined: Thu Sep 18, 2008 10:25 am

Re: Inconsistency scenario csv file

Post by Little Powell »

How the game is handling that ? can the Corps be directly rattached to Side level ?
It's not the neatest most organized thing to do, but it does work. If not that scenario would never load. :)

if yes, what about lower level element ? can a regiment level element be rattached to an side level too or a corps or a division without have a complete hierarchy link ?
I've never tried that, but my guess would be it wouldn't work. I think it works on the Side/Corps level because I believe essentially the side commander acts as an army commander, therefore a Corps can be attached to him. Adukes is much more knowledgeable than me in this area, so maybe he can comment as well.
Last edited by Little Powell on Fri Aug 05, 2011 6:01 pm, edited 1 time in total.
Kalliser
Reactions:
Posts: 70
Joined: Sun Feb 06, 2011 5:33 am

Re: Inconsistency scenario csv file

Post by Kalliser »

My idea is maybe the hierarchy in scenario.csv is ignored and the game is using the oob hierarchy as a master. (because the information is present in both file) this can explain why it work, furthermore I have noticed more error in scenario.csv hirarchy like guns attached to an infantery brigade but ingame guns are attached to another commander.

Consider this brigade :

Code: Select all

Brig Gen George H Steuart,OOB_C_GHSteuart,2,1,1,1,1,0,0,0.68253,-0.730858,90641.98438,71361.85156,DRIL_LVL6_INF_SKIRMISH,1,0,0
1st Maryland Battalion,OOB_C_1_MDB,2,1,1,1,1,1,60,0.872473,-0.488662,97085.07813,68788,DRIL_LVL6_INF_SKIRMISH,230,6,9
1st North Carolina,OOB_C_1_NC,2,1,1,1,1,2,60,0.707336,-0.706881,93953.05469,74495.27344,DRIL_LVL6_INF_COLUMNBYDIVISION,347,6,9
3rd North Carolina,OOB_C_3_NC,2,1,1,1,1,3,60,0.09412,-0.995561,83824.85938,75024.05469,DRIL_LVL6_INF_LINE,538,6,9
10th Virginia,OOB_C_10_VA,2,1,1,1,1,4,60,0.669753,-0.742584,91880.82813,72510.59375,DRIL_LVL6_INF_LINEFIGHT,266,6,9
23rd Virginia,OOB_C_23_VA,2,1,1,1,1,5,60,0.699618,-0.714518,90816.53125,73955.79688,DRIL_LVL6_INF_LINE,251,6,9
37th Virginia,OOB_C_37_VA,2,1,1,1,1,6,60,-0.299027,-0.954245,88832,73472,DRIL_LVL6_INF_LINE,250,6,9
and next this guns battery

Code: Select all

Capt William F Dement,OOB_C_WFDement,2,1,1,1,1,0,0,0.865456,-0.500984,65319.28906,79525.44531,DRIL_LVL5_ART_LINE,1,0,0
#1 Gun / Left Section / 12lb Napoleon,OOB_C_WFDement_Gun_1,2,1,1,1,1,1,8,0.865456,-0.500984,66228.02344,78999.40625,DRIL_LVL6_ART_LINE,15,6,9
#3 Gun / Right Section / 12lb Napoleon,OOB_C_WFDement_Gun_2,2,1,1,1,1,2,8,0.865456,-0.500984,66483.52344,79440.78906,DRIL_LVL6_ART_LINE,15,6,9
#2 Gun / Left Section / 12lb Napoleon,OOB_C_WFDement_Gun_3,2,1,1,1,1,3,8,0.865456,-0.500984,65972.52344,78558.02344,DRIL_LVL6_ART_LINE,15,6,9
#4 Gun / Right Section / 12lb Napoleon,OOB_C_WFDement_Gun_4,2,1,1,1,1,4,8,0.865456,-0.500984,66739.02344,79882.17188,DRIL_LVL6_ART_LINE,15,6,9
The brigade hase no brigade identifier (set to 0)
The battery commander have brigade identifier too
And the guns try rattached to 2,1,1,1,1 wich is the same hierarchy than the brigade :S

But ingame this seems to work. It's why I think the game is not using hierarchy info in scenario.csv

My problem is this scenario is using a stock oob which is not available (oob csv are not present in game folders) so i'm unable to get the good hierarchy.
User avatar
Little Powell
Reactions:
Posts: 4884
Joined: Thu Sep 18, 2008 10:25 am

Re: Inconsistency scenario csv file

Post by Little Powell »

My problem is this scenario is using a stock oob which is not available (oob csv are not present in game folders) so i'm unable to get the good hierarchy.
Download the SDK and there you have the stock master OOBs.

http://www.scourgeofwar.com/Downloads/S ... Ver1_3.exe

The SDK is your friend. :)
User avatar
RebBugler
Reactions:
Posts: 4256
Joined: Sun Aug 03, 2008 12:51 am
Location: Ouachita Mountains, Arkansas

Re: Inconsistency scenario csv file

Post by RebBugler »

Those just look like scenario.csv errors to me. Where did that scenario come from?
Bugles & Flags Gettysburg - Toolbar, Flags, Scenarios, and More...
Kalliser
Reactions:
Posts: 70
Joined: Sun Feb 06, 2011 5:33 am

Re: Inconsistency scenario csv file

Post by Kalliser »

I guess there is no workaround about that...

SDK is a solution but I prefer to make it work without that.
User avatar
Little Powell
Reactions:
Posts: 4884
Joined: Thu Sep 18, 2008 10:25 am

Re: Inconsistency scenario csv file

Post by Little Powell »

I guess there is no workaround about that...

SDK is a solution but I prefer to make it work without that.
The scenario.csv's grab everything from the master OOBs found in the SDK. You can do alot of things with hierarchy of the scenario.csv's, and as long as it's reading correct info from the master OOBs, it will work. It's slightly different in Sandbox, the SB OOB's are basically master OOBs.
Post Reply