Page 1 of 1

Modding garrisons question

Posted: Fri Aug 20, 2010 6:12 pm
by Random
Is there any way to edit files to lock the German colonial garrison in their colonies for the duration? It is becoming a bit tiresome watching them flit around the British controlled high seas capturing ungarrisoned Entente colonies like the Falkland Islands, Singapore or French Indochina. Also seeing African troops fighting on the Ost front is a bit hard to take, I turned off FOW long enough to catch the attached screenshot of the SW Africa garrison in East Prussia.

My understanding is that in 1914 Germany possessed about 7000 colonial troops, compared to 157,000 French and 190,000 British (figures from Ferguson). That these gallent 7000 can frequently wreck havoc on the overseas holdings of the two greatest colonial powers of the age or show up on the European mainland is really frustrating, logistically impossible and totally ahistorical.

Please fix this or advise how a user might mod it away. Thanks in advance.

Posted: Mon Aug 23, 2010 3:51 pm
by Random
<Bump> in hope of any response.

Posted: Mon Aug 23, 2010 3:52 pm
by PhilThib
Please wait till Calvinus returns from his vacation :cool:

Posted: Fri Aug 27, 2010 7:51 am
by calvinus
There's a way, of course.

Look inside the TurnRules.xls/csv DB of the Grand Campaign scenario.
You'll find several TR_Immobilized rules rows... the syntax is very simple.
You can add some new rules for the stacks you want to "lock"...

Ask me for any details. ;)

Posted: Fri Aug 27, 2010 4:42 pm
by Random
Thank You Calvinus, hope you had a great holiday!

Question, so adding the text line;

[color="Red"]416;TR_Immobilized;1;18;-;GER;GER_50_a,GER_50_b,GER_50_c,GER_50_d,GER_Gar-Qin-Tao[/color]

... should serve to immobilize the German colonial garrisons for the first 18 turns? Previous last line in the TurnRules.csv file is 415.

Thanks in advance.

Posted: Fri Aug 27, 2010 5:15 pm
by calvinus
Yes, it should work till the end of turn 18.

Posted: Fri Aug 27, 2010 9:37 pm
by Random
calvinus wrote:Yes, it should work till the end of turn 18.

For some reason this doesn't work, the units are still mobile. Tried:

[color="Red"]416;TR_Immobilized;1;18;TP-Military;GER;GER_50_a,GER_50_b,GER_50_c,GER_50_d,GER_Gar-Qin-Tao[/color]

...and got the same results. These changes do not crash the sim but they do not seem to work either. Am I doing something wrong? Thanks in advance.

Posted: Fri Aug 27, 2010 9:55 pm
by calvinus
Be sure you edited the proper CSV file.

Posted: Fri Aug 27, 2010 10:25 pm
by Random
calvinus wrote:Be sure you edited the proper CSV file.

Double checked, twice.

C:\Program Files\World War One Gold\Data\DB\Goldscenarios\Grandcampaignfour\TurnRules.csv

...and when that had no effect tried:

C:\Program Files\World War One Gold\Data\DB\Scenarios\Grandcampaignfour\TurnRules.csv

Both tests started chosing the Four-Person campaign, niether had the German colonial garrisons locked. Curious.

Modded file attached as TurnRules.xls since one cannot upload a .csv file here:

Posted: Sat Aug 28, 2010 7:47 am
by calvinus
If I open your xls file I see it's not properly formatted in its columns.
So I suggest you first to mod the original xls file (Modding folder) by adding the new turn rule row (use MS Excel, of course). Then save the file once in xls format and finally save it in CSV format. Once saved in CSV format, move the CSV file to the proper folder and try the game.

Posted: Sat Aug 28, 2010 6:09 pm
by Random
calvinus wrote:If I open your xls file I see it's not properly formatted in its columns.
So I suggest you first to mod the original xls file (Modding folder) by adding the new turn rule row (use MS Excel, of course). Then save the file once in xls format and finally save it in CSV format. Once saved in CSV format, move the CSV file to the proper folder and try the game.

