-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wtg is not work! #72
Comments
will get: |
Knowing the function names with their signatures is important to be able to successfully parse a WTG because for example a Wait command takes a real number argument while Move Item requires the item plus target location. You can add such a declaration file with wtg.addTriggerData(TXT) or wtg.addGameTriggerData(), which tries to load the default one from UI/TriggerData.txt from the game files, but that may not work anymore with the new game versions, which have altered the archive format and pattern and for which I have not added support yet. You can do it as you have shown, extract the TriggerData.txt somewhere to and add it to a raw WTG object before reading from the WTG file (remember to close the stream, by the way). However, it seems like your TriggerData.txt is not complete. |
will get :
Exception in thread "main" java.io.IOException: unknown func OperatorCompareUnit
at net.moonlightflower.wc3libs.bin.app.WTG$Trig$ECA.read_0x7(WTG.java:1068)
at net.moonlightflower.wc3libs.bin.app.WTG$Trig$ECA.read(WTG.java:1144)
at net.moonlightflower.wc3libs.bin.app.WTG$Trig$ECA.(WTG.java:1171)
at net.moonlightflower.wc3libs.bin.app.WTG$Trig.read_0x7(WTG.java:1282)
at net.moonlightflower.wc3libs.bin.app.WTG$Trig.read(WTG.java:1293)
at net.moonlightflower.wc3libs.bin.app.WTG$Trig.(WTG.java:1320)
at net.moonlightflower.wc3libs.bin.app.WTG.read_0x7(WTG.java:1903)
at net.moonlightflower.wc3libs.bin.app.WTG.read(WTG.java:1960)
at net.moonlightflower.wc3libs.bin.app.WTG.read_auto(WTG.java:1949)
at net.moonlightflower.wc3libs.bin.app.WTG.read(WTG.java:1965)
at net.moonlightflower.wc3libs.bin.app.WTG.read(WTG.java:2071)
at net.moonlightflower.wc3libs.bin.app.WTG.(WTG.java:2089)
at simple.TestWTG.main(TestWTG.java:22)
The text was updated successfully, but these errors were encountered: