Call to Arms - Gates of Hell: Ostfront

Call to Arms - Gates of Hell: Ostfront

5th Old Boy Vietnam Mod By Doc Erica and Team
FSB Mary Ann CIVILIAN DEATH MISSION FAILURE FIX
THIS NEEDS TO BE BEFORE YOU START A GAME. THIS FIX ONLY WORKS ON NEW CAMPAIGNS, NOT ONES THAT ARE STARTED ALREADY.


2 people saying "edit a file" or "use the map editor and edit the trigger". I didn't know where to look for the map file, or enough about the editor to know how to edit the file.

I figured it all out myself, and there are two ways to fix it.





FIX 1 - MANUAL EDITING

  1. Go to this location in File Explorer:
    C:\Program Files (x86)\Steam\steamapps\workshop\content\400750\3411657947\resource\map\single\08_usa_nam\01_mary_ann\
  2. Open the file named 0.mi in Notepad or Visual Studios, or any text editor by right clicking the file, and selecting Open With, then selecting Notepad.
  3. Once the file is open, press Ctrl+F to open the search function.
    Search for the word endgame
  4. There is only one instance of the word
    There will be a section that looks like this:
    {"civ/killed/endgame" {condition {terms {"1.entities" {selector {tag civi} {zone "gamezone"} {player "3"} {type human} {state dead} } {count {op ">"} {value 9} } } } }
  5. replace the "value 9" with "value 100"
  6. Ctrl+S to save the file
  7. Start a new campaign.



FIX 2 - Automatic Fix via Powershell

  1. Open Powershell.exe as an administrator (or powershell ISE if you know what you're doing).
  2. HEAVILY ASSUMING YOUR WORKSHOP FOLDER IS ON THE C:\ DRIVE IN IT'S DEFAULT LOCATION
    Copy the below code all into the Powershell window and hit enter.
    $map = "C:\Program Files (x86)\Steam\steamapps\workshop\content\400750\3411657947\resource\map\single\08_usa_nam\01_mary_ann\0.mi" $cont = Get-Content $map -Raw $pattern = '(?s)("civ/killed/endgame".*?{count.*?{value\s+)9(\s*})' $newcont = $cont -replace $pattern, '${1}100${2}' if (!($cont -eq $newcont)) { write "value changed" } else { write "No changes made - pattern not found" } $newcont | Set-Content $map[code/]
  3. This will do exactly what the first fix does, but automatically.
Last edited by @Will Smith; 24 Jun @ 5:20pm