Jump to content

Modded Story Traits are broken


SGT_Imalas
  • Branch: Live Branch Version: Windows Fixed

The Stories class holds a method called AddStoryMod(Story mod), most likely intended for modders to add their own Story Traits.

Using this method however sets the parameter "kleiUseOnlyCoordinateOffset" to -1.

This results in a freeze on startup, since the method "Util.IntPow" called during CustomGameSettings.OnPrefabInit() never resolves itself with the parameters x=3 and pow = -1, resulting in an endless loop.


Steps to Reproduce

- Create a new story

- add it to stories via the method Db.Get().Stories.AddStoryMod(Story)

-> game freezes on startup




User Feedback


A developer has marked this issue as fixed. This means that the issue has been addressed in the current development build and will likely be in the next update.

Changed Status to Fixed

I've fixed this issue and also found a couple more issues in my testing including modded story traits not being placed in worldgen, thanks for letting us know. The intention behind adding AddStoryMod was to provide a way for modded story traits to be added without using the coordinates system, nothing more.

  • Like 3
  • Thanks 2

Share this comment


Link to comment
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
  • Create New...