Hex editing

For system help, all hardware / software topics NOTE: use Coders Corner for all coders topics.

Moderators: Krom, Grendel

Post Reply
User avatar
Red_5
DBB Ace
DBB Ace
Posts: 384
Joined: Tue Oct 23, 2007 4:59 pm
Location: Twitter.com/Defend_America
Contact:

Hex editing

Post by Red_5 »

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
User avatar
heftig
DBB Ace
DBB Ace
Posts: 138
Joined: Mon Jun 05, 2006 9:55 pm
Location: Germany
Contact:

Post by heftig »

Isn't there a command line option -windowed?
User avatar
Aus-RED-5
DBB Friend
DBB Friend
Posts: 1604
Joined: Fri Apr 23, 2004 7:27 am
Location: Adelaide, South Australia
Contact:

Post by Aus-RED-5 »

Not for windows OS.
User avatar
Red_5
DBB Ace
DBB Ace
Posts: 384
Joined: Tue Oct 23, 2007 4:59 pm
Location: Twitter.com/Defend_America
Contact:

Post by Red_5 »

What string(s) would I look for to change the windowed property? If that's even how to do it...
User avatar
heftig
DBB Ace
DBB Ace
Posts: 138
Joined: Mon Jun 05, 2006 9:55 pm
Location: Germany
Contact:

Post by heftig »

My guess is you would need to change the flags passed to a function, which would be an integer and not a string.
User avatar
Red_5
DBB Ace
DBB Ace
Posts: 384
Joined: Tue Oct 23, 2007 4:59 pm
Location: Twitter.com/Defend_America
Contact:

Post by Red_5 »

Are there some instructions somewhere, orcan I email you my main.exe and have you jack it up and send it back?
User avatar
heftig
DBB Ace
DBB Ace
Posts: 138
Joined: Mon Jun 05, 2006 9:55 pm
Location: Germany
Contact:

Post by heftig »

I don't know anything specific, sorry.
User avatar
Red_5
DBB Ace
DBB Ace
Posts: 384
Joined: Tue Oct 23, 2007 4:59 pm
Location: Twitter.com/Defend_America
Contact:

Post by Red_5 »

Hmm. I'll look up fullscreen hex editing keys on google or something similar. Do you know anyone that hex edits a lot?
User avatar
Foil
DBB Material Defender
DBB Material Defender
Posts: 4900
Joined: Tue Nov 23, 2004 3:31 pm
Location: Denver, Colorado, USA
Contact:

Post by Foil »

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.
User avatar
Krom
DBB Database Master
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 »

About the only way to pull it off would be with virtualization, fooling the program into thinking it is still running full screen.
User avatar
Red_5
DBB Ace
DBB Ace
Posts: 384
Joined: Tue Oct 23, 2007 4:59 pm
Location: Twitter.com/Defend_America
Contact:

Post by Red_5 »

Owch. Can I send someone my main.exe and have them look at it?
User avatar
fliptw
DBB DemiGod
DBB DemiGod
Posts: 6459
Joined: Sat Oct 24, 1998 2:01 am
Location: Calgary Alberta Canada

Post by fliptw »

we'd need the source of the game.

You'd need to redo a bunch of stuff to get it to work.
User avatar
The Lion
DBB Ace
DBB Ace
Posts: 197
Joined: Mon Apr 17, 2006 2:13 pm
Location: The Netherlands

Post by The Lion »

With wine you can also make it run in a window, but yeah that's not windows...
User avatar
Red_5
DBB Ace
DBB Ace
Posts: 384
Joined: Tue Oct 23, 2007 4:59 pm
Location: Twitter.com/Defend_America
Contact:

Post by Red_5 »

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?
User avatar
Foil
DBB Material Defender
DBB Material Defender
Posts: 4900
Joined: Tue Nov 23, 2004 3:31 pm
Location: Denver, Colorado, USA
Contact:

Post by Foil »

Try:

Code: Select all

