ikemen-engine / Ikemen-GO

An open-source fighting game engine that supports MUGEN resources.
https://ikemen-engine.github.io
Other
732 stars 126 forks source link

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

Open djlain opened 1 month ago

djlain commented 1 month ago

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

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

potsmugen commented 1 month ago

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).

djlain commented 1 month ago

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.