Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CTD eReplacementUnitClass #11569

Open
Ragnall opened this issue Jan 22, 2025 · 1 comment
Open

CTD eReplacementUnitClass #11569

Ragnall opened this issue Jan 22, 2025 · 1 comment

Comments

@Ragnall
Copy link

Ragnall commented Jan 22, 2025

Crash to desktop with the following error during AI player (Carthage) turn:

  • Expression: (int)eReplacementUnitClass>=0
  • File: CvPlayer.cpp
  • Line: 34713
  • eReplacementUnitClass is expected to be non-negative (invalid index).

VP version: Vox.Populi.4.18.4
(1) Community Patch
(2) Vox Populi (AssignStartingPlots.lua modified to increase natural wonders to 20 and reduced min_landmass_fertility fraction to 0.1)
(3a) VP - EUI Compatibility Files
(4a) Squads for VP

Modmods:
(9d) Reforestation for VP v.5
Greatest Cities (v 11)
InfoAddict (v 22)
InGame Editor+ (v 46) (with latest temporary fix for IGE_API_Terrain.lua posted 12 Jan 2025)
Tectonic Map Script (v 6)
Wonder Race (v 7)

I've included the last three save files but the crash was on the last one (turn 319).

Image

Logs_SaveFile_and_MiniDump.zip

@azum4roll
Copy link
Collaborator

The precondition is wrong; it should be possible to set replacement class back to NO_UNITCLASS (when you lose the tenet).

azum4roll added a commit to azum4roll/Community-Patch-DLL that referenced this issue Jan 23, 2025
accept NO_UNITCLASS as a valid value for eReplacementUnitClass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants