Ionfrigate12345 / MercenariesForMeContinued

GNU General Public License v3.0
0 stars 1 forks source link

Ordered mercenaries never spawn #2

Closed ArcaneZedric closed 1 month ago

ArcaneZedric commented 1 month ago

Issue: timer ticks down to zero minutes, mercs never arrive.

Another mod ("Level Up!") provides occasional alerts that a named friendly pawn has reached level 4 in a skill, so some of the mercs are being generated at least to the point where their skills are being set - but none are ever spawned. The zero timer notification stays on screen forever.

Confirmed to occur in game with the following features, not sure which are relevant:

ArcaneZedric commented 1 month ago

Issue seems to be related to ad79c00b948fda73f1e01da90cafe30f4d51df15, which does not check to see if Ideology DLC is installed before calling its functions.

Example fix included below.

pgr.ForceNoIdeo = true;

// check if Ideo is installed before using it
if (ModsConfig.IdeologyActive) {
    p.ideo.SetIdeo(null);
}

int cAge = //etc
ArcaneZedric commented 1 month ago

Merged with suggested fix