Add support IIDX Resort Anthem CN (狂热节拍 IIDX) - [closed] #222

Closed
opened 2022-06-12 19:13:47 +03:00 by icex2 · 23 comments
icex2 commented 2022-06-12 19:13:47 +03:00 (Migrated from github.com)

In GitLab by @garbage on Jun 12, 2022, 18:13

Merges feature/iidx18-cn -> master

Summary

Support IIDX Resort Anthem CN (狂热节拍 IIDX)

image

Description

Add support IIDX Resort Anthem CN (狂热节拍 IIDX)

The ID is JDZ, but it is an exe format (not dll).

This game does not have network function

Also, the card reader is not checked, so it is not included in the hooks.

How Has This Been Tested?

By launching and playing the game.

Checklist

  • Implemented (unit) test(s) which prove that the introduced changes are working as expected.
  • Tested with the following games:
    • Resort Anthem CN
  • Followed the developer (style) guidelines.
  • Updated existing doc of or add new doc to README file(s).
  • Updated development documentation.
In GitLab by @garbage on Jun 12, 2022, 18:13 _Merges feature/iidx18-cn -> master_ ## Summary Support IIDX Resort Anthem CN (狂热节拍 IIDX) ![image](https://cdn.discordapp.com/attachments/663353427199262730/985574650383826994/unknown.png) ## Description Add support IIDX Resort Anthem CN (狂热节拍 IIDX) The ID is JDZ, but it is an exe format (not dll). This game does not have network function Also, the card reader is not checked, so it is not included in the hooks. ## How Has This Been Tested? By launching and playing the game. ## Checklist <!-- Make sure you covered all items, which apply, of the checklist below. --> <!-- Strikethrough items that do not apply and provide a brief description why. --> * [x] Implemented (unit) test(s) which prove that the introduced changes are working as expected. * Tested with the following games: * [x] Resort Anthem CN * [x] Followed the developer (style) guidelines. * [x] Updated existing doc of or add new doc to README file(s). * [x] Updated development documentation.
icex2 commented 2022-06-12 19:48:14 +03:00 (Migrated from github.com)

In GitLab by @garbage on Jun 12, 2022, 18:48

Commented on src/main/iidxhook4-cn/dllmain.c line 83

3DCG used in the background causes crashing problem with NVIDIA cards.

The same problem with normal IIDX18, but it does not appear to be enabled in iidxhook4.

https://dev.s-ul.net/djhackers/bemanitools/-/blob/master/src/main/iidxhook4/dllmain.c#L61-73

In GitLab by @garbage on Jun 12, 2022, 18:48 Commented on [src/main/iidxhook4-cn/dllmain.c line 83](https://github.com/djhackersdev/bemanitools/compare/ece48189ec3fc9a21a0be23cb512739d694e972d..297c178e7636988480caf3ccef58c87b00835284#diff-b93f02ab2d9cff0707891349c3798db4R83) 3DCG used in the background causes crashing problem with NVIDIA cards. The same problem with normal IIDX18, but it does not appear to be enabled in iidxhook4. https://dev.s-ul.net/djhackers/bemanitools/-/blob/master/src/main/iidxhook4/dllmain.c#L61-73
icex2 commented 2022-06-12 20:57:29 +03:00 (Migrated from github.com)

In GitLab by @garbage on Jun 12, 2022, 19:57

added 3 commits

  • a8c325a3...ece48189 - 2 commits from branch djhackers:master
  • d899afc6 - Merge remote-tracking branch 'upstream/master' into feature/iidx18-cn

Compare with previous version

In GitLab by @garbage on Jun 12, 2022, 19:57 added 3 commits <ul><li>a8c325a3...ece48189 - 2 commits from branch <code>djhackers:master</code></li><li>d899afc6 - Merge remote-tracking branch &#39;upstream/master&#39; into feature/iidx18-cn</li></ul> [Compare with previous version](/djhackers/bemanitools/-/merge_requests/121/diffs?diff_id=2625&start_sha=a8c325a3bef7dcff3bfd63264feecd0b13a97bd1)
icex2 commented 2022-06-12 21:01:17 +03:00 (Migrated from github.com)

In GitLab by @garbage on Jun 12, 2022, 20:01

added 1 commit

  • d6bc7156 - iidxhook4-cn: add document

Compare with previous version

In GitLab by @garbage on Jun 12, 2022, 20:01 added 1 commit <ul><li>d6bc7156 - iidxhook4-cn: add document</li></ul> [Compare with previous version](/djhackers/bemanitools/-/merge_requests/121/diffs?diff_id=2627&start_sha=d899afc6dba92b1b18f2a8b3139a70a248e4a3ba)
icex2 commented 2022-06-13 23:55:55 +03:00 (Migrated from github.com)

strstr(lpFileName, PATH_A) == lpFileName) I guess that works also for catching that path equals. Something I haven't seen done that way, yet. Nice learning.

`strstr(lpFileName, PATH_A) == lpFileName)` I guess that works also for catching that path equals. Something I haven't seen done that way, yet. Nice learning.
icex2 commented 2022-06-13 23:58:16 +03:00 (Migrated from github.com)

To my knowledge, that doesn't work as "." should be of type const char*. You need to use memcpy, strcpy or initilize the fixed size buffer manually, e.g. relative_path[0] = '.'; relative_path[1] = '\0'.

To my knowledge, that doesn't work as "." should be of type `const char*`. You need to use `memcpy`, `strcpy` or initilize the fixed size buffer manually, e.g. `relative_path[0] = '.'; relative_path[1] = '\0'`.
icex2 commented 2022-06-13 23:59:25 +03:00 (Migrated from github.com)

Same as above, but needs to be considered for wide string type.

Same as above, but needs to be considered for wide string type.
icex2 commented 2022-06-13 23:59:51 +03:00 (Migrated from github.com)

Leaving another marker here.

Leaving another marker here.
icex2 commented 2022-06-14 00:07:23 +03:00 (Migrated from github.com)

Oh, you are probably right. I apparently missed it there D:

I would say this needs to be added to iidxhook4 and iidxhook5 as it should also affect those games. Would you mind pushing another MR with just these two fixes? Do you happen to have an NVIDIA card where the game is currently crashing and you can test the potential fix?

Oh, you are probably right. I apparently missed it there D: I would say this needs to be added to iidxhook4 and iidxhook5 as it should also affect those games. Would you mind pushing another MR with just these two fixes? Do you happen to have an NVIDIA card where the game is currently crashing and you can test the potential fix?
icex2 commented 2022-06-14 00:10:42 +03:00 (Migrated from github.com)

Since you don't need card readers here, we don't need this linked.

```suggestion:-0+0 ``` Since you don't need card readers here, we don't need this linked.
icex2 commented 2022-06-14 00:11:17 +03:00 (Migrated from github.com)

👍

:thumbsup:
icex2 commented 2022-06-14 00:12:38 +03:00 (Migrated from github.com)

As I honstly don't know anything about setting this up, I tossed the iidxhook5-cn.md in there just to have it more like a place holder.

As you have the knowledge on how to set it up and what to consider, do you mind filling in this information here and on iidxhook5-cn.md?

Feel free to copy-paste from the other iidxhook readme files whatever is identical.

As I honstly don't know anything about setting this up, I tossed the iidxhook5-cn.md in there just to have it more like a place holder. As you have the knowledge on how to set it up and what to consider, do you mind filling in this information here and on iidxhook5-cn.md? Feel free to copy-paste from the other iidxhook readme files whatever is identical.
icex2 commented 2022-06-14 00:13:53 +03:00 (Migrated from github.com)

Big thanks for looking into this. Probably even more niche than the older games already, but happy someone else is also making an effort to support these older titles.

Big thanks for looking into this. Probably even more niche than the older games already, but happy someone else is also making an effort to support these older titles.
icex2 commented 2022-06-14 03:44:10 +03:00 (Migrated from github.com)

In GitLab by @xyen on Jun 14, 2022, 02:44

Commented on src/main/iidxhook4-cn/path.c line 112

see above comment, this is fine.

