Code Monkey home page Code Monkey logo

thps2-cumulative-patch's People

Contributors

dcxdemo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

recore67

thps2-cumulative-patch's Issues

Convert binary gap arrays to source

Convert binary gap arrays to source. Currently these come as binary files loaded to memory by the launcher, meaning one can't have proper gaps without the launcher now.

Windowed Mode Not Working

I have ddraw.dll, wndmode.dll and wndmode.ini in my root folder, but it's not working. I also have UseWindowMode set to 1 in the ini.

Move all patching functionality to DLL

Move all patching functionality to DLL, this will ensure the game can be launched directly without the extra hassle with launching keys.

  • gap lists #39
  • sound fixes
  • level list patches (names, thumbs)

Add tricks from psx th3/th4

Animations are stored in SK2ANIM file in the anim extension chunk.
Later games changed animation indices, hence it is required to rebuild psx file with original anims + additional anims from th3/th4 as well as modify tricks.bin script file to include new tricks

in th1 they used slightly different scheme, there are 2 skater models, one for frontend with the smaller set of animations, another one for gameplay with the full set of animations. This meant that the full animation set was loaded twice in splitscreen modes, taking away whooping 200kb of valuable ram. hence they moved anim sets to separate file in th2.

it is possible to load th1 anims for th1 models, but im not sure you can mix them up.

Add "new gap found" message

THUG2 introduced "new gap found" notifications. With the recent Career namespace updates its possible to hook the update gap list func and notify user if it was hit for the first time.

Make the code less sensitive to DDRAW errors

Game is really sensitive to any ddraw errors, terminating the process if any ddraw object is lost.
This particularly causes the game to crash on Alt-Tab, any focus changes, missing audio devices, etc.

Natively port to a modern backend

A native backend port would allow for advanced rendering techniques, higher resolutions support, etc. Also would be much more stable.
Existing wrappers do not handle THPS2 very well.

Dreamcast content

It would be cool to have the content from the Dreamcast version, such as the higher quality textures and Trixie as an added skater.

Find a way to reimplement psx color blending

Find a way to reimplement psx color blending, psx is known to use (color_front + color_back) / 128 rather than 256, which is the equivalent of specular material color set to 2.0. This makes everything darker in the port.

Add option to preload entire PKR file to RAM

Original design polls hdd every time game needs new data. By design, there is a queue of only 10 ram file slots. Game works with the slot index under the hood.

  • load file, alloc mem, return slot index
  • get ptr to mem at slot index

These days it wouldnt hurt to just load entire pkr into ram and jump instantly jump to the required data.

Can try to hook file reading and just redirect to ram stream, or can entirely rewrite high level access. It should ensure loading from hdd as a fallback too.

Rewrite WndProc

Original port just ignores Alt to avoid alt-tabbing. There are more issues too like you can't close the window using the cross. Can be fixed by rewriting WndProc func entirely.

Add wallieplant

Should be rather easy, just copy boneless code with a wall state check

Gap checklist crash

Cannot access gap checklist menu. Figure out the requirements and reformat gap arrays to fix the issue.

  • thps1
  • thps3
  • thps4

3 and 4 basically inherit th2 checklist system, hence easy to fix.
th1 on the other hand was before that, its tags are not lined up in regions.
mhpb wont work at all due to different gaps format (names stored in trg)

Add proper career goals

Add proper career goals. Only th3 got th2 style 10 goals. for th1 must come up with additional custom goals, for th4 should select the most fitting ones, as there are more than 10 (most being score and combo goals though)

Seemingly random frame drops in windowed mode

I'm running the game in ddraw windowed mode per the instructions on the wiki, and I'm getting weird frame drops that come out of nowhere. They last half a second or maybe a full second, with the music unaffected but the gameplay seems to be frozen. I'm not adjusting the framerate from the default of 30 either. This messes up combos pretty badly. Does anyone else have this issue? Could it just be an effect of the windowed mode implementation?

I'm using an AMD Radeon RX 580 in case that makes a difference.

Add option to scale fonts

Add option to scale fonts, will facilitate the higher resolution fonts.

  • scale mess
  • scale fallingtexteffect
  • any other scales?

Restore manual kick option

Restore manual kick option, it is unavailable since psx input menu is replaced with pc controls editor.

Fix 1024x1024 limit for "Bits"

Bits are only rendered within the 1024x1024 window, should patch to use current screen dimensions, or power of 2 exceeding screen size, if that's an issue.
This includes stuff like grind sparks, bloodsplat, water ripple, grass particles, shattered glass pieces, etc.

Most likely to be hardcoded in Bit_Display.

Add ability to set exact resolution

I'm using windowed mode, and I prefer 1280x960 as it's a nice size for games on a 1920x1080 monitor. However, I'm not able to set this exact size in the video options of the Cumulative Patch launcher (1024x768 is close, but a bit small, while 1280x1024 is too big and isn't 4:3, so the HUD is stretched slightly, at least for now).

The resolution option allows you to type a custom value, but doing this has no effect.

Fix software render

Fix software render, it works in higher resolution, but only fills left side of the screen and colors are wrong.

Fix final competition video crash

For some reason final competition video is weirdly stretched, even though intro for instance is not. This causes the game to crash prior to credits loading. If no video file is present, it doesn't crash and normally proceeds to credits.

Implement a better game timer

Since the game is partially hardcoded to 30fps, simple sleep skip doesn't work too well with stuff like scripts and bouncy objects.

Patch on Wine

Hi!

I'm using Wine on linux to play THPS2.
I tried Windows XP in VirtualBox but as far as I understand it won't work since VB does not support DirectX 7 (dxdiag confirms that, only 8 and 9 are supported) - I get blank screen. Also tried vmware, but it was uplayable.
So, everything seems to work on wine at least widescreen and gameplay but, when I select ie. THPS1 levels I get THPS2 only.
I installed THPS2 from iso, th2patch_v4prev2.7z, th2_content_pack.7z, and crack.

I don't know where to look for anything more.

THPCERR.LOG
TH2_OPT.CFG.txt

Thanks in advance!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.