Mods with many GUIs or key bindings crash

Published by mensreamc on
Status
Migrated
Issue description

Getting this error https://pastebin.com/tFsvp4zz trying to add a new procedure to a mod that I made in the last snapshot. It works with all the stuff I added in the snapshot but anything new I try to add gives me that error.

I'm getting this error while trying to create a new world or load an existing one. The error shows up in the games log file.

Issue comments

Please attach your exported workspace in ZIP and tell me how to reproduce this crash in the game.

I can reproduce this. The problem is that there is a limit to the number of network packages one can register per bus. Each GUI registers two packets and each key binding registers one. This means one can hit the limit of 256 packets per bus.

Currently, there is no way around this in 2020.1, I will check what can be done to overcome this in the future updates.

A solution that would be worth considering is to use single package type for all GUIs and single type for all key bindings, I will consider doing this in the future.