Skip to content

Conversation

@tticehurst
Copy link
Contributor

Compiled well on Fabric. Disabled forge as it would not compile.
Attempted troubleshoot but only have limited experience with forge over fabric.

MattSturgeon

This comment was marked as resolved.

tticehurst and others added 4 commits December 16, 2023 13:10
Co-authored-by: Matt Sturgeon <matt@sturgeon.me.uk>
Co-authored-by: Matt Sturgeon <matt@sturgeon.me.uk>
Co-authored-by: Matt Sturgeon <matt@sturgeon.me.uk>
…t.java

Co-authored-by: Matt Sturgeon <matt@sturgeon.me.uk>
@tticehurst
Copy link
Contributor Author

Added changes suggested

@tticehurst
Copy link
Contributor Author

Even with that fix, there's still another issue with the forge build. It fails in the dev env because of how architectury plugin splits the build into two mods. Upstream have a fix, but I haven't looked into it yet. It may work in production though (if so, forge could be re-enabled).

Can confirm it works in production

MattSturgeon

This comment was marked as resolved.

@tticehurst
Copy link
Contributor Author

Added nitpicks

Copy link
Member

@MattSturgeon MattSturgeon left a comment

Choose a reason for hiding this comment

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

Great. Personally, I'd squash all commits into one & then force-push, but idk how picky @hashalite is about keeping commit history clean.

I might post some build artifacts on #125 as idk how long it'll take for @hashalite to see/merge this...

@tticehurst
Copy link
Contributor Author

Will leave how the commits are for now until hashalite responds then will go from there, easier to squash than unsquash

@MattSturgeon
Copy link
Member

Here's a prod fabric build: freecam-fabric-1.2.1.1-1.20.4.zip

For some reason the forge build is failing in prod with Could not find net/minecraft/client/Minecraft.class in classloader. Looks like the build isn't being remapped to searge mappings correctly? freecam-forge-1.2.1.1-1.20.4.zip.

I haven't got time to look into this right now, it may or may not be 1.20.4 specific (could be a bug with #118)...

Launcher: standard

Java Arguments:
[-Xms2048m, -Xmx8064m, -Duser.language=en]


Minecraft process ID: 839


Checking: MERGED_MAPPINGS
Checking: MAPPINGS
Checking: MOJMAPS
Checking: PATCHED
Checking: MC_SRG
2023-12-16 16:06:20,459 main WARN Advanced terminal features are not available in this environment
[16:06:20] [main/INFO] [cp.mo.mo.Launcher/MODLAUNCHER]: ModLauncher running: args [--username, Bot_1, --version, 1.20.4, --gameDir, /home/matt/.var/app/org.prismlauncher.PrismLauncher/data/PrismLauncher/instances/freecam 1.20.4 forge test/.minecraft, --assetsDir, /home/matt/.var/app/org.prismlauncher.PrismLauncher/data/PrismLauncher/assets, --assetIndex, 12, --uuid, <PROFILE ID>, --accessToken, **********, --userType, offline, --versionType, release, --launchTarget, forge_client, --fml.forgeGroup, net.minecraftforge, --fml.forgeVersion, 49.0.9, --fml.mcVersion, 1.20.4, --width, 854, --height, 480]
[16:06:20] [main/INFO] [cp.mo.mo.Launcher/MODLAUNCHER]: JVM identified as Flathub OpenJDK 64-Bit Server VM 17.0.9+7
[16:06:20] [main/INFO] [cp.mo.mo.Launcher/MODLAUNCHER]: ModLauncher 10.1.2 starting: java version 17.0.9 by Flathub; OS Linux arch amd64 version 6.6.3-1-default
[16:06:20] [main/INFO] [ne.mi.fm.lo.ImmediateWindowHandler/]: Loading ImmediateWindowProvider fmlearlywindow
[16:06:20] [main/INFO] [EARLYDISPLAY/]: Trying GL version 4.6
[16:06:20] [main/INFO] [EARLYDISPLAY/]: Requested GL version 4.6 got version 4.6
[16:06:20] [EarlyDisplay/INFO] [EARLYDISPLAY/]: GL info: AMD Radeon RX 5700 XT (navi10, LLVM 16.0.6, DRM 3.54, 6.6.3-1-default) GL version 4.6 (Core Profile) Mesa 23.2.1 (git-49a47f187e), AMD
[16:06:20] [main/INFO] [mixin/]: SpongePowered MIXIN Subsystem Version=0.8.5 Source=jar:file:///home/matt/.var/app/org.prismlauncher.PrismLauncher/data/PrismLauncher/libraries/org/spongepowered/mixin/0.8.5/mixin-0.8.5.jar!/ Service=ModLauncher Env=CLIENT
Exception caught from launcher
java.lang.reflect.InvocationTargetException
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
	at io.github.zekerzhayard.forgewrapper.installer.Main.main(Main.java:66)
	at org.prismlauncher.launcher.impl.StandardLauncher.launch(StandardLauncher.java:87)
	at org.prismlauncher.EntryPoint.listen(EntryPoint.java:130)
	at org.prismlauncher.EntryPoint.main(EntryPoint.java:70)
