Jump to content

DarkShadow44

Members
  • Posts

    7
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

DarkShadow44's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. There is a bunch of errors, but this one seems like the culprit: [04Mar2022 18:35:23.471] [Render thread/WARN] [net.minecraft.client.Minecraft/]: Failed to load datapacks, can't proceed with server load com.google.gson.JsonParseException: Error loading registry data: No key arch_block in MapLike[{"arch_blocks":["minecraft:stripped_dark_oak_log"], ...] The log doesn't tell me who's at fault though, but if I can wager a guess, I'd say "Repurposed Structures". Try downgrading that to repurposed_structures_forge-4.2.6+1.18.1, maybe?
  2. To make it clear, it crashes on the loading screen of the game, before even loading a world? Try resetting your options. If it's not the world, and it used to work, you need to find out what is different now. Shouldn't be too many possibilities...
  3. Of course, you are not supposed to install it into the mods folder... Logs or it didn't happen. Without logs, there nothing we can do.
  4. Yes. But I think you can also use a site like pastebin.
  5. I found a way to handle this, using javapoet as you suggested. For those who are interested in how it works, you can take a look at my sample here: https://github.com/DarkShadow44/compatibilitymod/tree/sourcegen Might not work with eclipse yet, but it builds properly.
  6. Thanks, that looks suitable for generating the classes themselves. It's surely better than stitching text together. Although I'd still need a way to hook into the compile process, both with gradle and eclipse. That's my main problem, how would I go about that?
  7. Hello there, I am trying to something a little unconventional... I hope I am right here and this is an allowed question. Basically, I'm working on a sort of wrapper on top of forge - allowing mods for older version to work. The specifics of that shouldn't matter, but I'm looking to improve the way I go about things. To do the heavy lifting, I'm using wrappers - I've spent quite some time on the architecture, and I don't think that's avoidable. However, a lot of the code is redundant and I want to autogenerate it. Let's take the following (pseudocode) example: @Wrapper(Block.class) public interface IBlockWrapper { public void setXYZ(); } I want to generate an implementation for that interface: public class BlockWrapper implements IBlockWrapper { private Block block; public BlockWrapper(Block block) { this.block = block; } public void setXYZ() { // ... } } Currently I generate the classes for the interfaces at runtime using asm and then loading them into the running program. Which is a pretty... terrible approach, actually. What I'm looking for is a way to generate an actual .java class, that a) works in eclipse and b) will be compiled into the finished jar (and properly re-obfuscated to srg) I searched around, and apparently there are Annotation Processors that seem suited, but I am not entirely sure. Could you help point me in the right direction on how to approach that problem? Surely I'm not the first who wants to autogenerate classes. I understand that what I'm doing might sound crazy, but I'd prefer if this doesn't turn into a discussion on why what I'm doing is a bad idea. I just like hacking Minecraft, what should I say. EDIT: For the setup, I want it to work with a clean 1.16.5 forge install (latest version). Using the gradle version and eclipse-generating capabilities that comes with. Once that works, I'll integrate it into my existing code base, and might try to backport it on my own. But the final target should still be 1.16.X. Regards, DarkShadow44
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.