Add support IIDX tricoro CN (狂热节拍 IIDX 2) - [merged] #218

Closed
opened 2022-05-24 22:10:03 +03:00 by icex2 · 21 comments
icex2 commented 2022-05-24 22:10:03 +03:00 (Migrated from github.com)

In GitLab by @garbage on May 24, 2022, 21:10

Merges feature/support-iidx20-cn -> master

Summary

Support IIDX tricoro CN (狂热节拍 IIDX 2)

image

Description

Add support IIDX tricoro CN (狂热节拍 IIDX 2)

This is a strange game.

The name is tricoro but on a Lincle system, the ID is JDZ, and it is an exe.

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:
    • ...
    • ...
  • 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 May 24, 2022, 21:10 _Merges feature/support-iidx20-cn -> master_ ## Summary Support IIDX tricoro CN (狂热节拍 IIDX 2) ![image](https://dev.s-ul.net/djhackers/bemanitools/uploads/883ec3da44fd513c95bf68abe656e9fb/image.png) ## Description Add support IIDX tricoro CN (狂热节拍 IIDX 2) This is a strange game. The name is tricoro but on a Lincle system, the ID is JDZ, and it is an exe. 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. --> * [ ] Implemented (unit) test(s) which prove that the introduced changes are working as expected. * Tested with the following games: * [ ] ... <!-- insert game name 1--> * [ ] ... <!-- insert game name 2---> * [ ] Followed the developer (style) guidelines. * [ ] Updated existing doc of or add new doc to README file(s). * [ ] Updated development documentation.
icex2 commented 2022-05-24 22:27:36 +03:00 (Migrated from github.com)

In GitLab by @garbage on May 24, 2022, 21:27

added 1 commit

  • 239fee87 - iidxhook5-cn: init

Compare with previous version

In GitLab by @garbage on May 24, 2022, 21:27 added 1 commit <ul><li>239fee87 - iidxhook5-cn: init</li></ul> [Compare with previous version](/djhackers/bemanitools/-/merge_requests/117/diffs?diff_id=2528&start_sha=fd81d0cf68951b6e73ba58875e6ec847afb96dc1)
icex2 commented 2022-05-26 02:22:40 +03:00 (Migrated from github.com)

Hey, thank you for your contribution to the project. That's definintely an odd one but I am happy you took the time to implement support for it in BT5.

I see that the title of the MR says "Draft". I just wanted to check with you regarding reviewing this: Do you want to get feedback already in the draft stage or do you want us to wait until you don't consider it a draft anymore?

Hey, thank you for your contribution to the project. That's definintely an odd one but I am happy you took the time to implement support for it in BT5. I see that the title of the MR says "Draft". I just wanted to check with you regarding reviewing this: Do you want to get feedback already in the draft stage or do you want us to wait until you don't consider it a draft anymore?
icex2 commented 2022-05-26 20:33:35 +03:00 (Migrated from github.com)

In GitLab by @garbage on May 26, 2022, 19:33

Commented on src/main/iidxhook5-cn/dllmain.c line 94

OpenProcess is basically used for hooks in exe games, but since it does not exist in this game, RegisterClassA is used instead.

