XCOM 2
[WOTC] PGO: Custom Projects & Bridges
 This topic has been pinned, so it's probably important
Hotl3looded  [developer] 16 Oct, 2020 @ 7:29pm
CREATE CUSTOM PROJECT
Proving Ground Overhaul is a powerful tool that lets you create custom projects from configs. I will show you how by using a concrete example.

Let's say you wish to create a Proving Ground project to craft an Advanced Scope.

FIRST STEP
First step is obviously to create the project.

1- go to modpath/config/XComPGOverhaulTechs.ini
2- add a new "arrCreateCustomProject" entry for the new project

This entry will create the project and it only takes a few seconds to setup

For our examples, we would add the following entry:
+arrCreateCustomProject=(TechName="CraftAdvScope", SortingTier=3, bRepeatable=true, Rewards[0]="AimUpgrade_Adv", TechImage="img:///UILibrary_StrategyImages.ResearchTech.TECH_Modular_Weapons")

Let's recapitulate what I did:
  • Named the template of my new project "CraftAdvScope"
  • SortingTier determines the position of the project in the Proving Ground screen
  • bRepeatable= true makes the project repeatable
  • The project rewards an Advanced Scope upon completion
  • I don't have a custom image for the project so I used an image from base game

Open your game and check if the project works. It should have no duration, no requirement, no cost, no name and no description. But it should show in the Proving Ground as an empty rectangle and it should reward you with an Advanced Scope.

SECOND STEP
The project is created and it should work right now but we might wish to add a cost, requirements and a time to complete.

1- go to modpath/config/XComStrategyTuning.ini
2- add time to complete, requirements and cost

For our examples, it would look like this:
[CraftAdvScope X2TechTemplate] PointsToComplete=600 Requirements=(RequiredTechs[0]="MagnetizedWeapons") Cost=(ResourceCosts[0]=(ItemTemplateName="Supplies", Quantity=20), ArtifactCosts[0]=(ItemTemplateName="EleriumCore", Quantity=1))

Let's recapitulate what I did:
  • The new project takes 5 days to complete (PointsToComplete = Days * 5 * 24)
  • The new project will only be available once you research MagnetizedWeapons
  • The new project will cost 20x Supplies and 1x EleriumCore

THIRD STEP
Now for the final step, we need to add a Title and a Description to the project.

1- go to modpath/localization/XComGame.int*
* (.int is for English, choose the extension that corresponds with your language)
2- add localization to the new project

For the example used, it would be:
[CraftAdvScope X2TechTemplate] DisplayName="Craft Advanced Scope" Summary="Advanced Scope can be crafted with this project"

That's it! Your custom project is now finished. For more examples, see the config files of the main mod.