PersonalTeleporter


This mod adds personal Teleaporter to the game. A lot of Thanks to iUltimateLP and his mod SimpleTeleporters for inspiration and for the use of His Code and graphics

Content
3 days ago
0.13 - 2.1
8.63K
Transportation

b The PersonalTeleporter mod (0.5.3) produces an unrecoverable bug.

3 days ago

The PersonalTeleporter mod (0.5.3) produces an unrecoverable bug.
Please report this bug to the mod creator.

Error while running event PersonalTeleporter::on_player_mined_item (ID 8)
PersonalTeleporter/control.lua:682: attempt to index field '?' (a nil value)
stack traceback:
PersonalTeleporter/control.lua:682: in function 'updateTelporterList'
PersonalTeleporter/control.lua:609: in function <PersonalTeleporter/control.lua:607>

The item is located on the planet Fulgora.
Space Age › PlanetsLib › Minimal Electric Rails › Krastorio 2 Spaced Out › Cerys › PlanetsLib

3 days ago

The PersonalTeleporter mod (0.5.3) produces an unrecoverable bug.
Please report this bug to the mod creator.

Error while running event PersonalTeleporter::on_player_mined_item (ID 8)
PersonalTeleporter/control.lua:682: attempt to index field '?' (a nil value)
stack traceback:
PersonalTeleporter/control.lua:682: in function 'updateTelporterList'
PersonalTeleporter/control.lua:609: in function <PersonalTeleporter/control.lua:607>

The item is located on the planet Fulgora.
Space Age › PlanetsLib › Minimal Electric Rails › Krastorio 2 Spaced Out › Cerys › PlanetsLib

The error occurred when I tried to remove the teleport beacon from the ground.

3 days ago

Will look into it.

3 days ago

which planet were you on when removing the beacon, it says Fulgora but also says mob Cerys?

3 days ago

I am standing on the planet Fulgora.

3 days ago

a few questions to narrow it down:
* does removing another beacon on Fulgora also causes it to crash (if there are other ones)?
* does removing beacons on other planets crash?
* can you teleport to the beacon that is causing the crash?

3 days ago

I was on Fulgora when removing the beacon. Trying to place a beacon over an existing one also shows Unknown key: "entity-name.TP_marker".

I checked the installed PersonalTeleporter 0.5.3 source. At control.lua:682, updateTelporterList() calls:

game.surfaces[teleportSurface].find_entities(...)

This function scans ALL entries in storage.TelaportLocations, not just the beacon being removed. It uses the saved surface name in telaportLoc[4] (or "nauvis" if absent), without checking that the surface still exists. The nil indexing error at this line indicates that game.surfaces[teleportSurface] is nil for one saved destination. So removing a beacon on Fulgora can crash because of a stale entry for another surface. The missing surface and what deleted/renamed it are not yet identified; this does not establish that Cerys caused it.

Suggested fix: guard the surface lookup and clean up stale destinations. Iterate backwards when removing entries with table.remove, and validate the stored marker before calling its destroy() method in removeTelFromList() at line 702. Also handle surface deletion/renaming to keep destinations consistent.

The TP_marker warning is a separate localization issue. prototypes/teleporter-tiers.lua defines TP_marker as the helper train-stop created for each beacon, but locale/en/default.cfg has no TP_marker entry under [entity-name]. Adding it would fix the unknown-key text, but would not fix the line 682 crash.

I have not yet tested removal of other beacons/on other planets, or teleporting to the affected beacon, so those results are still unconfirmed. This analysis is based on source inspection and the stack trace; the proposed fix has not been tested in-game.

3 days ago
  • does removing another beacon on Fulgora also causes it to crash (if there are other ones)? > YES.
  • does removing beacons on other planets crash? > YES.
  • can you teleport to the beacon that is causing the crash? > YES.
3 days ago

can you place a beacon on Fulgora (if it does not crash) and then look at the name of the newly placed beacon it should have a name like "x:99,y:99,s:fulgora". does it have the "s:fulgora" part?

3 days ago

added a new version 0.5.4, to looks for corrupted teleporters on start to see if any have a surface that no longer exist, it might fix your problem, if it finds any it should print a message telling you which one it is, if it does please copy and past that message here.

New response