Set HQ Location

If you liked this item, please rate it up on Steam Workshop page.

Author: inge.rasch

Last revision: 16 Apr, 2016 at 08:47 UTC

File size: 749.57 KB

On Steam Workshop

Description:
Description:

This mod allows you to define the starting location for XCOM.
It will only work if you start a new campaign.

Please note that the starting mission will be a random location. This is deliberate.

Known issues:

-Sometimes the first spawned blacksite will be in a random area far from where the player starts.

Compatibility issues:

Confirmed compatibility issue, for some users, with Sadbot’s QuickStart mod:
http://steamcommunity.com/sharedfiles/filedetails/?id=624624424
I am trying to find the issue and fix it (if possible).

There seems to be an issue with this mod when enabling the console commands. That is undet Steam’s launch options "-allowconsole -log -autodebug".

Configuration:

It’s configurable from XComSetHQLocation.ini
For Windows users, this file can be located here:
C:Program Files (x86)Steamsteamappsworkshopcontent268500635253356

The default region has been set to Western Europe (WorldRegion_WestEU), but can be changed to any one of them. All regions from DefaultGameBoard.ini *should* work.

List of regions from vanilla XCOM2:
WorldRegion_EastNA, WorldRegion_WestNA, WorldRegion_SouthNA, WorldRegion_NorthSA, WorldRegion_SouthSA, WorldRegion_WestEU, WorldRegion_EastEU, WorldRegion_NorthAF, WorldRegion_EastAF, WorldRegion_SouthAF, WorldRegion_EastAS, WorldRegion_WestAS, WorldRegion_NorthAS, WorldRegion_SouthAS, WorldRegion_NorthOC, WorldRegion_SouthOC

In depth guide to setting this up in Windows:

Go to the folder:
C:Program Files (x86)Steamsteamappsworkshopcontent268500635253356Config
Open this file:
XComSetHQLocation.ini
Change this line:
NEW_HQ_LOCATION="WorldRegion_WestEU"
to whatever region you wish to use. The comment lists all regions.
One example would be
NEW_HQ_LOCATION="WorldRegion_EastNA"
for the eastern north american region.
Save and start up XCom2. Your starting region should now be the one you chose.
Note, there is currently a bug where if you choose the same region as the one that is randomly selected by the game, it get’s messed up.
If the first mission is set in the region you selected, you should probably just restart right away.

Troubleshooting:

If there are trouble getting a region to work, please check the log-file:
C:UsersuserDocumentsMy GamesXCOM2XComGameLogsLaunch.txt
This mod’s entries start with "SetHQLocation: Mod loaded on new campaign.",
and ends with "SetHQLocation: Setup finished. Enjoy this fantastic game :)".

The most common error is if the region in the config doesn’t match the game state, which should now add the following line to the log-file:
SetHQLocation: Failure! Configured region can’t be found within the game.
SetHQLocation: Region in config: ***NAME FROM CONFIG FILE HERE***
SetHQLocation: Please check the spelling in XComSetHQLocation.ini.
SetHQLocation: Mod will not change the starting location.
SetHQLocation: Mod terminating.

Also, there seems to be some issues for Mac users to get mods in general to work.

CHANGE NOTES:

16.04.2016 – Update 6: Updated the mod to add the "Gameplay" tag on Steam, to increase visibility for the mod.
13.04.2016 – Update 5: Restructured and optimized the code a lot. The mod will now try to catch and prevent the mod from making changes if there are bad states.
Fixed a bug that caused issues when trying to set the new region to the one created at random by the game.
Fixed a bug (actually bad design here :P) that caused the original HQ location to be deleted, preventing players from getting the continent bonus from that continent.
11.03.2016 – Update 4: Removed previous bug fix, as it caused another bug.
10.03.2016 – Update 2 and 3: Fixed a bug that caused issues when trying to set the new region to the one created at random by the game. Also removed the source classes, taking this mod from 20MB down to 8KB!!!
02.03.2016 – Update 1: Added some additional log file messages to help me debug the problems some of you are having.