Editing the debugger exe

Talk and share anything related to Star Wars Battlefront 2. No maps or mod announcements here. Use Work in Progress forum.

Moderator: Moderators

Post Reply
User avatar
AnthonyBF2
Sith
Sith
Posts: 1255
Joined: Wed Aug 21, 2013 3:55 pm
Projects :: PS2+PSP Overhaul

Editing the debugger exe

Post by AnthonyBF2 »

Changes you can make to the debugger game executable. You'll need to be using the "No DVD" version.

Open the file in hex editor, and go to the offsets listed below and make the specified changes;

1) Removing the green block so your whole screen can be viewable
Go to offset 003ffc0a and change the single byte AA to 00

2) Getting resolution of 1024x768 - debugger game will still be in windowed mode
Go to offset 00347769 and changes the bytes 80 02 00 00 B9 E0 01 to 00 04 00 00 B9 00 03

If you want a different resolution, edit the data to a bit of data from the below list, submitted by JimmyAngler
1024x768: 00 04 00 03
1152x864: 80 04 60 03
1280x720: 00 05 D0 02
1280x800: 00 05 20 03
1280x960: 00 05 C0 03
1280x1024: 00 05 00 04
1360x768: 50 05 00 03
1366x768: 56 05 00 03
1440x900: A0 05 84 03
1600x900: 40 06 84 03
1600x1200: 40 06 B0 04
1680x1050: 90 06 1A 04
1920x1080: 80 07 38 04
1920x1200: 80 07 B0 04
2560x1440: 00 0A A0 05
Last edited by AnthonyBF2 on Mon Mar 21, 2016 11:16 pm, edited 2 times in total.
Noobasaurus
Droid Pilot Assassin
Droid Pilot Assassin
Posts: 2006
Joined: Tue Aug 17, 2010 5:56 pm

Re: Removing the green block from debugger exe

Post by Noobasaurus »

Does this affect the code console (the thing that pops up when you press the tilde)?
User avatar
AnthonyBF2
Sith
Sith
Posts: 1255
Joined: Wed Aug 21, 2013 3:55 pm
Projects :: PS2+PSP Overhaul

Re: Removing the green block from debugger exe

Post by AnthonyBF2 »

Command console remains functional. :)
JimmyAngler
High General
High General
Posts: 837
Joined: Mon Nov 04, 2013 10:37 am
Projects :: Battlefront Halation
Games I'm Playing :: SWBF 1-2-2015
xbox live or psn: none
Location: Area 51

Re: Removing the green block from debugger exe

Post by JimmyAngler »

Cool find, thanks!
User avatar
AceMastermind
Gametoast Staff
Gametoast Staff
Posts: 3285
Joined: Mon Aug 21, 2006 6:23 am
Contact:

Re: Removing the green block from debugger exe

Post by AceMastermind »

Nice! Works great, thanks :thumbs:
User avatar
AnthonyBF2
Sith
Sith
Posts: 1255
Joined: Wed Aug 21, 2013 3:55 pm
Projects :: PS2+PSP Overhaul

Re: Editing the debugger exe

Post by AnthonyBF2 »

Edited the OP with another change.
JimmyAngler
High General
High General
Posts: 837
Joined: Mon Nov 04, 2013 10:37 am
Projects :: Battlefront Halation
Games I'm Playing :: SWBF 1-2-2015
xbox live or psn: none
Location: Area 51

Re: Editing the debugger exe

Post by JimmyAngler »

This might be helpful for anyone with a different resolution.
Hidden/Spoiler:
1024x768: 00 04 00 03
1152x864: 80 04 60 03
1280x720: 00 05 D0 02
1280x800: 00 05 20 03
1280x960: 00 05 C0 03
1280x1024: 00 05 00 04
1360x768: 50 05 00 03
1366x768: 56 05 00 03
1440x900: A0 05 84 03
1600x900: 40 06 84 03
1600x1200: 40 06 B0 04
1680x1050: 90 06 1A 04
1920x1080: 80 07 38 04
1920x1200: 80 07 B0 04
2560x1440: 00 0A A0 05
User avatar
Anakin
Master of the Force
Master of the Force
Posts: 4817
Joined: Sat Sep 19, 2009 11:37 am
Projects :: RC Side Mod - Remastered - SWBF3 Legacy
Location: Mos Espa (germany)

Re: Editing the debugger exe

Post by Anakin »

WOW. Thank you. I was waiting for this so long.

@mod/adm: this needs to go to the FAQs

Stop telling us what to do. -Staff
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

Re: Editing the debugger exe

Post by [RDH]Zerted »

Anakin wrote:@mod/adm: this needs to go to the FAQs
Compared to deleting the thread for hacking the game?
User avatar
cbadal
Corporal
Corporal
Posts: 156
Joined: Sun Jan 18, 2015 5:23 pm
Projects :: SWBF2 XBOX Mod Environment
Games I'm Playing :: SW Battlefront 2
xbox live or psn: No gamertag set
Contact:

Re: Editing the debugger exe

Post by cbadal »

I did post more info on the game command line switches here:
https://github.com/Gametoast/Documentat ... ugger_exes
Post Reply