Caused by: java.lang.reflect.InvocationTargetException
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
	at net.minecraftforge.bootstrap.Bootstrap.start(Bootstrap.java:48)
	at net.minecraftforge.bootstrap.ForgeBootstrap.main(ForgeBootstrap.java:18)
	... 8 more
Caused by: java.lang.IllegalStateException: Could not find net/minecraft/client/Minecraft.class in classloader SecureModuleClassLoader[SECURE-BOOTSTRAP]@102065302
	at SECURE-BOOTSTRAP/net.minecraftforge.fmlloader@1.20.4-49.0.9/net.minecraftforge.fml.loading.targets.CommonLaunchHandler.getPathFromResource(CommonLaunchHandler.java:98)
	at SECURE-BOOTSTRAP/net.minecraftforge.fmlloader@1.20.4-49.0.9/net.minecraftforge.fml.loading.targets.ForgeProdLaunchHandler$Client.getMinecraftPaths(ForgeProdLaunchHandler.java:28)
	at SECURE-BOOTSTRAP/net.minecraftforge.fmlloader@1.20.4-49.0.9/net.minecraftforge.fml.loading.moddiscovery.MinecraftLocator.scanMods(MinecraftLocator.java:24)
	at SECURE-BOOTSTRAP/net.minecraftforge.fmlloader@1.20.4-49.0.9/net.minecraftforge.fml.loading.moddiscovery.ModDiscoverer.discoverMods(ModDiscoverer.java:80)
	at SECURE-BOOTSTRAP/net.minecraftforge.fmlloader@1.20.4-49.0.9/net.minecraftforge.fml.loading.FMLLoader.beginModScan(FMLLoader.java:154)
	at SECURE-BOOTSTRAP/net.minecraftforge.fmlloader@1.20.4-49.0.9/net.minecraftforge.fml.loading.FMLServiceProvider.beginScanning(FMLServiceProvider.java:58)
	at SECURE-BOOTSTRAP/cpw.mods.modlauncher@10.1.2/cpw.mods.modlauncher.TransformationServiceDecorator.runScan(TransformationServiceDecorator.java:98)
	at SECURE-BOOTSTRAP/cpw.mods.modlauncher@10.1.2/cpw.mods.modlauncher.TransformationServicesHandler.lambda$runScanningTransformationServices$7(TransformationServicesHandler.java:96)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197)
	at java.base/java.util.HashMap$ValueSpliterator.forEachRemaining(HashMap.java:1779)
	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:575)
	at java.base/java.util.stream.AbstractPipeline.evaluateToArrayNode(AbstractPipeline.java:260)
	at java.base/java.util.stream.ReferencePipeline.toArray(ReferencePipeline.java:616)
	at java.base/java.util.stream.ReferencePipeline.toArray(ReferencePipeline.java:622)
	at java.base/java.util.stream.ReferencePipeline.toList(ReferencePipeline.java:627)
	at SECURE-BOOTSTRAP/cpw.mods.modlauncher@10.1.2/cpw.mods.modlauncher.TransformationServicesHandler.runScanningTransformationServices(TransformationServicesHandler.java:98)
	at SECURE-BOOTSTRAP/cpw.mods.modlauncher@10.1.2/cpw.mods.modlauncher.TransformationServicesHandler.initializeTransformationServices(TransformationServicesHandler.java:49)
	at SECURE-BOOTSTRAP/cpw.mods.modlauncher@10.1.2/cpw.mods.modlauncher.Launcher.run(Launcher.java:86)
	at SECURE-BOOTSTRAP/cpw.mods.modlauncher@10.1.2/cpw.mods.modlauncher.Launcher.main(Launcher.java:73)
	at SECURE-BOOTSTRAP/cpw.mods.modlauncher@10.1.2/cpw.mods.modlauncher.BootstrapEntry.main(BootstrapEntry.java:17)
	at net.minecraftforge.bootstrap@2.0.0/net.minecraftforge.bootstrap.Bootstrap.moduleMain(Bootstrap.java:97)
	... 14 more
