HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Start War3 with map - how should I form the process arguments?

03-26-2010, 11:45 AM#1
Vestras
As the title suggest, I'm trying to start Warcraft 3 directly into a map. The question is simple - how should I form the process arguments? This is what I tried:
"C:\Users\Theo\Documents\Moonlite Map Studio Projects\Test\Bin\Test.w3x"

It didn't work - it just started Warcraft 3 into the main menu.
Any help will be appreciated.
03-26-2010, 11:48 AM#2
mastaofpuppets
Use:
"war3.exe" -loadfile "YourMap.w3x"

The " are important - and afaik this only works for the war3.exe, not Frozen Throne.exe.
03-26-2010, 11:54 AM#3
Vestras
Hmm, I run Frozen Throne.exe, however it starts war3.exe, so isn't that OK? How does WE do it?
I tried -loadfile, however it just gave me a black screen. Because of Frozen Throne.exe, maybe?
03-26-2010, 03:22 PM#4
mastaofpuppets
Quote:
Because of Frozen Throne.exe, maybe?

Probably... I remember that I had the same problem, and I think I just used war3.exe instead of Frozen Throne and it worked.
But It's been a while since is used this, so I might be wrong too
03-26-2010, 07:06 PM#5
Vestras
I tried with war3.exe, same thing happens, except it actually gets to the main menu after a couple seconds. Any ideas?
03-28-2010, 07:42 AM#6
SFilip
I encountered the black screen several times, but only when the map isn't in the WC3's Maps directory. Sometimes it works, but the only way to make sure it won't happen is to put your map to a directory like C:\Program Files\Warcraft III\Maps\MyFolder (or wherever your WC3 is installed) and then load it with a relative path, like this:
war3.exe -loadfile "MyFolder\Test.w3x"
03-28-2010, 03:50 PM#7
Vestras
Quote:
Originally Posted by SFilip
I encountered the black screen several times, but only when the map isn't in the WC3's Maps directory. Sometimes it works, but the only way to make sure it won't happen is to put your map to a directory like C:\Program Files\Warcraft III\Maps\MyFolder (or wherever your WC3 is installed) and then load it with a relative path, like this:
war3.exe -loadfile "MyFolder\Test.w3x"

SFilip, you're my hero! It worked! Big love :)