JonasJurczok / faketorio

Run automatic tests for your mod inside Factorio
MIT License
18 stars 4 forks source link

Faketorio blocks default UI rendering #41

Open JonasJurczok opened 6 years ago

JonasJurczok commented 6 years ago

Especially for longer running testsuites it would be cool to see the errors on the fly and not just only after the testrun is complete.

JonasJurczok commented 5 years ago

As Faketorio is "one command" it blocks normal UI rendering. Hence every action is invisible to the user.

It would be cool to be able to see the actions. This would require switching to an internal command system somehow.

JonasJurczok commented 5 years ago

According to https://forums.factorio.com/viewtopic.php?f=25&t=63177&p=384857#p384857 Factorio draws the UI per tick.

This means we have to break up the different scenarios/featues, create a scheduler and react to tick events instead of doing everything in one go...

JonasJurczok commented 5 years ago

The interesting question is how the renderer actually works.. Does it render the UI every tick independent of running scripts or is it actually waiting for scripts to complete and then renders?

JonasJurczok commented 5 years ago

new answer https://forums.factorio.com/viewtopic.php?f=25&t=63177&p=387164#p387164