Jump to content

DestroyedAdventure

Members
  • Posts

    9
  • Joined

  • Last visited

Recent Profile Visitors

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

DestroyedAdventure's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. Thanks for the info. Excluding dependencies under minecraftLibrary helped. minecraftLibrary('org.mariadb.jdbc:mariadb-java-client:3.1.3'){ exclude group: 'net.java.dev.jna', module: 'jna-platform' exclude group: 'net.java.dev.jna', module: 'jna' }
  2. Hello, when I integrate the mariadb-client via gradle, I get an error message with the message Duplicate key. You can see the complete message as an attachment. Can someone help me to fix that? build.gradle: dependencies { minecraft 'net.minecraftforge:forge:1.19.4-45.0.43' annotationProcessor 'org.spongepowered:mixin:0.8.5:processor' jarJar(group: 'org.xerial', name: 'sqlite-jdbc', version: '[3.0,4.0)') { jarJar.pin(it, '3.41.2.1') } minecraftLibrary('org.xerial:sqlite-jdbc:3.41.2.1') jarJar(group: 'org.mariadb.jdbc', name: 'mariadb-java-client', version: '[3.0,4.0)') { jarJar.pin(it, '3.1.3') } minecraftLibrary('org.mariadb.jdbc:mariadb-java-client:3.1.3') } Error: Exception in thread "main" java.lang.IllegalStateException: Duplicate key C:\Users\***\.gradle\caches\modules-2\files-2.1\net.java.dev.jna\jna-platform\5.12.1\97406a297c852f4a41e688a176ec675f72e8329\jna-platform-5.12.1.jar (attempted merging values EmbeddedFileSystemMetadata[path=C:\Users\***\.gradle\caches\modules-2\files-2.1\net.java.dev.jna\jna-platform\5.12.1\97406a297c852f4a41e688a176ec675f72e8329\jna-platform-5.12.1.jar, fs=C:\Users\***\.gradle\caches\modules-2\files-2.1\net.java.dev.jna\jna-platform\5.12.1\97406a297c852f4a41e688a176ec675f72e8329\jna-platform-5.12.1.jar] and EmbeddedFileSystemMetadata[path=C:\Users\AdrianMeyer\.gradle\caches\modules-2\files-2.1\net.java.dev.jna\jna-platform\5.12.1\97406a297c852f4a41e688a176ec675f72e8329\jna-platform-5.12.1.jar, fs=C:\Users\***\.gradle\caches\modules-2\files-2.1\net.java.dev.jna\jna-platform\5.12.1\97406a297c852f4a41e688a176ec675f72e8329\jna-platform-5.12.1.jar]) at java.base/java.util.stream.Collectors.duplicateKeyException(Collectors.java:135) at java.base/java.util.stream.Collectors.lambda$uniqKeysMapAccumulator$1(Collectors.java:182) at java.base/java.util.stream.ReduceOps$3ReducingSink.accept(ReduceOps.java:169) at java.base/java.util.stream.Streams$StreamBuilderImpl.forEachRemaining(Streams.java:411) at java.base/java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:762) at java.base/java.util.stream.ReferencePipeline$7$1.accept(ReferencePipeline.java:276) at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:197) at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:179) at java.base/java.util.AbstractList$RandomAccessSpliterator.forEachRemaining(AbstractList.java:720) at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509) at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921) at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:682) at cpw.mods.securejarhandler/cpw.mods.niofs.union.UnionFileSystem.<init>(UnionFileSystem.java:107) at cpw.mods.securejarhandler/cpw.mods.niofs.union.UnionFileSystemProvider.newFileSystemInternal(UnionFileSystemProvider.java:115) at cpw.mods.securejarhandler/cpw.mods.niofs.union.UnionFileSystemProvider.newFileSystem(UnionFileSystemProvider.java:105) at cpw.mods.securejarhandler/cpw.mods.jarhandling.impl.Jar.<init>(Jar.java:84) at cpw.mods.securejarhandler/cpw.mods.jarhandling.SecureJar.from(SecureJar.java:70) at cpw.mods.securejarhandler/cpw.mods.jarhandling.SecureJar.from(SecureJar.java:62) at cpw.mods.securejarhandler/cpw.mods.jarhandling.SecureJar.from(SecureJar.java:54) at [email protected]/cpw.mods.bootstraplauncher.BootstrapLauncher.lambda$main$6(BootstrapLauncher.java:99) at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183) at java.base/java.util.stream.SortedOps$SizedRefSortingSink.end(SortedOps.java:357) at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:510) at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150) at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173) at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596) at [email protected]/cpw.mods.bootstraplauncher.BootstrapLauncher.main(BootstrapLauncher.java:93) Process finished with exit code 1
  3. Sorry, but my text is irrelevant to others. It contains neither solutions or problems and was addressed to you. I thought it wouldn't be a problem if it was written in German.
  4. War der Meinung, dass es in einer älteren Version von Forge/Minecraft eine Methode zum rendern von Elementen gab, die überschrieben wurde. Hätte ja sein können, dass es die noch gibt oder ich verwechsle da was🤔. Das letzte mal habe ich mich mit Minecraft Forge Modding 2013 beschäftigt . Hab jetzt eine eigene Methode geschrieben, die aufgerufen wird. Danke für die Hilfe! Funktioniert!
  5. I changed this in the Event-Handler and the PlayerDataScreen extending now from the AbstractGui Class (Is this the right class? Or should I choose the ForgeIngame class?). But it works perfectly I cant find any methode to override for drawing content Im stupid and it's really hard with obfuscated names Nope, i'm studying alone i have a question @diesieben07, can you speak german?^^
  6. Hello everybody, i need your help. I render a custom screen in Minecraft with the RenderGameOverlayEvent, but the Armor Bar and Food Bar lose their texture coordinates. Is that a bug or am I doing something wrong? Event-Handler: @Mod.EventBusSubscriber public class GuiEvents { @SubscribeEvent public static void renderGUI(RenderGameOverlayEvent.Post event) { new PlayerDataScreen(Minecraft.getInstance(), event.getMatrixStack()); } } Screen: public class PlayerDataScreen extends IngameGui { public PlayerDataScreen(Minecraft mcIn, MatrixStack matrixStack) { super(mcIn); StringTextComponent textComponent = new StringTextComponent(""); textComponent.func_240699_a_(TextFormatting.GOLD); textComponent.func_230529_a_(new StringTextComponent(",").func_240699_a_(TextFormatting.WHITE)); textComponent.func_230529_a_(new StringTextComponent("").func_240699_a_(TextFormatting.DARK_GRAY)); textComponent.func_230529_a_(new StringTextComponent(",").func_240699_a_(TextFormatting.WHITE)); textComponent.func_230529_a_(new StringTextComponent("").func_240699_a_(TextFormatting.DARK_RED)); this.getFontRenderer().func_243246_a(matrixStack, textComponent, 15,15, 16); } } Result:
  7. I think the javaw.exe cannot be found. Trie to reinstall Minecraft or change the Java-Path in the Profile-Editor inside the MC-Launcher to the Java Installation Path.
  8. great thanks, it works! After a few more changes in the run configuration^^
  9. Hello guys, at first, sorry for my bad english skills^^ As mentioned above, I want to create a workspace in IntelliJ with several projects. What do I have to do? ^^ The aim is to develop two mods in parallel and test them at the same time. thank you for your help
×
×
  • Create New...

Important Information

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