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
5. This is truly a personal nitpick and not a real issue, but when checking for variables, it's good to keep this in mind:
'if x then' // 'if x == true or x ~= nil then'
'if not x then' // 'if x == false or x == nil then'
These terms are generally more readable when (and faster to write) when you have more experience coding.
1. You are barely using enumerations (i.e. typing Isaac.Spawn(1000, ...) instead of Isaac.Spawn(EntityType.ENTITY_EFFECT, ...)), this makes the code pretty unreadable and specially if you start making custom stuff, it might cause issues with dynamic ids and whatnot.
2. On the topic of readability, some of your statements get pretty long, generally it's best to keep each check in its own line.
i.e. 'if x and y then' to
'if x'
'and y'
'then'
3. In this case it doesn't matter, but it's generally a bad practice to define static objects more than once, in your case you're defining a Color every time you spawn an outline, but the color is always the same, so really there's no reason not to define it at the top of your code as a constant.
Ok I've now defined the json library, thank you for pointing that out. I'm pretty new to modding, Isaac or otherwise, so your help is much appreciated.
Yeah the mod checks for doors every time you enter a room and places an outline wherever a door can be placed but isn't open. The crawlspace leading to the black market must contain a door entity on the right which the mod detects (although I would've thought that door would be marked as open and thus an outline shouldn't be placed). Regardless, the mod now checks if the room type is a crawlspace and doesn't place any outlines if so, so that shouldn't happen again. Thanks for pointing that out and please let me know if you notice any other bugs.
The error appears every time I exit the game (though I presume it procs every time you try to save your mod's data).
Could you tell me more about the error? What were you doing when it appeared? Was it a one-off or a recurring error?
- Curse Room (left wall)
- Shop (left wall)
- Golden Treasure Room (right wall)
- Silver Treasure Room (right wall)
- Greed Exit (left wall)
If you can change this as well as doors appering in Boss Rooms where is no chance for Secret Rooms to be, that would be nice
Here is a wiki about it:
https://bindingofisaacrebirth.fandom.com/wiki/Rooms#Secret_Rooms