The Binding of Isaac: Rebirth

The Binding of Isaac: Rebirth

Reaction Port Pack
 This topic has been pinned, so it's probably important
Guantol  [developer] Nov 27, 2023 @ 3:37am
How to Add a Pack
In order to add a pack, you must first, add the costumes, music or/and sounds in the game by creating an entry in the respective .xml file.

Setup

Inside of a .lua file, you must first make sure Reaction Port Pack is enabled.
You can do this by using.
if ReactionPack and ReactionPack.Enabled then --your code here-- end

NOTE If your mod already has a system that detects and reacts to certain Qualities, then it must be disabled for it to be totally compatible with Reaction Port Pack:

if ReactionPack and ReactionPack.Enabled then --code that adds packs-- else --your original code-- end

Adding Costumes

First you need to create two tables: one for the Default Costume (used if the specific character does not have a specific costume) and one for the Character Specific Costumes.

local costumeDefault = {Apply = {defaultCostumeID}, Remove = nil} local characterCostumes = { [PlayerType.PLAYER_CAIN_B] = {Apply = {painCostumeID}, Remove = nil}, [PlayerType.PLAYER_BLUEBABY_B] = {Apply = {bluebabyCostumeID}, Remove = bbteethCostumeID} }

Then to add the costume you can use the AddCostumePack command

local costumePackName = "my cool pack name" ReactionPack.Interface.AddPogCostumePack(characterCostumes, costumePackName, costumeDefault)

NOTE there are various AddCostumePack commands, one for each set:
  • AddTraumaCostumePack
  • AddUghCostumePack
  • AddNeutralCostumePack
  • AddPogCostumePack
  • AddDanceCostumePack

Use the appropriate set for your own costume.

Adding Music

Adding Music works exactly the same as adding a costume, the only difference is that instead of a table containing Apply and Remove it only needs the name of the music, as specified in the music.xml file.

local musicDefault = {"musicName1", "musicName2", ...} local characterMusic = { [PlayerType.PLAYER_CAIN_B] = {"painMusicName1", "painMusicName2", ...} }

NOTE Adding more then one song to the list will make them randomized, if you want the user to have a more personalized experience then either create various packs, or create a Settings menu for your mod and use EditMusicPack accordingly.

Then use the AddMusicPack command

local musicPackName = "my cool pack name" ReactionPack.Interface.AddDanceMusicPack(characterMusic, musicPackName, musicDefault)

Here are the various AddMusicPack commands:
  • AddTraumaMusicPack
  • AddUghMusicPack
  • AddNeutralMusicPack
  • AddPogMusicPack
  • AddDanceMusicPack

Use the appropriate set for your own music.

Adding Sound

Adding Sound works exactly the same as adding a costume, the only difference is that instead of a table containing Apply and Remove it only needs the name of the sound, as specified in the sounds.xml file.

local soundDefault = {"soundName1", "soundName2", ...} local characterSound = { [PlayerType.PLAYER_CAIN_B] = {"painSoundName1", "painSoundName2", ...} }

NOTE Adding more then one sound to the list will make them randomized, if you want the user to have a more personalized experience then either create various packs, or create a Settings menu for your mod and use EditSoundPack accordingly.

Then use the AddSoundPack command

local soundPackName = "my cool pack name" ReactionPack.Interface.AddUghSoundPack(characterSound, soundPackName, soundDefault)

Here are the various AddSoundPack commands:
  • AddTraumaSoundPack
  • AddUghSoundPack
  • AddNeutralSoundPack
  • AddPogSoundPack
  • AddDanceSoundPack

Use the appropriate set for your own sound.

Publicize your Packs

Once you have created a Package that is compatible with the mod, you can notify me in the Publicize your Packs discussion, so that it may be added to the collection visible in the description.
Last edited by Guantol; Dec 26, 2023 @ 9:21am
< >
Showing 1-2 of 2 comments
qadril Dec 25, 2024 @ 8:18am 
yo guantol i have been trying to add a music for quality 3 for 2 days, 6+ hours, i even get help from the chatgpt but nothing works out...i will send a friend request to you for sending you the pictures about what i writed to the lua,i hope you can help me
Guantol  [developer] Dec 25, 2024 @ 9:28am 
Sure, tho it would be better for you to send over the lua file itself, as it's easier to work with.
Last edited by Guantol; Dec 25, 2024 @ 9:29am
< >
Showing 1-2 of 2 comments
Per page: 1530 50