Signal Display

by AckEmma

Allows Display Panels and Programmable Speakers to show the count associated with a signal from the circuit network.

Utilities
a month ago
2.0
1.12K
Circuit network

b [Fixed] Mod crashes when forced off a surface

4 months ago
(updated 4 months ago)
  • Was Remote Viewing a ship that got destroyed, forcing me back to Nauvis
  • Got a lua error, from control.lua

Access on a nil index in circuit_display.on_player_changed_surface:

 else
    -- remove surface if it was removed
      storage.surfaces[e.surface_index] = nil <-- This line broke, would give line numbers but I've modified the source
  end

Looks like it's trying to clean up the Surface when it never actually created it due to not having the display component on it.

I fixed it by changing it to:

  else
    -- remove surface if it was removed
    if storage.surfaces[e.surface_index] ~= nil then
      storage.surfaces[e.surface_index] = nil
    end
  end
4 months ago

Sweet,
Thanks for all the context and a proposed fix, I’ll try and do an update ASAP.

Knew there’d be bugs as I didn’t test everything.
Sorry for any difficulty caused by the crash.

4 months ago
(updated 4 months ago)

yeah just had the same thing, glad someone else already reported
edit:oh its already fixed. good

4 months ago
(updated 4 months ago)

I've just removed the offending section as that should be handled by the on_surface_deleted event instead.
Fixed in 1.2.0

May I ask what other changes you've made to the source that you alluded to?

4 months ago

I meant my other topic, about Quality and other items.

4 months ago
(updated 4 months ago)

I meant my other topic, about Quality and other items.

Cool, merged those features in 1.3.0

Locking this thread as bug is fixed

New response