Jump to content

Codex Critter entry generators ignore _-s, but sidescreen links don't


Aki Art
  • Branch: Live Branch Version: Windows Pending

In the class CodexEntryGenerator_Creatures, when creating the subentry ID-s, the link is added as the raw prefab ID.
But when the critter is selected, the side screen tries to point to an ID with removed `_` characters.

Mods very very often use _-s as a way to namespace their ID-s. This leads to broken CODEX links from modded critters without hacky fixes.

Example:
I add a critter named Beached_Slickshell
In CodexEntryGenerator_Creatures class, the SubEntry ID gets generated for the main morph as "Beached_Slickshell".
But when the critter is selected in the world, the expected codex entry is looked for at BEACHEDSLICKSHELL (from DetailsScreen.CodexEntryButton_GetCodexId)
Since this ID does not exist, the codex button is greyed out, and even if the species page is opened manually the morph links lead to a dead page.

image.png.93bdbccc19e4b93b1efd886606dbd9e2.png


This makes it more difficult for other modders to add critters, often leaving modded creatures with broken Codex-es.

 


Steps to Reproduce

- Add a critter with any ID that contains _ character

- Codex does not generate correctly

  • Like 1
  • Sad Dupe 1



User Feedback


There are no comments to display.



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...