Space Platform Hub Chests

by Kryzeth

Add space hub chests that can teleport items directly into their local space platform hubs. Fixed and modified from the original Space Placeform Chest mod by Corlin.

Content
17 days ago
2.0
3.61K
Logistics Circuit network Storage

b [Implemented] Suspected incompatibility

18 days ago

Hey, love the mod!

There seems to be compatibility issues when placing a space platform chest on a platform with the non-standard platform hub from Space Platform Hub MK2 by Powerscooter causes the following error, crashing the session:

The mod Space Platform Hub Chests (1.0.15) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event kry-space-platform-chests::on_space_platform_built_entity (ID 78)
kry-space-platform-chests/control.lua:203: attempt to index field 'hub' (a nil value)
stack traceback:
kry-space-platform-chests/control.lua:203: in function 'connect_ports'
kry-space-platform-chests/control.lua:197: in function 'create_wire_connection'
kry-space-platform-chests/control.lua:44: in function <kry-space-platform-chests/control.lua:36>

The chests work fine on space platforms with vanilla hubs.
Is it possible to make the chests compatible with these better hubs too?
Thanks!

18 days ago

Ahh, I believe the code is checking for the specific name of the vanilla prototype, and of course, fails to find it with modified Platform Hubs.

I should be able to fix this by searching for any hub prototype instead; will do when I get back!

18 days ago
(updated 18 days ago)

Amazing, thanks a lot!

Is there any chance you could add an option for the tech to require promethium science?
This way it is possible to turn the space platform chest into a nice reward for beating the game

17 days ago
(updated 17 days ago)

Updated to work with non-vanilla space platform hubs; it simply checks for any entity by that type instead (and confirmed it works with MK2)

Also added a setting to modify the level of science pack required to unlock the technology. It's not very granular, but it allows for basic vanilla nauvis + space (same as previous versions), all vanilla nauvis + space, all vanilla inner planets, all vanilla planets, and promethium + all vanilla planets.

Implemented both changes in v1.0.16

17 days ago

It works! Thanks!!

New response