wc3libs
wc3libs copied to clipboard
Java library for reading and modifying Warcraft III maps and game files
The Map info file has been fully documented now, format versions 0-31. The missing legacy pieces are ROC Beta 100 (the first one). - PR: ChiefOfGxBxL/WC3MapSpecification/pull/7 - Until merged, [available...
``` java.io.IOException: null; �� at net.moonlightflower.wc3libs.bin.GameExe.getVersionString(GameExe.java:68) at net.moonlightflower.wc3libs.bin.GameExe.getVersion(GameExe.java:77) at de.peeeq.wurstio.utils.W3InstallationData.lambda$new$0(W3InstallationData.java:48) at java.util.Optional.flatMap(Unknown Source) at de.peeeq.wurstio.utils.W3InstallationData.(W3InstallationData.java:46) at de.peeeq.wurstio.languageserver.requests.MapRequest.getBestW3InstallationData(MapRequest.java:380) at de.peeeq.wurstio.languageserver.requests.MapRequest.(MapRequest.java:75) at de.peeeq.wurstio.languageserver.requests.RunMap.(RunMap.java:51) at de.peeeq.wurstio.languageserver.WurstCommands.startmap(WurstCommands.java:108) at de.peeeq.wurstio.languageserver.WurstCommands.execute(WurstCommands.java:51) at de.peeeq.wurstio.languageserver.WurstWorkspaceService.executeCommand(WurstWorkspaceService.java:42) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)...
AC: - Add some file specs, upgrade incrementally
Preferably have a visitor callback as the WTG is parsed and then be able to substitute it with another ECA/function and also a traversal method on the finished WTG.
how can read w3g ?
WTG wtg = new WTG(file); 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)...
It would be cool if one could generate bordered and disabled versions of images with wc3libs. - [ ] Transform image to wc3 button with borders - [ ] Apply...
~~using https://github.com/DrSuperGood/JCASC~~ We also need this to read up to date SLKs from game files for objmerger.
Any reason why it's not implemented?
1.30, 1.26 etc. all don't work.