graftorio2


visualize metrics from your factorio game in grafana and prometheus

Tweaks
1 year, 8 months ago
1.0 - 1.1
1.37K

b Crash n-r-Error on trains

4 years ago

Crash message:
The mod graftorio2 (0.0.10) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event graftorio2::on_train_changed_state (ID 23)
graftorio2/train.lua:111: attempt to index global 'event' (a nil value)
stack traceback:
graftorio2/train.lua:111: in function <graftorio2/train.lua:110>

Its probably to do with LTN (quick guess).

Mod list:
https://ibb.co/fxCPRc1

4 years ago

I'm also getting the same error with only this mod enabled.

4 years ago

I'm also getting this error with only this mod enabled.

4 years ago

I'm also getting this error with only this mod enabled.

EDIT:
Has something to do with the following line:
if event.train.state == defines.train_state.arrive_station then

Maybe event.train or defines.train_State is NULL?

4 years ago

Same here...

4 years ago
(updated 4 years ago)

Quick fix:
train.lua line 110

function register_events_train()
  if (event == nil or event.train == nil) then
    return
  end
  if event.train.state == defines.train_state.arrive_station then
    track_arrival(event)
  end

he good question is, why the train is nil. Using LTN

4 years ago

Hey guys, i didn't receive any mail for this discussion so i just found it, i will look a this bug and release 0.0.11 to fix it

4 years ago

i just released 0.0.11 with the quick fix of ssilk

4 years ago
(updated 4 years ago)

Thanks. I had much fun with your mod Fridays. I brought it to run and was a bit overwhelmed, because of the number of graphs I could choose from.
After some playing around a bit with it I though, how cool would it be to see the production-chains of all intermediate products. One target-product per graph.

Like
iron-ore-> iron-plates
iron-plates -> steel-plates
iron/copper-plates -> green circuits
...
and so on, each of the lines is one graph.

In some kind of sorted graph (most used above). You would immediatelly see, what's missing.

And I thought: The knowledge, what graphs make sense and what not is in Factorio. The mod could write a Grafana-config! Hmmm. That is not so amighous, there are other mods, which already read the configuration and know how to build the structure. I just don't have enough time currently, to do that.

4 years ago

i must confess that i quickly fork this mod just to make it works for factorio 1.0 but i didn't have that much time to play with it
if you have good grafana dashboard to share i can include them in the github repo so everyone can have it by default

New response