Jump to content

DavidQF555

Members
  • Posts

    102
  • Joined

  • Last visited

Recent Profile Visitors

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

DavidQF555's Achievements

Creeper Killer

Creeper Killer (4/8)

0

Reputation

  1. I'm getting: [Render thread/ERROR] [minecraft/RegistryResourceAccess$InMemoryStorage]: Error adding element: Do not know how to append a primitive value 1 to 3; Do not know how to append a primitive value 0.0 to 180.0; Do not know how to append a primitive value 0.0 to 180.0; Do not know how to append a primitive value 0.0 to 180.0; Do not know how to append a primitive value 6 to 10 when I try to open the create new world screen. I'm assuming it has something to do with my feature config due to the similarity in the default values, but I can't tell what the issue is. Looking at debug mode, it seems to be thrown because the first and second values of my pair are different, which should not be an issue.
  2. Ok, I'll do that. Is there any point in using DistExecutor for handling then?
  3. Is it necessary to use DistExecutor? It seems like the main issue is that I was using client only classes in my packets but moving them to another class solved that. Is using DistExecutor in my packet handling methods that already check directions just for safety?
  4. What I mean is using OnlyIn client methods/classes. For classes though, I can usually tell whether I'm using client only classes by just looking at imports.
  5. Ok I think I got it. Basically, I can't import any client only code (marked with OnlyIn) in any of my common code?
  6. I updated my handle method to: private void handle(NetworkEvent.Context context) { NetworkDirection dir = context.getDirection(); if (dir == NetworkDirection.PLAY_TO_CLIENT) { context.enqueueWork(() -> DistExecutor.safeRunWhenOn(Dist.CLIENT, () -> () -> Minecraft.getInstance().displayGuiScreen(new FloorTeleportationTerminalScreen(level, teleporter, direction)))); context.setPacketHandled(true); } } Just to check, is the way I'm using DistExecutor correct in terms of convention?
  7. I'm getting [00:59:39] [Server thread/FATAL] [ne.mi.fm.lo.RuntimeDistCleaner/DISTXFORM]: Attempted to load class net/minecraft/client/gui/screen/Screen for invalid dist DEDICATED_SERVER [00:59:39] [Server thread/FATAL] [minecraft/ThreadTaskExecutor]: Error executing task on Server java.lang.RuntimeException: Attempted to load class net/minecraft/client/gui/screen/Screen for invalid dist DEDICATED_SERVER at net.minecraftforge.fml.loading.RuntimeDistCleaner.processClassWithFlags(RuntimeDistCleaner.java:71) ~[forge-1.16.5-36.2.20_mapped_snapshot_20210309-1.16.5-launcher.jar:36.2] {} at cpw.mods.modlauncher.LaunchPluginHandler.offerClassNodeToPlugins(LaunchPluginHandler.java:85) ~[modlauncher-8.0.9.jar:?] {} at cpw.mods.modlauncher.ClassTransformer.transform(ClassTransformer.java:120) ~[modlauncher-8.0.9.jar:?] {} at cpw.mods.modlauncher.TransformingClassLoader$DelegatedClassLoader.findClass(TransformingClassLoader.java:265) ~[modlauncher-8.0.9.jar:?] {} at cpw.mods.modlauncher.TransformingClassLoader.loadClass(TransformingClassLoader.java:136) ~[modlauncher-8.0.9.jar:?] {re:classloading} at cpw.mods.modlauncher.TransformingClassLoader.loadClass(TransformingClassLoader.java:98) ~[modlauncher-8.0.9.jar:?] {re:classloading} at java.lang.ClassLoader.loadClass(ClassLoader.java:351) ~[?:1.8.0_302] {} at io.github.davidqf555.minecraft.towerofgod.common.blocks.FloorTeleportationTerminalBlock.onBlockActivated(FloorTeleportationTerminalBlock.java:56) ~[?:?] {re:classloading} at net.minecraft.block.AbstractBlock$AbstractBlockState.onBlockActivated(AbstractBlock.java:732) ~[forge:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraft.server.management.PlayerInteractionManager.func_219441_a(PlayerInteractionManager.java:347) ~[forge:?] {re:classloading} at net.minecraft.network.play.ServerPlayNetHandler.processTryUseItemOnBlock(ServerPlayNetHandler.java:986) ~[forge:?] {re:classloading} at net.minecraft.network.play.client.CPlayerTryUseItemOnBlockPacket.processPacket(CPlayerTryUseItemOnBlockPacket.java:45) ~[forge:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraft.network.play.client.CPlayerTryUseItemOnBlockPacket.processPacket(CPlayerTryUseItemOnBlockPacket.java:12) ~[forge:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraft.network.PacketThreadUtil.lambda$checkThreadAndEnqueue$0(PacketThreadUtil.java:19) ~[forge:?] {re:classloading} at net.minecraft.util.concurrent.TickDelayedTask.run(TickDelayedTask.java:20) ~[forge:?] {re:classloading} at net.minecraft.util.concurrent.ThreadTaskExecutor.run(ThreadTaskExecutor.java:139) ~[forge:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A} at net.minecraft.util.concurrent.RecursiveEventLoop.run(RecursiveEventLoop.java:22) ~[forge:?] {re:classloading} at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:759) ~[forge:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A} at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:159) ~[forge:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A} at net.minecraft.util.concurrent.ThreadTaskExecutor.driveOne(ThreadTaskExecutor.java:109) ~[forge:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A} at net.minecraft.server.MinecraftServer.driveOneInternal(MinecraftServer.java:742) ~[forge:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A} at net.minecraft.server.MinecraftServer.driveOne(MinecraftServer.java:736) ~[forge:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A} at net.minecraft.util.concurrent.ThreadTaskExecutor.driveUntil(ThreadTaskExecutor.java:122) ~[forge:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A} at net.minecraft.server.MinecraftServer.runScheduledTasks(MinecraftServer.java:722) ~[forge:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A} at net.minecraft.server.MinecraftServer.func_240802_v_(MinecraftServer.java:668) ~[forge:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A} at net.minecraft.server.MinecraftServer.lambda$startServer$0(MinecraftServer.java:233) ~[forge:?] {re:classloading,pl:accesstransformer:B,pl:runtimedistcleaner:A} at java.lang.Thread.run(Thread.java:748) [?:1.8.0_302] {} for this mod when playing it on dedicated servers. I understand that Screens should not be used on dedicated servers, but I was using packets to make sure that the screen only opened on client. I'm wondering if I need to add checks or something elsewhere to make sure that the packet is only handled on clients.
  8. I was able to trace it to PointOfInterestManager.getOrLoad() being all empty optionals after calling from getInChunk(). I thought that PointOfInterestManager.ensureLoadedAndValid() would load all the chunks that I'm searching, but apparently not.
  9. For this teleporter, I'm trying to make a portal that links to another dimension that has naturally spawning portals as features, and I want it to teleport the player into one of the portals of the other dimension, if possible, instead of creating a new one. However, it cannot seem to find any POIs in the target dimension because they aren't generated yet, and I don't think PointOfInterestManager.ensureLoadedAndValid() really generates my feature. I was wondering how I could find the POI for chunks that haven't been generated yet.
  10. I have a portal block that functions pretty similarly to a nether portal, so it teleports entities when they enter it, but often players will enter it, appear on the other side, and then instantly get transported back. Sometimes they are transported back, sometimes it works as intended and they aren't, and I cannot really tell what is causing it. The portal cooldown is somehow at 0 sometimes when the player/entity appears in the other dimension. I'm working with dynamic dimensions, and I have a feeling it has something to do with chunk loading, but I made sure to load the chunks on the other sides of the portal, so I'm not sure.
  11. My logs are getting spammed by Received invalid biome id: -1 in this project that does not add any biomes but dynamically creates dimensions. I thought the issue would be similar to this, but it does not seem to be from the same situation. I'm having difficulty replicating the situation, but the actual logging is from handling SChunkDataPacket. The packet is sent with the biomes int[] full of -1's, and the BiomeContainer biomes Biome[] that is written to the packet is full of Biomes.THE_VOID. I've used registry keys for biomes everywhere, so I'm unsure what is causing this.
  12. For this branch, after I wrote the latest commit, it caused the loading percent to be stuck at 0% whenever I create a new world. I'm really confused as to what I changed to cause this. The versions before did not have this issue, but it appeared after the latest commit.
  13. I'm trying to automate publishing my mod using github actions. This is my action, but the runData generates this error. Does anyone have any examples of using github actions and generating data? EDIT: I fixed the data generation, but now I'm having trouble locating the built jar. Is my use of #v and the tag_name wrong? EDIT2: Completely got the scripting language wrong
  14. I realized the error but I'm not sure how I'm supposed to solve it. Some vanilla feature in the biome I'm using in my dimensions uses an absolute upper bound but relative lower bound. So when I made the min built height of my dimension greater, the lower bound increased so much that it became higher than the upper bound. I'm not sure how to fix this other than change my dimension min height, but I was trying to center my dimension at about surface level so that the correct features were carved.
×
×
  • Create New...

Important Information

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