[THPS2][PC] Cumulative patch (Widescreen, FPS unlock, etc.)

General/other thps modding discussion
Demo
Posts: 494
Joined: Mon Aug 15, 2011 2:20 pm
Contact:

Re: [THPS2][PC] Patching stuff WIP

Postby Demo » Fri Jun 17, 2016 11:18 am

what is the message you get without admin rights?
can you launch thawk2.exe directly without admin rights?
basically your local user should have the rights to write/modify files in thps2 directory for it to work properly.
once given, you won't have to use admin shortcut.

as of HUD, i didn't check it, but since I found a few values for GUI on PS1 version, shouldn't be that hard.

MHPB files are not there yet.
Catar4x
Posts: 67
Joined: Sat Nov 24, 2012 4:39 pm
Contact:

Re: [THPS2][PC] Patching stuff WIP

Postby Catar4x » Fri Jun 17, 2016 2:08 pm

There is no particular message, yes i can play without admin rights but i get the normal game.
Just the hacks require an elevation to run and being considered.
It's a weird bug, when I disable Read-only from the THPS2 folder, it keeps checked when I come back, seems more a W10 problem i think.
Demo
Posts: 494
Joined: Mon Aug 15, 2011 2:20 pm
Contact:

Re: [THPS2][PC] Patching stuff WIP

Postby Demo » Sun Jun 19, 2016 9:51 am

i'm talking about this. Users category should have the rights to write/modify thps2 folder.
I created a non-admin user on win7, given him the rights needed for THPS2 folder and was able to launch patch without admin rights.
you must be admin to be able to change it.

Image
Demo
Posts: 494
Joined: Mon Aug 15, 2011 2:20 pm
Contact:

Re: [THPS2][PC] Patching stuff WIP

Postby Demo » Sun Jun 19, 2016 11:52 am

so mhpb files. let's hope i didn't forget any.
there are 3 levels that won't have proper rails - la habra, city park and construction yard.
it didn't launch at all with the original trg, so better this way.
please note that dirt on some levels slows you down significantly.
also, make sure you only test it in single session/free skate. crashes are likely to happen in career/multiplayer.

http://levelmod.webatu.com/misc/mhpb_files.7z

optional download: some higher res textures from thps2x for school, downtown and roswell.
also replaces lowres in-game board textures with the ones from selection menu.

http://levelmod.webatu.com/misc/textures2x.7z

unpack these 2 in your game folder.

==========================================

and the launcher a bit updated, not final v3 though

http://levelmod.webatu.com/misc/th2patch_v3prev2.7z

added userpatch.ini to make your own patches that will apply over. pretty much same as levelpatch.
you will see 1st level is called Userpatch Test with it enabled, just to give you the idea - you can remove that.

ini now has [GLOBAL] section that will always apply, no matter what game is selected.
added levelpatch/userpatch commenting support, everything after # will count as a comment.

also includes the updated icon, you can download it separately here or here

Image
Catar4x
Posts: 67
Joined: Sat Nov 24, 2012 4:39 pm
Contact:

Re: [THPS2][PC] Patching stuff WIP

Postby Catar4x » Sun Jun 19, 2016 7:01 pm

Thanks this is fixed! For mhpb, the only annoying issue i got is the skate sound playing in the background multiple times.
If I do a boneless at startup, there will be a boneless sound played often (especially in Bike Factory), some levels have the problem at the beginning and then it disappear while playing and the rest don't have this at all.
_ENunn_
Posts: 109
Joined: Fri Apr 04, 2014 12:21 am
Location: Henderson, KY, USA
Contact:

Re: [THPS2][PC] Patching stuff WIP

Postby _ENunn_ » Sun Jun 19, 2016 10:04 pm

Nice one Demo!
lol hi
Demo
Posts: 494
Joined: Mon Aug 15, 2011 2:20 pm
Contact:

Re: [THPS2][PC] Patching stuff WIP

Postby Demo » Mon Jun 20, 2016 10:39 pm

soundlists for the levels are hardcoded in thawk2.exe at the offset 0x00149730.

it works as follows:
on level load game reads the respective sound list at the offset.
let's say some sound in the game has the ID 123.
trg file calls function PlaySound(123)
game looks for 123 in the list, reads filename, looks for the file in audio folder.
if found it plays it.
if not it doesn't play it or it may crash, like in th3 levels (downhill palms)

so the thing you hear should be something like repeating ambient noise, but the ID mhpb uses for this sound is assigned to boneless sound in th2, hence the "sound bug". basically it's same as missing downtown rail sound.

in order to fix it we should have the correct files from each level AND respective IDs. then bake it into proper sound list and write it over. the problem is that most versions do not have filenames and it's not that easy to tell what sound should play when you only have a random number.
_ENunn_
Posts: 109
Joined: Fri Apr 04, 2014 12:21 am
Location: Henderson, KY, USA
Contact:

Re: [THPS2][PC] Patching stuff WIP

Postby _ENunn_ » Mon Jun 20, 2016 10:50 pm

