아이작 이라는 게임 모드인데,
https://steamcommunity.com/sharedfiles/filedetails/?id=2551961345
액티브 쿨타임 되면 캐릭터 위에 표시해주는 모드임
이거 한글 모드 깔고 하면 적용이 안되더라고.
그래서
main.lua 파일 열어서 살펴보는데,
local supportedItems = {
['Red Candle'] = true,
['Dark Arts'] = true,
['Anima Sola'] = true,
['The Candle'] = true,
['Telekinesis'] = true,
['Sharp Straw'] = true,
['Brown Nugget'] = true,
['Butter Bean'] = true,
['Wait What'] = true,
['The Boomerang'] = true,
['Glass Cannon'] = true,
['Spin to Win'] = true,
['Recall'] = true,
['Stitches'] = true,
['Sumptorium'] = false,
['Decap Attack'] = true,
['Suplex!'] = true,
}
이거랑
function mod:loadIndicator(timedSlot)
if supportedItems[timedSlot.name] ~= nil then
if (options.type == ICON_TYPE.DEFAULT) then
timedSlot.indicator:Load("gfx/effects/" .. timedSlot.name .. "/default.anm2", false)
else
timedSlot.indicator:Load("gfx/effects/" .. timedSlot.name .. "/simple.anm2", false)
end
else
timedSlot.indicator:Load("gfx/effects/fallback/default.anm2", false)
end
여기서 문제가 발생하는 거 같아
무슨 문제냐면, 어떤 액티브를 들던간에 항상 timedSlot.indicator:Load("gfx/effects/fallback/default.anm2", false) 이 아이콘으로 실행돼
위에 줄보면 이름에 맞춰서 폴더 경로에 맞는 아이콘이 보여져야 하는데,
아마 한글이라 인식이 안되는 것 같아
그래서 내가
local supportedItems = {
['레드 캔들'] = true,
이 부분에서 영어를 이런 식으로 한글로 바꾸고
if (options.type == ICON_TYPE.DEFAULT) then
timedSlot.indicator:Load("gfx/effects/" .. timedSlot.name .. "/default.anm2", false)
이 부분에 "gfx/effects/" .. timedSlot.name .. "/ 여기 경로에 있는 실제 폴더를 찾아가서 폴더명을 레드 캔들 이라고 변경했는데도
아마, 한글이라 그런지 여전히 timedSlot.indicator:Load("gfx/effects/fallback/default.anm2", false) 이 아이콘으로 실행됨..ㅠㅠ
내 생각에는 인게임에서 명칭이 레드 캔들이면 -> red candle
이런 식으로 선언하는 명령문을 넣으면 되지 않을까 하는데,
아는 사람 있냐?ㅠㅠ
아니면 if supportedItems[timedSlot.name] ~= nil then 이걸 레드캔들, 블루캔들 다 따로따로 하나씩 설정하려면 명령어가 어떻게 돼?