Page 1 of 1
turning off the 1919 end game
Posted: Wed Nov 14, 2012 6:31 pm
by avoran
I've never been a modder but this is a worthwhile trick I used:
If you don't want the game to end automatically at the start of 1919, you need to edit the file game_victory_conditions.lua in the folder Commander The Great War/Data/Scripts/Game (using Notepad or something similar).
About 2/5 of the way down, under the header "Terminal condition - achieving this ends game" there's a line that says
"if game.date.year == 1919 then". Change "1919" to some other year, or if you don't want the game to end at all, you can put in a really big number or something less than 1914.
Now you can have the satisfaction of actually beating the opposing alliance into submission. Hopefully

Re: turning off the 1919 end game
Posted: Wed Nov 14, 2012 8:30 pm
by Myrddraal
I think this is officially the first guide to modding the game, albeit a very focused guide

We need a fanfare or something.
Re: turning off the 1919 end game
Posted: Wed Nov 14, 2012 8:39 pm
by lordzimoa
Re: turning off the 1919 end game
Posted: Mon Dec 10, 2012 2:23 am
by Rosseau
This is a great tip. I'm playing MP so don't want to try it now. Have you gotten past 1919 this way? I assume it works, as the lords did not disagree with you

Re: turning off the 1919 end game
Posted: Mon Dec 10, 2012 7:10 am
by avoran
It works. Don't remember for sure, but I think I've gone as late as 1921

Of course realism suffers because the techs run out, which they never would do in real life. OTOH it's not realistic, either, for the high command to know that the war will end on 31 December 1918 regardless of what happens.

Re: turning off the 1919 end game
Posted: Fri Jan 04, 2013 4:07 pm
by JLChamberlain
I tried editing that file with notepad, but I can't save the changes - Access is Denied. I'm running Windows 7. Is there a workaround?
Re: turning off the 1919 end game
Posted: Fri Jan 04, 2013 4:11 pm
by Myrddraal
If you're currently running the game, close it. Windows 7 permissions can be a pain. If you have admin rights, try running notepad as an administrator, then open the file from within the notepad (not by double clicking in explorer).
Re: turning off the 1919 end game
Posted: Sat Jan 05, 2013 1:17 am
by xriz
JLChamberlain wrote:I tried editing that file with notepad, but I can't save the changes - Access is Denied. I'm running Windows 7. Is there a workaround?
Yes I find this madding too. I open up two windows file explorers and place them side by side. One is opened to a sub directory under "my documents" folder I created. The second is opened up to the games *.lua directories, then I just "move" (drag and drop from one window to the other) the file I want to mod out of the game directory to the sub directory under "my documents" folder, make the changes and them move it back to the game folder.