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
factorio

Factorio TAS Generator

This is a tool for generating Tool Assisted Speedruns in Factorio.

[!WARNING] This project is no longer actively maintained. See https://github.com/theis999/Factorio-TAS-Generator for a more updated version.

Showcases:

Tooling

The latest release can stand on its own, but these tools are recommended:

If you find another tool, do let us know.

Features and problems

Bugs can be reported through Issues, and new features can be requested there too.

How it works

This tools works by converting a list of steps into a Factorio mod. The mod will then force the character to execute each step until it reaches the goal. The list of steps is saved in a csv-like text file, and is displayed in a grid table through the tool.

Steps are executed using Factorio's Lua API, so while we strive to simulate realistic inputs, there are still differences. A few of the more noteworthy differences:

Developer setup

Do you want to help? To get started on Windows you need MS Visual studio and MSYS2. On other platforms you may have discover the process yourself.

Visual Studio

0) Download and install MS Visual studio 1) Through the visual studio installer you need to install desktop development with c++ 2) Through the visual studio installer you need to install language pack English

WxWidget

0) Download and install MSYS2 1) Run MSYS2 and enter the following commands:

pacman -Syu
pacman -S ${MINGW_PACKAGE_PREFIX}-toolchain ${MINGW_PACKAGE_PREFIX}-cmake ${MINGW_PACKAGE_PREFIX}-make base-devel git
pacman -S ${MINGW_PACKAGE_PREFIX}-wxWidgets3.2 ${MINGW_PACKAGE_PREFIX}-boost

2) [Optinal] to get wxFormBuilder, run the following commands:

git clone --recursive https://github.com/wxFormBuilder/wxFormBuilder
cd wxFormBuilder
cmake -S . -B _build -G "MSYS Makefiles" --install-prefix "$PWD/_install" -DCMAKE_BUILD_TYPE=Release
cmake --build _build --config Release -j `nproc`
cmake --install _build --config Release

3) Run msys2-mingw64 and enter the following commands:

git clone https://github.com/Microsoft/vcpkg.git
cd vcpkg
./bootstrap-vcpkg.bat
./vcpkg integrate install
./vcpkg install wxwidgets
./vcpkg install wxwidgets:x64-windows

Finish up

After installing wxwidget, clone the FTG repository by: 1) Open visual studio 2) Open the file menu 3) Click the Clone repository (3rd from the top) 4) In the url field, enter: https://github.com/theis999/TAS-Helper-for-Factorio

To open GUI builder: 1) Open MSYS2 2) Enter ./wxFormBuilder/_install/wxFormBuilder

To change the Lua code

It is recommended to download Visual studio code
and add the extension Factorio Modding Tool Kit