Replies: 3 comments 11 replies
-
MappingsMappings used don't matter, won't matter and I'm not going to change them. But to avoid another lengthy discussion, here are the reasons I'm developing this with yarn and not official mappings (beyond personal preference):
|
Beta Was this translation helpful? Give feedback.
0 replies
-
|
What's wrong with the current extractor? |
Beta Was this translation helpful? Give feedback.
3 replies
-
|
Are you still working on this? You left the discord server. |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Moving discussion over from Discord.
The main idea is to write a small program that will take a mapped jar and output packet structure, ids and other useful info and then potentially generate/verify structs in the codebase.
Next step would be to do what the Java mod does because what's required for packet extraction is almost the same as pulling information about blocks, entities etc.
Currently I have a bare-bones fake JVM that can evaluate some bytecode - just enough to get the info we need, it won't call functions or do any logic. This is used to parse packet writer methods and extract packet structure (because class fields are not ordered).
Example output atm (not even close to what's supposed to be output, just a showcase of the state the work is in):
This won't be a fully automatic process, but should help with upgrading versions. I'll push the code once I clean it up a bit, this is more for general discussion about it.
cc @JackCrumpLeys since you were interested and this could help you with the 1.21.x work.
Beta Was this translation helpful? Give feedback.
All reactions