Page 1 of 1

Opening map through command line

PostPosted: Wed Aug 10, 11 4:10 pm
by Poor
I need to start Deus Ex and have it load a map like unrealed does when you do play level. I looked at how unrealed does it and it does "deusex.exe Autoplay.dx HWND=2432256 -log -hax0r". The problem is I need a window handle. Is there any other way to do this or a way to get a window handle?

PostPosted: Wed Nov 16, 11 8:40 pm
by EXetoC
Specifying the window handle doesn't make sense, unless it's some hacky way to interact with another application. deusex Autoplay.dx works for me (it just starts the game like usual and ends up in the main menu).

EDIT: UnrealEd seems to show its window handle, so perhaps you're trying to interact with it somehow? I wouldn't know anything about that though

PostPosted: Sat Nov 19, 11 11:11 am
by EXetoC
I also wanted to find a way to load a map using command-line switches. I realized that i needed to specify the -hax0r switch, otherwise the map argument would be ignored. So leave out the handle and it should work.

PostPosted: Sat Nov 19, 11 11:26 pm
by Poor
:shock: Wow that works. Thanks a ton!