MortenTobiasNielsen / Factorio-TAS-Generator

This is an attempt to create a helper tool for Tool Assisted Speedruns in Factorio. A guide of how to use the tool can be found here: https://www.youtube.com/watch?v=V9tuNoDqc0E&t
MIT License
13 stars 4 forks source link

Split debug from goals #292

Closed theis999 closed 1 year ago

theis999 commented 1 year ago

This is based on #279 but has been remade to keep the discussion more focused.

Commit details:

Added debug levels. Split debug from goal, old debug will default to steel axe. Merged all goals into one file. Changed "Any %" to "Any%". Added variables file to insert other variable data that isn't steps. Moved generator_thumbprint to variables file. Capitalized lua warning and debug function.

Debug levels

Debug state has been split into 3: Debug, Development, Release. Which gives better control of how much should printed to the console. Further settings for not printing comments, tech and saves have been added. image

Goal

The four goal files have been merged into a single file, that handles our 3 goals. This allows better reuse of code, and it should also be faster to generate (marginally).

Steel axe and GOTLAP also triggers the endgame GUI built into the game. The print statement has been changed to use a localized string image

The print functions debug and warning have been capitalized

This by effect un-hides the built-in debug function, that prints to the Factorio log.

theis999 commented 1 year ago

Both issues should be fixed now.