Skip to content

Add proper HashLink support - #6135

Merged
AbnormalPoof merged 1 commit into
FunkinCrew:dummy/develop-v0.8.3from
NotHyper-474:hashlink-patches
Mar 8, 2026
Merged

Add proper HashLink support#6135
AbnormalPoof merged 1 commit into
FunkinCrew:dummy/develop-v0.8.3from
NotHyper-474:hashlink-patches

Conversation

@NotHyper-474

@NotHyper-474 NotHyper-474 commented Sep 25, 2025

Copy link
Copy Markdown
Collaborator

Linked Issues

Closes #4138

Description

This is quite an old branch of mine that's been sitting on my repository since 2024, finally becoming a PR now that there seems to be a growing interest in building for HashLink. It aims to fix issues that would prevent someone from compiling to HashLink, which could be a pretty useful target for easily making and testing PRs like I did when making #3574.

Feel free to try it out and report any issues you have in the replies!

NOTE: Use the hmm file below to use the forks with the proper fixes for HashLink.
https://gist.github.com/NotHyper-474/deda870cdc722300982c7814ad5c1254

Dependent on:

Known Issues

  • DropShadowShader is utterly broken. Fixed by larsiusprime/polymod@045372c (#258)
  • Advancing in a Conversation causes a crash. Also fixed by the commit above.
  • Chart Editor may randomly crash while messing around. Turns out it's just a bug with HaxeUI.
  • Video cutscenes don't work (which was already expected)
  • Lime can build but cannot open a debug session. Fixed!
  • WiggleEffect shader crashes the game by trying to cast an enum to an int. Fixed by OpenFL PR.
  • Some Focus Camera events aren't able to be properly parsed, which causes a crash.

Screenshots/Videos

@github-actions github-actions Bot added status: pending triage Awaiting review. pr: haxe PR modifies game code. size: medium A medium pull request with 100 or fewer changes. labels Sep 25, 2025
@AbnormalPoof AbnormalPoof added the type: major bug Involves a major bug, including crashes, softlocks, or issues blocking progression label Sep 25, 2025
@EliteMasterEric

Copy link
Copy Markdown
Member

If any features have to be disabled (like video cutscenes), you should make sure to disable them in the project.hxp so that the default build flags enable successful builds.

@macohi

macohi commented Sep 26, 2025

Copy link
Copy Markdown
Contributor

Oh my lord please work.

@macohi

macohi commented Sep 27, 2025

Copy link
Copy Markdown
Contributor

VSlice_HL_COMPILING.zip
That'll fix anything related to lime 👍

@macohi

macohi commented Sep 27, 2025

Copy link
Copy Markdown
Contributor

I keep getting an error when compiling to Hashlink that doesn't happen with windows:
image

@NotHyper-474

NotHyper-474 commented Sep 27, 2025

Copy link
Copy Markdown
Collaborator Author

I keep getting an error when compiling to Hashlink that doesn't happen with windows:
image

That's because you need the change from FunkinCrew/openfl#7

Maybe I should put back the commits from the PRs in the hmm file...

@macohi

macohi commented Sep 27, 2025

Copy link
Copy Markdown
Contributor

I keep getting an error when compiling to Hashlink that doesn't happen with windows:
image

That's because you need the change from FunkinCrew/openfl#7

Maybe I should put back the commits from the PRs in the hmm file...

thatd make it ezer 😅

@macohi

macohi commented Sep 27, 2025

Copy link
Copy Markdown
Contributor

ill test it soon

@macohi

macohi commented Sep 27, 2025

Copy link
Copy Markdown
Contributor

openfl library doesn't seem to be my friend...
image

@NotHyper-474

Copy link
Copy Markdown
Collaborator Author

Pull the commit I just pushed and try again, I forgot my fork had a different name lel

@macohi

macohi commented Sep 27, 2025

Copy link
Copy Markdown
Contributor
image

another error but I have a fix for this cuz its happened to me be4

PolymodAbstractScriptClass.txt(txt becuz github's a [[uh-oh]])

@macohi

macohi commented Sep 27, 2025

Copy link
Copy Markdown
Contributor

HUH
image

@macohi macohi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything works but (I'm suspecting) lime keeps fucking it over. Least for me.

@NotHyper-474

Copy link
Copy Markdown
Collaborator Author

I think you may need to rebuild Lime for HashLink with lime rebuild hl. I'll look into including Windows binaries tomorrow (currently I only have Linux ones) so that rebuilding isn't necessary.

@macohi

macohi commented Sep 27, 2025

Copy link
Copy Markdown
Contributor
image

@NotHyper-474

Copy link
Copy Markdown
Collaborator Author

I managed to rebuild HL on Windows, but for some reason the game just refuses to open bruh, this is some freaking bullshit.

@macohi

macohi commented Sep 28, 2025

Copy link
Copy Markdown
Contributor
image im just being hated

@NotHyper-474

Copy link
Copy Markdown
Collaborator Author
image im just being hated
cd .haxelib/lime/git
git submodule sync
git submodule update --init
cd ../../..

Then try again, hmm doesn't usually update the submodules properly

@macohi

macohi commented Sep 28, 2025

Copy link
Copy Markdown
Contributor

oh ok

@macohi

macohi commented Sep 28, 2025

Copy link
Copy Markdown
Contributor

ok yeah game didnt open for some reason

@NotHyper-474 NotHyper-474 changed the title Make the HashLink target work Add proper HashLink support Sep 28, 2025
@NotHyper-474
NotHyper-474 requested a review from macohi September 28, 2025 18:43
@macohi

macohi commented Sep 28, 2025

Copy link
Copy Markdown
Contributor

kk

@NotHyper-474
NotHyper-474 force-pushed the hashlink-patches branch 2 times, most recently from 5d4e4ad to 26aecd5 Compare October 29, 2025 18:57
@NotHyper-474
NotHyper-474 force-pushed the hashlink-patches branch 3 times, most recently from b6248ca to 1182209 Compare November 23, 2025 23:29
@NotHyper-474
NotHyper-474 marked this pull request as ready for review November 23, 2025 23:41
@NotHyper-474
NotHyper-474 force-pushed the hashlink-patches branch 7 times, most recently from 6af7cea to ffae8c5 Compare December 1, 2025 20:38
@NotHyper-474
NotHyper-474 force-pushed the hashlink-patches branch 4 times, most recently from 592762d to 2c6a6b1 Compare December 10, 2025 19:26
@NotHyper-474
NotHyper-474 force-pushed the hashlink-patches branch 3 times, most recently from cdbff14 to 7a5db94 Compare December 14, 2025 18:37
@NotHyper-474
NotHyper-474 force-pushed the hashlink-patches branch 2 times, most recently from 5f6de1f to 92baa39 Compare December 24, 2025 18:10
Co-authored-by: Sinco <113909588+sphis-Sinco@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr: haxe PR modifies game code. size: large A large pull request with more than 100 changes. status: accepted PR was approved for contribution. If it's not already merged, it may be merged on a private branch. topic: changes assets Modifies the assets submodule, or has an associated pull request in the funkin.assets repository. type: major bug Involves a major bug, including crashes, softlocks, or issues blocking progression

Development

Successfully merging this pull request may close these issues.

Compiling Help: Cannot compile for hashlink

5 participants