The Binding of Isaac: Rebirth

The Binding of Isaac: Rebirth

[REP(+)] Enhanced Boss Bars
This topic has been locked
KaaueR 7 Aug, 2024 @ 6:54am
Mod Bugged
Every time I made a run, my boss bar is missing.
I uninstalled all mods to see what is happening, but, when I install Enhanced Boss Bars, I see the mod is the problem maker.

Can u guys help me? :isaac:

In game view: https://prnt.sc/Bt8TjsllQqwS
Mods installed: https://prnt.sc/PLs9pI6AlsMq
< >
Showing 1-15 of 15 comments
Wofsauge  [developer] 7 Aug, 2024 @ 7:46am 
please send your log.txt file or a screenshot of the errors in your debug console.
KaaueR 7 Aug, 2024 @ 7:58am 
How can I get log.txt?
Wofsauge  [developer] 7 Aug, 2024 @ 7:59am 
the log.txt file can be found here:
C:\Users\[YourName]\Documents\My Games\Binding of Isaac Repentance\log.txt
KaaueR 7 Aug, 2024 @ 8:04am 
Now I have the mod uninstalled, does it need me to install it and try to use it again, or with the log can you look for previous uses and check the problem?
Wofsauge  [developer] 7 Aug, 2024 @ 8:06am 
the log only contains informations from the most resent game session. so you need the mod to be installed and enabled. and then you need to enter a run and cause the error to occur. in your case, just entering a boss room should be fine
Wofsauge  [developer] 7 Aug, 2024 @ 9:07am 
It seems like some other mod messes with the entities in the game, which EBB does not like at all.

your mod list doesnt contain something thats too out of the ordinary though, but the specialist for good items mod also was affected by the messed up entity game data ...

if you can, you could try to deactivate all your mods besides EBB. if its alone it should definetly work. if not, then something might be corrupt in your game files.

If it works, then enable the other mods one by one and see which one is causing the incompatibility issue in particular.
KaaueR 7 Aug, 2024 @ 9:49am 
Additionally, I also check the integrity of the game files before testing with EBB alone
Wofsauge  [developer] 7 Aug, 2024 @ 12:42pm 
the log indicates really weird behavior of basic game api functions. i dont really know how those might fail.

what you could try is, to go into the main.lua file of the mod, to line 319 and change the code a bit to look like this:
for key, entity in ipairs(Isaac.GetRoomEntities()) do Isaac.DebugString(key.." ".. type(entity)) local entityHash = GetPtrHash(entity)
the for loop and the line below it got changed in this example. the last line is the function of the code that currently causes your issue, because somehow the "entity" we get from the game is not the correct data-type. That never happend in the 8 years im modding this game already, so thats really weird.

The Isaac.DebugString will print the entity number and the data-type of the entity into the log file.

if you could try this out, we might find out what goes wrong.
Wofsauge  [developer] 7 Aug, 2024 @ 1:20pm 
that log did help. it seems like there is a number element in the list for you as well. you can fix that by changing the for loop in line 319 to look like this:

for _, entity in ipairs(Isaac.GetRoomEntities()) do if type(entity) == "userdata" then local entityHash = GetPtrHash(entity) local bossEntry = HPBars.currentBosses[entityHash] if entity:IsBoss() and not HPBars:evaluateEntityIgnore(entity) or bossEntry then if bossEntry == nil then HPBars:createNewBossBar(entity) else bossEntry.lastHP = bossEntry.hp bossEntry.hp = entity.HitPoints bossEntry.maxHP = entity.MaxHitPoints if bossEntry.lastHP > bossEntry.hp then bossEntry.lastStateChangeFrame = game:GetFrameCount() bossEntry.hitState = "damage" elseif bossEntry.lastHP < bossEntry.hp then bossEntry.lastStateChangeFrame = game:GetFrameCount() bossEntry.hitState = "heal" end HPBars:updateSprites(bossEntry) end end end end
This code adds "if type(entity) == "userdata" then" after the "for" line, and adds an "end" aboth the last end to close the "if statement" we added.

basically, this just added a check to the loop that only executes the content, if the entity object is of type userdata.
KaaueR 7 Aug, 2024 @ 1:49pm 
I made the change and.. IT'S WORKING!

In game: https://prnt.sc/vsgWkh9hq3Sy
main.lua: https://prnt.sc/76zSwuHFGLGp

Thanks!
Wofsauge  [developer] 19 Aug, 2024 @ 12:00pm 
This code snippet was added to the mod now as well, just to make sure similar issues dont occur. thanks for the help :)
< >
Showing 1-15 of 15 comments
Per page: 1530 50