Page 1 of 1

Emulate user input / trigger an event

Posted: Tue Jan 30, 2018 8:28 pm
by voddan
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?

Re: Emulate user input / trigger an event

Posted: Tue Jan 30, 2018 9:26 pm
by DaveMcW

Re: Emulate user input / trigger an event

Posted: Wed Jan 31, 2018 12:24 pm
by voddan
Oh, cool! That is almost exactly what I needed, thanks!

Re: Emulate user input / trigger an event

Posted: Wed Jan 31, 2018 12:32 pm
by Bilka
Let me know if you want it updated to 0.16, my fork is the one where this would be happening.

Re: Emulate user input / trigger an event

Posted: Wed Jan 31, 2018 12:37 pm
by voddan
Bilka wrote:Let me know if you want it updated to 0.16, my fork is the one where this would be happening.
Yes, it would be great if it worked with the latest version of factorion!

What version is it working now thou? I don't see it mentioned

Re: Emulate user input / trigger an event

Posted: Wed Jan 31, 2018 1:16 pm
by Bilka
voddan wrote:What version is it working now thou? I don't see it mentioned
I think we last used it in 0.15.35, but it should also work with 0.15.40.

Re: Emulate user input / trigger an event

Posted: Tue Feb 06, 2018 1:02 pm
by Bilka
A working 0.16 version can be found here: https://github.com/Bilka2/factorio-tas- ... /tree/0.16