The Binding of Isaac: Rebirth

The Binding of Isaac: Rebirth

Fun Golden Pennies
[GUIDE] How to Stop Crashing
Why it's happening
Looking at the logs right after a crash, you might see this towards the end:
[INFO] - Lua stack trace: [INFO] - [C](-1): HasCollectible [INFO] - ...saac Rebirth/mods/fun golden pennies_3047850875/main.lua(93): ?

The mod checks for Deep Pockets when toggling homing, with something causing the function to throw an error. While I don't know enough about Lua to speculate why, I rewrote it to avoid crashes.

After some quick testing and a few hours of gameplay, everything looks stable.

Solution
1. Go to your Isaac installation directory (usually "C:\Program Files (x86)\Steam\steamapps\common\The Binding of Isaac Rebirth\mods\fun golden pennies_3047850875") and open "main.lua" with a text editor.
2. Hit CTRL+F and search for the following line:
function mod:onCoinUpdate(entity)
3. Highlight/select all of the code shown here[i.imgur.com].
4. Replace it with the following code, making sure to keep the spacing:
function mod:onCoinUpdate(entity) if activePlayer == nil then return end local maxCoins = 99; if activePlayer:GetNumCoins() == 99 then activePlayer:AddCoins(1) if activePlayer:GetNumCoins() == 100 then maxCoins = 999; activePlayer:AddCoins(-1) end end if activePlayer:GetNumCoins() > 99 then maxCoins = 999; end if entity:GetData().isHoming and activePlayer:GetNumCoins() < maxCoins then local delta = (activePlayer.Position - entity.Position):Normalized() entity:AddVelocity(delta) end end
Last edited by bathroom glitter; 30 May @ 11:23am