turning off the 1919 end game

A forum to discuss custom scenarios, campaigns and modding in general.

Moderators: Slitherine Core, The Lordz

Post Reply
avoran
Sergeant Major - Armoured Train
Sergeant Major - Armoured Train
Posts: 589
Joined: Wed Feb 02, 2011 1:45 pm
Location: Veliki Novgorod

turning off the 1919 end game

Post 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 :)
CEAW Grand Strategy fan
Commander: The Great War beta tester
Myrddraal
The Artistocrats
The Artistocrats
Posts: 1505
Joined: Wed Feb 23, 2011 2:49 pm

Re: turning off the 1919 end game

Post 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.
lordzimoa
Lordz Games Studio
Lordz Games Studio
Posts: 2417
Joined: Fri Oct 27, 2006 4:20 pm
Contact:

Re: turning off the 1919 end game

Post by lordzimoa »

Rosseau
Sergeant First Class - Panzer IIIL
Sergeant First Class - Panzer IIIL
Posts: 370
Joined: Sun Nov 15, 2009 5:27 am

Re: turning off the 1919 end game

Post 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 :D
avoran
Sergeant Major - Armoured Train
Sergeant Major - Armoured Train
Posts: 589
Joined: Wed Feb 02, 2011 1:45 pm
Location: Veliki Novgorod

Re: turning off the 1919 end game

Post 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. :)
CEAW Grand Strategy fan
Commander: The Great War beta tester
JLChamberlain
Corporal - Strongpoint
Corporal - Strongpoint
Posts: 56
Joined: Thu Aug 09, 2012 9:16 pm

Re: turning off the 1919 end game

Post 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?
Myrddraal
The Artistocrats
The Artistocrats
Posts: 1505
Joined: Wed Feb 23, 2011 2:49 pm

Re: turning off the 1919 end game

Post 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).
xriz
Administrative Corporal - SdKfz 251/1
Administrative Corporal - SdKfz  251/1
Posts: 148
Joined: Tue Oct 21, 2008 2:17 am
Location: Los Angeles

Re: turning off the 1919 end game

Post 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.
Post Reply

Return to “Commander the Great War : Mods & Scenario Design”