Miniloader (Redux)


UPS-friendly 1x1 loaders.

Content
a month ago
2.0
7.62K
Logistics

b Error and crash

a month ago

The mod Miniloader (Redux) (0.6.1) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event miniloader-redux::on_space_platform_built_entity (ID 75)
miniloader-redux/scripts/controller.lua:286: assertion failed!
stack traceback:
[C]: in function 'assert'
miniloader-redux/scripts/controller.lua:286: in function 'setup'
miniloader-redux/scripts/controller.lua:317: in function 'create'
miniloader-redux/scripts/event-setup.lua:36: in function 'handler'
miniloader-redux/stdlib/event/event.lua:345: in function 'pcall'
miniloader-redux/stdlib/event/event.lua:362: in function 'dispatch_event'
miniloader-redux/stdlib/event/event.lua:441: in function <miniloader-redux/stdlib/event/event.lua:399

a month ago

Thanks for reporting this! This error happens if an entity is added that already exists.

Did you do anything specific (especially undo/redo) when that happened. Do you have a save where you can reproduce the error.

This is in the category of "should not happen" (hence the assert) and that makes it intriguing to chase down.

a month ago

hmm i was building a factory in space but i wasnt building anything with a loader. I will see if it happens again, it happened to me twice so far.

a month ago

The save i have happens and the error get occur again at the same time. I tried it 3 times and they all crash at with the same error and timing and i'm not doing anything.

The mod Miniloader (Redux) (0.6.1) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event miniloader-redux::on_space_platform_built_entity (ID 75)
miniloader-redux/scripts/controller.lua:286: assertion failed!
stack traceback:
[C]: in function 'assert'
miniloader-redux/scripts/controller.lua:286: in function 'setup'
miniloader-redux/scripts/controller.lua:317: in function 'create'
miniloader-redux/scripts/event-setup.lua:36: in function 'handler'
miniloader-redux/stdlib/event/event.lua:345: in function 'pcall'
miniloader-redux/stdlib/event/event.lua:362: in function 'dispatch_event'
miniloader-redux/stdlib/event/event.lua:441: in function <miniloader-redux/stdlib/event/event.lua:399>

a month ago

went to download ver .6.0 and it happen even quicker
The mod Miniloader (Redux) (0.6.0) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event miniloader-redux::on_space_platform_built_entity (ID 75)
miniloader-redux/scripts/controller.lua:286: assertion failed!
stack traceback:
[C]: in function 'assert'
miniloader-redux/scripts/controller.lua:286: in function 'setup'
miniloader-redux/scripts/controller.lua:317: in function 'create'
miniloader-redux/scripts/event-setup.lua:37: in function 'handler'
miniloader-redux/stdlib/event/event.lua:345: in function 'pcall'
miniloader-redux/stdlib/event/event.lua:362: in function 'dispatch_event'
miniloader-redux/stdlib/event/event.lua:441: in function <miniloader-redux/stdlib/event/event.lua:399>

a month ago

I also get an error message when I try to place the white miniloader. Removing it doesn’t work either, not even with drones.

Die Mod Miniloader (Redux) (0.6.1) hat einen Fehler verursacht, der nicht behoben werden kann.
Bitte informiere den Autor der Mod über diesen Fehler.

Error while running event miniloader-redux::on_built_entity (ID 6)
miniloader-redux/scripts/controller.lua:181: assertion failed!
stack traceback:
[C]: in function 'assert'
miniloader-redux/scripts/controller.lua:181: in function 'create_loader'
miniloader-redux/scripts/controller.lua:293: in function 'setup'
miniloader-redux/scripts/controller.lua:317: in function 'create'
miniloader-redux/scripts/event-setup.lua:36: in function 'handler'
miniloader-redux/stdlib/event/event.lua:345: in function 'pcall'
miniloader-redux/stdlib/event/event.lua:362: in function 'dispatch_event'
miniloader-redux/stdlib/event/event.lua:441: in function <miniloader-redux/stdlib/event/event.lua:399>

a month ago

quote: This error happens if an entity is added that already exists. Did you do anything specific (especially undo/redo) when that happened.

"Yes, it happens with already placed miniloaders or blueprints when the item is missing and gets delivered later. Removing it doesn’t work either."

a month ago

I have only noticed this error on gleba

a month ago
(updated a month ago)

This should be fixed in 0.6.2

