For system help, all hardware / software topics NOTE: use Coders Corner for all coders topics.
Moderators: Krom , Grendel
Red_5
DBB Ace
Posts: 384 Joined: Tue Oct 23, 2007 4:59 pm
Location: Twitter.com/Defend_America
Contact:
Post
by Red_5 » Tue Dec 04, 2007 7:21 pm
I was wondering...
I'm trying to get D3 to run windowed. I have a hex editor called XVI32 and I'm wondering what I do to make it run in a window. Yes, I've seen all the other threads concerning this, but seen nothing pertaining to hex editors.
Thanks,
Red_5
heftig
DBB Ace
Posts: 138 Joined: Mon Jun 05, 2006 9:55 pm
Location: Germany
Contact:
Post
by heftig » Tue Dec 04, 2007 11:32 pm
Isn't there a command line option -windowed?
Aus-RED-5
DBB Friend
Posts: 1604 Joined: Fri Apr 23, 2004 7:27 am
Location: Adelaide, South Australia
Contact:
Post
by Aus-RED-5 » Wed Dec 05, 2007 12:54 am
Not for windows OS.
Red_5
DBB Ace
Posts: 384 Joined: Tue Oct 23, 2007 4:59 pm
Location: Twitter.com/Defend_America
Contact:
Post
by Red_5 » Wed Dec 05, 2007 10:23 pm
What string(s) would I look for to change the windowed property? If that's even how to do it...
heftig
DBB Ace
Posts: 138 Joined: Mon Jun 05, 2006 9:55 pm
Location: Germany
Contact:
Post
by heftig » Wed Dec 05, 2007 10:37 pm
My guess is you would need to change the flags passed to a function, which would be an integer and not a string.
Red_5
DBB Ace
Posts: 384 Joined: Tue Oct 23, 2007 4:59 pm
Location: Twitter.com/Defend_America
Contact:
Post
by Red_5 » Wed Dec 05, 2007 10:39 pm
Are there some instructions somewhere, orcan I email you my main.exe and have you jack it up and send it back?
heftig
DBB Ace
Posts: 138 Joined: Mon Jun 05, 2006 9:55 pm
Location: Germany
Contact:
Post
by heftig » Wed Dec 05, 2007 11:37 pm
I don't know anything specific, sorry.
Red_5
DBB Ace
Posts: 384 Joined: Tue Oct 23, 2007 4:59 pm
Location: Twitter.com/Defend_America
Contact:
Post
by Red_5 » Thu Dec 06, 2007 4:35 pm
Hmm. I'll look up fullscreen hex editing keys on google or something similar. Do you know anyone that hex edits a lot?
Foil
DBB Material Defender
Posts: 4900 Joined: Tue Nov 23, 2004 3:31 pm
Location: Denver, Colorado, USA
Contact:
Post
by Foil » Thu Dec 06, 2007 4:51 pm
As someone who has started working with Windows/MFC coding, I can tell you that it's probably not going to be anywhere near as simple as changing a flag on a function. At least for OpenGL and Direct3D draw functions, there's often difference between the functions for drawing in a window and full-screen.
Krom
DBB Database Master
Posts: 16138 Joined: Sun Nov 29, 1998 3:01 am
Location: Camping the energy center. BTW, did you know you can have up to 100 characters in this location box?
Contact:
Post
by Krom » Thu Dec 06, 2007 6:54 pm
About the only way to pull it off would be with virtualization, fooling the program into thinking it is still running full screen.
Red_5
DBB Ace
Posts: 384 Joined: Tue Oct 23, 2007 4:59 pm
Location: Twitter.com/Defend_America
Contact:
Post
by Red_5 » Thu Dec 06, 2007 8:52 pm
Owch. Can I send someone my main.exe and have them look at it?
fliptw
DBB DemiGod
Posts: 6459 Joined: Sat Oct 24, 1998 2:01 am
Location: Calgary Alberta Canada
Post
by fliptw » Fri Dec 07, 2007 12:08 am
we'd need the source of the game.
You'd need to redo a bunch of stuff to get it to work.
The Lion
DBB Ace
Posts: 197 Joined: Mon Apr 17, 2006 2:13 pm
Location: The Netherlands
Post
by The Lion » Fri Dec 07, 2007 12:09 pm
With wine you can also make it run in a window, but yeah that's not windows...
Red_5
DBB Ace
Posts: 384 Joined: Tue Oct 23, 2007 4:59 pm
Location: Twitter.com/Defend_America
Contact:
Post
by Red_5 » Fri Dec 07, 2007 5:12 pm
Ok, new approach. I've found a program that should force it into windowed mode, but I have to get main.exe to run outside of the Descent 3 launcher. How can I do that?
Foil
DBB Material Defender
Posts: 4900 Joined: Tue Nov 23, 2004 3:31 pm
Location: Denver, Colorado, USA
Contact:
Post
by Foil » Fri Dec 07, 2007 5:15 pm
Try:
Code: Select all
C:\\Games\\Descent3\\MAIN.EXE -launched -setdir C:\\Games\\Descent3 (+whatever other switches you want)
Red_5
DBB Ace
Posts: 384 Joined: Tue Oct 23, 2007 4:59 pm
Location: Twitter.com/Defend_America
Contact:
Post
by Red_5 » Fri Dec 07, 2007 6:28 pm
Where do I put this command line? It doesn't work in the launcher.
Just for reference, the program I found is called DxWnd.
(I am such an amateur...)
Krom
DBB Database Master
Posts: 16138 Joined: Sun Nov 29, 1998 3:01 am
Location: Camping the energy center. BTW, did you know you can have up to 100 characters in this location box?
Contact:
Post
by Krom » Fri Dec 07, 2007 6:57 pm
Right click the desktop ---> new ---> shortcut ---> \"Type the location of the item\".
Red_5
DBB Ace
Posts: 384 Joined: Tue Oct 23, 2007 4:59 pm
Location: Twitter.com/Defend_America
Contact:
Post
by Red_5 » Fri Dec 07, 2007 6:59 pm
Done.
Aus-RED-5
DBB Friend
Posts: 1604 Joined: Fri Apr 23, 2004 7:27 am
Location: Adelaide, South Australia
Contact:
Post
by Aus-RED-5 » Fri Dec 07, 2007 9:51 pm
Let us know if it works and what you did.
Krom
DBB Database Master
Posts: 16138 Joined: Sun Nov 29, 1998 3:01 am
Location: Camping the energy center. BTW, did you know you can have up to 100 characters in this location box?
Contact:
Post
by Krom » Fri Dec 07, 2007 10:39 pm
It works as long as you have the recent version that can also supply command line options and you set D3 to Direct3D renderer. Of course you can't get the window out of the upper left corner of the screen and the gamma setting quits working...
So why do you want to run D3 in a window anyway?
Red_5
DBB Ace
Posts: 384 Joined: Tue Oct 23, 2007 4:59 pm
Location: Twitter.com/Defend_America
Contact:
Post
by Red_5 » Sun Dec 09, 2007 5:25 pm
Krom wrote:
So why do you want to run D3 in a window anyway?
If I task switch (to check email etc), it changes screen resolution and the whole thing crashes. Plus it's just a little more convenient.
Red_5
DBB Ace
Posts: 384 Joined: Tue Oct 23, 2007 4:59 pm
Location: Twitter.com/Defend_America
Contact:
Post
by Red_5 » Sun Dec 09, 2007 5:37 pm
Aus-RED-5 wrote: Let us know if it works and what you did.
I tried combining command lines with DxWnd and main.exe. I'm sure I did something wrong. Can Diedel help at all? If there's anyone who knows this kind of stuff, it's him.
I'm so bad at doing stuff like this....
Krom
DBB Database Master
Posts: 16138 Joined: Sun Nov 29, 1998 3:01 am
Location: Camping the energy center. BTW, did you know you can have up to 100 characters in this location box?
Contact:
Post
by Krom » Sun Dec 09, 2007 7:13 pm
Red_5
DBB Ace
Posts: 384 Joined: Tue Oct 23, 2007 4:59 pm
Location: Twitter.com/Defend_America
Contact:
Post
by Red_5 » Sun Dec 09, 2007 7:15 pm
Ooh... where did you get that version? I don't have that!
Krom
DBB Database Master
Posts: 16138 Joined: Sun Nov 29, 1998 3:01 am
Location: Camping the energy center. BTW, did you know you can have up to 100 characters in this location box?
Contact:
Post
by Krom » Sun Dec 09, 2007 7:21 pm
Red_5
DBB Ace
Posts: 384 Joined: Tue Oct 23, 2007 4:59 pm
Location: Twitter.com/Defend_America
Contact:
Post
by Red_5 » Mon Dec 10, 2007 8:26 am
thanks. I have this dinky little version that doesn't work.
Red_5
DBB Ace
Posts: 384 Joined: Tue Oct 23, 2007 4:59 pm
Location: Twitter.com/Defend_America
Contact:
Post
by Red_5 » Mon Dec 10, 2007 5:26 pm
If I use anything more than the -launched command line, it won't run. If I don't, it says it can't set the temporary directory.
Krom
DBB Database Master
Posts: 16138 Joined: Sun Nov 29, 1998 3:01 am
Location: Camping the energy center. BTW, did you know you can have up to 100 characters in this location box?
Contact:
Post
by Krom » Mon Dec 10, 2007 6:32 pm
do NOT use \"-setdir C:\\Games\\Descent3\"
Red_5
DBB Ace
Posts: 384 Joined: Tue Oct 23, 2007 4:59 pm
Location: Twitter.com/Defend_America
Contact:
Post
by Red_5 » Mon Dec 10, 2007 6:33 pm
Krom
DBB Database Master
Posts: 16138 Joined: Sun Nov 29, 1998 3:01 am
Location: Camping the energy center. BTW, did you know you can have up to 100 characters in this location box?
Contact:
Post
by Krom » Mon Dec 10, 2007 6:37 pm
If it doesn't already exist, make a folder named \"temp\" on C:
then use \"-tempdir C:\\temp\"
Red_5
DBB Ace
Posts: 384 Joined: Tue Oct 23, 2007 4:59 pm
Location: Twitter.com/Defend_America
Contact:
Post
by Red_5 » Mon Dec 10, 2007 6:41 pm
Done. When I click on it in DxWnd, it dings at me and doesn't do anything.
Blast I gotta get this to work, I have screencapturing to do!
Krom
DBB Database Master
Posts: 16138 Joined: Sun Nov 29, 1998 3:01 am
Location: Camping the energy center. BTW, did you know you can have up to 100 characters in this location box?
Contact:
Post
by Krom » Mon Dec 10, 2007 6:43 pm
The most likely possible cause of D3 throwing an error about the temp directory is if a copy of D3 is already running, open task manager and look for copies of main.exe that might still be running, or reboot.
Red_5
DBB Ace
Posts: 384 Joined: Tue Oct 23, 2007 4:59 pm
Location: Twitter.com/Defend_America
Contact:
Post
by Red_5 » Mon Dec 10, 2007 6:46 pm
Done and done. Still no result. I'll try on a different computer tomorrow and see what I can come up with.
Know what... I'll talk to the D2X-XL man and see if he has any nifty hacks to pull while I try to get this piece of crap to DO WHAT I WANT! Waaaaaa!
Red_5
DBB Ace
Posts: 384 Joined: Tue Oct 23, 2007 4:59 pm
Location: Twitter.com/Defend_America
Contact:
Post
by Red_5 » Tue Dec 11, 2007 11:01 am
Ha ha haaaaa! It worketh!
Now the last thing I need to figure out is why my menus are all glitchty with Direct 3D.