Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
Here I was thinking, "I must be the stupidest person alive
Every step has me confused out of my mind.
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!
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?
- what should I do first?,
- does is require a specefic "file"?
- what should I put in the "code"?
and "where"?
inexplicit for me... what should I do? even in your Github page, I still don't get it at all...
"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?
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)
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)