Skip to content

Joalor64GH/Chocolate-Engine

Repository files navigation

FNF - Chocolate Engine (deprecated)

This is currently deprecated. See Joalor64Engine-Rewritten

I will occasionally make some bugfixes and such out of boredom, but for now, this engine is deprecated. -MemeHoovy

This is the repository for Chocolate Engine, which is basically a fork of the original FNF. Not everything is perfect, so contributions and/or pull requests would be nice!

If you need a tutorial on modding, go check out the wiki!

This engine is in a major WIP state, report bugs in issues.

Downloads

Features

  • Polymod Support
  • A LOT of Customizables
  • Easy to Use Credits System (From Mag Engine)
  • MP4 and WebM Video Support

Things to get done

  • Week 7 [Is working but cutscenes are broken lmao]
  • Support for Lua Scripts [Very WIP]
  • Attempt to softcode characters with JSON

Credits

Building

How to build the funny game or something

Installing Stuff

First, install Haxe (USE 4.2.5 BRUH) and HaxeFlixel:

Then, install these or something:

flixel
flixel-addons
flixel-ui
hscript

Then, these I think:

  1. Download git-scm. Works for Windows, Mac, and Linux, just select your build.
  2. Follow instructions to install the application properly.
  3. Run haxelib git polymod-mastereric https://github.com/MasterEric/polymod to install Polymod.
  4. Run haxelib git discord_rpc https://github.com/Aidan63/linc_discord-rpc to install Discord RPC.
  5. Run haxelib git hxCodec https://github.com/polybiusproxy/hxCodec to install hxCodec.

Everything should be ready. You can continue from here.

More Things

At the moment, you can optionally fix the transition bug in songs with zoomed-out cameras.

  • Run haxelib git flixel-addons https://github.com/HaxeFlixel/flixel-addons in the terminal/command-prompt.

And you should be good to go.

Compilation

Once you have all those installed, it's pretty easy to compile the game. You just need to run lime test html5 -debug in the root of the project to build and run the HTML5 version. (command prompt navigation guide can be found here: https://ninjamuffin99.newgrounds.com/news/post/1090480) To run it from your desktop (Windows, Mac, Linux) it can be a bit more involved. For Linux, you only need to open a terminal in the project directory and run lime test linux -debug and then run the executable file in export/release/linux/bin. For Windows, you need to install Visual Studio Community 2019. While installing VSC, don't click on any of the options to install workloads. Instead, go to the individual components tab and choose the following:

  • MSVC v142 - VS 2019 C++ x64/x86 build tools
  • Windows SDK (10.0.17763.0)

Once that is done you can open up a command line in the project's directory and run lime test windows -debug. Once that command finishes (it takes forever even on a higher end PC), you can run FNF from the .exe file under export\release\windows\bin As for Mac, lime test mac -debug should work, if not the internet surely has a guide on how to compile Haxe stuff for Mac.

Additional guides