Ghost Counter


Generate a list of all ghosts in your selection area or the blueprint in your cursor using the shortcut button or hotkey (default: Ctrl+G). Find out what you have in your inventory, and conveniently make one-time logistic requests for everything you need.

Utilities
9 months ago
1.1 - 2.0
26.4K
Logistic network Circuit network Blueprints

g [2.0.1] Crash with quality requests

9 months ago
(updated 9 months ago)

Space Age, version 2.0.18

Error MainLoop.cpp:1432: Exception at tick 4297757: The mod Ghost Counter (2.0.1) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event ghost-counter::on_nth_tick(10)
ghost-counter/scripts/core.lua:381: attempt to concatenate field 'quality' (a nil value)
stack traceback:
ghost-counter/scripts/core.lua:381: in function 'update_logistics_info'
ghost-counter/scripts/events.lua:189: in function <ghost-counter/scripts/events.lua:177>

Happened while enabling this group with a temporary request active: https://imgur.com/IRwYdj5

9 months ago

Hi, my crash happens when I have a ghost of an assembler with a module in it. Removing the module stops the crash. (assembling machine 3 with speed module 2):

The mod Ghost Counter (2.0.1) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event ghost-counter::ghost-counter-selection-hotkey (ID 216)
ghost-counter/scripts/core.lua:237: attempt to concatenate local 'quality' (a nil value)
stack traceback:
ghost-counter/scripts/core.lua:237: in function 'get_blueprint_counts'
ghost-counter/scripts/events.lua:77: in function 'on_player_selected_blueprint'
ghost-counter/scripts/events.lua:14: in function <ghost-counter/scripts/events.lua:3>

9 months ago

I threw the code in chatgpt and now it doesn't crash anymore lol.

Something about changing the line 'local quality = item_request.id.quality' into 'local quality = item_request.id.quality or base_quality -- Default to base_quality if nil'

9 months ago

After personal request change to this: https://i.imgur.com/ZTQU34h.png

The mod Ghost Counter (2.0.1) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event ghost-counter::on_nth_tick(10)
ghost-counter/scripts/core.lua:381: attempt to concatenate field 'quality' (a nil value)
stack traceback:
ghost-counter/scripts/core.lua:381: in function 'update_logistics_info'
ghost-counter/scripts/events.lua:189: in function <ghost-counter/scripts/events.lua:177>

9 months ago

I posted this same error to github

3 months ago

I also got an error, by simply having x-quality Item as trash request.
The mod Ghost Counter (2.0.1) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event ghost-counter::on_player_selected_area (ID 55)
ghost-counter/scripts/core.lua:381: attempt to concatenate field 'quality' (a nil value)
stack traceback:
ghost-counter/scripts/core.lua:381: in function 'update_logistics_info'
ghost-counter/scripts/events.lua:45: in function 'on_player_selected_area'
ghost-counter/scripts/events.lua:54: in function <ghost-counter/scripts/events.lua:54>

The hotfix in there, was not helping.

2 months ago

The mod Ghost Counter (2.0.1) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event ghost-counter::on_player_selected_area (ID 55)
ghost-counter/scripts/core.lua:381: attempt to concatenate field 'quality' (a nil value)
stack traceback:
ghost-counter/scripts/core.lua:381: in function 'update_logistics_info'
ghost-counter/scripts/events.lua:45: in function 'on_player_selected_area'
ghost-counter/scripts/events.lua:54: in function <ghost-counter/scripts/events.lua:54>

a month ago

This error can be temporarily patched by making the changes detailed here: https://github.com/InappropriatePenguin/ghost-counter/pull/9/files

You can make these modifications locally by overwriting the changes in your local mod with those detailed in the above link. One method of doing so would be to make the changes in an extracted copy of the target file (ghost-counter/scripts/core.lua) and then dragging that file into the zipped folder in your factorio mod directory.

a month ago

Thanks! :)

a month ago

For convenience I made a zipped version with the two open PR from github. I increased the version to 2.0.2, so you don't have to overwrite the current release. https://www.evilpla.net/ghost-counter_2.0.2.zip

New response