That's probably why I'm getting a shit ton of crashes in the mhpb levels lol
lol hi
Demo
Posts: 494
Joined: Mon Aug 15, 2011 2:20 pm
Contact:

Re: [THPS2][PC] Patching stuff WIP

Postby Demo » Mon Jun 20, 2016 11:01 pm

nope, those are pretty stable with sounds. they do crash if you try wider FOV though.
taufan99
Posts: 13
Joined: Wed Aug 03, 2016 8:09 am
Contact:

Re: [THPS2][PC] Patching stuff WIP

Postby taufan99 » Sat Aug 06, 2016 1:27 am

I'm having a problem with the launcher right now (v3prev2).

I use the patch with the Korean version (which is already set to run as admin), but nothing still happens. I guess I haven't done something else important?
Demo
Posts: 494
Joined: Mon Aug 15, 2011 2:20 pm
Contact:

Re: [THPS2][PC] Patching stuff WIP

Postby Demo » Sat Aug 06, 2016 10:33 am

taufan99 wrote:I'm having a problem with the launcher right now (v3prev2).
I use the patch with the Korean version (which is already set to run as admin), but nothing still happens. I guess I haven't done something else important?

Demo wrote:*Original THPS2 english retail exe or smaller exe found here: https://www.thmods.com/mods/THPS2%20Mod ... _setup.zip

Pretty much this, it doesn't work with the korean exe.
You don't have to reinstall anything, just use the exe provided.
also rename korean exe to something diffrent than THawk2.exe, so you can keep both.

if you only downloaded v3prev2, it will be missing some files found in previous uploads.
Last edited by Demo on Sat Aug 06, 2016 2:46 pm, edited 1 time in total.
taufan99
Posts: 13
Joined: Wed Aug 03, 2016 8:09 am
Contact:

Re: [THPS2][PC] Patching stuff WIP

Postby taufan99 » Sat Aug 06, 2016 12:39 pm

Demo wrote:
Demo wrote:*Original THPS2 english retail exe or smaller exe found here: http://thmods.com/mods/THPS2%20Mods/thp ... _setup.zip

Pretty much this, it doesn't work with the korean exe.
You don't have to reinstall anything, just use the exe provided.
also rename korean exe to something diffrent than THawk2.exe, so you can keep both.

if you only downloaded v3prev2, it will be missing some files found in previous uploads.

Okay, thanks. And keep the good work up! :)
Demo
Posts: 494
Joined: Mon Aug 15, 2011 2:20 pm
Contact:

Re: [THPS2][PC] Patching stuff WIP

Postby Demo » Mon Aug 08, 2016 9:28 pm

I've changed various things again since the last update, the most major being the addition of proxy DLL which allows to extend the functionality even further.

Remember that you must use the exe found here:
http://thmods.com/mods/THPS2%20Mods/thp ... _setup.zip

changes in launcher:
- launcher will check for various THawk2.exe issues and will report if you are using wrong exe.
- launcher will check for existing ini files and disable corresponding options if missing (levelpatch, userpatch, skaters).
- extended ini functionality, you can use (int32), (int16), (byte) and (float) now.
- options are now grouped in tabs
- you can turn proxy dll on/off (why would you though)
- added soundtrack options (only available if proxy dll is enabled)
- some settings are now stored in game's native TH2_OPT.CFG.
- ability to skip intro movies
- heavily optimized the icon, so now launcher is way smaller.
- crashing due to polygon limit overflow should be fixed now.
- incorrect resolution detection on multi-monitor systems should be fixed now.

changes in patch files:
- added park editor themes
- changed volume of glasspane shatter and gap sounds. those were way too loud.

proxy DLL functionality:
- extended sountrack options (random order, remove fade, remove ambience, show title)
- you can now add your own songs to the list with no limit.
- teleports in thps4 levels will now work, except you won't be able to keep your combo going.
- removed 1 second delay at the exit("shutting down thps2" message)

Download: http://levelmod.webatu.com/misc/th2patch_v3prev3rc.7z
Park editor themes: http://levelmod.webatu.com/misc/parked.7z
Last edited by Demo on Tue Aug 09, 2016 12:06 am, edited 3 times in total.
Catar4x
Posts: 67
Joined: Sat Nov 24, 2012 4:39 pm
Contact:

Re: [THPS2][PC] Patching stuff WIP

Postby Catar4x » Mon Aug 08, 2016 11:32 pm

With the new launcher, i have this error when I want to use the proxy DLL:
Missing MSVCR100D.dll (windows message)

Is there a recommended runtime library? Thanks!
Demo
Posts: 494
Joined: Mon Aug 15, 2011 2:20 pm
Contact:

Re: [THPS2][PC] Patching stuff WIP

Postby Demo » Mon Aug 08, 2016 11:40 pm

oh that's the debug build, will upload release now

---
here it is, updated the archive as well:
http://levelmod.webatu.com/misc/patch_dll.7z

Return to “Other THPS games modding”

Who is online

Users browsing this forum: No registered users and 29 guests