Treasure2!

Treasure2!

6M Downloads

No chests loading in treasure pits

Andyghandi opened this issue ยท 12 comments

commented

As explained on curseforge comments page, chests are not generating in these pits, also i dont recieve a reward when throwing coins into wishing wells. Graveyards not generating either. Directory error? Empty containers? Im not sure whats causing this to happen, but here is an example of one particular chest generation case.

When enabling debug mode in configs I recieve this info:

2018-03-20 01:55:24,783 [Server thread] WARN Treasure2 | AbstractChestGenerator.java:109 | Unable to select a container.

2018-03-20 01:55:24,801 [Server thread] DEBUG Treasure2 | ChestWorldGenerator.java:124 | Gen: pass first test: chunksSinceLast: 1693, minChunks: 100
2018-03-20 01:55:24,801 [Server thread] DEBUG Treasure2 | ChestWorldGenerator.java:139 | Using Rarity: COMMON
2018-03-20 01:55:24,801 [Server thread] DEBUG Treasure2 | ChestWorldGenerator.java:145 | Chunks since last COMMON chest: 1693
2018-03-20 01:55:24,801 [Server thread] DEBUG Treasure2 | ChestWorldGenerator.java:146 | Chunks per COMMON chest: 75
2018-03-20 01:55:24,801 [Server thread] DEBUG Treasure2 | ChestWorldGenerator.java:150 | COMMON chest probability: 85.0
2018-03-20 01:55:24,801 [Server thread] DEBUG Treasure2 | ChestWorldGenerator.java:156 | Chest MEETS generate probability!
2018-03-20 01:55:24,801 [Server thread] DEBUG Treasure2 | ChestWorldGenerator.java:163 | [Ocean] is not a valid biome.
2018-03-20 01:55:24,856 [Server thread] DEBUG Treasure2 | ChestWorldGenerator.java:124 | Gen: pass first test: chunksSinceLast: 1694, minChunks: 100
2018-03-20 01:55:24,856 [Server thread] DEBUG Treasure2 | ChestWorldGenerator.java:139 | Using Rarity: SCARCE
2018-03-20 01:55:24,856 [Server thread] DEBUG Treasure2 | ChestWorldGenerator.java:145 | Chunks since last SCARCE chest: 1694
2018-03-20 01:55:24,856 [Server thread] DEBUG Treasure2 | ChestWorldGenerator.java:146 | Chunks per SCARCE chest: 300
2018-03-20 01:55:24,856 [Server thread] DEBUG Treasure2 | ChestWorldGenerator.java:150 | SCARCE chest probability: 50.0
2018-03-20 01:55:24,856 [Server thread] DEBUG Treasure2 | ChestWorldGenerator.java:152 | Chest does not meet generate probability.
2018-03-20 01:55:24,865 [Server thread] DEBUG Treasure2 | ChestWorldGenerator.java:124 | Gen: pass first test: chunksSinceLast: 1695, minChunks: 100
2018-03-20 01:55:24,865 [Server thread] DEBUG Treasure2 | ChestWorldGenerator.java:139 | Using Rarity: RARE
2018-03-20 01:55:24,865 [Server thread] DEBUG Treasure2 | ChestWorldGenerator.java:145 | Chunks since last RARE chest: 1695
2018-03-20 01:55:24,865 [Server thread] DEBUG Treasure2 | ChestWorldGenerator.java:146 | Chunks per RARE chest: 500
2018-03-20 01:55:24,865 [Server thread] DEBUG Treasure2 | ChestWorldGenerator.java:150 | RARE chest probability: 25.0
2018-03-20 01:55:24,865 [Server thread] DEBUG Treasure2 | ChestWorldGenerator.java:156 | Chest MEETS generate probability!
2018-03-20 01:55:24,865 [Server thread] DEBUG Treasure2 | ChestWorldGenerator.java:163 | [Ocean] is not a valid biome.
2018-03-20 01:55:24,878 [Server thread] DEBUG Treasure2 | ChestWorldGenerator.java:124 | Gen: pass first test: chunksSinceLast: 1696, minChunks: 100
2018-03-20 01:55:24,879 [Server thread] DEBUG Treasure2 | ChestWorldGenerator.java:139 | Using Rarity: RARE
2018-03-20 01:55:24,879 [Server thread] DEBUG Treasure2 | ChestWorldGenerator.java:145 | Chunks since last RARE chest: 1696
2018-03-20 01:55:24,879 [Server thread] DEBUG Treasure2 | ChestWorldGenerator.java:146 | Chunks per RARE chest: 500
2018-03-20 01:55:24,879 [Server thread] DEBUG Treasure2 | ChestWorldGenerator.java:150 | RARE chest probability: 25.0
2018-03-20 01:55:24,879 [Server thread] DEBUG Treasure2 | ChestWorldGenerator.java:156 | Chest MEETS generate probability!
2018-03-20 01:55:24,879 [Server thread] DEBUG Treasure2 | ChestWorldGenerator.java:231 | Unable to locate the Chest Registry or the Registry doesn't contain any values
2018-03-20 01:55:24,879 [Server thread] DEBUG Treasure2 | ChestWorldGenerator.java:178 | Attempting to generate pit/chest.
2018-03-20 01:55:24,879 [Server thread] DEBUG Treasure2 | AbstractChestGenerator.java:58 | Marker Coords @ 72 84 24
2018-03-20 01:55:24,879 [Server thread] DEBUG Treasure2 | AbstractChestGenerator.java:64 | Test for above/below
2018-03-20 01:55:24,879 [Server thread] DEBUG Treasure2 | AbstractChestGenerator.java:86 | Below ground @ 72 57 24
2018-03-20 01:55:24,879 [Server thread] DEBUG Treasure2 | AbstractChestGenerator.java:91 | Using Pit: TNT_TRAP_PIT, Gen: class com.someguyssoftware.treasure2.generator.pit.TntTrapPitGenerator
2018-03-20 01:55:24,879 [Server thread] DEBUG Treasure2 | AbstractPitGenerator.java:70 | Distance to ySurface =25
2018-03-20 01:55:24,879 [Server thread] DEBUG Treasure2 | AbstractPitGenerator.java:73 | Generating shaft @ 72 57 24
2018-03-20 01:55:24,879 [Server thread] DEBUG Treasure2 | AbstractPitGenerator.java:177 | Building layer from Air @ 72 57 24
2018-03-20 01:55:24,879 [Server thread] DEBUG Treasure2 | AbstractPitGenerator.java:177 | Building layer from Air @ 72 58 24
2018-03-20 01:55:24,879 [Server thread] DEBUG Treasure2 | AbstractPitGenerator.java:194 | Building log layer from Wood @ 72 59 24
2018-03-20 01:55:24,879 [Server thread] DEBUG Treasure2 | AbstractPitGenerator.java:177 | Building layer from Sand @ 72 60 24
2018-03-20 01:55:24,879 [Server thread] DEBUG Treasure2 | AbstractPitGenerator.java:194 | Building log layer from Wood @ 72 82 24
2018-03-20 01:55:24,880 [Server thread] DEBUG Treasure2 | AbstractPitGenerator.java:177 | Building layer from Sand @ 72 81 24
2018-03-20 01:55:24,880 [Server thread] DEBUG Treasure2 | AbstractPitGenerator.java:194 | Building log layer from Wood @ 72 80 24
2018-03-20 01:55:24,880 [Server thread] DEBUG Treasure2 | TntTrapPitGenerator.java:70 | TNT Trap pit from 61 to 79
2018-03-20 01:55:24,880 [Server thread] DEBUG Treasure2 | AbstractPitGenerator.java:177 | Building layer from Air @ 72 61 24
2018-03-20 01:55:24,880 [Server thread] DEBUG Treasure2 | TntTrapPitGenerator.java:101 | yIndex: 61
2018-03-20 01:55:24,880 [Server thread] DEBUG Treasure2 | AbstractPitGenerator.java:194 | Building log layer from Wood @ 72 62 24
2018-03-20 01:55:24,880 [Server thread] DEBUG Treasure2 | TntTrapPitGenerator.java:101 | yIndex: 62
2018-03-20 01:55:24,880 [Server thread] DEBUG Treasure2 | AbstractPitGenerator.java:177 | Building layer from Air @ 72 63 24
2018-03-20 01:55:24,880 [Server thread] DEBUG Treasure2 | TntTrapPitGenerator.java:101 | yIndex: 63
2018-03-20 01:55:24,880 [Server thread] DEBUG Treasure2 | AbstractPitGenerator.java:177 | Building layer from Cobblestone @ 72 64 24
2018-03-20 01:55:24,880 [Server thread] DEBUG Treasure2 | TntTrapPitGenerator.java:101 | yIndex: 64
2018-03-20 01:55:24,880 [Server thread] DEBUG Treasure2 | AbstractPitGenerator.java:177 | Building layer from Air @ 72 65 24
2018-03-20 01:55:24,880 [Server thread] DEBUG Treasure2 | TntTrapPitGenerator.java:101 | yIndex: 65
2018-03-20 01:55:24,880 [Server thread] DEBUG Treasure2 | AbstractPitGenerator.java:177 | Building layer from Cobblestone @ 72 66 24
2018-03-20 01:55:24,880 [Server thread] DEBUG Treasure2 | TntTrapPitGenerator.java:101 | yIndex: 66
2018-03-20 01:55:24,880 [Server thread] DEBUG Treasure2 | AbstractPitGenerator.java:177 | Building layer from Sand @ 72 67 24
2018-03-20 01:55:24,880 [Server thread] DEBUG Treasure2 | TntTrapPitGenerator.java:101 | yIndex: 67
2018-03-20 01:55:24,881 [Server thread] DEBUG Treasure2 | AbstractPitGenerator.java:177 | Building layer from Air @ 72 68 24
2018-03-20 01:55:24,881 [Server thread] DEBUG Treasure2 | TntTrapPitGenerator.java:101 | yIndex: 68
2018-03-20 01:55:24,881 [Server thread] DEBUG Treasure2 | AbstractPitGenerator.java:177 | Building layer from Air @ 72 69 24
2018-03-20 01:55:24,881 [Server thread] DEBUG Treasure2 | TntTrapPitGenerator.java:101 | yIndex: 69
2018-03-20 01:55:24,881 [Server thread] DEBUG Treasure2 | AbstractPitGenerator.java:194 | Building log layer from Wood @ 72 70 24
2018-03-20 01:55:24,881 [Server thread] DEBUG Treasure2 | TntTrapPitGenerator.java:122 | Coords for trap base layer: 72 70 24
2018-03-20 01:55:24,881 [Server thread] DEBUG Treasure2 | TntTrapPitGenerator.java:123 | Next Coords after base log: 72 71 24
2018-03-20 01:55:24,881 [Server thread] DEBUG Treasure2 | AbstractPitGenerator.java:194 | Building log layer from Wood @ 72 72 24
2018-03-20 01:55:24,881 [Server thread] DEBUG Treasure2 | AbstractPitGenerator.java:158 | Next coords does not equal expected coords. next: 72 74 24; expected: 72 71 24
2018-03-20 01:55:24,881 [Server thread] DEBUG Treasure2 | AbstractPitGenerator.java:163 | Difference of: 2. Updating yIndex to 74
2018-03-20 01:55:24,881 [Server thread] DEBUG Treasure2 | TntTrapPitGenerator.java:101 | yIndex: 74
2018-03-20 01:55:24,881 [Server thread] DEBUG Treasure2 | AbstractPitGenerator.java:177 | Building layer from Sand @ 72 75 24
2018-03-20 01:55:24,881 [Server thread] DEBUG Treasure2 | TntTrapPitGenerator.java:101 | yIndex: 75
2018-03-20 01:55:24,881 [Server thread] DEBUG Treasure2 | AbstractPitGenerator.java:177 | Building layer from Air @ 72 76 24
2018-03-20 01:55:24,882 [Server thread] DEBUG Treasure2 | TntTrapPitGenerator.java:101 | yIndex: 76
2018-03-20 01:55:24,882 [Server thread] DEBUG Treasure2 | AbstractPitGenerator.java:177 | Building layer from Cobblestone @ 72 77 24
2018-03-20 01:55:24,882 [Server thread] DEBUG Treasure2 | TntTrapPitGenerator.java:101 | yIndex: 77
2018-03-20 01:55:24,882 [Server thread] DEBUG Treasure2 | AbstractPitGenerator.java:177 | Building layer from Sand @ 72 78 24
2018-03-20 01:55:24,882 [Server thread] DEBUG Treasure2 | TntTrapPitGenerator.java:101 | yIndex: 78
2018-03-20 01:55:24,882 [Server thread] DEBUG Treasure2 | AbstractPitGenerator.java:177 | Building layer from Air @ 72 79 24
2018-03-20 01:55:24,882 [Server thread] DEBUG Treasure2 | TntTrapPitGenerator.java:101 | yIndex: 79
2018-03-20 01:55:24,882 [Server thread] DEBUG Treasure2 | TntTrapPitGenerator.java:46 | Generated TNT Trap Pit at 72 57 24
2018-03-20 01:55:24,882 [Server thread] DEBUG Treasure2 | AbstractChestGenerator.java:95 | Is pit generated: true
2018-03-20 01:55:24,882 [Server thread] DEBUG Treasure2 | AbstractChestGenerator.java:105 | isGenerated = TRUE
2018-03-20 01:55:24,882 [Server thread] ERROR Treasure2 | DbManager.java:238 | An error occurred attempting to retrieve containers by rarity:
org.h2.jdbc.JdbcSQLException: Table "CONTAINERS" not found; SQL statement:
SELECT * FROM containers WHERE rarity IN ('SCARCE' ,'RARE' ) [42102-187]
at org.h2.engine.SessionRemote.done(SessionRemote.java:622) ~[SessionRemote.class:?]
at org.h2.command.CommandRemote.prepare(CommandRemote.java:68) ~[CommandRemote.class:?]
at org.h2.command.CommandRemote.(CommandRemote.java:45) ~[CommandRemote.class:?]
at org.h2.engine.SessionRemote.prepareCommand(SessionRemote.java:492) ~[SessionRemote.class:?]
at org.h2.jdbc.JdbcConnection.prepareCommand(JdbcConnection.java:1189) ~[JdbcConnection.class:?]
at org.h2.jdbc.JdbcPreparedStatement.(JdbcPreparedStatement.java:72) ~[JdbcPreparedStatement.class:?]
at org.h2.jdbc.JdbcConnection.prepareStatement(JdbcConnection.java:666) ~[JdbcConnection.class:?]
at com.j256.ormlite.jdbc.JdbcDatabaseConnection.compileStatement(JdbcDatabaseConnection.java:141) ~[JdbcDatabaseConnection.class:?]
at com.j256.ormlite.stmt.mapped.MappedPreparedStmt.compile(MappedPreparedStmt.java:55) ~[MappedPreparedStmt.class:?]
at com.j256.ormlite.stmt.StatementExecutor.buildIterator(StatementExecutor.java:246) ~[StatementExecutor.class:?]
at com.j256.ormlite.stmt.StatementExecutor.query(StatementExecutor.java:197) ~[StatementExecutor.class:?]
at com.j256.ormlite.dao.BaseDaoImpl.query(BaseDaoImpl.java:277) ~[BaseDaoImpl.class:?]
at com.j256.ormlite.stmt.QueryBuilder.query(QueryBuilder.java:366) ~[QueryBuilder.class:?]
at com.j256.ormlite.stmt.Where.query(Where.java:480) ~[Where.class:?]
at com.someguyssoftware.lootbuilder.db.DbManager.getContainersByRarity(DbManager.java:236) [DbManager.class:?]
at com.someguyssoftware.treasure2.generator.chest.RareChestGenerator.selectContainer(RareChestGenerator.java:38) [RareChestGenerator.class:?]
at com.someguyssoftware.treasure2.generator.chest.AbstractChestGenerator.generate(AbstractChestGenerator.java:107) [AbstractChestGenerator.class:?]
at com.someguyssoftware.treasure2.worldgen.ChestWorldGenerator.generateSurface(ChestWorldGenerator.java:179) [ChestWorldGenerator.class:?]
at com.someguyssoftware.treasure2.worldgen.ChestWorldGenerator.generate(ChestWorldGenerator.java:97) [ChestWorldGenerator.class:?]
at net.minecraftforge.fml.common.registry.GameRegistry.generateWorld(GameRegistry.java:167) [GameRegistry.class:?]
at net.minecraft.world.chunk.Chunk.func_186034_a(Chunk.java:1016) [axw.class:?]
at net.minecraft.world.chunk.Chunk.func_186030_a(Chunk.java:977) [axw.class:?]
at net.minecraft.world.gen.ChunkProviderServer.func_186025_d(ChunkProviderServer.java:157) [on.class:?]
at net.minecraft.server.management.PlayerChunkMapEntry.func_187268_a(PlayerChunkMapEntry.java:126) [ot.class:?]
at net.minecraft.server.management.PlayerChunkMap.func_72693_b(SourceFile:147) [ou.class:?]
at net.minecraft.world.WorldServer.func_72835_b(WorldServer.java:227) [oo.class:?]
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:754) [MinecraftServer.class:?]
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:666) [MinecraftServer.class:?]
at net.minecraft.server.integrated.IntegratedServer.func_71217_p(IntegratedServer.java:185) [chd.class:?]
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:524) [MinecraftServer.class:?]
at java.lang.Thread.run(Thread.java:745) [?:1.8.0_25]

