Jump to content

BastouP

Members
  • Posts

    26
  • Joined

  • Last visited

Everything posted by BastouP

  1. Hello everyone ! I'm trying to figure out how to use foreg config. Do you have a good documentation to advice. I found some none talked about the "Config" button in the "Mods" menu. Is it possible to use ? Thanks ^^
  2. So the IO exceptions etc. should propagate all the way trough the intermediate functions, only to be caught in the lua function ?
  3. So what I do is like catching it, closing the files, and throw something like a runtime exception, or do I let it being thrown ?
  4. Sorry again but I'm not really sure how to handle exceptions tat should not happen, like the ones with the reflection. Is there a "good" way of dealing with them istead of ignoring them ?
  5. Thank you ^^ I'll correct everything.
  6. Oh I did not understand that I needed to do that ^^ As for the handling do you have an example of what you mean ? ^^
  7. debug.log I should also mention that I have optifine installed
  8. Hey everyone ! I have problems to run my mod outside of dev env. It is unable to reach my Util class and I'im unable to find why. I hope some people know where this comes from, and if you need more info i'll gladly give it ^^ Here are logs/image/github repo: ---- Minecraft Crash Report ---- // Don't do that. Time: 11/02/21 18:30 Description: Exception in server tick loop java.lang.NoClassDefFoundError: Could not initialize class fr.bastoup.bperipherals.util.Util at fr.bastoup.bperipherals.util.blocks.BlockOrientable.func_196258_a(BlockOrientable.java:26) ~[?:1.1.0] {re:classloading} at fr.bastoup.bperipherals.util.blocks.BlockPeripheral.func_196258_a(BlockPeripheral.java:24) ~[?:1.1.0] {re:classloading} at net.minecraft.item.BlockItem.func_195945_b(BlockItem.java:105) ~[?:?] {re:classloading} at net.minecraft.item.BlockItem.func_195942_a(BlockItem.java:51) ~[?:?] {re:classloading} at net.minecraft.item.BlockItem.func_195939_a(BlockItem.java:39) ~[?:?] {re:classloading} at net.minecraftforge.common.ForgeHooks.onPlaceItemIntoWorld(ForgeHooks.java:624) ~[?:?] {re:classloading} at net.minecraft.item.ItemStack.func_196084_a(ItemStack.java:184) ~[?:?] {re:classloading,xf:fml:forge:filled_map.4} at net.minecraft.server.management.PlayerInteractionManager.func_219441_a(PlayerInteractionManager.java:350) ~[?:?] {re:classloading} at net.minecraft.network.play.ServerPlayNetHandler.func_184337_a(ServerPlayNetHandler.java:958) ~[?:?] {re:classloading} at net.minecraft.network.play.client.CPlayerTryUseItemOnBlockPacket.func_148833_a(SourceFile:36) ~[?:?] {re:classloading} at net.minecraft.network.play.client.CPlayerTryUseItemOnBlockPacket.func_148833_a(SourceFile:10) ~[?:?] {re:classloading} at net.minecraft.network.PacketThreadUtil.lambda$checkThreadAndEnqueue$0(PacketThreadUtil.java:34) ~[?:?] {re:classloading,xf:OptiFine:default} at net.minecraft.network.PacketThreadUtil$$Lambda$6122/817328133.run(Unknown Source) ~[?:?] {} at net.minecraft.util.concurrent.TickDelayedTask.run(SourceFile:18) ~[?:?] {re:classloading} at net.minecraft.util.concurrent.ThreadTaskExecutor.func_213166_h(ThreadTaskExecutor.java:172) ~[?:?] {re:classloading,pl:accesstransformer:B,xf:OptiFine:default} at net.minecraft.util.concurrent.RecursiveEventLoop.func_213166_h(SourceFile:23) ~[?:?] {re:classloading} at net.minecraft.server.MinecraftServer.func_213166_h(MinecraftServer.java:734) ~[?:?] {re:classloading,pl:accesstransformer:B} at net.minecraft.server.MinecraftServer.func_213166_h(MinecraftServer.java:159) ~[?:?] {re:classloading,pl:accesstransformer:B} at net.minecraft.util.concurrent.ThreadTaskExecutor.func_213168_p(ThreadTaskExecutor.java:134) ~[?:?] {re:classloading,pl:accesstransformer:B,xf:OptiFine:default} at net.minecraft.server.MinecraftServer.func_213205_aW(MinecraftServer.java:717) ~[?:?] {re:classloading,pl:accesstransformer:B} at net.minecraft.server.MinecraftServer.func_213168_p(MinecraftServer.java:711) ~[?:?] {re:classloading,pl:accesstransformer:B} at net.minecraft.util.concurrent.ThreadTaskExecutor.func_213160_bf(ThreadTaskExecutor.java:115) ~[?:?] {re:classloading,pl:accesstransformer:B,xf:OptiFine:default} at net.minecraft.server.MinecraftServer.func_213202_o(MinecraftServer.java:696) ~[?:?] {re:classloading,pl:accesstransformer:B} at net.minecraft.server.MinecraftServer.func_240802_v_(MinecraftServer.java:646) [?:?] {re:classloading,pl:accesstransformer:B} at net.minecraft.server.MinecraftServer.lambda$startServer$0(MinecraftServer.java:232) [?:?] {re:classloading,pl:accesstransformer:B} at net.minecraft.server.MinecraftServer$$Lambda$5507/1039865382.run(Unknown Source) [?:?] {} at java.lang.Thread.run(Thread.java:745) [?:1.8.0_51] {} GitHub files: https://github.com/BastouP411/bperipherals/blob/master/src/main/java/fr/bastoup/bperipherals/util/Util.java https://github.com/BastouP411/bperipherals/blob/master/src/main/java/fr/bastoup/bperipherals/util/blocks/BlockOrientable.java Thanks ^^
  9. Okay I made it work with this: public static File getWorldFolder(ServerWorld world) throws NoSuchFieldException, IllegalAccessException { DimensionSavedDataManager savedData = world.getChunkProvider().getSavedData(); Field folderField = DimensionSavedDataManager.class.getDeclaredField("folder"); folderField.setAccessible(true); return ((File) folderField.get(savedData)).getParentFile(); } So I'm good now ^^
  10. Yeah but I am creating a perpheral for computercraft that uses SQL. So i think using a sqlite file would be the easiest way. (You do not need to maintain a server.) However if there is another way I’d be glad to test it. Testing this this evening btw.
  11. And if there is another way to directly get the save dir, it'd also be great ^^
  12. Hello ! I'd like to get the directory from the overworld to save sqlite databases inside it. ( Kind of the way Computercraft / CC:Tweaked does it with computer data ) I tried with : ServerLifecycleHooks.getCurrentServer().getWorld But I don't kow how to use it. Could anyone help me ? Thanks ^^
  13. Hey ! I managed to make it work ! There was just ( again ) an event problem which made my GUI not registering. Now it seems to be working, I'll let you know if I encounter any problem.
  14. Hey everyone ! I can't find a way to create a container with an ItemStackHandler, the only thins I find are with Inventories. Does someone know how to do it or is there a good tutorial/explaination somewhere ? Thanks ^^
  15. Okay that's it. I'm so dump that I had forgotten to remove it from the mods folder. Thanks ^^
  16. Nope that does not work, there's still the same exception [09:40:09] [modloading-worker-5/ERROR] [ne.mi.fm.ja.FMLModContainer/LOADING]: Failed to register automatic subscribers. ModID: computercraft, class dan200.computercraft.ComputerCraft java.lang.NoSuchFieldError: field_186422_d at dan200.computercraft.shared.proxy.ComputerCraftProxyCommon$ForgeHandlers.<clinit>(ComputerCraftProxyCommon.java:178) ~[?:1.88.1] {re:classloading}
  17. Hey ! I am looking forward to add dependencies to my mod. dependencies { minecraft 'net.minecraftforge:forge:1.15.2-31.2.0' compile('org.squiddev:cc-tweaked-1.15.2:1.88.1') } By doing so I was able to add cc:tweaked to my Dev env, but it is not loaded when I start the game. And if I try to insert it in the mods folder there is an obfuscation problem and CC is not able to be started. What am I doing wrong ? Here is the except. when it's not in the mods folder: [19:20:35] [Render thread/FATAL] [ne.mi.fm.ModLoader/CORE]: Error during pre-loading phase net.minecraftforge.fml.ModLoadingException: Mod §ebperipherals§r requires §6computercraft§r §o1.88 or above§r §7Currently, §6computercraft§r§7 is §o§nnot installed at net.minecraftforge.fml.ModLoadingException.lambda$fromEarlyException$0(ModLoadingException.java:63) ~[forge-1.15.2-31.2.0_mapped_snapshot_20200514-1.15.1-recomp.jar:?] {re:classloading} And here is the one when the mod is in it: [19:32:09] [modloading-worker-3/ERROR] [ne.mi.fm.ja.FMLModContainer/LOADING]: Failed to register automatic subscribers. ModID: computercraft, class dan200.computercraft.ComputerCraft java.lang.NoSuchFieldError: field_186422_d at dan200.computercraft.shared.proxy.ComputerCraftProxyCommon$ForgeHandlers.<clinit>(ComputerCraftProxyCommon.java:178) ~[?:1.88.1]
  18. OK that's strange but everything seems to be loading. So we can say it works ! Thanks a lot
  19. Nope I just corrected it, and there's still the same error
  20. Yup, that's indeed 1.12 code as I'm currently upgrading my code ^^ And about the IHasModel I just read about it this morning. Dou you think it comes from it ?
  21. Here is the repo : https://github.com/BastouP411/bperipherals The code that throws the error is on line 45 in class fr.bastoup.bperipherals.BPeripherals
  22. Ok i’ll put it all to github and put a link here
  23. I tried but there is still the exact same error what's weird is that it tries to Cast my tiletype to a block...
×
×
  • Create New...

Important Information

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