There is an AUR package for yafc-ce: factorio-yafc-ce-git
Once the package is installed, it can be run with factorio-yafc. Note that dotnet runtime v8 is required.
- Download the latest Yafc-ce release.
- Install dotnet core (runtime version: v8)
- Install SDL2:
sudo apt-get install libsdl2-2.0-0sudo apt-get install libsdl2-image-2.0-0sudo apt-get install libsdl2-ttf-2.0-0- For reference, have following libraries: SDL2-2.0.so.0, SDL2_ttf-2.0.so.0, SDL2_image-2.0.so.0
- Make sure you have OpenGL available.
- Use the
Yafcexecutable to run (you might need to give it executable permissions:chmod +x Yafc).
- Install dotnet core (runtime version: v8)
- For Arm64 Macs, that's it. You can skip to the final step of launching Yafc.
- For Intel Macs, you can skip to the step of getting SDL libraries with
brew. - If you want to build Lua from source, here's how you can do that:
- Download and extract the lua 5.2.1 source code
- Apply the .patch file to the extracted lua source code.
- Modify the
src/Makefileto include the following two lines. Note that the second line must start with a tab:
liblua.dylib: $(CORE_O) $(LIB_O)
$(CC) -dynamiclib -o $@ $^ $(LIBS)
- Run
make macosxin the root directory - Run
make -C src liblua.dylib. This will createsrc/liblia.aandsrc/liblua.dylib. - Overwrite
liblua52.aandliblua52.dylibinYafc/lib/osxwith the two created files:
cp src/liblua.a <yafc repo>/Yafc/lib.osx/liblua52.a
cp src/liblua.dylib <yafc repo>/Yafc/lib.osx/liblua52.dylib
- To get the SDL libraries, install brew and then install the packages:
brew install SDL2
brew install SDL2_image
brew install SDL2_ttf
- Copy the following files from
$(brew --prefix)/lib, which is usually/opt/homebrew/lib/, toYafc/lib/osx:
libSDL2.dylib
libSDL2_image.dylib
libSDL2_ttf.dylib
- Run
build.shto build Yafc. If you get an errorgrep: invalid option -- P, then you need to either remove the mentions ofVERSIONfrombuild.shsogrepis not used, or you need to install GNU grep withbrew install grepand changegrepinbuild.shtoggrep. - The folder
Build/OSXwill contain all of the files and should run in place. It will also create an archiveOSX.tar.gzfor the distro. - Make sure you have OpenGL available.
- To run the app, either use
dotnet Yafc.dllin the terminal, or runYafcas an executable.
Note that the version available on Flathub is not the Community Edition. Its repo can be found at https://github.com/petebuffon/yafc.
In general, ensure you have SDL2, OpenGL and dotnet 8 or later. Use the Yafc executable to run.