Simple Train Fuel Stop


Automatically requests low-fuel trains, easy to set up and highly customizable.

Content
4 years ago
0.17 - 0.18
20
Trains

b Error [Closed]

4 years ago

i got this message when trying to use the mod
Can you help please?

The mod Simple Train Fuel Stop (1.18.5) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event simple_train_fuel_stop::on_tick (ID 0)
simple_train_fuel_stop/script/trains.lua:38: attempt to compare number with table
stack traceback:
simple_train_fuel_stop/script/trains.lua:38: in function 'CheckTrainFuel'
simple_train_fuel_stop/script/trains.lua:147: in function 'CheckTrains'
simple_train_fuel_stop/script/trains.lua:159: in function 'func'
simple_train_fuel_stop/control.lua:41: in function <simple_train_fuel_stop/control.lua:39>

4 years ago
(updated 4 years ago)

when do you get this error message?
When you start a new map, load an existing save or something else?
Which game version do you use?

4 years ago

i use the newest game version 18.24
i tried loading it in to save
i do use color changing trains, might this be an issue?
game starts, than few seconds later it just kicks me

4 years ago

Ok, so i have since removed the train coloring mods, and now i think error is different:
posting a screenshot
http://prntscr.com/shltdg

4 years ago
(updated 4 years ago)

ty for all the info.
A newly implemented feature seems to have some initialization problem. A need to have a deeper look into that. For now I'm going to give out a patch that should prevent this error.
I can't test it currently, so it would be a big help, if you could tell me if everything is working fine

4 years ago

Ok, it is working now, i mean did not crash the game on load, i will try it and let you know how it works
(dont have red circuits to make it) (please consider making it a green circuits, so we can start using it before oil, as most train systems get implemented before oil

4 years ago

that's good to hear, thank you!
Also the green/red circuit thing is something I've never really thought of! I developed this mod while playing in save that is fairly advanced, so the resources never were a big hassle to deal with. But your point is true, after-oil might be really a bit late to have this.
Since everything needs testing, im going to change it to green right away. I'll see how it's going and if I like it, I'm going to keep it that way!

4 years ago

I do think as well that making it require green circuits would be better for an earlier availability :)

4 years ago

ohhhh, if its also the opinion of Hyperbar00, it really has to be a good decision to change it ;)
I wait for for some feedback on the error for xpozec here, after that I'll get these changes done for the 0.17 version

4 years ago

so played few hours now, no problems, no errors, works as intended, thank you for the prompt response and fast fix

4 years ago

glad to hear that :)

4 years ago

Any chance we can get that patch for 0.17?
I'm getting it on 17.79, with no other train mods.

4 years ago

Oh sure!
Sry I kinda forgot the 0.17 version, it's online now

New response