Step 1: Downloading
Stuff You Need:
FNF Source Code: https://github.com/ninjamuffin99/Funkin/archive/master.zip
Visual Studio Community: https://visualstudio.microsoft.com/vs/community/
Step 2: Setting Up
Visual Studio Community:
When you download Visual Studio Community, it should also have an installer that also comes with it.
When it opens press Available and press install on Visual Studio Community, and wait for it to open the Workloads page. Once open, select Individual Components and search for MSVC v142 and VS 2019 C++ x64/x86 build tools. Select both of those Components, press install and wait for it to finish downloading.
Open command prompt and type the following:
- haxelib install lime
- haxelib install openfl
- haxelib install fixel
- haxelib install fixel-ui
- haxelib install fixel-addons
- haxelib install newgrounds
- haxelib install hscript
- haxelib git polymod https://github.com/larsiusprime/polymod.git
Source Code Editing:
Go to your FNF sourcecode file source (funkin-master/source) and copy a random .hx file and paste it in the source code, rename that file to APIStuff and open it using notepad (or whatever text editor you use) and delete the text in there and replace it with:
public static var API:String = "";
public static var EncKey:String = "";
After that, go to FreeplayState.hx lines 226 and get rid of the text " NGio.logEvent('Fresh');"
Finally go to TitleState.hx lines 61 and remove the the text " NGio.noLogin(APIStuff.API);"
Step 3: Testing
In the main funkin-master file and click on the search bar that has the text (This PC > Funkin-Master), remove it and type in cmd which will open Command Prompt. Type in "lime test windows -release" and it will build the game (this will take a while for the first time). When its finished FNF will open up normally.
Step 4: Compilation
To finally compile the game and create a .exe file, do the same steps you did to open the command prompt to test the source code but this time type "lime build windows -release" to finally compile the source code.