In GitLab by @xyen on Jun 14, 2022, 02:44 Commented on [src/main/iidxhook4-cn/path.c line 112](https://github.com/djhackersdev/bemanitools/compare/ece48189ec3fc9a21a0be23cb512739d694e972d..297c178e7636988480caf3ccef58c87b00835284#diff-16195adfcd1566635c216bcfe1124b50R112) see above comment, this is fine.
icex2 commented 2022-06-14 03:44:10 +03:00 (Migrated from github.com)

In GitLab by @xyen on Jun 14, 2022, 02:44

Commented on src/main/iidxhook4-cn/path.c line 139

ditto

In GitLab by @xyen on Jun 14, 2022, 02:44 Commented on [src/main/iidxhook4-cn/path.c line 139](https://github.com/djhackersdev/bemanitools/compare/ece48189ec3fc9a21a0be23cb512739d694e972d..297c178e7636988480caf3ccef58c87b00835284#diff-16195adfcd1566635c216bcfe1124b50R139) ditto
icex2 commented 2022-06-14 03:44:10 +03:00 (Migrated from github.com)
In GitLab by @xyen on Jun 14, 2022, 02:44 Commented on [src/main/iidxhook4-cn/path.c line 80](https://github.com/djhackersdev/bemanitools/compare/ece48189ec3fc9a21a0be23cb512739d694e972d..297c178e7636988480caf3ccef58c87b00835284#diff-16195adfcd1566635c216bcfe1124b50R80) https://stackoverflow.com/questions/8244453/initializing-char-array-with-smaller-string-literal ie. it's fine.
icex2 commented 2022-06-14 03:55:48 +03:00 (Migrated from github.com)

Another learning. thanks.

Another learning. thanks.
icex2 commented 2022-06-14 09:15:53 +03:00 (Migrated from github.com)

In GitLab by @garbage on Jun 14, 2022, 08:15

Commented on src/main/iidxhook4-cn/Module.mk line 16

changed this line in version 4 of the diff

In GitLab by @garbage on Jun 14, 2022, 08:15 Commented on [src/main/iidxhook4-cn/Module.mk line 16](https://github.com/djhackersdev/bemanitools/compare/ece48189ec3fc9a21a0be23cb512739d694e972d..d6bc71562d1f3a76a16347339debdea82f0fcf05#diff-ec06763730e06b38850db9f67b39f80bR16) changed this line in [version 4 of the diff](/djhackers/bemanitools/-/merge_requests/121/diffs?diff_id=2640&start_sha=d6bc71562d1f3a76a16347339debdea82f0fcf05#0fa7c324b37e389ea57f377abbf69d0fb501d799_16_16)
icex2 commented 2022-06-14 09:15:53 +03:00 (Migrated from github.com)

In GitLab by @garbage on Jun 14, 2022, 08:15

added 1 commit

  • 297c178e - iidxhook4-cn: delete unused libs in Module.mk

Compare with previous version

In GitLab by @garbage on Jun 14, 2022, 08:15 added 1 commit <ul><li>297c178e - iidxhook4-cn: delete unused libs in Module.mk</li></ul> [Compare with previous version](/djhackers/bemanitools/-/merge_requests/121/diffs?diff_id=2640&start_sha=d6bc71562d1f3a76a16347339debdea82f0fcf05)
icex2 commented 2022-06-14 09:48:47 +03:00 (Migrated from github.com)

In GitLab by @garbage on Jun 14, 2022, 08:48

Commented on src/main/iidxhook4-cn/dllmain.c line 83

I pushed MR.

Tested using NVIDIA card with IIDX18.

https://dev.s-ul.net/djhackers/bemanitools/-/merge_requests/125

In GitLab by @garbage on Jun 14, 2022, 08:48 Commented on [src/main/iidxhook4-cn/dllmain.c line 83](https://github.com/djhackersdev/bemanitools/compare/ece48189ec3fc9a21a0be23cb512739d694e972d..297c178e7636988480caf3ccef58c87b00835284#diff-b93f02ab2d9cff0707891349c3798db4R83) I pushed MR. Tested using NVIDIA card with IIDX18. https://dev.s-ul.net/djhackers/bemanitools/-/merge_requests/125
icex2 commented 2022-06-16 00:31:42 +03:00 (Migrated from github.com)

Appreciated for the direct follow-up.

Appreciated for the direct follow-up.
icex2 commented 2022-06-16 00:33:18 +03:00 (Migrated from github.com)

resolved all threads

resolved all threads
icex2 commented 2022-06-16 00:33:24 +03:00 (Migrated from github.com)

approved this merge request

approved this merge request
icex2 commented 2022-06-16 00:40:31 +03:00 (Migrated from github.com)

Merged in the wrong order, so the current state is conflicting. I pulled the changes and rebased locally to fix the merge conflict. Pushed it to master already, so this is considered merged.

Thanks again.

Merged in the wrong order, so the current state is conflicting. I pulled the changes and rebased locally to fix the merge conflict. Pushed it to master already, so this is considered merged. Thanks again.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Max/djhackersdev_bemanitools#222