Here is what happened:
- the miniloader got destroyed somehow (I shot mine up, but it could be something else). In any case, the miniloader "died" and was replaced by a ghost. Except it wasn't because the "internal" entities kept hanging around and especially the state was not deleted.
- A robot showed up and wanted to rebuild the miniloader (replace the ghost with an entity again). That is a "robot constructed entity" event with the same id as the entity that was destroyed
- The internal code received the entity but already had state for it (because it was not deleted). That triggered the assertion.

This was caused in a roundabout way by a change to manage redo/undo which removed the "on_entity_died" from the list of events managed by the mod. Re-adding this fixed the problem (at least in my tests).

a month ago
(updated a month ago)

I just got it on 0.6.3

The mod Miniloader (Redux) (0.6.3) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event miniloader-redux::on_robot_built_entity (ID 17)
__miniloader-redux__/scripts/controller.lua:181: assertion failed!
stack traceback:
    [C]: in function 'assert'
    __miniloader-redux__/scripts/controller.lua:181: in function 'create_loader'
    __miniloader-redux__/scripts/controller.lua:293: in function 'setup'
    __miniloader-redux__/scripts/controller.lua:317: in function 'create'
    __miniloader-redux__/scripts/event-setup.lua:36: in function 'handler'
    __miniloader-redux__/stdlib/event/event.lua:345: in function 'pcall'
    __miniloader-redux__/stdlib/event/event.lua:362: in function 'dispatch_event'
    __miniloader-redux__/stdlib/event/event.lua:441: in function <__miniloader-redux__/stdlib/event/event.lua:399>

I was manually replacing some yellow miniloaders with red ones via the map.

(And I can reliably reproduce it)

a month ago

This is fixed in 0.6.4

a month ago

Thanks!

a month ago

The error still occurs on "Gleba" when placing something at a spot where the loader appears to be present, but isn’t really there and couldn’t be dismantled, an error message pops up immediately and the game crashes.

Die Mod Miniloader (Redux) (0.6.4) hat einen Fehler verursacht, der nicht behoben werden kann.
Bitte informiere den Autor der Mod über diesen Fehler.

Error while running event miniloader-redux::on_built_entity (ID 6)
miniloader-redux/scripts/controller.lua:181: assertion failed!
stack traceback:
[C]: in function 'assert'
miniloader-redux/scripts/controller.lua:181: in function 'create_loader'
miniloader-redux/scripts/controller.lua:293: in function 'setup'
miniloader-redux/scripts/controller.lua:317: in function 'create'
miniloader-redux/scripts/event-setup.lua:36: in function 'handler'
miniloader-redux/stdlib/event/event.lua:345: in function 'pcall'
miniloader-redux/stdlib/event/event.lua:362: in function 'dispatch_event'
miniloader-redux/stdlib/event/event.lua:441: in function <miniloader-redux/stdlib/event/event.lua:399>

a month ago

Weird. Will take a look.

a month ago

It is clear to me how that happens; what would be more interesting is why it happened. you wrote "a spot where the loader appears to be present but isn't really there". Is that from a failed attempt of removing a loader (iaw a game state that should not really exist) or did you do something to remove the miniloader but leave the (invisible) loader in place.

I consider adding some sanity checking to the code to resolve the invalid states but I would also be interested in what exactly you did to get into that state.

a month ago

So I pushed 0.6.5. This in itself will not yet solve the problem. What I need to you to do is load the game and then execute the /inspect-miniloaders console command that this release brings. One of two things should happen:

  • It reports something like "[Inspect Miniloaders] Invalid entities removed: Entities: 0, MiniLoaders: 0 / Internal Loaders: xxx / Internal Inserters: 0." where "xxx" is > 0. If that happens, you should be able to place the miniloader without that error.
  • It reports the same line with all "0" values. This would be concerning because it implies that in that position, there is an invisible entity that collides with the loader (the loader can not have an empty collision mask because then it would not connect to a belt). In that case, I will need either a game save or more detailed explanation what you were doing.

In either case, to be able to figure that out, I will need more information. :-) But I very much hope that running /inspect-miniloaders solves the problem.

a month ago

The command /inspect-miniloaders fixed the issue — I was able to remove the miniloaders that were visible but not actually present, and place them again on planet Gleba. This error hasn't occurred on any other planet so far! Thanks!

a month ago

Cool. Do you happen to have recorded the values from the "Invalid entities removed: ..." output line?

(I assumed that there were some half-baked miniloaders somewhere, related to previous bugs about upgrading/fast-replacing. Great that this turned out to be correct).

New response