commented

Is there a treasure.mv.db file in your /mods/treasure2/ folder? You're not getting anything in the chest and wishing wells because there's a database error. This in turn causes no graveyards to generate because they come after a chest is populated.

commented

Yes it exists, I tried deleting the mod and /mods/treasure2/ folder but nothing changes. The file installs when launching the game. I think i had a similar problem with this from treasure1, but i cant remember particurarly. I really want this to work! :P

commented

Also tried with both twitch launcher and standard minecraft launcher. This definately seems to do with some containers that doesn't exist. How and where are these containers supposed to be created, and could I create them manually?

On a note, the treasure.mv file is increasing in size through gameplay so something is happening with it. Also this treasure.mv is showing by the file properties that the data base file (db) file is opened by an unknown application.

commented

In desperate attempts to find info for you, I tried to open container blocks from this mod (chests) and all chests have the vanilla single chest GUI, but the smaller gold and iron strongboxes crashes the game when opening them, recieving this fatal error in minecraft game output:

Error executing task
java.util.concurrent.ExecutionException: java.lang.ArrayIndexOutOfBoundsException: 36
at java.util.concurrent.FutureTask.report(FutureTask.java:122)
at java.util.concurrent.FutureTask.get(FutureTask.java:192)
at net.minecraft.util.Util.func_181617_a(SourceFile:47)
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:721)
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:666)
at net.minecraft.server.integrated.IntegratedServer.func_71217_p(IntegratedServer.java:185)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:524)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 36
at java.util.Arrays$ArrayList.get(Arrays.java:3841)
at net.minecraft.util.NonNullList.get(SourceFile:44)
at com.someguyssoftware.treasure2.inventory.InventoryProxy.func_70301_a(InventoryProxy.java:89)
at net.minecraft.inventory.Slot.func_75211_c(Slot.java:60)
at net.minecraft.inventory.Container.func_75138_a(Container.java:63)
at net.minecraft.inventory.Container.func_75132_a(Container.java:52)
at net.minecraftforge.fml.common.network.internal.FMLNetworkHandler.openGui(FMLNetworkHandler.java:100)
at net.minecraft.entity.player.EntityPlayer.openGui(EntityPlayer.java:2550)
at com.someguyssoftware.treasure2.block.TreasureChestBlock.func_180639_a(TreasureChestBlock.java:378)
at net.minecraft.server.management.PlayerInteractionManager.func_187251_a(PlayerInteractionManager.java:446)
at net.minecraft.network.NetHandlerPlayServer.func_184337_a(NetHandlerPlayServer.java:739)
at net.minecraft.network.play.client.CPacketPlayerTryUseItemOnBlock.func_148833_a(SourceFile:55)
at net.minecraft.network.play.client.CPacketPlayerTryUseItemOnBlock.func_148833_a(SourceFile:11)
at net.minecraft.network.PacketThreadUtil$1.run(SourceFile:13)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at net.minecraft.util.Util.func_181617_a(SourceFile:46)
... 5 more

And this crash report as following:

Time: 3/20/18 11:36 AM
Description: Ticking player

java.lang.ArrayIndexOutOfBoundsException: 36
at java.util.Arrays$ArrayList.get(Arrays.java:3841)
at net.minecraft.util.NonNullList.get(SourceFile:44)
at com.someguyssoftware.treasure2.inventory.InventoryProxy.func_70301_a(InventoryProxy.java:89)
at net.minecraft.inventory.Slot.func_75211_c(Slot.java:60)
at net.minecraft.inventory.Container.func_75142_b(Container.java:79)
at net.minecraft.entity.player.EntityPlayerMP.func_70071_h_(EntityPlayerMP.java:324)
at net.minecraft.world.World.func_72866_a(World.java:1986)
at net.minecraft.world.WorldServer.func_72866_a(WorldServer.java:831)
at net.minecraft.world.World.func_72870_g(World.java:1948)
at net.minecraft.world.WorldServer.func_184147_l(WorldServer.java:641)
at net.minecraft.world.World.func_72939_s(World.java:1731)
at net.minecraft.world.WorldServer.func_72939_s(WorldServer.java:612)
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:765)
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:666)
at net.minecraft.server.integrated.IntegratedServer.func_71217_p(IntegratedServer.java:185)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:524)
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: Client thread
Stacktrace:
at java.util.Arrays$ArrayList.get(Arrays.java:3841)
at net.minecraft.util.NonNullList.get(SourceFile:44)
at com.someguyssoftware.treasure2.inventory.InventoryProxy.func_70301_a(InventoryProxy.java:89)
at net.minecraft.inventory.Slot.func_75211_c(Slot.java:60)
at net.minecraft.inventory.Container.func_75142_b(Container.java:79)
at net.minecraft.entity.player.EntityPlayerMP.func_70071_h_(EntityPlayerMP.java:324)
at net.minecraft.world.World.func_72866_a(World.java:1986)
at net.minecraft.world.WorldServer.func_72866_a(WorldServer.java:831)
at net.minecraft.world.World.func_72870_g(World.java:1948)

commented

Thanks for all the info. I'll try and get an updated version out this week. I probably broke the strongbox chests when I was building the other stuff. Your db issue though is still a mystery to me.

commented

I dont know what im doing wrong, I have installed hundreds of mods in the same way but this just dont work for me, whatever i try. It is a shame if I cant replay this great mod, it really is a game changer that im looking for. Would appreciate any work of yours to potentially fix this :)

commented

I don't think you're doing anything wrong. It could be, and what I have to check, is that I've changed/added/deleted stuff etc to the db locally, but haven't reproduced it in a while, so it might not be initializing correctly from the mod install.

commented

Okay, I will leave it up to you and wait for a update. I will let you know if I find something more useful, even though I have tried to get most out of this bug.

commented

We, it definitely is the DB not being generated correctly. I'm surprised that no one else has mentioned that it isn't generating anything. So I have this fixed. I'm just looking into the other issue with the chests crashing.

commented

I was afraid I were the only one experiencing this, since no one else had mentioned anything, but I am happy you figured it out this soon. Brilliant!

commented

The update has been posted on curseforge.

commented

Things are generating as it is supposed to be, thanks for your work on it!