Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate forge -> neoforge #139

Merged
merged 5 commits into from
Dec 30, 2023
Merged

Conversation

MattSturgeon
Copy link
Member

@MattSturgeon MattSturgeon commented Dec 28, 2023

This PR migrates the forge project to neoforge.

I've noticed a couple issues so far (both fixed now):

  • Dev runs still don't work: Neoforge complains "Failed to find system mod: minecraft".
  • Show player is broken again. Player isn't rendered, regardless of "show player" setting.

Fixes #133
Fixes #135

gradle.properties Outdated Show resolved Hide resolved
Comment on lines -16 to -31
loom {
forge {
convertAccessWideners = true
extraAccessWideners.add loom.accessWidenerPath.get().asFile.name

mixinConfig "freecam-common.mixins.json"
mixinConfig "freecam-forge.mixins.json"
}
}

afterEvaluate {
// FIXME: arch-loom only does this for tasks.remapJarTask,
// meaning our variant tasks don't get AccessTransformers.
tasks.withType(RemapJarTask).each {
Aw2At.setup(project, it)
}
Copy link
Member Author

@MattSturgeon MattSturgeon Dec 28, 2023

Choose a reason for hiding this comment

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

Glad all this is gone.

Some of this can be backported. See #141.

Neoforge have deprecated `requires = true` in favor of `type = "required"`.
It doesn't support Neofore.
@MattSturgeon
Copy link
Member Author

MattSturgeon commented Dec 28, 2023

I was able to get past the dev-run issue by removing the deprecated 'mandatory' field (used type instead).

Looks like it was just Neoforge strictly enforcing the deprecation when in the dev environment: neoforged/FancyModLoader#60.

I also ran this gradle command for good measure:

./gradlew -Dloom.refresh=true tasks

Devlogin turned out to be an issue too, I've disabled it for now. See PlanetTeamSpeakk/DevLogin#16.
DevAuth doesn't have support either: DJtheRedstoner/DevAuth#12.

This isn't needed on Neoforge.

This reverts commit 977d6e8
@MattSturgeon
Copy link
Member Author

MattSturgeon commented Dec 28, 2023

Reverting the LexForge 'Show Player' fix was enough to fix that issue. I guess Neoforge doesn't have that quirk.

@hashalite
Copy link
Collaborator

Much appreciated!

@hashalite hashalite merged commit 5928069 into MinecraftFreecam:main Dec 30, 2023
@MattSturgeon MattSturgeon deleted the neoforge branch December 30, 2023 10:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Forge dev-env runs broken in 1.20.4 Neoforge
2 participants