wurstscript / WurstScript

Programming language and toolkit to create Warcraft III Maps
https://wurstlang.org
Apache License 2.0
225 stars 30 forks source link

Fix start from eclipse #266

Closed Frotty closed 10 years ago

Frotty commented 10 years ago

Did you ever succesfully test it? For Kari it goes to the main menu, for me the wc3-window just stays black. It would be a cool feature, if it would work.

peq commented 10 years ago

It worked quite well the last time I tested it.

Frotty commented 10 years ago

How to debug then? this is all I get

running [C:\Games\Warcraft III\Frozen Throne.exe, -window, -loadfile, Maps/wurstTestMap.w3x]
peq commented 10 years ago

Just tested it again on Ubuntu and it works. Some steps to debug it:

  1. Make sure that you have a correct war3map.j in your wurst folder. This should be created automatically when you save the map in Wurstpack once. It should be the raw war3map.j without any Wurst code.
  2. Check if the file C:\Games\Warcraft III\Maps\wurstTestMap.w3x exists and has the right modification date.
  3. Use an mpq-editor to look at the war3map.j in that file. Especially the config function should not be empty and the file should start with a "created by wurst" comment.
  4. Tell me which project is not working, so that I can reproduce it.
Frotty commented 10 years ago
  1. Is there and correct.
  2. is correct
  3. // this script was compiled with wurst 1.4.0.0-jenkins-Wurst-669 and config is not empty
  4. https://github.com/Frotty/thwcontest
peq commented 10 years ago

Fixed in 93a234de5da1aae96cd9c0abbf93b95ab0bc3733 with new jmpq2 lib