Skip to content

Fix crash when recipe output is module and another crash when player opens equipment grid#1

Open
lesacar wants to merge 1 commit intoDeltaFA:mainfrom
lesacar:fix-module-and-equipment-grid
Open

Fix crash when recipe output is module and another crash when player opens equipment grid#1
lesacar wants to merge 1 commit intoDeltaFA:mainfrom
lesacar:fix-module-and-equipment-grid

Conversation

@lesacar
Copy link
Copy Markdown

@lesacar lesacar commented Sep 8, 2025

i've been making my own mod and wanted to add custom recipes that give quality without the rng grind, but noticed no matter if I used qrc_legendary_speed-module-3 or any variation of it or adding "quality = 'legendary" to the { ingredients } table, I just couldn't get it to work, either nothing would happen or I would get a crash, the issue was this mod checks data.raw.item[ITEM_NAME], but modules are their own separate thing in data.raw.module[ITEM_NAME], and they inherit all the item properties, so the fix was simple, and another issue I found was randomly putting my portable fission reactor in my armor but as soon as I opened the armor grid I got a crash, the fix was to just check that player.opened is not the grid since it's missing a key that other "openable" things have. I have not extensively tested this, but it shouldn't take long to test the original mod and my version with adding a custom module quality recipe and just opening the armor grid, if you don't want to create a sample mod to test quality module crafting you can also use my mod

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant