Do not try to inject the dll directly into the game, even though it is compiled as a dll, it is essentially a block of code (again see gen.js for more information)
2. Setup MSYS2 & Install GCC
- Download MYS2 ().
- Install MYS2 To the directory: C:\msys64
- Open MSYS2 And run the command pacman -Syuu
- Keep running the Aforementioned command until it says there is nothing to do.
- Open MSYS2 Again and run the following: pacman -S --needed base-devel mingw-w64-i686-toolchain mingw-w64-x86_64-toolchain git subversion mercurial mingw-w64-i686-cmake mingw-w64-x86_64-cmake mingw-w64-x86_64-lua mingw-w64-i686-lua
3. Add environment variables
- Add C:\msys64\mingw32\bin to your environment paths.
- Add C:\msys64\mingw64\bin to your environment paths.
- Add C:\msys64\usr\bin to your environment paths.
- Add a system environment variable called CODEBASE_MAIN with the value being the path of your codebase_main folder.
4. Setup Sublime Text Build System
- Goto Tools -> Build System -> New Build System
- Name it what ever you want and add the following:
{<br> "shell_cmd": "node %CODEBASE_MAIN%\\src\\run_compile.js",<br> "working_dir": "$file_path",<br>}<br>
- Save and set your current build system to the one you created.
5. Run setup file
- Run setup.bat and wait for completion.