Signal Display

by AckEmma

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

Utilities
10 days ago
2.0
840
Circuit network

b [Fixed] Mod crashes when forced off a surface

a month ago
(updated a month 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
a month 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.

a month ago
(updated a month ago)

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

a month ago
(updated a month 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?

a month ago

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

a month ago
(updated a month 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