Closed YakaryBovine closed 1 year ago
This is the complete list of files it generated before crashing:
Not sure if it's helpful, but this image shows the key, key column, and row:
Sounds like an issue with wc3 data, wouldn't be the first time (I've had issues with triggerdata.txt before). Can you upload the .slk file so I can check it? As a workaround you could probably replace Add()
with TryAdd()
.
Absolutely; I've attached the file in question. I renamed it from .slk to .txt to get it to upload; I assume you can just change it back. abilitydata.txt I'll try the workaround tomorrow, thankyou.
The workaround was effective and I was able to generate the code.
Thanks for uploading the file, I found that the duplicate key is AIs2
which is used for both StrengthBonus (+2)
and Attack Speed Increase(greater)
. Can you test which ability is applied if you use this ability code? That will determine what to do when TryAdd
returns false
, either it should do nothing (take first entry) or overwrite the value (take last entry).
Yup - adding AIs2
to a unit gives the unit an Attack Speed bonus, so I guess it's the second one.
Hi, I'm trying to use
War3Api.Generator.Object
to generate code for the 1.36.0.20257 version of Warcraft. I did the following:War3Api.Generator.Object\API\1.36.0.20257
.Program.cs
, changedVersion
to1.36.0.20257
.War3Api.Generator.Object
from my IDE.This process has worked for me in the past. This time it produced the following error: