-
-
Notifications
You must be signed in to change notification settings - Fork 44
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
Fix #137 (rewrite/polymer) #181
Fix #137 (rewrite/polymer) #181
Conversation
- Replacement was not anywhere in build setup - Loom automatically adds the right refmap anyway, no need to explicitly define it
This seems ok, I'm just not sure about the refmap part. I think it was left over from forge legacy. Have you perhaps also built the jarfile and run in it production? |
Yeah, I did, and I also included some screenshots in case you wanna look. Also I've noticed that localization is partially broken but I'm just too lazy to figure it out and fix lol |
Ah yeah, localization still needs fixing (alongisde gameprofiles). Thanks for contributing! |
* Migrate to polymer * npc selections glow again * skin layers working again * set skin layers to all on by default * Fix #137 (rewrite/polymer) (#181) * fix #137 (init): speak distance, requires some testing * fix: removed refmap field in common.mixins.json, fixed crash - Replacement was not anywhere in build setup - Loom automatically adds the right refmap anyway, no need to explicitly define it * removed commented code (lol) * Update gradle.properties to iterate mod_version Updated mod_version to ensure compatibility with FabricTailor is retained * Update Taterzens.java to init lang as the correct datatype Initialised an empty JsonObject to ensure the mod doesn't trip over lang being null. Has the odd side effect of allowing the GUI to start working. * Update LanguageUtil.java Language file path Updated the path to the language files within the .jar. Note that it loads from within it, NOT from the filepath in the config folder. * Update TextUtil.java Commenting out SERVER_TRANSLATION Commented out SEVER_TRANSLATIONS reference because it was blocking any attempt to read from the language.json files in toto. This may be removed in future as it doesn't seem to apply anywhere else in the codebase, and was returning nothing that could be used by the functions seeking translation. * Update EditorGUI.java Generate UUID to prevent GameProfile null crash Generated temporary UUID to keep GameProfile from crashing the server when it tries to generate a result using a null uuid entry. * Update Taterzens.java Syntax Error Fix Fix syntax error for defining JsonObject * Update TaterzensClient.java This just seems to be dead code. It throws an error at build when not commented out, but doesn't seem to affect mod function. Most of the imports can be removed, too. * Update TypeCommand.java Introduced the concept of modEntity, which is a part of an NPC's definition, and which maps directly to the Entity Type in CAPS. * Update NPCData.java Added the hashmaps for the entity list and player entity so that we can track and manipulate them with ease when setting TYPE. * Update TaterzenNPC.java We make the necessary changes to allow player TYPE to be edited and for it to persist across world / game loads. * Update TaterzenNPC.java Loose bracket... * Update build.gradle Changes to exclude disguiselib (polymer provides that function), servertranslations (unsure of 1.21 version support, but doesn't impact most mod function), and updated Java build versions and targets inline with the requirements for 1.21 * Update gradle.properties Updated the Fabric Properties to 1.21 requirements. Updated the mod_version, and dependencies that support 1.21 * Update TextUtil.java toJson and fromJson now need a provider as the final argument when invoked. Currently nulled, and seems to work fine. May require more investigation later. * Update FabricPlatform.java Commented out the openEditorGui code (and import) since we've disabled the GUI for now as part of the 1.21 update. The issues is tied to ItemStacks and whether we'll stick to the official mappings or Yarn going forward. * Update Taterzens.java Changes to ResourceLocation introduced in Minecraft 1.21 * Update NpcCommand.java Commented out the teleport command for now. TODO work to correct its implementation with Minecraft 1.21 changes. * Update TaterzensCommand.java Updated the ResourceLocation code to match Minecraft 1.21 support * Update TeleportCommand.java Temporarily disables the teleport command while working out the 1.21 Minecraft changes. * Update BehaviourCommand.java Updated to address the ResourceLocation changes in 1.21 * Update MovementCommand.java Updated to address the ResourceLocation changes for 1.21 * Update TaterzensCommand.java Error when running prior diff. Corrected the corrected ResourceLocation fix. * Update BehaviourCommand.java Corrected error from prior diff. Related to the ResourceLocation fix. * Update ProfessionsCommand.java Updated the ResourceLocation implementation in accordance with 1.21 * Update SoundCommand.java Updated ResourceLocation usage in accordance with the 1.21 ResourceLocation implementation. * Update TypeCommand.java Commenting out the DisguiseLib support for now, as Polymer provides the entity type modification interface. * Update CommandsCommand.java Updated the ResourceLocation code in accordance with the 1.21 ResourceLocation changes. * Update ServerGamePacketListenerImplMixin_MsgEditor.java Updated fromJson implementation with changes to Serializer with Minecraft 1.21 * Update TaterzenNPC.java Significant changes throughout: - setMaxUpStep is removed from 1.20.5 - ResourceLocation changes to meet 1.21 - dropCustomDeathLoot issues to be resolved - isLeashed issues to be resolved - Projectile related issues to be resolved - Issues with data.removeIf implementation to be resolved - * Update BungeeCommand.java Updated ResourceLocation code to 1.21 implementation. Commented out ClientBoundCustomPayloadPacket code as it still needs work to meet 1.21. Query whether Bungee support is still required in the mod. * Update ScarpetProfession.java Updated the ResourceLocation code to meet 1.21 * Update FabricPlatform.java Fixed spelling mistake. Main update was to temporarily comment out the EditorGUI functions. * Update MessagesEditGUI.java Commented out issues with itemStack implementation that haven't been resolved to the 1.21 implementation yet. As such, the GUIs have been disabled for now. * Update ListItemsGUI.java Commented out issues with itemStack implementation that haven't been resolved to the 1.21 implementation yet. As such, the GUIs have been disabled for now. * Update EditorGUI.java Commented out issues with itemStack implementation that haven't been resolved to the 1.21 implementation yet. As such, the GUIs have been disabled for now. --------- Co-authored-by: samolego <[email protected]> Co-authored-by: MagicSweet <[email protected]>
Fixes the speak_distance (#137) issue
The issue
What did I do (read the comment first):
TaterzenNPC
'stick()
implementation, pass the speakDistance config value instead of 4.0D to theAABB
'sinflate()
methodfor
loop. Distance is applied anyway, on the box calculation step. This decision is questionable tho, lmk what you think @samolegoHere's some screenshots of Minecraft and config file
A little bit more
Also, some additional fixes:
"refmap": "${refmap}"
in the common mixin config, but I didn't find any mentions of it in the build setup. It was preventing the mod from launching (lol), because Mixin was failing to locate this non-existent refmap (it also said so). Furthermore, such a pattern isn't present in client mixin config. What I did is removed the line, details explained in a commit description. Again, up to debate, but the mod doesn't even start without it.