Page 1 of 1

U-Boats for Austria?

Posted: Mon Apr 18, 2011 11:12 pm
by Random
Is it possible to mod the game so that Austria can build U-Boats (not additional SS units) for commerce destruction to add to those of Germany?

Tried editing the Nations.csv file to give Austria a u-boat but when the game is loaded, one cannot be built. The build menu shows u-boats for all nations but only Germany can actually build them.

Could not find any other game *.csv files or editable files where U-Boats are mentioned in any capacity, having checked the AI files, TurnRules.csv and GameRules.csv for both the GC scenarios.

Any advice is appreciated, thanks in advance.

Edit
Found it!

Open World War One Gold\Data\DB\ProductionCosts.csv and find the line:

[color="DarkGreen"]AUS;UB1;-1;Cost for building one U-Boot unit[/color]

After saving the unedited file, amend it to read:

[color="darkgreen"]AUS;UB1;15;Cost for building one U-Boot unit[/color]

or whatever cost you wish to impose and the build button will be active when you go to the unit construction menu. You can build up to three but that seems excessive given the Austrian ship building industry of that era.

Now the question becomes, does the game recognize non-German U-Boats in the submarine warfare model?

Posted: Tue Apr 19, 2011 7:37 am
by calvinus
Random wrote:Now the question becomes, does the game recognize non-German U-Boats in the submarine warfare model?


Yes, the game engine counts all uboots currently owned by Central Powers.

Posted: Tue Apr 19, 2011 3:07 pm
by Random
calvinus wrote:Yes, the game engine counts all uboots currently owned by Central Powers.

Excellent. Thank You!

Modders should know that this change is suitable for saved games and takes effect immediately when the game is loaded.

Posted: Wed Apr 20, 2011 2:43 pm
by RGA
Excellent work Random. :)

Posted: Thu Apr 21, 2011 12:39 am
by kirk23
Hello folks I'm new to all of this editing excel files stuff,the files are read only how do you change this to make them editable ?

Posted: Thu Apr 21, 2011 2:47 am
by Random
kirk23 wrote:Hello folks I'm new to all of this editing excel files stuff,the files are read only how do you change this to make them editable ?

The *.csv files should not have Read Only attributes and the *.xls files should not be protected. If you cannot change the attributes in the file properties I don't have an answer, sorry.

My advice to you would be to leave the M$ Excel files in the modding folder alone for clairity and edit the game files directly using a prefered text editor, generally M$ Notepad or M$ Wordpad.

Always save unedited copies of the original files someplace safe before editing anything, this allows you to restore the original game.

First post in this thread shows you the exact file path to find the ProductionCosts.csv file that allow Austrian u-boats to be built. The instruction assume a certain level of experiance at editing and saving text files; if you do not know how to do that and are not prepared to learn by trial and error I suggest don't touch. Editing other .csv files in the game is similar in principle if differing in the details.

You may edit the M$ Excel files and save them in the *.csv (comma delimited) format but they will likely require further editing before WW1G can read them. The game is VERY sensitive to punctuation and a comma (,), curly bracket ({ }), semi-colon ( ; ) or quotation marks (" ") out of place can cause no end of grief.

There are some editing examples kicking around the Forum, if you're not sure what you are doing, have a look at them and compare the edited files to those from the stock game. This will give you a better idea of what to do.

Good Luck.

Posted: Thu Apr 21, 2011 8:41 am
by kirk23
I have went into windows explorer,clicked on properties,and under the general tag the read only check box is clear,but when I open the file it still states that it is read only ?

Posted: Thu Apr 21, 2011 10:09 am
by kirk23
Update to previous post,I'm using windows 7 and it appears the changing the administrator settings works,because I now can edit the files.