Skip to content
This repository has been archived by the owner on Aug 30, 2024. It is now read-only.

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

License

Notifications You must be signed in to change notification settings

MortenTobiasNielsen/Factorio-TAS-Generator

Repository files navigation

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:

  • The TAS doesn't need the cursor, however it is still bound by character reach distance.
  • Huge rocks always yield 47 coal and 47 stone. Instead of the random yields in regular play, which can create some hard to deal with incosistencies.
  • Construction robots are not available.

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

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

WxWidget

  1. Download and install MSYS2
  2. 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
  1. [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
  1. 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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •