User avatar
Random
AGEod Veteran
Posts: 779
Joined: Fri May 21, 2010 4:10 pm

Modding garrisons question

Fri Aug 20, 2010 6:12 pm

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.
Attachments
Askaris in Prussia.JPG

User avatar
Random
AGEod Veteran
Posts: 779
Joined: Fri May 21, 2010 4:10 pm

Mon Aug 23, 2010 3:51 pm

<Bump> in hope of any response.

User avatar
PhilThib
Posts: 13705
Joined: Tue Oct 18, 2005 5:21 pm
Location: Meylan (France)

Mon Aug 23, 2010 3:52 pm

Please wait till Calvinus returns from his vacation :cool:
Image

User avatar
calvinus
Posts: 4681
Joined: Mon Dec 19, 2005 4:52 pm
Location: Italy
Contact: Website

Fri Aug 27, 2010 7:51 am

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. ;)

User avatar
Random
AGEod Veteran
Posts: 779
Joined: Fri May 21, 2010 4:10 pm

Fri Aug 27, 2010 4:42 pm

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.

User avatar
calvinus
Posts: 4681
Joined: Mon Dec 19, 2005 4:52 pm
Location: Italy
Contact: Website

Fri Aug 27, 2010 5:15 pm

Yes, it should work till the end of turn 18.

User avatar
Random
AGEod Veteran
Posts: 779
Joined: Fri May 21, 2010 4:10 pm

Fri Aug 27, 2010 9:37 pm

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.

User avatar
calvinus
Posts: 4681
Joined: Mon Dec 19, 2005 4:52 pm
Location: Italy
Contact: Website

Fri Aug 27, 2010 9:55 pm

Be sure you edited the proper CSV file.

User avatar
Random
AGEod Veteran
Posts: 779
Joined: Fri May 21, 2010 4:10 pm

Fri Aug 27, 2010 10:25 pm

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:
Attachments

[The extension xls has been deactivated and can no longer be displayed.]


User avatar
calvinus
Posts: 4681
Joined: Mon Dec 19, 2005 4:52 pm
Location: Italy
Contact: Website

Sat Aug 28, 2010 7:47 am

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.

User avatar
Random
AGEod Veteran
Posts: 779
Joined: Fri May 21, 2010 4:10 pm

Sat Aug 28, 2010 6:09 pm

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.

User avatar
Rafiki
Posts: 5811
Joined: Thu Aug 24, 2006 9:19 am
Location: Oslo, Norway

Mon Aug 30, 2010 9:41 am

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]
[CENTER]Latest patches: AACW :: NCP :: WIA :: ROP :: RUS :: PON :: AJE
Visit AGEWiki - your increasingly comprehensive source for information about AGE games
[SIGPIC][/SIGPIC]
[/CENTER]

User avatar
Random
AGEod Veteran
Posts: 779
Joined: Fri May 21, 2010 4:10 pm

Mon Aug 30, 2010 3:14 pm

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.
Attachments

[The extension csv has been deactivated and can no longer be displayed.]


User avatar
calvinus
Posts: 4681
Joined: Mon Dec 19, 2005 4:52 pm
Location: Italy
Contact: Website

Mon Aug 30, 2010 3:57 pm

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.

User avatar
calvinus
Posts: 4681
Joined: Mon Dec 19, 2005 4:52 pm
Location: Italy
Contact: Website

Mon Aug 30, 2010 4:51 pm

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).

User avatar
Random
AGEod Veteran
Posts: 779
Joined: Fri May 21, 2010 4:10 pm

Mon Aug 30, 2010 5:30 pm

Thank you Calvinus. The devil is, as always, in the details.

User avatar
calvinus
Posts: 4681
Joined: Mon Dec 19, 2005 4:52 pm
Location: Italy
Contact: Website

Mon Aug 30, 2010 5:59 pm

Random wrote:Thank you Calvinus. The devil is, as always, in the details.


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

User avatar
Random
AGEod Veteran
Posts: 779
Joined: Fri May 21, 2010 4:10 pm

Mon Aug 30, 2010 6:38 pm

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.
Attachments

[The extension csv has been deactivated and can no longer be displayed.]


User avatar
calvinus
Posts: 4681
Joined: Mon Dec 19, 2005 4:52 pm
Location: Italy
Contact: Website

Tue Aug 31, 2010 7:05 am

Exact, one copy of the rule for each German war-plan! :thumbsup:

Return to “WW1 : La Grande Guerre 14-18”

Who is online

Users browsing this forum: No registered users and 11 guests