Page 3 of 13

Re: [THPS2][PC] Patching stuff WIP

Posted: Fri Jun 17, 2016 11:18 am
by Demo
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.

Re: [THPS2][PC] Patching stuff WIP

Posted: Fri Jun 17, 2016 2:08 pm
by Catar4x
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.

Re: [THPS2][PC] Patching stuff WIP

Posted: Sun Jun 19, 2016 9:51 am
by Demo
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

Re: [THPS2][PC] Patching stuff WIP

Posted: Sun Jun 19, 2016 11:52 am
by Demo
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

Re: [THPS2][PC] Patching stuff WIP

Posted: Sun Jun 19, 2016 7:01 pm
by Catar4x
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.

Re: [THPS2][PC] Patching stuff WIP

Posted: Sun Jun 19, 2016 10:04 pm
by _ENunn_
Nice one Demo!

Re: [THPS2][PC] Patching stuff WIP

Posted: Mon Jun 20, 2016 10:39 pm
by Demo
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.

Re: [THPS2][PC] Patching stuff WIP

Posted: Mon Jun 20, 2016 10:50 pm
by _ENunn_
That's probably why I'm getting a shit ton of crashes in the mhpb levels lol

Re: [THPS2][PC] Patching stuff WIP

Posted: Mon Jun 20, 2016 11:01 pm
by Demo
nope, those are pretty stable with sounds. they do crash if you try wider FOV though.

Re: [THPS2][PC] Patching stuff WIP

Posted: Sat Aug 06, 2016 1:27 am
by taufan99
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?

Re: [THPS2][PC] Patching stuff WIP

Posted: Sat Aug 06, 2016 10:33 am
by Demo
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.

Re: [THPS2][PC] Patching stuff WIP

Posted: Sat Aug 06, 2016 12:39 pm
by taufan99
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! :)

Re: [THPS2][PC] Patching stuff WIP

Posted: Mon Aug 08, 2016 9:28 pm
by Demo
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

Re: [THPS2][PC] Patching stuff WIP

Posted: Mon Aug 08, 2016 11:32 pm
by Catar4x
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!

Re: [THPS2][PC] Patching stuff WIP

Posted: Mon Aug 08, 2016 11:40 pm
by Demo
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