C:\\Games\\Descent3\\MAIN.EXE -launched -setdir C:\\Games\\Descent3 (+whatever other switches you want)
User avatar
Red_5
DBB Ace
DBB Ace
Posts: 384
Joined: Tue Oct 23, 2007 4:59 pm
Location: Twitter.com/Defend_America
Contact:

Post by Red_5 »

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...)
User avatar
Krom
DBB Database Master
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 »

Right click the desktop ---> new ---> shortcut ---> \"Type the location of the item\".
User avatar
Red_5
DBB Ace
DBB Ace
Posts: 384
Joined: Tue Oct 23, 2007 4:59 pm
Location: Twitter.com/Defend_America
Contact:

Post by Red_5 »

Done.
User avatar
Aus-RED-5
DBB Friend
DBB Friend
Posts: 1604
Joined: Fri Apr 23, 2004 7:27 am
Location: Adelaide, South Australia
Contact:

Post by Aus-RED-5 »

Let us know if it works and what you did. :)
User avatar
Krom
DBB Database Master
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 »

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?
User avatar
Red_5
DBB Ace
DBB Ace
Posts: 384
Joined: Tue Oct 23, 2007 4:59 pm
Location: Twitter.com/Defend_America
Contact:

Re:

Post by Red_5 »

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.
User avatar
Red_5
DBB Ace
DBB Ace
Posts: 384
Joined: Tue Oct 23, 2007 4:59 pm
Location: Twitter.com/Defend_America
Contact:

Re:

Post by Red_5 »

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....
User avatar
Krom
DBB Database Master
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 »

Image
Image
User avatar
Red_5
DBB Ace
DBB Ace
Posts: 384
Joined: Tue Oct 23, 2007 4:59 pm
Location: Twitter.com/Defend_America
Contact:

Post by Red_5 »

Ooh... where did you get that version? I don't have that!
User avatar
Krom
DBB Database Master
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 »

User avatar
Red_5
DBB Ace
DBB Ace
Posts: 384
Joined: Tue Oct 23, 2007 4:59 pm
Location: Twitter.com/Defend_America
Contact:

Post by Red_5 »

thanks. I have this dinky little version that doesn't work.
User avatar
Red_5
DBB Ace
DBB Ace
Posts: 384
Joined: Tue Oct 23, 2007 4:59 pm
Location: Twitter.com/Defend_America
Contact:

Post by Red_5 »

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.

:x
User avatar
Krom
DBB Database Master
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 »

do NOT use \"-setdir C:\\Games\\Descent3\"
User avatar
Red_5
DBB Ace
DBB Ace
Posts: 384
Joined: Tue Oct 23, 2007 4:59 pm
Location: Twitter.com/Defend_America
Contact:

Post by Red_5 »

I didn't. The only way I can get it to do anything is use nothing but the -launched line, but it says \"cannot set temp directory!\"

:? :? :? :? :?
User avatar
Krom
DBB Database Master
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 »

If it doesn't already exist, make a folder named \"temp\" on C:
then use \"-tempdir C:\\temp\"
User avatar
Red_5
DBB Ace
DBB Ace
Posts: 384
Joined: Tue Oct 23, 2007 4:59 pm
Location: Twitter.com/Defend_America
Contact:

Post by Red_5 »

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!
User avatar
Krom
DBB Database Master
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 »

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.
User avatar
Red_5
DBB Ace
DBB Ace
Posts: 384
Joined: Tue Oct 23, 2007 4:59 pm
Location: Twitter.com/Defend_America
Contact:

Post by Red_5 »

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! :cry:
User avatar
Red_5
DBB Ace
DBB Ace
Posts: 384
Joined: Tue Oct 23, 2007 4:59 pm
Location: Twitter.com/Defend_America
Contact:

Post by Red_5 »

Ha ha haaaaa! It worketh! :D Now the last thing I need to figure out is why my menus are all glitchty with Direct 3D.
Post Reply