ikemen-engine/Ikemen-GO

Can't load specific chars with the error: Missing '=' or '!='

Opened this issue · 2 comments

Describe the bug

I found some chars can not be loaded in ikemen go (latest nightly) with the following error:

Missing '=' or '!='
stack traceback:
[G]: in function 'game'
.\external\script\start.lua:1403: in function 'f_game'
.\external\script\start.lua:1840: in function 'launchFight'
external/script/default.lua:20: in function <external/script/default.lua:0>
.\external\script\start.lua:1457: in function 'f'
external/script/main.lua:3106: in function 'loop'
external/script/main.lua:3190: in function 'loop'
external/script/main.lua:4157: in main chunk
[G]: ?

To Reproduce

https://www.mediafire.com/file/06u0c62j3moe1q4/ikemen_go_broken_chars.7z/file
This is a pack of chars with this problem. All of them works perfectly in 1.1 (also winmugen)

Expected behavior

Hoping it can be fixed due to not a rare case. Thanks so much for all your hard works!!

Screenshots / Video

No response

Engine Version (or source code date)

nightly 24.09.20

Operating system

Windows

Extra context or search terms

No response

I knew what the issue would be from the title. They all have bad syntax in HitDefAttr:

Fate
trigger2 = PlayerID(Var(58)),Hitdefattr ,AP

Turf
Triggerall = !Enemynear,hitdefattr

Frey
trigger1 = PlayerID(var(58)),Hitdefattr SCA, AP

Botan
trigger2 = PlayerID(Var(58)),Hitdefattr SC ,AP

Dante
Trigger3 = enemynear(fvar(30)),hitdefattr SCA, AT

You can either correct these lines or just comment them out, since if I recall correctly that syntax doesn't work in Mugen either (just does not crash).

Thanks very much for your explaining! Hoping is there a way bypass these kind of bad syntax errors without editing, especially for these kind of errors which were not fatal issues in win/1.0/1.1, in my roster there're really many chars have similar issues in ikemen go.