Exiting with ERROR
Process exited with code 2.

The only changes I've made are to the archive base: MattSturgeon@725ee5d

@tticehurst
Copy link
Contributor Author

hmm I managed to load up mc with the forge build and it all worked fine

@MattSturgeon
Copy link
Member

MattSturgeon commented Dec 16, 2023

Just installed the official launcher and tested again. Works fine there.

I wasn't hitting an issue with our build, rather LexForge has broken support for unofficial launchers: MinecraftForge/MinecraftForge#9815
EDIT: looks like a different error actually, but still only affects non-official launcher 🤔

@hashalite
Copy link
Collaborator

Hello, apologies for the delay in getting back to you. I have been quite busy with exams over the past couple weeks. Thanks for taking the time to update the mod! Don't worry about cleaning up the commit history, I'm not too picky about that. I just want to confirm the issue with the forge build is not on our end before merging. Has anyone had time to look into it further?

@MattSturgeon
Copy link
Member

Hello, apologies for the delay in getting back to you. I have been quite busy with exams over the past couple weeks.

No worries, hopefully they went well 🤞

I just want to confirm the issue with the forge build is not on our end before merging. Has anyone had time to look into it further?

I've not looked into it much yet. My understanding is there's two separate issues; one effecting the dev env and the other affecting unofficial launchers.

I suspect the dev env will be solved by an architectury-loom update or some workaround discussed in they're discord. This shouldn't block doing a release.

I believe the unofficial launcher issue has nothing to do with our mod, and (if it's not fixed by launchers yet) would be reproducible even without any mods installed.

Again, I haven't confirmed that yet.

@tticehurst
Copy link
Contributor Author

Tried installing forge on multimc, just met with an error when attempting to lanch even without any mods. Seems to be a forge related issue rather than a mod one

@MattSturgeon
Copy link
Member

@hashalite It'd be great to get this merged and/or get a 1.20.4 release out before xmas 😀 🎄

I know I've created a bunch of merge conflicts in other PRs. Let me know if you'd like me to put a branch together with the current conflicts resolved.

@hashalite
Copy link
Collaborator

@hashalite It'd be great to get this merged and/or get a 1.20.4 release out before xmas 😀 🎄

Yup! That's my goal

I know I've created a bunch of merge conflicts in other PRs. Let me know if you'd like me to put a branch together with the current conflicts resolved.

If it isn't too much trouble, this would be very helpful

@hashalite
Copy link
Collaborator

If it isn't too much trouble, this would be very helpful

Never mind, it was just a couple of changes

@hashalite hashalite merged commit 4f6d1e1 into MinecraftFreecam:main Dec 24, 2023
@hashalite
Copy link
Collaborator

Thanks again you all!

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.

3 participants