How to make a factorio mod to trigger python script?
Posted: Sun Mar 25, 2018 5:20 am
Hi there my name is Edris,
Me and my friends play alot of factorio in the weekend, And I thought hey wouldn't be awesome if my neopixel led strip would light up if there's is a alarm in my factorio headless server game.
So my setup is headless server of factorio on ubuntu server. attached to the server with usb is a arduino nano with neopixel ledstrip.
My serial communication is working not a problem with that.
But i wanted to make a mod or something that would read the electrical energy of the system and if its below a certain point it would trigger or toggle a variable in the api or mod.
mayby i could make a file and append to it so that python could read it out and so hence forth the arduino,
i am using the following tutorial i found on google.
https://wiki.factorio.com/Tutorial:Modding_tutorial/ru
it' s just that I want to read something out and throw it in a variable and make a file somewhere in the system so that python could read it out.
i don't know if this is the way so any help is appreciated.
thanks in advance
edris
Me and my friends play alot of factorio in the weekend, And I thought hey wouldn't be awesome if my neopixel led strip would light up if there's is a alarm in my factorio headless server game.
So my setup is headless server of factorio on ubuntu server. attached to the server with usb is a arduino nano with neopixel ledstrip.
My serial communication is working not a problem with that.
But i wanted to make a mod or something that would read the electrical energy of the system and if its below a certain point it would trigger or toggle a variable in the api or mod.
mayby i could make a file and append to it so that python could read it out and so hence forth the arduino,
i am using the following tutorial i found on google.
https://wiki.factorio.com/Tutorial:Modding_tutorial/ru
it' s just that I want to read something out and throw it in a variable and make a file somewhere in the system so that python could read it out.
i don't know if this is the way so any help is appreciated.
thanks in advance
edris