Is there a way to trigger an arbitrary event or user input?
Basically I want to run a save of a game, but instead of playing with mouse and keyboard I would like it to follow a script with predefined commands.
I think I have read about the devs doing something similar when they were filming the intro clip for factorio, so I wonder if it is possible to do it with the modding api.
Any advice on that?
Emulate user input / trigger an event
Re: Emulate user input / trigger an event
Oh, cool! That is almost exactly what I needed, thanks!DaveMcW wrote:https://github.com/yournamehere/factorio-tas-playback
Re: Emulate user input / trigger an event
Let me know if you want it updated to 0.16, my fork is the one where this would be happening.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
Re: Emulate user input / trigger an event
Yes, it would be great if it worked with the latest version of factorion!Bilka wrote:Let me know if you want it updated to 0.16, my fork is the one where this would be happening.
What version is it working now thou? I don't see it mentioned
Re: Emulate user input / trigger an event
I think we last used it in 0.15.35, but it should also work with 0.15.40.voddan wrote:What version is it working now thou? I don't see it mentioned
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
Re: Emulate user input / trigger an event
A working 0.16 version can be found here: https://github.com/Bilka2/factorio-tas- ... /tree/0.16
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.