16:9 Patches for every THPS PC Game

General discussion about modding in all thps games.
th0masTHPS
Posts: 35
Joined: Fri Jul 23, 2010 8:22 pm
Contact:

Re: 16:9 Patches for every THPS PC Game

Postby th0masTHPS » Sun Aug 15, 2010 7:21 pm

WhoElseButMe wrote:it means is find "isPS2" and instead of changing it to a key that will work with the PC version, change it to something that means nothing 0x00000000

Ah.. that's the problem though can't find it... always says invalid hex shit. I tried multiple times with replace and search and other things...
WhoElseButMe
Posts: 1000
Joined: Tue Aug 04, 2009 12:50 am
Location: FL - USA
Contact:

Re: 16:9 Patches for every THPS PC Game

Postby WhoElseButMe » Sun Aug 15, 2010 9:19 pm

My fault its isXBOX (I also made a typo the correct qbkey = 8A83D786)that you're looking for like quazz said already

Code: Select all

decompiled THUG2 code
:i if $IsXbox$
   :i call $add_roundbar_menu_item$ arguments
      $text$ = %s(12,"ADJUST GAMMA")$id$ = $menu_gamma$$pad_choose_script$ = $create_gamma_menu$
:i else
   :i call $add_roundbar_menu_item$ arguments
      $text$ = %s(11,"SCREEN MODE")$id$ = $menu_screen$$pad_choose_script$ = $generic_menu_pad_choose$$pad_choose_params$ = :s{$callback$ = $create_screen_menu$:s}
:i endif

Now what you could also do to have both "Adjust Gamma" and "Screen Mode" would be to...
Open gamemenu_options.qb in a hex editor
and find the adjust gamma section, the entire decompiled code above in HEX code is below
(16 bytes per row to make it easier to read)

Code: Select all

01473F00168A83D786011621BD4FEB16
385874C4071B0D00000041444A555354
2047414D4D410016AF98C6400716E90C
10AA16A1FC0C2B0716A6563EF301484A
00011621BD4FEB16385874C4071B0C00
000053435245454E204D4F44450016AF
98C640071617C6F4F316A1FC0C2B0716
BDED382316687543B8070316D98B0686
0716305B3025040128

Code: Select all

Remove from row 1 these bytes
01473F00168A83D786

this says ":i if $isXBOX$"

Code: Select all

Remove from row 4 these bytes
01484A
and the first byte from row 5
00

this says ":i else"

Code: Select all

Remove from row 9 these bytes
0128

this says ":i endif"

The 2 bytes after the "if" and "else" statements are offsets so they wont be the same in each game (THUG, THUG2, THAW) and wont be the same if you've edited the script before this if statement.
Image
WhoElseButMe on Nov 26, 2009 wrote:It's that lack of respect amongst their peers and ignorance towards modding etiquette that keeps us who know this stuff well from spreading it like wild fire. We do still enjoy playing the game and if you need to cheat to play a game PLAY SOMETHING ELSE YOU DON'T SUCK AT.
th0masTHPS
Posts: 35
Joined: Fri Jul 23, 2010 8:22 pm
Contact:

Re: 16:9 Patches for every THPS PC Game

Postby th0masTHPS » Sun Aug 15, 2010 10:32 pm

WhoElseButMe wrote:My fault its isXBOX (I also made a typo the correct qbkey = 8A83D786)that you're looking for like quazz said already

Code: Select all

decompiled THUG2 code
:i if $IsXbox$
   :i call $add_roundbar_menu_item$ arguments
      $text$ = %s(12,"ADJUST GAMMA")$id$ = $menu_gamma$$pad_choose_script$ = $create_gamma_menu$
:i else
   :i call $add_roundbar_menu_item$ arguments
      $text$ = %s(11,"SCREEN MODE")$id$ = $menu_screen$$pad_choose_script$ = $generic_menu_pad_choose$$pad_choose_params$ = :s{$callback$ = $create_screen_menu$:s}
:i endif

Now what you could also do to have both "Adjust Gamma" and "Screen Mode" would be to...
Open gamemenu_options.qb in a hex editor
and find the adjust gamma section, the entire decompiled code above in HEX code is below
(16 bytes per row to make it easier to read)

Code: Select all

01473F00168A83D786011621BD4FEB16
385874C4071B0D00000041444A555354
2047414D4D410016AF98C6400716E90C
10AA16A1FC0C2B0716A6563EF301484A
00011621BD4FEB16385874C4071B0C00
000053435245454E204D4F44450016AF
98C640071617C6F4F316A1FC0C2B0716
BDED382316687543B8070316D98B0686
0716305B3025040128

Code: Select all

Remove from row 1 these bytes
01473F00168A83D786

this says ":i if $isXBOX$"

Code: Select all

Remove from row 4 these bytes
01484A
and the first byte from row 5
00

