Skip to content

FG Legacy Bulk tests#10

Draft
LexManos wants to merge 2 commits into
MinecraftForge:masterfrom
LexManos:FGLegacy
Draft

FG Legacy Bulk tests#10
LexManos wants to merge 2 commits into
MinecraftForge:masterfrom
LexManos:FGLegacy

Conversation

@LexManos
Copy link
Copy Markdown
Member

@LexManos LexManos commented Jun 4, 2026

MDKExamples companion to MinecraftForge/MinecraftMavenizer#29
Requires publishing that Pr to your maven local and making sure the build number is correct

Most everything is working, last target is 1.6.4

@LexManos LexManos marked this pull request as draft June 4, 2026 22:50
@LexManos
Copy link
Copy Markdown
Member Author

LexManos commented Jun 5, 2026

Java 6 is functional, I did both a fix on mavenizer's end (setting the recompile target to java 6) and a fix on our the user end.
Please take note of the 1.6.4 build.gradle for explanation of whats needed for Java 8.

// This is required by old Forge versions because Java 8u20 changed the sorting implementation for Lists
// And that causes a ConcurrentModificationException, this **could** be added by Mavenizer but i'm on the fence for doing that.
// https://github.com/MinecraftForge/LegacyJavaFixer/blob/master/src/main/java/net/minecraftforge/legacyjavafixer/sort/LegacyJavaSortTweaker.java
implementation('net.minecraftforge.lex:legacyjavafixer:1.0')
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Adding LegacyFixer this way doesn't work, possibly because the game launches before it's applied. We can only add it manually to the working directory.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Ill double check when im back at a computer. I might of added it to my mods folder and forgot while working on other things.

If that is the case. Then it is most likely due to FML not scanning the classpath for tweakers.

Would you happen to know off hand what FML for 1.6.4 DOES scan for tweakers? Im sure itnscans more then just the mods folder as how else would it find in-dev tweakers. Perhaps it just needs an environemt variable of something.

Copy link
Copy Markdown

@zeng-github01 zeng-github01 Jun 5, 2026

Choose a reason for hiding this comment

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

I don't understand these underlying things, but I can search the FML source code to try to get relevant information.

I even discovered by reading the source code that AccessTransformer in version 1.6.4 is not automatically applied in the runtime environment; a separate Coremod plugin needs to be written to add a class that inherits from AccessTransformer.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I was able to find it on my phone. need to provide fml.coreMods.load

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Copy link
Copy Markdown

@zeng-github01 zeng-github01 Jun 5, 2026

Choose a reason for hiding this comment

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

https://github.com/MinecraftForge/LegacyJavaFixer/blob/6d7b866821fe12da4778fda247c1a6af09dd254d/src/main/java/net/minecraftforge/legacyjavafixer/sort/LegacyJavaSortDummyLoadingPlugin.java#L22

It's strange that the JAR file I got from Forge Maven doesn't have this namespace and class, but the reference still works.

EDIT:Actually, there were too many irrelevant error codes, and CNF exceptions were pushed to the top. I misread it.

image

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.

2 participants