TrainsCaller deprecated

by Hermios

Allows trainstations to call trains when conditions are fulfilled

Content
4 years ago
0.14 - 0.18
14
Trains

b Crash whenever placing a locomotive

5 years ago
(updated 5 years ago)

on 0.17.33 (latest) version of factorio with the latest TrainsCaller (version 0.5.2) mod and his required mods - HermiosTrainLibs (version 0.1.0) and HermiosLibs (version 0.1.0) - whenever you place a locomotve the game instantly crashed with an error message:
"Error while running event trainsCaller::on_train_created (ID 66)
trainsCaller/methods/trainFunctions.lua:27 attempt to index field 'grid' (a nil value)
...
"

There where more but its just a location where the error happends (the places that calls out the function).
What seems to be a problem (inside the code) is this line:
"for _,equipment in pairs(loco.grid.equipment) do"

It gets the grid value of nil. without trainsCaller mod, just with the libs, it works fine.

The photo of the entire error:
https://imgur.com/a/oofzMF8

After checking all of the files, i can not find anywhere where the mod would crate the size of a equipment grid therefore it gets nil. that might be the problem or i might misslooked something. either way the mod makes it unplayable :( altho it seems super cool.

Hope you can fix it

5 years ago

Hi
Well, it seems that default grid have been removed from Factorio.
So, I added a dependancy to Vehicle Grid, a very nice mod anyway!
Next version released soon

5 years ago

Hi
Well, it seems that default grid have been removed from Factorio.
So, I added a dependancy to Vehicle Grid, a very nice mod anyway!
Next version released soon

Thank you for fixing it but sadly.. its impossible to try it out right now. It seems a new bug is inside ur mod. I get this error everytime i launch:
https://imgur.com/a/UeApdHx
Latest 17.36 update. im going to try out older versions to see if it works there

5 years ago

I was right. factorio wontload with ur mod in 0.17.36 but in 0.17.35 works fine. thx for the fix :)

5 years ago

Hi TRLith,
I know, will be fix soon.

New response