• Recently Browsing

    No registered users viewing this page.

  • Posts

    • Im am trying to save a NonNullList<ItemStack> from inside a class. I can serialise normal values, like Integers Booleans etc, even Maps.    I get this error: at com.google.gson.internal.$Gson$Types.resolve($Gson$Types.java:383) at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.getBoundFields(ReflectiveTypeAdapterFactory.java:158) at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory.create(ReflectiveTypeAdapterFactory.java:100) at com.google.gson.Gson.getAdapter(Gson.java:423) When i add the NonNullList to the class: @SerializedName("stacks") public NonNullList<ItemStack> stacks = NonNullList.<ItemStack>withSize(9, ItemStack.EMPTY);   Here is my save to JSON: public static void saveBackLinkMap(Map<BlockPos, Pocket> backLinkMap) { try { File registryFile = getConfig(backLinkFile); Collection<Pocket> values = backLinkMap.values(); Pocket[] tempArray = values.toArray(new Pocket[values.size()]); try (FileWriter writer = new FileWriter(registryFile)) { GSON.toJson(tempArray, writer); writer.flush(); } } catch (Exception e) { DimLogger.severe("Error when saving backLinkFile", e); } } And my load from JSON: public static Map<BlockPos, Pocket> loadBackLinkMap() { Map<BlockPos, Pocket> backLinkMap = new HashMap<>(); try { File registryFile = getConfig(backLinkFile); Pocket[] tempArray = null; try (FileReader reader = new FileReader(registryFile)) { tempArray = GSON.fromJson(reader, Pocket[].class); } if (tempArray != null) { for (Pocket link : tempArray) { backLinkMap.put(link.getChunkPos(), link); } } } catch (Exception e) { DimLogger.severe("Error when loading backLinkFile", e); } return backLinkMap; } As soon as i load into the world the game crashes and gives me the above error. I'm not sure how to get this to work. I'm trying to access the Itemstack from multiple places across dimensions. I can access the integer values etc fine, but GSON can't seem to serialise this.
    • Ah, yes, I see what you are saying and why I was confused—I tried outputting the biome parameter to console in my custom buildSurface method, and since it only output my custom biome, I assumed that there were just multiple passes of the method, one for each biome in the chunk. I don’t know why I just assumed that the entire chunk was being passed through...   Thank you so much for the assistance @ChampionAsh5357!
    • Historia: Cuando acabe de matar al dragón del fin la pantalla del juego se congelo y se cerro, al principio pensé que fue un error leve pero cuando volví a entrar a mi mundo se me cerraba de nuevo el juego (NOTA: El juego si abría pero el mundo no abría) El mundo era un survival con mods.   Detalles del error:  Time: 7/8/20 12:37 AM Description: Colliding entity with block java.lang.NullPointerException: Colliding entity with block at net.minecraft.world.World.func_175668_a(World.java:240) at net.minecraft.world.World.func_175667_e(World.java:235) at com.lying.variousoddities.magic.SpellZoneAnchored.onPortalIntoAnchor(SpellZoneAnchored.java:102) at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_256_SpellZoneAnchored_onPortalIntoAnchor_EntityTravelToDimensionEvent.invoke(.dynamic) at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182) at net.minecraftforge.common.ForgeHooks.onTravelToDimension(ForgeHooks.java:1073) at net.minecraft.entity.Entity.changeDimension(Entity.java:2551) at net.minecraft.entity.Entity.func_184204_a(Entity.java:2543) at net.minecraft.block.BlockEndPortal.func_180634_a(SourceFile:72) at net.minecraft.entity.Entity.func_145775_I(Entity.java:1044) at net.minecraft.entity.Entity.func_70091_d(Entity.java:964) at net.minecraft.entity.item.EntityXPOrb.func_70071_h_(EntityXPOrb.java:135) at net.minecraft.world.World.func_72866_a(World.java:1996) at net.minecraft.world.WorldServer.func_72866_a(WorldServer.java:832) at net.minecraft.world.World.func_72870_g(World.java:1958) at net.minecraft.world.World.func_72939_s(World.java:1762) at net.minecraft.world.WorldServer.func_72939_s(WorldServer.java:613) at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:767) at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:668) at net.minecraft.server.integrated.IntegratedServer.func_71217_p(IntegratedServer.java:279) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:526) at java.lang.Thread.run(Thread.java:745) A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Thread: Server thread Stacktrace: at net.minecraft.world.World.func_175668_a(World.java:240) at net.minecraft.world.World.func_175667_e(World.java:235) at com.lying.variousoddities.magic.SpellZoneAnchored.onPortalIntoAnchor(SpellZoneAnchored.java:102) at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_256_SpellZoneAnchored_onPortalIntoAnchor_EntityTravelToDimensionEvent.invoke(.dynamic) at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182) at net.minecraftforge.common.ForgeHooks.onTravelToDimension(ForgeHooks.java:1073) at net.minecraft.entity.Entity.changeDimension(Entity.java:2551) at net.minecraft.entity.Entity.func_184204_a(Entity.java:2543) at net.minecraft.block.BlockEndPortal.func_180634_a(SourceFile:72) -- Block being collided with -- Details: Block: minecraft:end_portal Block location: World: (0,62,-1), Chunk: (at 0,3,15 in 0,-1; contains blocks 0,0,-16 to 15,255,-1), Region: (0,-1; contains chunks 0,-32 to 31,-1, blocks 0,0,-512 to 511,255,-1) Stacktrace: at net.minecraft.entity.Entity.func_145775_I(Entity.java:1044) -- Entity being checked for collision -- Details: Entity Type: minecraft:xp_orb (net.minecraft.entity.item.EntityXPOrb) Entity ID: 339 Entity Name: Orbe de experiencia Entity's Exact location: 1.09, 62.00, -0.65 Entity's Block location: World: (1,62,-1), Chunk: (at 1,3,15 in 0,-1; contains blocks 0,0,-16 to 15,255,-1), Region: (0,-1; contains chunks 0,-32 to 31,-1, blocks 0,0,-512 to 511,255,-1) Entity's Momentum: 0.02, 0.00, -0.01 Entity's Passengers: [] Entity's Vehicle: ~~ERROR~~ NullPointerException: null Stacktrace: at net.minecraft.entity.Entity.func_70091_d(Entity.java:964) at net.minecraft.entity.item.EntityXPOrb.func_70071_h_(EntityXPOrb.java:135) at net.minecraft.world.World.func_72866_a(World.java:1996) at net.minecraft.world.WorldServer.func_72866_a(WorldServer.java:832) at net.minecraft.world.World.func_72870_g(World.java:1958) -- Entity being ticked -- Details: Entity Type: minecraft:xp_orb (net.minecraft.entity.item.EntityXPOrb) Entity ID: 339 Entity Name: Orbe de experiencia Entity's Exact location: 1.09, 62.00, -0.65 Entity's Block location: World: (1,62,-1), Chunk: (at 1,3,15 in 0,-1; contains blocks 0,0,-16 to 15,255,-1), Region: (0,-1; contains chunks 0,-32 to 31,-1, blocks 0,0,-512 to 511,255,-1) Entity's Momentum: 0.02, 0.00, -0.01 Entity's Passengers: [] Entity's Vehicle: ~~ERROR~~ NullPointerException: null Stacktrace: at net.minecraft.world.World.func_72939_s(World.java:1762) at net.minecraft.world.WorldServer.func_72939_s(WorldServer.java:613) -- Affected level -- Details: Level name: °°_TheTwings_°° All players: 1 total; [EntityPlayerMP['Jossue333'/292, l='°°_TheTwings_°°', x=-8.27, y=63.00, z=-5.15]] Chunk stats: ServerChunkCache: 169 Drop: 0 Level seed: 5701453394401953065 Level generator: ID 00 - default, ver 1. Features enabled: false Level generator options: Level spawn location: World: (0,0,0), Chunk: (at 0,0,0 in 0,0; contains blocks 0,0,0 to 15,255,15), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511) Level time: 0 game time, 0 day time Level dimension: 0 Level storage version: 0x00000 - Unknown? Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false) Level game mode: ~~ERROR~~ NullPointerException: null Stacktrace: at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:767) at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:668) at net.minecraft.server.integrated.IntegratedServer.func_71217_p(IntegratedServer.java:279) at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:526) at java.lang.Thread.run(Thread.java:745) -- System Details -- Details: Minecraft Version: 1.12.2 Operating System: Windows 8.1 (amd64) version 6.3 Java Version: 1.8.0_51, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 1358699936 bytes (1295 MB) / 3321888768 bytes (3168 MB) up to 6442450944 bytes (6144 MB) JVM Flags: 8 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx6G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M IntCache: cache: 0, tcache: 0, allocated: 12, tallocated: 94 FML: MCP 9.42 Powered by Forge 14.23.5.2854 Optifine OptiFine_1.12.2_HD_U_F4 39 mods loaded, 39 mods active States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored | State | ID | Version | Source | Signature | |:------ |:-------------- |:----------------------- |:------------------------------------------------- |:---------------------------------------- | | LCHIJA | minecraft | 1.12.2 | minecraft.jar | None | | LCHIJA | mcp | 9.42 | minecraft.jar | None | | LCHIJA | FML | 8.0.99.99 | forge-1.12.2-14.23.5.2854.jar | e3c3d50c7c986df74c645c0ac54639741c90a557 | | LCHIJA | forge | 14.23.5.2854 | forge-1.12.2-14.23.5.2854.jar | e3c3d50c7c986df74c645c0ac54639741c90a557 | | LCHIJA | csb_armorstand | 1.0.4 | ArmorStandGUI-1.12-1.0.4.jar | None | | LCHIJA | baubles | 1.5.2 | Baubles-1.12-1.5.2 (3).jar | None | | LCHIJA | astralsorcery | 1.10.19 | astralsorcery-1.12.2-1.10.19 (1).jar | a0f0b759d895c15ceb3e3bcb5f3c2db7c582edf0 | | LCHIJA | biomesoplenty | 7.0.1.2439 | BiomesOPlenty-1.12.2-7.0.1.2439-universal.jar | None | | LCHIJA | bookshelf | 2.3.585 | Bookshelf-1.12.2-2.3.585.jar | d476d1b22b218a10d845928d1665d45fce301b27 | | LCHIJA | ctm | MC1.12.2-1.0.2.31 | CTM-MC1.12.2-1.0.2.31.jar | None | | LCHIJA | jei | 4.15.0.291 | jei_1.12.2-4.15.0.291 (2).jar | None | | LCHIJA | chisel | MC1.12.2-1.0.2.45 | Chisel-MC1.12.2-1.0.2.45.jar | None | | LCHIJA | elevatorid | 1.3.11 | ElevatorMod-1.12.2-1.3.11.jar | None | | LCHIJA | eplus | 5.0.176 | EnchantingPlus-1.12.2-5.0.176.jar | d476d1b22b218a10d845928d1665d45fce301b27 | | LCHIJA | endercore | 1.12.2-0.5.72 | EnderCore-1.12.2-0.5.72.jar | None | | LCHIJA | umm3185118519 | release 1.4 - MC 1.12.2 | Extended+ItemsOres+[1.12.2]+(release+1.4).jar | None | | LCHIJA | mantle | 1.12-1.3.3.55 | Mantle-1.12-1.3.3.55.jar | None | | LCHIJA | twilightforest | 3.10.1013 | twilightforest-1.12.2-3.10.1013-universal (2).jar | None | | LCHIJA | tconstruct | 1.12.2-2.12.0.157 | TConstruct-1.12.2-2.12.0.157.jar | None | | LCHIJA | extrautils2 | 1.0 | extrautils2-1.12-1.9.9 (1).jar | None | | LCHIJA | familiarfauna | 1.0.11 | FamiliarFauna-1.12.2-1.0.11.jar | None | | LCHIJA | fencejumper | 1.0.5 | fencejumper-1.12-1.0.5.jar | None | | LCHIJA | cfm | 6.3.1 | furniture-6.3.1-1.12.2 (3).jar | None | | LCHIJA | waila | 1.8.26 | Hwyla-1.8.26-B41_1.12.2 (7).jar | None | | LCHIJA | llibrary | 1.7.19 | llibrary-1.7.19-1.12.2 (2).jar | b9f30a813bee3b9dd5652c460310cfcd54f6b7ec | | LCHIJA | iceandfire | 1.9.1 | iceandfire-1.9.1-1.12.2.jar | None | | LCHIJA | journeymap | 1.12.2-5.5.5 | journeymap-1.12.2-5.5.5 (2).jar | None | | LCHIJA | malisiscore | 1.12.2-6.4.0 | malisiscore-1.12.2-6.4.0.jar | None | | LCHIJA | malisisdoors | 1.12.2-7.3.0 | malisisdoors-1.12.2-7.3.0.jar | None | | LCHIJA | mca | 6.1.0 | MCA-1.12.2-6.1.0-universal.jar | None | | LCHIJA | mowziesmobs | 1.5.4 | mowziesmobs-1.5.4 (1).jar | None | | LCHIJA | ptrmodellib | 1.0.4 | PTRLib-1.0.4 (1).jar | None | | LCHIJA | radixcore | 1.12.x-2.2.1 | RadixCore-1.12.2 (2).jar | None | | LCHIJA | sparkshammers | @VERSION@ | sparkshammers-1.12.2-1.9.2 (1).jar | None | | LCHIJA | spartanshields | 1.5.4 | SpartanShields-1.12.2-1.5.4 (2).jar | None | | LCHIJA | tinymobfarm | 1.0.5 | TinyMobFarm-1.12.2-1.0.5.jar | None | | LCHIJA | tombstone | 3.6.2 | tombstone-3.6.2-1.12.2 (1).jar | None | | LCHIJA | toroquest | 1.12.2-5.3 | toroquest-1.12.2-5.3 (1).jar | None | | LCHIJA | varodd | 5.1 | varodd-1.12.2-5.1.jar | None | Loaded coremods (and transformers): llibrary (llibrary-core-1.0.11-1.12.2.jar) net.ilexiconn.llibrary.server.core.plugin.LLibraryTransformer net.ilexiconn.llibrary.server.core.patcher.LLibraryRuntimePatcher AstralCore (astralsorcery-1.12.2-1.10.19 (1).jar) MalisisCorePlugin (malisiscore-1.12.2-6.4.0.jar) iceandfire (iceandfire-1.9.1-1.12.2.jar) com.github.alexthe666.iceandfire.patcher.IceAndFireRuntimePatcher CTMCorePlugin (CTM-MC1.12.2-1.0.2.31.jar) team.chisel.ctm.client.asm.CTMTransformer EnderCorePlugin (EnderCore-1.12.2-0.5.72-core.jar) com.enderio.core.common.transform.EnderCoreTransformer com.enderio.core.common.transform.SimpleMixinPatcher GL info: ~~ERROR~~ RuntimeException: No OpenGL context found in the current thread. Pulsar/tconstruct loaded Pulses: - TinkerCommons (Enabled/Forced) - TinkerWorld (Enabled/Not Forced) - TinkerTools (Enabled/Not Forced) - TinkerHarvestTools (Enabled/Forced) - TinkerMeleeWeapons (Enabled/Forced) - TinkerRangedWeapons (Enabled/Forced) - TinkerModifiers (Enabled/Forced) - TinkerSmeltery (Enabled/Not Forced) - TinkerGadgets (Enabled/Not Forced) - TinkerOredict (Enabled/Forced) - TinkerIntegration (Enabled/Forced) - TinkerFluids (Enabled/Forced) - TinkerMaterials (Enabled/Forced) - TinkerModelRegister (Enabled/Forced) - chiselIntegration (Enabled/Not Forced) - wailaIntegration (Enabled/Not Forced) Profiler Position: N/A (disabled) Player Count: 1 / 8; [EntityPlayerMP['Jossue333'/292, l='°°_TheTwings_°°', x=-8.27, y=63.00, z=-5.15]] Type: Integrated Server (map_client.txt) Is Modded: Definitely; Client brand changed to 'fml,forge' OptiFine Version: OptiFine_1.12.2_HD_U_F4 OptiFine Build: 20191023-234904 Render Distance Chunks: 6 Mipmaps: 0 Anisotropic Filtering: 1 Antialiasing: 0 Multitexture: false Shaders: null OpenGlVersion: 3.1.0 - Build 9.17.10.4229 OpenGlRenderer: Intel(R) HD Graphics 3000 OpenGlVendor: Intel CpuCount: 7 Por favor envíen una solución que no quiero perder mi mundo si lo solucionaran estaría muy agradecida con ustedes 😭  
    • Whenever I try to download the most recent version of Forge (1.16.1) from its website, it sends me to a website that Norton marks as "malicious". From reading other posts on this forum, apparently Forge links to another website called Adfocus, which is how it makes money(?). However, every time I click the Installer link, it goes to a website called 'propu.sh', which Norton doesn't like. It doesn't allow me to access the website and says it is malicious. Is there anything I can do to avoid this website and still download Forge? Can anyone speak on the security of propu.sh?
    • Look at Goals. All ai has an associated Goal file somewhere. Then you can register them via MobEntity::registerGoals.
  • Topics

  • Who's Online (See full list)