this says ":i else"

Code: Select all

Remove from row 9 these bytes
0128

this says ":i endif"

The 2 bytes after the "if" and "else" statements are offsets so they wont be the same in each game (THUG, THUG2, THAW) and wont be the same if you've edited the script before this if statement.

YEAH K I CAN'T MOD. Lol my eyes went crazy doing this but I pulled it off. Went online with t2 and nothin' changed. It'd be cool if someone just uploads the modded script so people can dl it and replace it with the original *hinttoanyonewhohasdonethisforthug2andisworking*

In other news I have a shitty gp and kb problem in the THPS4 section if you want more phun.
kõvanikumees
Posts: 25
Joined: Fri Apr 02, 2010 9:52 pm
Contact:

Re: 16:9 Patches for every THPS PC Game

Postby kõvanikumees » Fri Nov 12, 2010 3:48 pm

i change IsXbox = 8A82D786 to IsPS2 = 4901414C and i see in menu screen menu link, but screen menu is empty :/
Cla
Posts: 21
Joined: Fri Sep 30, 2011 4:30 am
Contact:

Re: 16:9 Patches for every THPS PC Game

Postby Cla » Fri Sep 30, 2011 6:44 pm

kõvanikumees wrote:easy'st way is create new menulink and add qb key screen_setup_widescreen (724B374D) or ex. go queen bee -> gamemenu_options and change create_gamma_menu to create_gamma_menu2 etc, then go camera.qb and change screen_setup_widescreen to create_gamma_menu, then go game and open gamma menu and you see display going to widescreen and save game and go change in queen bee all back old.
Can you please upload the files with these changes already done?

I keep trying to do this, but everytime I try to save the file, I keep getting told that "access is denied" even though I'm running the program as Admin.

