touchHLE icon indicating copy to clipboard operation
touchHLE copied to clipboard

Girls of DOA BlackJack ~ The Kasumi Version ~

Open apexad opened this issue 1 year ago • 6 comments

Add Support for Girls of DOA BlackJack ~ The Kasumi Version ~

Requires all changes here aand the following, which are already on GerritHub: https://review.gerrithub.io/c/touchHLE/touchHLE/+/1178098 https://review.gerrithub.io/c/touchHLE/touchHLE/+/1202226 (For completeness, I've cherry-picked these commits into this PR)

App compatibility with my changes and those above put this game at a solid 4/5 stars. The game is playable with everything working: music, sound/voice effects, and it saves data (so you keep your money, album photos, and new costumes).

This was my first time writing code in rust and using GerritHub, so I hope I did everything right. Looking forward to your review of the code changes.

UPDATE: The black bar mentioned below is fixed (and touch points are right now). See the comment below for the remaining issues.

  • The game has a black bar at the top that pushes the game screen down. This also seems to result in touch points being slightly higher than you would expect.

Screenshot 2025-03-05 at 9 23 02 PM

apexad avatar Mar 06 '25 04:03 apexad

There is 1 issue that affects gameplay

  1. Split Action: The only one that slightly impacts gameplay. The split action is not possible on a non-touch screen since it requires moving 2 fingers/pointers in 2 different directions. I have attempted to use mouse and controller but it does not work (or it is extremely difficult). I am not able to test if this works in touchHLE on an Android device with a touch screen. Screenshot 2025-03-12 at 4 34 37 PM

There is 2 known issues that do not affect gameplay

  1. Game Messages: Dialogs asking to confirm the purchase of a photo in the Album and the message indicating you unlocked a new costume do not show the text fully (it is cut off). Yes/Confirm/No buttons work fine.

  2. In Album you can buy all the items and use 'return' to go back to the Album after each purchase, but hitting 'save' then 'Yes' does not save the image. The UIImageWriteToSavedPhotosAlbum function is just stubbed to mock success. There is no real incentive to impliment this function at this time since you can just screenshot the photos or get them from the IPA file itself.

apexad avatar Mar 12 '25 21:03 apexad

It may be an offtopic, but Galaxy on fire requires stringByExpandingTildeInPath too. But with this PR now its crashes with Panic at src/frameworks/foundation/ns_string.rs:960:5: assertion failed: !path.contains('~')

klaxons1 avatar Mar 14 '25 22:03 klaxons1

Thankyou! Please look into Spy Mouse!

27hectormanuel avatar Mar 15 '25 06:03 27hectormanuel

It may be an offtopic, but Galaxy on fire requires stringByExpandingTildeInPath too. But with this PR now its crashes with Panic at src/frameworks/foundation/ns_string.rs:960:5: assertion failed: !path.contains('~')

I'm not implementing this function correctly yet, just well enough for this particular game to be ok with it. Will work on correcting it soon.

@klaxons1 Updated this function to a suggestion by @ciciplusplus, and it no longer has an assert in it. You may want to try again.

apexad avatar Mar 15 '25 13:03 apexad

It may be an offtopic, but Galaxy on fire requires stringByExpandingTildeInPath too. But with this PR now its crashes with Panic at src/frameworks/foundation/ns_string.rs:960:5: assertion failed: !path.contains('~')

I'm not implementing this function correctly yet, just well enough for this particular game to be ok with it. Will work on correcting it soon.

@klaxons1 Updated this function to a suggestion by @ciciplusplus, and it no longer has an assert in it. You may want to try again.

I think it was implemented correctly, now I get thus: Panic at src/frameworks/foundation/ns_array.rs:327:51: index out of bounds: the len is 0 but the index is 0

klaxons1 avatar Mar 16 '25 22:03 klaxons1

It may be an offtopic, but Galaxy on fire requires stringByExpandingTildeInPath too. But with this PR now its crashes with Panic at src/frameworks/foundation/ns_string.rs:960:5: assertion failed: !path.contains('~')

I'm not implementing this function correctly yet, just well enough for this particular game to be ok with it. Will work on correcting it soon. @klaxons1 Updated this function to a suggestion by @ciciplusplus, and it no longer has an assert in it. You may want to try again.

I think it was implemented correctly, now I get thus: Panic at src/frameworks/foundation/ns_array.rs:327:51: index out of bounds: the len is 0 but the index is 0

This is a different error in an entirely different class. Don’t think it is related.

apexad avatar Mar 17 '25 02:03 apexad

Rebased with current trunk

apexad avatar Jun 04 '25 01:06 apexad

Made a few changes so that UI Bar Button Stub shows the name of the button in logs. Corrected UIToolbar so that it is a UIView, not a UIControl.

apexad avatar Jul 08 '25 01:07 apexad

@klaxons1 I have correctly implimented the stringByExpandingTildeInPath function now and Galaxy Of Fire actually creates gof_highscores_13 gof_highscores_14 in www.fishlabs.net.GalaxyOnFire/Library/GOF (which is the folder it references as ~/Library/GOF that is now corrected by the the function) but sadly still fails in ns_array as before. This is as far as I am willing to go for this PR, but I may look further into that error in another branch.

apexad avatar Jul 09 '25 03:07 apexad

Big progress on UIToolbar & UIBarButtonItem. it atually renders on the screen, but ths game should have a 'return' and 'save' button. Only 'return' button shows. Clicking return button does nothing. Need to figure out how to make it work.

apexad avatar Jul 11 '25 06:07 apexad

Updated main comments.. return and save both show now and respond to clicks. However, that is about the extent of it as touchHLE now crashes when the buttons are clicked. Happening on this line: https://github.com/touchHLE/touchHLE/blob/trunk/src/frameworks/core_animation/ca_layer.rs#L476

apexad avatar Jul 12 '25 21:07 apexad

Again updated main comments. I got the Album return button working. So, now everything is good. I await feedback to get all of this Merged.

apexad avatar Jul 14 '25 06:07 apexad

UIImageWriteToSavedPhotosAlbum stub that fakes success is done. This game no longer crashes at any point as far as I can tell.

apexad avatar Jul 14 '25 18:07 apexad

No!! Closed again :'(

fikritz avatar Jul 29 '25 13:07 fikritz

No!! Closed again :'(

please stop spamming here or you will be banned from the repo

ciciplusplus avatar Jul 29 '25 13:07 ciciplusplus