ChiefOfGxBxL / WC3MapTranslator

Translate war3map ⇄ json formats for WarCraft III .w3x maps
https://www.npmjs.com/package/wc3maptranslator
MIT License
73 stars 31 forks source link

w3a -> Json. "Crs" field problem for abilities "Acrs" and "ACcs" (Curse) #78

Open makkad0 opened 5 months ago

makkad0 commented 5 months ago

Hello. Thank you for the wonderful program! I noticed one issue that prevents seamless translation between w3a <-> Json. Specifically, the "Crs" field of abilities "Acrs" and "ACcs" (Curse) is three characters long, whereas other similar fields are four characters long. Because of this, the value of this field is lost during transitions, and the Json converter interprets it as "Crs0." The problem is at least relevant for Warcraft 1.26. I haven't tested it on other versions.

ChiefOfGxBxL commented 4 months ago

Hi @makkad0 , I haven't had a chance to look at this yet but will play around with it maybe this upcoming weekend. Thanks for letting me know!