Skip to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

warjort

Members
  • Joined

  • Last visited

Everything posted by warjort

  1. https://github.com/Asek3/Oculus/issues/257
  2. Issue with the infernal expansion mod. Probably because the version you have is not compatible with 1.19.2?
  3. You are missing the mrcrayfish framework mod.
  4. Can you please stop posting snippets and show all the relevant code (preferably on github), so I don't have to guess what you are doing and waste my time like I did above. e.g. (and it is only one example) what does this do: Without seeing all the code, I can't tell why your xmap solution doesn't work, you don't show where/how it is referenced/used.
  5. I don't really follow what you are trying to do from that description. 🙂 But if you want to change the codec based on a "type" field, look at Codec.partialDispatch() or one of its simplified helpers that call it. The basic idea is you tell it the name of type field, and then some functions that tell it how to map type -> Codec<value> and value -> type Here's a "simple" example I knocked up. I obviously don't recommend using the class name in a real world example as the type discriminator. You can use any "primitive" type as the typeCodec, e.g. a ResourceLocation public class TypedCodecRegistry<TYPE, VALUE> { // The codec for the type field private final Codec<TYPE> typeCodec; // The mapping of value -> type private final Function<VALUE, TYPE> typeFunction; // type -> real codec private final Map<TYPE, Codec<? extends VALUE>> CODECS = new HashMap<>(); public TypedCodecRegistry(Codec<TYPE> typeCodec, Function<VALUE, TYPE> typeFunction) { this.typeCodec = typeCodec; this.typeFunction = typeFunction; } public Codec<VALUE> codec() { return this.typeCodec.partialDispatch( "type", // The name of the type field // given a value what is its type? value -> DataResult.success(this.typeFunction.apply(value)), // look up the codec for a type or its an error type -> Optional.ofNullable(this.CODECS.get(type)).map(DataResult::success).orElse(DataResult.error("Unknown type " + type))); } public void register(TYPE type, Codec<? extends VALUE> codec) { this.CODECS.put(type, codec); } public static void main(String[] args) { // type is the class's simple name var registry = new TypedCodecRegistry<>(Codec.STRING, value -> value.getClass().getSimpleName()); var codec = registry.codec(); registry.register(Integer.class.getSimpleName(), Codec.INT); registry.register(String.class.getSimpleName(), Codec.STRING); registry.register(ResourceLocation.class.getSimpleName(), ResourceLocation.CODEC); System.out.println(encode(codec, "hello world")); System.out.println(encode(codec, 42)); System.out.println(encode(codec, new ResourceLocation("minecraft:dirt"))); } public static String encode(Codec<Object> codec, Object value) { return codec.encodeStart(JsonOps.INSTANCE, value).getOrThrow(false, System.err::println).toString(); } } It outputs
  6. I've never seen anything like that. I would suggest backing up your worlds and then doing a full clean reinstall. Something is obviously very broken, but trying to track it down with no information is going to be a lot slower.
  7. https://forums.minecraftforge.net/topic/119038-1192-failed-to-run-example-mod-on-fresh-setup/#comment-522788
  8. You have 5 mods that want a different version of forge. You have an issue with the t_and_t mod injecting a mixin that tries to load a class that doesn't exist. Contact the mod author.
  9. This error means the server is trying to send block information to the client, but the client can't find the block. There are other errors before the one that causes the crash. Some have a different error that says the palette is the wrong length. I can see you don't have the correct/latest preview release of optifine so try that. Or try without optifine. Optifine and other "optimisation" mods are always a good candidate to remove when you get weird errors.
  10. Issue with oculus, contact the mod author.
  11. Looks like there is something broken in your gui configuration? All I could find searching google is this old bug: https://www.rarst.net/software/cleartype-install4j-java-bug/ where an application had set the font size to an non-integer number. You would likely get more help contacting your java vendor.
  12. EntityAttributeModificationEvent https://forge.gemwire.uk/wiki/Making_Entities#Entity_Attributes
  13. Install the latest preview release of optifine for 1.18.2
  14. Use java 17, mixin does not support java 19
  15. This is a crash in the java virtual machine, you need to report it to microsoft. Or you can try a different version of java, e.g. https://adoptium.net/ But it could be you just ran out of memory and java didn't handle it properly?
  16. You are more likely to be ignored or even warned/banned if you "necro post" (resurrect old threads).
  17. This is a duplicate post except now the chunk animator warnings are gone. You still have the unknown mod trying to load client side classes on the server in a mixin. You will have to check your mod's issues and mod pages on curseforge to see if they say they shouldn't be installed on the server. Otherwise you will have to experiment with removing mods until you find the mod that causes the problem. (Backup your world before removing mods).
  18. Don't hijack other people's threads. Start your own thread and as was said above, post the first 20 lines of the hs_err_pid so we can see the error.
  19. One of your mods is trying to load client side classes on the dedicated server. The error message doesn't say which one. There are previous warnings about ad astra and chunk animator trying to do this. You probably have a broken client side only mod that doesn't disable itself when on the server.
  20. 1073740791 is a crash in native code. Post links your the crash report, logs/debug.log and launcher_log.txt to see if any of these give more information. Since you have AMD, this might be a possible fix: https://forums.minecraftforge.net/topic/119038-1192-failed-to-run-example-mod-on-fresh-setup/?do=findComment&comment=522788
  21. Issue with the afktimers mod. Check you have the latest version the contact the mod author.
  22. This is a crash in the jvm, you need to report it to microsoft. Or you can try a different version of java, e.g. https://adoptium.net/ But it could be you just ran out of memory and java didn't handle it properly?

Important Information

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.