Skip to content
This repository was archived by the owner on Nov 14, 2024. It is now read-only.

Compiling

Joalor64 edited this page May 18, 2022 · 15 revisions

Compiling

If you want to build the game yourself or build it with a mod, here's how to do it.

How to Compile

Windows / Mac / Linux

You must have the most up-to-date version of Haxe. Seriously, stop using 4.1.5, it misses some stuff.

Follow a Friday Night Funkin' source code compilation tutorial. After you do this, you will need to install LuaJIT.

To install LuaJIT, put this command in Command Prompt or Powershell: haxelib git linc_luajit https://github.com/AndreiRudenko/linc_luajit

Last but not least, if you don't want your mod to be able to run .lua scripts, delete the "LUA_ALLOWED" line on Project.xml.

Android (Support for Android will be added soon...)

  1. Download the following:
  1. After downloading, do the following:
  • Install JDK
  • Install Android Studio
  • Unzip NDK (No Installation Required)
  1. Setup Android Studio

To do this, go to Android Studio itself, and go to (Settings ->Appearance & Behavior->System Settings->Android SDK).

(Screenshot1)

(Screenshot2)

  1. In Command Prompt or Powershell, run the command lime setup android.

As seen in the screenshot below, you should use JDK. Not JRE.

(CommandScreenshot)

  1. Install extension-androidtools, extension-videoview and replace the linc_luajit.

To install, open up Command Prompt or Powershell and type the following:

haxelib git extension-androidtools https://github.com/jigsaw-4277821/extension-androidtools.git haxelib git extension-videoview https://github.com/jigsaw-4277821/extension-videoview.git haxelib remove linc_luajit haxelib git linc_luajit https://github.com/jigsaw-4277821/linc_luajit.git

Clone this wiki locally