In GitLab by @garbage on May 26, 2022, 19:33 Commented on [src/main/iidxhook5-cn/dllmain.c line 94](https://github.com/djhackersdev/bemanitools/compare/da34e089ebe8140522754a3c08b35f77cdd59503..0b99ef953e4569954cbca7ddae37e257e67c7d16#diff-371c6feffb067545c244bb409b56d8d5R94) OpenProcess is basically used for hooks in exe games, but since it does not exist in this game, RegisterClassA is used instead.
icex2 commented 2022-05-26 20:45:53 +03:00 (Migrated from github.com)

In GitLab by @garbage on May 26, 2022, 19:45

marked this merge request as ready

In GitLab by @garbage on May 26, 2022, 19:45 marked this merge request as **ready**
icex2 commented 2022-05-26 20:47:29 +03:00 (Migrated from github.com)

In GitLab by @garbage on May 26, 2022, 19:47

I had it set to Draft because I was checking the operation, but I have now removed Draft.
Please review.

In GitLab by @garbage on May 26, 2022, 19:47 I had it set to Draft because I was checking the operation, but I have now removed Draft. Please review.
icex2 commented 2022-05-28 02:07:20 +03:00 (Migrated from github.com)

Thanks for explaining. I think that's a very good to know detail that should be part of the code.

// OpenProcess is basically used for hooks in exe games, 
// but since it does not exist in this game, RegisterClassA is used instead.
static ATOM WINAPI my_RegisterClassA(const WNDCLASSA *lpWndClass)
Thanks for explaining. I think that's a very good to know detail that should be part of the code. ```suggestion:-0+0 // OpenProcess is basically used for hooks in exe games, // but since it does not exist in this game, RegisterClassA is used instead. static ATOM WINAPI my_RegisterClassA(const WNDCLASSA *lpWndClass) ```
icex2 commented 2022-05-28 02:10:46 +03:00 (Migrated from github.com)

I don't see this config parameter being used in dllmain.c of your hook. Did you forgot to use it or is this not relevant to the game? If the latter, I suggest to remove it from the reference config.

I don't see this config parameter being used in `dllmain.c` of your hook. Did you forgot to use it or is this not relevant to the game? If the latter, I suggest to remove it from the reference config.
icex2 commented 2022-05-28 02:13:39 +03:00 (Migrated from github.com)

This looks odd: So the game is using a black round plug for game license management instead of a black usb dongle? I suppose the white dongle hooks were left out because the game does not make use of them and doesn't have any eamuse functionality?
That might be worth pointing out in a comment here since this is a major difference from all the other games we are supporting so far (and consider the "defaults").

This looks odd: So the game is using a black round plug for game license management instead of a black usb dongle? I suppose the white dongle hooks were left out because the game does not make use of them and doesn't have any eamuse functionality? That might be worth pointing out in a comment here since this is a major difference from all the other games we are supporting so far (and consider the "defaults").
icex2 commented 2022-05-28 02:15:27 +03:00 (Migrated from github.com)
This game does not have NETWORK function
Also, the CARD READER is not checked, so it is not included in the hooks.

Just saw these in your MR description. I suggest adding something along the following lines. Feel free to re-phrase or add some more info that you consider relevant

+    ezusb_iidx_emu_node_security_plug_set_pcbid(&config_eamuse.pcbid);
+    // No white dongle hooks applies since the game does not have network functionality
+    // Also, card readers are not used/checked; no card reader hooks required
``` This game does not have NETWORK function Also, the CARD READER is not checked, so it is not included in the hooks. ``` Just saw these in your MR description. I suggest adding something along the following lines. Feel free to re-phrase or add some more info that you consider relevant ```suggestion:-0+0 + ezusb_iidx_emu_node_security_plug_set_pcbid(&config_eamuse.pcbid); + // No white dongle hooks applies since the game does not have network functionality + // Also, card readers are not used/checked; no card reader hooks required ```
icex2 commented 2022-05-28 17:45:41 +03:00 (Migrated from github.com)

In GitLab by @garbage on May 28, 2022, 16:45

Commented on dist/iidx/iidxhook-20-cn.conf line 5

I certainly didn't use it.

Just need to have a little discussion about this parameter.

I checked and it seems that iidxhook1 and iidxhook2 use this parameter, but iidxhook3 and later do not.

However, the conf files iidxhook-09.conf through iidxhook-26.conf all seem to have this value.

If this is correct, I will need to review the other files as well.

In GitLab by @garbage on May 28, 2022, 16:45 Commented on [dist/iidx/iidxhook-20-cn.conf line 5](https://github.com/djhackersdev/bemanitools/compare/da34e089ebe8140522754a3c08b35f77cdd59503..0b99ef953e4569954cbca7ddae37e257e67c7d16#diff-f0818c2e6dd67ed7a7969cd960b7b5aeR5) I certainly didn't use it. Just need to have a little discussion about this parameter. I checked and it seems that iidxhook1 and iidxhook2 use this parameter, but iidxhook3 and later do not. However, the conf files iidxhook-09.conf through iidxhook-26.conf all seem to have this value. If this is correct, I will need to review the other files as well.
icex2 commented 2022-05-28 17:47:53 +03:00 (Migrated from github.com)

In GitLab by @garbage on May 28, 2022, 16:47

added 1 commit

  • 1f27f027 - iidxhook5-cn: add comments

Compare with previous version

In GitLab by @garbage on May 28, 2022, 16:47 added 1 commit <ul><li>1f27f027 - iidxhook5-cn: add comments</li></ul> [Compare with previous version](/djhackers/bemanitools/-/merge_requests/117/diffs?diff_id=2544&start_sha=239fee87272b087a91bbd68b0e53c53fa099638a)
icex2 commented 2022-05-28 17:51:59 +03:00 (Migrated from github.com)

In GitLab by @garbage on May 28, 2022, 16:51

Commented on src/main/iidxhook5-cn/dllmain.c line 142

changed this line in version 4 of the diff

In GitLab by @garbage on May 28, 2022, 16:51 Commented on [src/main/iidxhook5-cn/dllmain.c line 142](https://github.com/djhackersdev/bemanitools/compare/188a14e4ea80d510062715a6cf2624471cd44986..1f27f027b354b3d95169c33d79c53403b5ff45d6#diff-371c6feffb067545c244bb409b56d8d5R142) changed this line in [version 4 of the diff](/djhackers/bemanitools/-/merge_requests/117/diffs?diff_id=2546&start_sha=1f27f027b354b3d95169c33d79c53403b5ff45d6#df615ff0f3c36cdc3c86f9c6643a6819e1141485_142_142)
icex2 commented 2022-05-28 17:51:59 +03:00 (Migrated from github.com)

In GitLab by @garbage on May 28, 2022, 16:51

added 1 commit

  • 1ec161f1 - iidxhook5-cn: add comments

Compare with previous version

In GitLab by @garbage on May 28, 2022, 16:51 added 1 commit <ul><li>1ec161f1 - iidxhook5-cn: add comments</li></ul> [Compare with previous version](/djhackers/bemanitools/-/merge_requests/117/diffs?diff_id=2546&start_sha=1f27f027b354b3d95169c33d79c53403b5ff45d6)
icex2 commented 2022-05-28 17:58:20 +03:00 (Migrated from github.com)

In GitLab by @garbage on May 28, 2022, 16:58

added 1 commit

  • 45df77ab - iidxhook5-cn: edit comments

Compare with previous version

In GitLab by @garbage on May 28, 2022, 16:58 added 1 commit <ul><li>45df77ab - iidxhook5-cn: edit comments</li></ul> [Compare with previous version](/djhackers/bemanitools/-/merge_requests/117/diffs?diff_id=2548&start_sha=1ec161f16de3a0b6fc1a0a04d7b15fdeaa3b393f)
icex2 commented 2022-05-28 18:01:36 +03:00 (Migrated from github.com)

In GitLab by @garbage on May 28, 2022, 17:01

Commented on src/main/iidxhook5-cn/dllmain.c line 149

Please excuse my lack of explanation.

I have added some comments.

In GitLab by @garbage on May 28, 2022, 17:01 Commented on [src/main/iidxhook5-cn/dllmain.c line 149](https://github.com/djhackersdev/bemanitools/compare/188a14e4ea80d510062715a6cf2624471cd44986..45df77abca85a2afd9009d134e4d8f55f63c7394#diff-371c6feffb067545c244bb409b56d8d5R149) Please excuse my lack of explanation. I have added some comments.
icex2 commented 2022-05-29 01:52:36 +03:00 (Migrated from github.com)

You are right about that. As it doesn't have any negative impact other than it might not work/be a useful feature, I suggest we keep it aligned to avoid inconsistencies that might raise the question "Why are we missing it here" later on. This can be cleaned up later as well. Let's consider it out of scope for this contribution.

You are right about that. As it doesn't have any negative impact other than it might not work/be a useful feature, I suggest we keep it aligned to avoid inconsistencies that might raise the question "Why are we missing it here" later on. This can be cleaned up later as well. Let's consider it out of scope for this contribution.
icex2 commented 2022-05-29 01:53:05 +03:00 (Migrated from github.com)

resolved all threads

resolved all threads
icex2 commented 2022-05-29 01:55:32 +03:00 (Migrated from github.com)

lgtm. As this is a slightly greater change and to be more certain I didn't miss anything major, I am awaiting another review by @xyen before merging this. Just FYI that it might take a few more days for him to take a look at this.

lgtm. As this is a slightly greater change and to be more certain I didn't miss anything major, I am awaiting another review by @xyen before merging this. Just FYI that it might take a few more days for him to take a look at this.
icex2 commented 2022-06-11 01:51:50 +03:00 (Migrated from github.com)

added 45 commits

  • 45df77ab...da34e089 - 41 commits from branch djhackers:master
  • 4064fcaf - iidxhook5-cn: init
  • 276e107f - iidxhook5-cn: add comments
  • fa51f700 - iidxhook5-cn: add comments
  • 0b99ef95 - iidxhook5-cn: edit comments

Compare with previous version

added 45 commits <ul><li>45df77ab...da34e089 - 41 commits from branch <code>djhackers:master</code></li><li>4064fcaf - iidxhook5-cn: init</li><li>276e107f - iidxhook5-cn: add comments</li><li>fa51f700 - iidxhook5-cn: add comments</li><li>0b99ef95 - iidxhook5-cn: edit comments</li></ul> [Compare with previous version](/djhackers/bemanitools/-/merge_requests/117/diffs?diff_id=2615&start_sha=45df77abca85a2afd9009d134e4d8f55f63c7394)
icex2 commented 2022-06-11 01:52:04 +03:00 (Migrated from github.com)

approved this merge request

approved this merge request
icex2 commented 2022-06-11 01:53:25 +03:00 (Migrated from github.com)

Sorry for the late action. Forgot about this due to the other contributions and thought i was still awaiting further feedback on this one. Merging now. Thanks again for your effort.

Sorry for the late action. Forgot about this due to the other contributions and thought i was still awaiting further feedback on this one. Merging now. Thanks again for your effort.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Max/djhackersdev_bemanitools#218