Actually a copy of the original file was edited using M$ Wordpad and saved as TurnRules.csv, the unedited original being moved to a safe location. Unfortunately forum rules forbid attaching .csv files so I had to convert it to .xls format to post it here.

The game file used is a properly formatted .csv file, I just cannot attach it here. Apologies if this was not clear.

Posted: Mon Aug 30, 2010 9:41 am
by Rafiki
Random wrote:The game file used is a properly formatted .csv file, I just cannot attach it here. Apologies if this was not clear.

[color="Blue"]Sure you can :) (now at least ;) )[/color]

Posted: Mon Aug 30, 2010 3:14 pm
by Random
Rafiki wrote:[color="Blue"]Sure you can :) (now at least ;) )[/color]

Right! Thank You.

Attached is an edited TurnRules.csv file for the 4-Person Campaign. Added is a text line to lock the German colonial garrisons until Turn-18 as discussed above. That I cannot find a formatting error does not mean one isn't there so any help is appreciated.

Thanks to Rafiki and in advance to Calvinus.

Posted: Mon Aug 30, 2010 3:57 pm
by calvinus
I found two errors:

1) TP-Military is wrong, use TP_Military
2) GER_Gar-Qin-Tao is wrong, use GER_Gar-QinTao

but the rule yet does not work. I don't recall if it works also for detachments (I'm pretty sure it works on armies and fleets). I'll investigate later.

Posted: Mon Aug 30, 2010 4:51 pm
by calvinus
Maybe I understood where's the problem...

TurnRules are parsed and applied when the Grand Campaign begins, in War-Plans Phase of Early August 1914 turn, when the concerned stacks are yet not existing! So the rule is not properly parsed and applied... :bonk:

The solution is to add the rule to the WarPlanTurnRules.xls/csv DB (unique for all campaign scenarios).

Posted: Mon Aug 30, 2010 5:30 pm
by Random
Thank you Calvinus. The devil is, as always, in the details.

Posted: Mon Aug 30, 2010 5:59 pm
by calvinus
Random wrote:Thank you Calvinus. The devil is, as always, in the details.


Yes! And WW1 is damnly full of details! :mdr:

Posted: Mon Aug 30, 2010 6:38 pm
by Random
calvinus wrote:Yes! And WW1 is damnly full of details! :mdr:

SUCCESS!!! Thank for the assistance!

The key was to create a seperate line for each German warplan, otherwise there was no apperant effect. So I added the following lines to the WarPlanTurnRules.csv file:

894;GER_WP_Schlieffen;TR_Immobilized;1;18;TP_Military;GER;GER_50_a,GER_50_b,GER_50_c,GER_50_d,GER_Gar-QinTao
895;GER_WP_Moltke;TR_Immobilized;1;18;TP_Military;GER;GER_50_a,GER_50_b,GER_50_c,GER_50_d,GER_Gar-QinTao
896;GER_WP_Kronprinz;TR_Immobilized;1;18;TP_Military;GER;GER_50_a,GER_50_b,GER_50_c,GER_50_d,GER_Gar-QinTao
897;GER_WP_Hindenburg;TR_Immobilized;1;18;TP_Military;GER;GER_50_a,GER_50_b,GER_50_c,GER_50_d,GER_Gar-QinTao
898;GER_WP_Rupprecht;TR_Immobilized;1;18;TP_Military;GER;GER_50_a,GER_50_b,GER_50_c,GER_50_d,GER_Gar-QinTao

Have attached the modded file for anyone interested in freezing the German colonial garrisons until mid 1916. Save the original file in a safe place and just copy the modded file into the World War One Gold\Data\DB folder.

No warrenties are implied, use at own risk etcetera, etcetera.

Posted: Tue Aug 31, 2010 7:05 am
by calvinus
Exact, one copy of the rule for each German war-plan! :thumbsup: