The Binding of Isaac: Rebirth

The Binding of Isaac: Rebirth

Amazing Chest Ahead
38 Comments
Iris Heart  [author] Mar 20, 2024 @ 1:52am 
@Guantol thank you, I implemented this change.
Guantol Feb 12, 2024 @ 4:33am 
The mod can sometimes crash the game on room change:
this is what's written in the log file:
[INFO] - Lua stack trace:
[INFO] - [C](-1): HasCollectible
[INFO] - ...aac Rebirth/mods/amazing_chest_ahead_2713661861/main.lua(130): ?
[INFO] - Caught exception, writing minidump...

I looked at the script and I found a for loop that cycles item Id from 1 to 1000 and passes them to player:HasCollectible().

Unofortunately passing non existant Item Ids to HasCollectible leads to undefined behaviour, at best it returns incorrect results and at worst it leads to a game crash (though rarely).

The for loop at line 127 of the main.lua file should be changed to:
for i = 1, Isaac.GetItemConfig():GetCollectibles().Size -1 do
scrimblo bingus Nov 23, 2022 @ 5:32pm 
me thinking it's a chest and gets jumpscared by spider
i hate blighttown
Iris Heart  [author] Aug 7, 2022 @ 2:42am 
I checked the script, and there is nothing wrong with it. It works for me too, without crashing.

I have 3 guesses:
1. You're somehow running an outdated version, in which case uninstall it, launch the game, quit, and re-install;
2. It conflicts with another mod;
3. Actually a subsection of 2, if you have any mod that create items in the starting room, they might be what causing this.
rainy Aug 7, 2022 @ 12:56am 
My game crashed and I found these in my game log:
[INFO] - Lua stack trace:
[INFO] - [C](-1): HasCollectible
[INFO] - ...aac Rebirth/mods/amazing_chest_ahead_2713661861/main.lua(130): ?
[INFO] - Caught exception, writing minidump...
Viewbob May 1, 2022 @ 1:30pm 
i think the old chest feature should be removed or given a heavily reduced chance as locked chests appear kinda often and also since it could contain a really good item and even an angel room item it could be really op
Iris Heart  [author] Mar 15, 2022 @ 8:03am 
Yeah, it gave me a dupe of the item I already had. It seems the issue is on your end.
Iris Heart  [author] Mar 15, 2022 @ 7:51am 
I mean, I didn't make it to be this way, it's just my first guess how the game did it on it's own. I would think it would just spawn a dupe of the held item regardless, but I really don't know how can it spawn a Crooked Penny. I just opened a bunch of haunted chests and they all gave me items from the haunted pool. Did you have chaos? Do you have any mods that mess with item pedestals in general?
Standing Cirno Fumo Mar 15, 2022 @ 7:47am 
Not to my knowledge, but replacing items you already had with random stuff feels like a bad way of handling it before the entire pool is exhausted
Iris Heart  [author] Mar 15, 2022 @ 7:31am 
Hm... weird. See, items are added into item pool by ID. I just checked, and Crooked Penny ID is definitely not in the pool. So at the moment I don't know how this could've happen. When it happened, did you already have any spooky ghost related items on you?
Standing Cirno Fumo Mar 15, 2022 @ 6:43am 
Haunted Chest item pools seem to be bugged? Sometimes they just don't give a thing from its pool (I just got Crooked Penny from it previously)
Iris Heart  [author] Feb 26, 2022 @ 8:51am 
There is no known way to make it achievement dependant unfortunately.
SimicBiomancer Feb 26, 2022 @ 8:47am 
Thanks. Wanted clarity because this seems like a GREAT mod, but I haven't unlocked everything, so I didn't want to have stuff before I'd normally unlock it.
Iris Heart  [author] Feb 25, 2022 @ 10:27pm 
Yes.
SimicBiomancer Feb 25, 2022 @ 4:57pm 
Question. If I use this mod, but don't have Wooden chests unlocked, will they still show up?
Iris Heart  [author] Feb 13, 2022 @ 4:20pm 
I don't know how.
raine Feb 13, 2022 @ 4:08pm 
could you then possibly make it an option for them to appear, like a toggle through the mod config menu mod? sorry if it's too much to ask of you
raine Feb 13, 2022 @ 4:07pm 
dang, that's too bad
Iris Heart  [author] Feb 13, 2022 @ 2:10am 
Apparently there is no way to check if the wooden chest is unlocked or not, sorry.
raine Feb 13, 2022 @ 1:58am 
thanks, awesome!
Iris Heart  [author] Feb 13, 2022 @ 1:14am 
This mod doesn't make haunted chests appear, so you won't see them if you don't have them unlocked. Old chests don't have any unlock requirements. Wooden chests have an unlock requirement, but I currently don't know how I can check for it. I'll ask around, thou.
raine Feb 12, 2022 @ 5:55pm 
is there any way to make it so that certain chests only appear if they've been unlocked? maybe a mod config option?
SWE4T & P1XELS Jan 28, 2022 @ 12:42am 
Yea i guess that makes sense actually.
Iris Heart  [author] Jan 28, 2022 @ 12:19am 
It's not about visuals. Old chests requires a key to open, like golden one, and wooden doesn't like regular one.
SWE4T & P1XELS Jan 27, 2022 @ 6:00pm 
I love this mod because those chests are so rare in-game though I feel like regular chests should become old chests and golden chests should become wooden, not vice versa, but perhaps that's just personal preferance related to visual consistency.
ciao_fiv Jan 26, 2022 @ 10:08am 
fair but they're pretty boring imo. one of my least favorite things in the game
Iris Heart  [author] Jan 25, 2022 @ 1:44pm 
They are pretty common and are not locked behind beating Mega Satan with one of the hardest characters in the game.
ciao_fiv Jan 25, 2022 @ 1:19pm 
why no changes to spiked chests? just like haunted chests they are literally just worse regular chests, they cant drop items. hurt yourself for a few pickups, so fun
Iris Heart  [author] Jan 14, 2022 @ 12:06am 
You can open the main.lua file in the mod directory and tweak the odds there. It will hold up until the mod it updated, which I don't see happening in the near future since I did all I wanted with it and there don't seem to be any bugs.
Flair Jan 13, 2022 @ 6:22pm 
Lovely addition! Honestly would love to be able to edit some of the values since I'm an RNG freak but I think having more rare chests in general is a great addition to the game.
Iris Heart  [author] Jan 13, 2022 @ 2:01am 
Evade Taxes. Thanks.
BosS Jan 12, 2022 @ 11:38pm 
whats the modded rock resprite in the Cellar? good mod btw
Iris Heart  [author] Jan 10, 2022 @ 12:56am 
Hush.
PeopleLikeStuff Jan 9, 2022 @ 10:09pm 
What modded character is that in the screenshots?
Iris Heart  [author] Jan 9, 2022 @ 10:40am 
Hey. I have 0 idea how to add mod config support, and that's not something I'd like to spend my limited time pursuing. You can open the lua file and edit the values to your liking or remove parts of the code alltogether.
Sage Jan 9, 2022 @ 10:24am 
Just curious if you have any plans to add mod config support? I would love to be able to change the chances of the chests being replaced to higher or lower or even turning one of them off. If not no worries and thanks for the great mod! :resmile:
GigioPino Jan 9, 2022 @ 10:21am 
Me when Gwynevere
Da7mX (Rayan) Jan 9, 2022 @ 6:44am 
nice