(EDIT: yes I just noticed the fix. I'll update later if it actually works)

EDIT 2: Alright it worked. Thanks a bunch, kõvanikumees. :D
ImageImage
Cla
Posts: 21
Joined: Fri Sep 30, 2011 4:30 am
Contact:

Re: 16:9 Patches for every THPS PC Game

Postby Cla » Sat Oct 08, 2011 1:39 am

quazz wrote:For THPS4/THUG1/THUG2:

Open Gamemenu.qb (THPS4/THUG1) or gamemenu_pause.qb (THUG2) in a hex editor

Replace IsXbox with IsPs2 in the space above adjust gamma.

Done!
I've been trying to do this for THUG2. (well, using QBLauncher rather than HEX editor) But the game remains unchanged. I even completely removed the line for the "Adjust Gamma" option and IT'S STILL THERE IN GAME. I even put the line for the Widescreen Option in it's own line, (ie. not an IF statement so it should show up no matter what) and it's still no where to be found in the game.

What am I doing wrong? I've uploaded my edited gamemenu_options.qb. Please look at it and/or test and tell me what I've done wrong.

Thanks.

EDIT: Oh yeah that reminds that I'm confused about these instructions because the IsXbox thing is actually in gamemenu_options, not gamemenu_pause. Did I miss something here or was it just a typo on quazz's part?
Attachments
gamemenu_options qb.zip
Attempt at making THUG2 widescreen.
(10.32 KiB) Downloaded 240 times
ImageImage
Anteara
Posts: 271
Joined: Thu Oct 14, 2010 2:55 am
Contact:

Re: 16:9 Patches for every THPS PC Game

Postby Anteara » Sat Oct 08, 2011 2:28 am

I haven't checked your script but if it's correct and it still doesn't work , it means you haven't dummied the pre.
Cla
Posts: 21
Joined: Fri Sep 30, 2011 4:30 am
Contact:

Re: 16:9 Patches for every THPS PC Game

Postby Cla » Sat Oct 08, 2011 3:21 am

I figured it was something stupid going on, but I'm afraid I don't understand what it means to "dummy the pre". And Google doesn't get it either...

http://www.google.com/search?q=dummy+the+pre
http://www.google.com/search?q="dummy+the+pre"
ImageImage
Anteara
Posts: 271
Joined: Thu Oct 14, 2010 2:55 am
Contact:

Re: 16:9 Patches for every THPS PC Game

Postby Anteara » Sat Oct 08, 2011 11:41 am

http://thps-mods.com/forum/viewtopic.php?f=22&t=655

My tutorial here shows you how to dummy the pre. just disregard the bits about the blur and just do the dummy part.

just look under "How to dummy Qb_scripts.prx"
WhoElseButMe
Posts: 1000
Joined: Tue Aug 04, 2009 12:50 am
Location: FL - USA
Contact:

Re: 16:9 Patches for every THPS PC Game

Postby WhoElseButMe » Sat Oct 08, 2011 5:29 pm

TO DUMMY A FILE
Simply create a new text document then rename it from new.txt to blah.pre
Then replace the existing one with the dummy.
DONE
Image
WhoElseButMe on Nov 26, 2009 wrote:It's that lack of respect amongst their peers and ignorance towards modding etiquette that keeps us who know this stuff well from spreading it like wild fire. We do still enjoy playing the game and if you need to cheat to play a game PLAY SOMETHING ELSE YOU DON'T SUCK AT.
Cla
Posts: 21
Joined: Fri Sep 30, 2011 4:30 am
Contact:

Re: 16:9 Patches for every THPS PC Game

Postby Cla » Sat Oct 08, 2011 7:48 pm

Thank you very much Anteara and WEBM. Now the problem I have is that in-game the Screen Mode menu is blank. (I click it, but only thing in this submenu is "Done") Is there any else I have edit besides gamemenu_options.qb?
ImageImage
Cla
Posts: 21
Joined: Fri Sep 30, 2011 4:30 am
Contact:

Re: 16:9 Patches for every THPS PC Game

Postby Cla » Sun Oct 09, 2011 5:30 pm

Ok. I figured it out. In gamemenu_options.qb, there's this part:

Code: Select all

   :i if $IsPS2$
      :i switch  ($ingame_screen_mode$)
         :i case $standard_screen_mode$
            :i $mode$ = %s(8,"Standard")
            :i endcase
         case $widescreen_screen_mode$
            :i $mode$ = %s(10,"Widescreen")
            :i endcase
         case $letterbox_screen_mode$
            :i $mode$ = %s(9,"Letterbox")
            :i end_switch
      
      :i call $theme_menu_add_item$ arguments
         $text$ = %s(16,"Display Setting:")$extra_text$ = %GLOBAL%$mode$$pad_choose_script$ = $create_display_menu$
   :i endif
You need to change $IsPS2$ to $IsXbox$ here.
ImageImage
buvk
Posts: 3
Joined: Tue Jan 10, 2012 4:19 am
Contact:

Re: 16:9 Patches for every THPS PC Game

Postby buvk » Wed Jan 11, 2012 4:10 am

i can't for the life of me figure out how to get thps4 running in 16:9.
would someone be able to send me a pre-modified gamemenu.qb with the necessary changes made, or maybe dumb down the instructions a little bit for a total thps modding newb?

i've already tried hex editing the file, and replaced 8A83D786 with 4901414C in the space above adjust gamma.
Stealer
Posts: 1
Joined: Sun Sep 23, 2012 2:06 am
Contact:

Re: 16:9 Patches for every THPS PC Game

Postby Stealer » Sun Sep 23, 2012 2:09 am

kõvanikumees wrote:= fat skaters,

easy'st way is create new menulink and add qb key screen_setup_widescreen (724B374D) or ex. go queen bee -> gamemenu_options and change create_gamma_menu to create_gamma_menu2 etc, then go camera.qb and change screen_setup_widescreen to create_gamma_menu, then go game and open gamma menu and you see display going to widescreen and save game and go change in queen bee all back old.

sorry my shitty english,,
Fat(standard):
http://www.upload.ee/image/621421/THAW_ ... -44-68.jpg
Widescreen:
http://www.upload.ee/image/621422/THAW_ ... -31-47.jpg

It took me whole hour to figure out with your, it seems, incorrect manual.

The all what I had to do is to decompile the following file using qb_old.exe:
Tony Hawk's Underground 2\Game\Data\scripts\game\menu\gamemenu_options.qb

Then find the following string:
$$pad_choose_script$ = $create_gamma_menu$

And replace it with:
$$pad_choose_script$ = $screen_setup_widescreen$

Finally, compiling it back and just clicking "ADJUST GAMMA" in options menu will result in changing your screen to wide.

Also you can replace the "ADJUST GAMMA" to "WIDESCREEN MODE" from the following string to make it look more perfectly:
$text$ = %s(12,"ADJUST GAMMA")$id$ = $menu_gamma
_ENunn_
Posts: 106
Joined: Fri Apr 04, 2014 12:21 am
Location: Providence, KY, USA
Contact:

Re: 16:9 Patches for every THPS PC Game

Postby _ENunn_ » Sat Jul 04, 2015 7:27 am

buvk wrote:i can't for the life of me figure out how to get thps4 running in 16:9.
would someone be able to send me a pre-modified gamemenu.qb with the necessary changes made, or maybe dumb down the instructions a little bit for a total thps modding newb?

i've already tried hex editing the file, and replaced 8A83D786 with 4901414C in the space above adjust gamma.


YES PLEASE UPLOAD THE FILES PRE-MODIFIED!! He needs it for THPS4, I need it for THUG. :/

C'MON UPLOAD THEM ALREADY!! :D

And yes, I do know this is a 3+ year old thread. :/
lol hi

Return to “Other THPS games modding”

Who is online

Users browsing this forum: No registered users and 2 guests