Dynamic Train Stop Naming


This mod enables dynamic naming of train stops, using the circuit signals.

Tweaks
7 months ago
2.0
423
Transportation Logistics Trains Circuit network

b Crash when making blueprint

8 months ago

The mod Dynamic Train Stop Naming (0.2.4) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event dynamic-train-stop-naming::on_player_setup_blueprint (ID 78)
LuaItemStack API call when LuaItemStack was invalid for read.
stack traceback:
[C]: in function 'index'
__dynamic-train-stop-naming
/control.lua:26: in function <dynamic-train-stop-naming/control.lua:20>

Mod List:
base
elevated-rails
quality
space-age
aai-containers
aai-industry
aai-loaders
aai-signal-transmission
AdditionalPasteSettings
adjustable_cannon_turret
alien-biomes-graphics
AmmoGroup
ammoniafill
apm_energy_addon_ldinc
apm_lib_ldinc
apm_nuclear_ldinc
apm_power_ldinc
apm_resource_pack_ldinc
artillery-bombardment-remote-2
auto-barrel
basic-artillery
behemoth-enemies
Better-Power-Armor-Grid
Better_Starmap_Background
bobinserters
botsbotsbotsfork
BottleneckLite
bztitanium
calculator-ui
Cerys-Moon-of-Fulgora
ChangeInserterDropLane
chest-auto-sort
circuit_visualizer
Constructron-Continued
DeleteChunks
diverse-rockets
dynamic-train-stop-naming
ElectricTrains
electromagnetic-plant-expanded
est-tiny-storage-tank
ev-assets
ev-machines
ev-mining-drills
ev-refining
even-pickier-dollies
EvenDistributionLite
exotic-industries-robots-rebalance
FactorySearch
far-reach
fdsl
Fill4Me
flib
FluidMustFlow
foundry-expanded
freeplay_starting_equipment
FrozenFood
fulgora-extended
Fundryu
fusion-fuel
fusion-thruster
gleba-lab
gleba-reborn
grappling-gun
Gravity-Assembler
heat_glow
hurricane-graphics
id-like-cliff-explosives-on-nauvis-please
infinite-belt-stacking
inventory-repair
iron_chest_requires_wood_chest
jetpack
kry_stdlib
landing-pad-research
laser_rifle
lavafill
LSlib_James_Fork
maft
maraxsis
Milestones
mining-patch-planner
more-achievements
more-alloys
more-galore
more-intermediates
more-ore
more-parts
more-quality-uses
More_Ammo
Nanobots2
naufulglebunusilo
nicefill-scriptfix
orbital-transfer
ore-eraser-2
planet-arrakis
planet-muluna
Planetary-Distance-Adjustments
pump
RateCalculator
RitnLib
roboport-charging-pads-count-quality
SchallCircuitGroup
SchallModules
SchallStartingInventory
SchallTransportGroup
shattered-planet
Shortcuts-ick
slp-dyson-sphere-reworked
solar-productivity
some-autoresearch
SpidertronEnhancements
SpidertronPatrols
StatsGui
stdlib2
Surfaces-Have-Temperature
Telogistics
tenebris
terrapalus
thruster-control-behavior
train-loader
tungsten-munition
Uranium_Inserter_T
valves
VehicleSnap
visible-planets
Waterfill_v17
weapon_quality
wood-base-assets
wood-logistics

8 months ago

Ditto, got the same

8 months ago

I think this have been fixed in the latest release (v0.2.5). Please try the newest version and report back.

8 months ago

I'm still getting crashes when blueprinting stuff. See image and modlist below.

12854.991 Error MainLoop.cpp:1435: Exception at tick 1306335: The mod Dynamic Train Stop Naming (0.2.5) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event dynamic-train-stop-naming::on_player_setup_blueprint (ID 78)
LuaItemStack API call when LuaItemStack was invalid for read.
stack traceback:
[C]: in function 'index'
__dynamic-train-stop-naming
/control.lua:27: in function <dynamic-train-stop-naming/control.lua:20>

https://imgur.com/a/QcDDDLr Screenshot
https://gist.github.com/dirkschut/a5b7b1723921270e662f8678e17ccdd3 Complete log and modlist

7 months ago

Same error as mrDLSable. I tried to blueprint a fully equipped tank in map view from another planet.

In control.lua, line 27, blueprint is a LuaItemStack. You aren't allowed to access blueprint.type if blueprint.valid_for_read is false.
Checking "blueprint.valid_for_read" before "blueprint.type == 'blueprint'" should fix that error.

7 months ago

Thanks for pointing out. I've just released a patch.

7 months ago
(updated 7 months ago)

Now it happens after confirming the tank blueprint:

The mod Dynamic Train Stop Naming (0.2.6) caused a non-recoverable error.
Please report this error to the mod author.
Error while running event dynamic-train-stop-naming::on_player_configured_blueprint (ID 80)
dynamic-train-stop-naming/control.lua:49: attempt to index field 'blueprint_mappings' (a nil value)
stack traceback:
dynamic-train-stop-naming/control.lua:49: in function <dynamic-train-stop-naming/control.lua:47>

This looks like an artifact of an earlier version as storage.blueprint_mappings is never initialized.
Please add making a blueprint of a fully equipped tank part of your testing routine. It seems to be quite effective in finding low-hanging bugs.

6 months ago

Still get a crash whenever click on the copy passed station. Same with blueprints. It does not seem to save the settings over either (although hard to check when it crashes).

6 months ago

I get the same error just blueprinting basic smelting arrays unrelated to any vehicles

New response