Skip to content

Commit

Permalink
Merge pull request #11623 from Pluma-Team/local-libraries
Browse files Browse the repository at this point in the history
Haxe Module Manager Implementation
  • Loading branch information
ShadowMario authored Dec 31, 2022
2 parents e009694 + ca93ff7 commit 9254eca
Show file tree
Hide file tree
Showing 4 changed files with 103 additions and 61 deletions.
63 changes: 9 additions & 54 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,24 +34,9 @@ jobs:
sudo apt-get install libvlc-dev
sudo apt-get install libvlccore-dev
haxelib setup ~/haxelib
haxelib install hxcpp > /dev/null
haxelib install lime
haxelib install openfl
haxelib --never install flixel
haxelib run lime setup flixel
haxelib run lime setup
haxelib install flixel-tools
haxelib install flixel-ui
haxelib install flixel-addons
haxelib install tjson
haxelib install hxjsonast
haxelib install hxCodec
haxelib git linc_luajit https://github.com/nebulazorua/linc_luajit
haxelib install hscript
haxelib git hscript-ex https://github.com/ianharrigan/hscript-ex
haxelib git discord_rpc https://github.com/Aidan63/linc_discord-rpc
haxelib install hxcpp-debug-server
haxelib list
haxelib install hxcpp > /dev/null --quiet
haxelib install hmm --quiet
haxelib run hmm install
- name: Create Version Tag
run: echo "${{github.run_id}}" > VERSION
- name: Compile
Expand All @@ -75,24 +60,9 @@ jobs:
- name: Install Haxelib
run: |
haxelib setup C:/haxelib
haxelib install hxcpp > nul
haxelib install lime
haxelib install openfl
haxelib --never install flixel
haxelib run lime setup flixel
haxelib run lime setup
haxelib install flixel-tools
haxelib install flixel-ui
haxelib install flixel-addons
haxelib install tjson
haxelib install hxjsonast
haxelib install hxCodec
haxelib git linc_luajit https://github.com/nebulazorua/linc_luajit
haxelib install hscript
haxelib git hscript-ex https://github.com/ianharrigan/hscript-ex
haxelib git discord_rpc https://github.com/Aidan63/linc_discord-rpc
haxelib install hxcpp-debug-server
haxelib list
haxelib install hxcpp > /dev/null --quiet
haxelib install hmm --quiet
haxelib run hmm install
shell: cmd
- name: Create Version Tag
run: echo "${{github.run_id}}" > VERSION
Expand All @@ -117,24 +87,9 @@ jobs:
- name: Install Haxelib
run: |
haxelib setup ~/haxelib
haxelib install hxcpp > /dev/null
haxelib install lime
haxelib install openfl
haxelib --never install flixel
haxelib run lime setup flixel
haxelib run lime setup
haxelib install flixel-tools
haxelib install flixel-ui
haxelib install flixel-addons
haxelib install tjson
haxelib install hxjsonast
haxelib install hxCodec
haxelib git linc_luajit https://github.com/nebulazorua/linc_luajit
haxelib install hscript
haxelib git hscript-ex https://github.com/ianharrigan/hscript-ex
haxelib git discord_rpc https://github.com/Aidan63/linc_discord-rpc
haxelib install hxcpp-debug-server
haxelib list
haxelib install hxcpp > /dev/null --quiet
haxelib install hmm --quiet
haxelib run hmm install
- name: Create Version Tag
run: echo "${{github.run_id}}" > VERSION
- name: Compile
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ art/test_x64-debug-officialrelease.bat
### VS Code
export/*
.vscode/*
.haxelib/
*.code-workspace
# Local history which shouldn't be shared.
.history
Expand Down
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,19 @@ Engine originally used on [Mind Games Mod](https://gamebanana.com/mods/301107),
## Installation:
You must have [the most up-to-date version of Haxe](https://haxe.org/download/), seriously, stop using 4.1.5, it misses some stuff.

Follow a Friday Night Funkin' source code compilation tutorial, after this you will need to install LuaJIT.
open up a Command Prompt/PowerShell or Terminal, type `haxelib install hmm`

To install LuaJIT do this: `haxelib git linc_luajit https://github.com/nebulazorua/linc_luajit` on a Command prompt/PowerShell
after it finishes, simply type `haxelib run hmm install` in order to install all the needed libraries for *Psych Engine!*

...Or if you don't want your mod to be able to run .lua scripts, delete the "LUA_ALLOWED" line on Project.xml
## Customization:

if you wish to disable things like *Lua Scripts* or *Video Cutscenes*, you can read over to `Project.xml`

If you get an error about StatePointer when using Lua, run `haxelib remove linc_luajit` into Command Prompt/PowerShell, then re-install linc_luajit.
inside `Project.xml`, you will find several variables to customize Psych Engine to your liking

If you want video support on your mod, simply do `haxelib install hxCodec` on a Command prompt/PowerShell
to start you off, disabling Videos should be simple, simply Delete the line `"VIDEOS_ALLOWED"` or comment it out by wrapping the line in XML-like comments, like this `<!-- YOUR_LINE_HERE -->`

otherwise, you can delete the "VIDEOS_ALLOWED" Line on Project.xml
same goes for *Lua Scripts*, comment out or delete the line with `LUA_ALLOWED`, this and other customization options are all available within the `Project.xml` file

## Credits:
* Shadow Mario - Programmer
Expand All @@ -24,7 +25,7 @@ otherwise, you can delete the "VIDEOS_ALLOWED" Line on Project.xml

### Special Thanks
* bbpanzu - Ex-Programmer
* shubs - New Input System
* Yoshubs - New Input System
* SqirraRNG - Crash Handler and Base code for Chart Editor's Waveform
* KadeDev - Fixed some cool stuff on Chart Editor and other PRs
* iFlicky - Composer of Psync and Tea Time, also made the Dialogue Sounds
Expand Down
85 changes: 85 additions & 0 deletions hmm.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
{
"dependencies": [
{
"name": "lime",
"type": "haxelib",
"version": null
},
{
"name": "openfl",
"type": "haxelib",
"version": null
},
{
"name": "flixel",
"type": "haxelib",
"version": null
},
{
"name": "flixel-addons",
"type": "haxelib",
"version": null
},
{
"name": "flixel-tools",
"type": "haxelib",
"version": null
},
{
"name": "flixel-ui",
"type": "haxelib",
"version": null
},
{
"name": "hxcpp",
"type": "haxelib",
"version": null
},
{
"name": "tjson",
"type": "haxelib",
"version": null
},
{
"name": "hxjsonast",
"type": "haxelib",
"version": null
},
{
"name": "hxCodec",
"type": "haxelib",
"version": null
},
{
"name": "hscript",
"type": "haxelib",
"version": null
},
{
"name": "hxcpp-debug-server",
"type": "haxelib",
"version": null
},
{
"name": "discord_rpc",
"type": "git",
"dir": null,
"ref": "master",
"url": "https://github.com/Aidan63/linc_discord-rpc"
},
{
"name": "hscript-ex",
"type": "git",
"dir": null,
"ref": "master",
"url": "https://github.com/ianharrigan/hscript-ex"
},
{
"name": "linc_luajit",
"type": "git",
"dir": null,
"ref": "master",
"url": "https://github.com/nebulazorua/linc_luajit"
}
]
}

0 comments on commit 9254eca

Please sign in to comment.