Resource Monitor

by devdot

Monitor mining sites and track resources across planets / surfaces.

Utilities
3 months ago
1.1 - 2.0
7.12K

b Crash with fix

2 months ago

Hi, I had a crash happen with the latest version when it opened a bitumen seep:
The mod Resource Monitor (1.5.6) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event dqol-resource-monitor::on_resource_depleted (ID 31)
dqol-resource-monitor/components/scanner.lua:240: attempt to index local 'site' (a nil value)
stack traceback:
dqol-resource-monitor/components/scanner.lua:240: in function <dqol-resource-monitor/components/scanner.lua:217>

I fixed it by adding a check for site in the site_id part, so the whole line looks like this:
Translation.request('bitumen' .. ((site and site.id) or '0'), py_bitumen_callback, {site_id = (site) and (site.id or nil), pos = pos, surface = resource.surface})

New response