Hey everyone, me again. I'm having an issue where my mod crashes things. It's only after I start a game, and always at least several minutes into it—sometimes as long as several hours. When I play using dev.exe, I don't get an error pop-up when the game crashes, nor is there anything useful in the debug file.
I've narrowed it down to an issue with the Vasari Loyalist faction specifically (all other factions will never crash the game). So this should be easy to solve, right? Just track down the files that are unique to Vasari Loyalist, and the problem should be in there. Except I have! Every relevant file is perfectly fine. (I even tested by removing their Titan from the game, then the Solitary Path research item. Still crashes.) As far as I can tell, there are no typos, no mistakes, no errors, no janky buff chains. Everything should legitimately be working fine, except it doesn't.
I've posted my mod files to GitHub. Please help me, I'm at the end of my rope here. I would love to release my mod to the public one day, but I can't do that if one whole faction (my favorite faction!) consistently crashes the game.
Update: used my standard troubleshooting technique (set up a four-player game in dev.exe, all the same (problem) faction, set player to AI, let the game run until it crashes), but this time with all research that's unique to Vasari Loyalists removed from their player file. It still crashed. But... that's it. That research and the player file itself are the only differences between the Vasari Loyalist and Vasari Rebel factions. I just compared the two player files, just in case, but there's nothing in the Vasari Loyalist player file that should be causing a crash. Everything is valid as far as I can tell. What the hell is going on?
Solution: LMAO it was the missing byte-order mark in the player file. Just had to change the encoding from UTF-8 to UTF-8-BOM and bam, no crashes. Game runs for 4+ hours now without any issues.