Jump 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.

BastouP

Members
  • Joined

  • Last visited

  1. BastouP replied to BastouP's topic in Modder Support
    Okay thanks ^^
  2. BastouP posted a topic in Modder Support
    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 ^^
  3. So the IO exceptions etc. should propagate all the way trough the intermediate functions, only to be caught in the lua function ?
  4. 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 ?
  5. 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 ?
  6. Thank you ^^ I'll correct everything.
  7. Oh I did not understand that I needed to do that ^^ As for the handling do you have an example of what you mean ? ^^
  8. debug.log I should also mention that I have optifine installed
  9. 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 ^^
  10. 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 ^^
  11. 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.
  12. And if there is another way to directly get the save dir, it'd also be great ^^
  13. 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 ^^
  14. 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.
  15. 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 ^^

Important Information

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

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.