Jump to content
Search In
  • More options...
Find results that contain...
Find results in...


  • Posts

  • Joined

  • Last visited


  • Gender
  • Location

Recent Profile Visitors

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

BastouP's Achievements

Tree Puncher

Tree Puncher (2/8)



  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 ^^
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.