安装 Steam
登录
|
语言
繁體中文(繁体中文)
日本語(日语)
한국어(韩语)
ไทย(泰语)
български(保加利亚语)
Čeština(捷克语)
Dansk(丹麦语)
Deutsch(德语)
English(英语)
Español-España(西班牙语 - 西班牙)
Español - Latinoamérica(西班牙语 - 拉丁美洲)
Ελληνικά(希腊语)
Français(法语)
Italiano(意大利语)
Bahasa Indonesia(印度尼西亚语)
Magyar(匈牙利语)
Nederlands(荷兰语)
Norsk(挪威语)
Polski(波兰语)
Português(葡萄牙语 - 葡萄牙)
Português-Brasil(葡萄牙语 - 巴西)
Română(罗马尼亚语)
Русский(俄语)
Suomi(芬兰语)
Svenska(瑞典语)
Türkçe(土耳其语)
Tiếng Việt(越南语)
Українська(乌克兰语)
报告翻译问题






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