The Binding of Isaac: Rebirth

The Binding of Isaac: Rebirth

Character Costume Protector
23 Comments
DB 26 Jun @ 5:34am 
I'm so glad to see others saying that the guide isn't easy to understand.
Here I was thinking, "I must be the stupidest person alive :reonion:"
Every step has me confused out of my mind.
Zarko Kavensky 20 Apr, 2023 @ 3:12am 
@possum with a gun

oh, you too?! welp guess what, I'm in the same boat as you,

since I'm not really good at modding (ESPECIALLY with so much low instruction and explaination), it's such a pain to try to find what is completely broke the costume/mod, fixing the line to see if it work, searching for the sprite to include to the white-list (meaning it will allow the costum) etc...

at least, I'm reassured that I'm NOT the only one in this situation!
Loathsome Gunk Goblin 25 Feb, 2023 @ 8:29pm 
Respectfully, the "It's super easy to use! Even for the non-experienced modders" comment is a bit disingenuous. I'm wanting to make a custom character model for a friend and need a costume saver to prevent their model from being covered up, but the coding lingo used in the github page is far above my head.

I don't know what lines need replacing and which lines are to be left the same. Furthermore, under the "Adding your character to the library" section, where do we put that block of text? In the main.lua somwhere?
RealGreenQueen 29 Sep, 2022 @ 9:07am 
Does it work with repentance
RealGreenQueen 28 Sep, 2022 @ 5:14pm 
What do I do to make it so outfit parts on modded characters stay on? Does this mod help with that?
left & right 10 Jun, 2022 @ 9:32pm 
is there a link to a download for the costume for the character in the thumbnail? specifically, the one on the right.
Zarko Kavensky 30 May, 2022 @ 6:49am 
What I mean is

- what should I do first?,
- does is require a specefic "file"?
- what should I put in the "code"?
and "where"?
Zarko Kavensky 30 May, 2022 @ 6:37am 
@Sanio #savetf2 , I just don't get if by "how" I must do it... because, it's a kind of a bit
inexplicit for me... what should I do? even in your Github page, I still don't get it at all...
Benny  [author] 1 May, 2022 @ 7:16am 
Er whoops, I actually changed it specifically to "NullItemIDWhitelist" to be exact.
Benny  [author] 1 May, 2022 @ 7:14am 
That would be beccaaauussseee I'm a dumbass and forgot to update the wiki! It was changed to "NullEffectCostumeWhitelist" instead of "NullItemCostumeWhitelist"...though for consistency sake I really should change it back, so no worries! I just sent out an update that changes it back and actually fixes a other couple other things.
Dangan2020 1 May, 2022 @ 6:41am 
Hey uh... got a problem here. I get the following error:
"PostPlayerInit" failed: ... attempting to call a nil value (method 'NullItemCostumeWhiteList')

As for the code:

costumeProtector:AddPlayer(
player,
PLAYER_MADOKA,
"gfx/characters/costumes/character_madoka.png",
67,
"gfx/characters/costumes/character_madoka.png",
Isaac.GetCostumeIdByPath("gfx/characters/character_madoka_hair.anm2")
)
costumeProtector:ItemCostumeWhitelist(
PLAYER_MADOKA,
{
[CollectibleType.COLLECTIBLE_TRANSCENDENCE] = true,
[CollectibleType.COLLECTIBLE_ASTRAL_PROJECTION] = true
}
)

costumeProtector:NullItemCostumeWhitelist(
PLAYER_MADOKA,
{
[NullItemID.ID_LOST_CURSE] = true,
[NullItemID.ID_SPIRIT_SHACKLES_SOUL] = true
}
)
end

I don't understand what went wrong. Any ideas why?
my true form 12 Mar, 2022 @ 6:51am 
It seems like so but it doesn't re-add my costume.
Benny  [author] 11 Mar, 2022 @ 2:17pm 
Did you...add everything correctly? I mean the wiki is right there. Any time your costumes reset, it clears all costumes and re-adds the costume you assigned to your character from "AddPlayer".
my true form 11 Mar, 2022 @ 8:46am 
I have one problem. When I pick up an item that includes a costume, my costume_ears disappear and my character doesn't have any costume.
Benny  [author] 6 Jan, 2022 @ 8:06pm 
I've been meaning to update the Workshop version. The Github version is more up to date. HOWEVER, if the regular character is working but the tainted character isn't, maybe you just have something wrong purely with the Tainted Character itself, I dunno. Double check that your players.xml looks fine, this mod bases everything on the player's PlayerType for checking who to protect.
💕 CuddleJoy 💕 6 Jan, 2022 @ 1:38am 
I've been tweaking bits and bobs of it for hours now without any luck... The regular character works perfectly, but the tainted version doesn't seem to be recognised by the code and isn't being protected... Can you help me figure out what needs fixing here?
💕 CuddleJoy 💕 6 Jan, 2022 @ 1:37am 
Hey, I'm trying to incorporate this code into my own mod and I'm having trouble getting it to work for the tainted version of my character. Here's the code I've got so far:

local PLAYER_SONIC = Isaac.GetPlayerTypeByName("Sonic", false)
local PLAYER_SONIC_B = Isaac.GetPlayerTypeByName("Metal Sonic", true)

function mod:PlayerInit(player)

costumeProtector:AddPlayer(
player,
PLAYER_SONIC,
"gfx/characters/costumes/character_sonic.png",
COSTUME_SONIC_FLIGHT,
"gfx/characters/costumes/character_sonic_flight.png"
)

costumeProtector:AddPlayer(
playerb,
PLAYER_SONIC_B,
"gfx/characters/costumes/character_sonic_b.png",
COSTUME_SONIC_B_FLIGHT,
"gfx/characters/costumes/character_sonic_b_flight.png"
)
end
mod:AddCallback(ModCallbacks.MC_POST_PLAYER_INIT, mod.PlayerInit)
Benny  [author] 27 Nov, 2021 @ 5:12pm 
I'll be updating the mod super soon! I'll have a GitHub repository created alongside it, and move the instructions over there. There's a good chunk of more stuff accounted for, and updates to the structure of the mod that'll require some changes from the user for those that want to update their mods with this library.
Benny  [author] 22 Nov, 2021 @ 6:20pm 
to pablo, yes! Any PlayerType can be listed. Be sure to use the existing enumeration provided by the API for his PlayerType.

Also I realize there are definitely a lot of shortcomings the longer I work with costumes. I may make an update that refines a lot of stuff.

(also sorry for deleting your comment by accident, steam is fucking horrible to use on mobile)
Benny  [author] 10 Oct, 2021 @ 11:11am 
No clue if anyone has actually implemented this into their mods aside from one person who contacted me directly and my own mods, but there are gonna be a few improvements coming to this as a somewhat final update, but I wanna hold off until the Rep PC patch comes along to potentially release even more fixes if needed.
Boulders Odyssey 12 Jul, 2021 @ 9:57pm 
so you can keep looking at their gay visage, 0/10
ocksie 9 Jul, 2021 @ 1:20am 
Congrats on the release Sanioo :happy_creep:
Lesser star 8 Jul, 2021 @ 2:41pm 
epic