r/StellarisMods • • Sep 29 '26

Making a compatibility patch for a mod (SBY DTF) for Nomads

The modder has updated the mod to the modern patch but doesn't own Nomads and has no intention of getting it. I decided to make the compatibility patch myself, and the only error I've run into seems like it should be an easy fix, but I've run into walls with every try. Something in the mod is breaking nomad_country_initial_setup_effect, according to the error log. The result is the game runs "fine", but any nomadic civilization dies immediately on game start.
[effect_impl.cpp:241]: Script Error: Invalid context switch [capital_scope] from [country], common/scripted_effects/01_start_of_game_effects.txt:5000 @ scripted effect nomad_country_initial_setup_effect at file: events/game_start.txt line: 462, Scope: type=country id=12 opener_id=4294967295 random={ 0 783530488 } random_allowed=yes root= { type=none id=0 opener_id=4294967295 random={ 0 3830668810 } random_allowed=yes } from= { type=none id=0 opener_id=4294967295 random={ 0 3830668810 } random_allowed=yes } prev= { type=none id=0 opener_id=4294967295 random={ 0 3830668810 } random_allowed=yes } [12:14:05]
[effect_impl.cpp:20675]: could not get a coordinate from scope. common/scripted_effects/01_start_of_game_effects.txt:5150 @ scripted effect nomad_country_initial_setup_effect at file: events/game_start.txt line: 462 [12:14:05]
[effect_impl.cpp:20675]: could not get a coordinate from scope. common/scripted_effects/01_start_of_game_effects.txt:5156 @ scripted effect nomad_country_initial_setup_effect at file: events/game_start.txt line: 462
Looking through the mod I'm working with [ https://steamcommunity.com/sharedfiles/filedetails/?id=2682251859 ], I can't find anything that interacts with 01_start_of_game_effects.txt or game_start.txt (in Events) This leaves me unsure where to look from here. I'm not totally new to this, but my most complicated previous self-patch was editing planet building slot stuff.

all of the mod's internal files do the smart thing and have separate file names. 00_sby_on_actions.txt etc speaking of, I checked that to see which events were running on game start, and I can't find anything that jumps out.

12 Upvotes

4 comments sorted by

1

u/D4rkstalker Sep 30 '26

Looks like the mod is overwriting something in the gamestart scripted effects. Try removing every file in the mod's scripted effects folder and see if it still breaks

1

u/Background-Fly6395 Sep 30 '26

Will do, been trying other things and each load-up takes a bit.

1

u/Background-Fly6395 Sep 30 '26

yeah that worked, but obviously I need those scripted effects (a ton of stuff from the mod now isnt working). so where would I go from here to narrow down the troubleshooting