Support jubeat knit+copious with p3io - [merged] #156

Closed
opened 2020-10-04 19:07:21 +03:00 by icex2 · 104 comments
icex2 commented 2020-10-04 19:07:21 +03:00 (Migrated from github.com)

In GitLab by @mon on Oct 4, 2020, 18:07

Merges jb-p3io -> master

  • ICCB has been removed entirely. Only jubeat used it, and I have made only ~15 lines of changes to make ICCA v150 work in its place
  • The p3io specific functionality has been ripped out of jbhook1 and put into jbhook-util
  • Added some nice-to-haves like fixing mojibake when not using JP locale, and auto-rotating the window to suit vertical displays (jb1-3 run horizontally by default)
In GitLab by @mon on Oct 4, 2020, 18:07 _Merges jb-p3io -> master_ - ICCB has been removed entirely. Only jubeat used it, and I have made only ~15 lines of changes to make ICCA v150 work in its place - The p3io specific functionality has been ripped out of jbhook1 and put into jbhook-util - Added some nice-to-haves like fixing mojibake when not using JP locale, and auto-rotating the window to suit vertical displays (jb1-3 run horizontally by default)
icex2 commented 2020-10-04 19:27:31 +03:00 (Migrated from github.com)

Very good summary for the MR before getting started reviewing. Can you add the extended versions of each item to the commit message bodies? As they include reasoning for the change, the commit message and git history would be improved.

Very good summary for the MR before getting started reviewing. Can you add the extended versions of each item to the commit message bodies? As they include reasoning for the change, the commit message and git history would be improved.
icex2 commented 2020-10-04 19:28:13 +03:00 (Migrated from github.com)

Nice merger 👍

Nice merger :+1:
icex2 commented 2020-10-04 19:29:19 +03:00 (Migrated from github.com)

Nit: Code style, newline after control block.

Nit: Code style, newline after control block.
icex2 commented 2020-10-04 19:31:05 +03:00 (Migrated from github.com)

Nit: I would prefer having an else block that encloses everything below that is non v150 instead of the break within the if block to jump out. Reason: Imo that's easier to read.

Nit: I would prefer having an else block that encloses everything below that is non v150 instead of the break within the if block to jump out. Reason: Imo that's easier to read.
icex2 commented 2020-10-04 19:32:51 +03:00 (Migrated from github.com)

Same situation here, reading the flow for each version becomes more difficult here. I suggest separating the different icca versions in properly enclosed dedicated if-else blocks. This would also mean to repeat the icca->detected_new_reader = true; part in the v170 and other (else) blocks.

Same situation here, reading the flow for each version becomes more difficult here. I suggest separating the different icca versions in properly enclosed dedicated if-else blocks. This would also mean to repeat the `icca->detected_new_reader = true;` part in the v170 and other (else) blocks.
icex2 commented 2020-10-04 19:34:03 +03:00 (Migrated from github.com)

Nit: This looks very odd if you don't know what's going on. A brief comment explaining the situation with ICCB being ICCA v150 might be helpful for future readers.

Nit: This looks very odd if you don't know what's going on. A brief comment explaining the situation with ICCB being ICCA v150 might be helpful for future readers.
icex2 commented 2020-10-04 19:37:35 +03:00 (Migrated from github.com)

I don't agree to have the following code being enabled implicitly via an AVS version compiler flag. I would prefer having this enabled explicitly with each game/hook. Can you refactor this part to have a parameter in the jbhook_util_ac_io_port_init function that gets set accordingly by the different jbhook implementations?
Personal recommendation/rule of thumb (though there are always exceptions): Prefer explicit APIs over implicit ones.

I don't agree to have the following code being enabled implicitly via an AVS version compiler flag. I would prefer having this enabled explicitly with each game/hook. Can you refactor this part to have a parameter in the `jbhook_util_ac_io_port_init` function that gets set accordingly by the different jbhook implementations? Personal recommendation/rule of thumb (though there are always exceptions): Prefer explicit APIs over implicit ones.
icex2 commented 2020-10-04 19:42:21 +03:00 (Migrated from github.com)

I suggest sticking to to const char* within the code as this makes it easier to quickly add support for configurable parameters via config files/cmd params and such. Have a const char* to const wchar_t* conversion within that function before calling ac_io_emu_init. Check the util/str.h package. There should be something to like str_widen.
(That makes me wonder why ac_io_emu_init uses wchar_t instead of char...).

I suggest sticking to to `const char*` within the code as this makes it easier to quickly add support for configurable parameters via config files/cmd params and such. Have a `const char*` to `const wchar_t*` conversion within that function before calling `ac_io_emu_init`. Check the `util/str.h` package. There should be something to like `str_widen`. (That makes me wonder why `ac_io_emu_init` uses `wchar_t` instead of `char`...).
icex2 commented 2020-10-04 19:43:58 +03:00 (Migrated from github.com)

Does this really apply to all p3io games? What about jubeat (1) which is an exe and not dll-based game?

Does this really apply to all p3io games? What about jubeat (1) which is an exe and not dll-based game?
icex2 commented 2020-10-04 19:44:18 +03:00 (Migrated from github.com)

Nit: Code style, new line before control block

Nit: Code style, new line before control block
icex2 commented 2020-10-04 19:44:49 +03:00 (Migrated from github.com)

👍

:+1:
icex2 commented 2020-10-04 19:46:33 +03:00 (Migrated from github.com)

Similar to what I already commented on. I suggest splitting this code into two separate hook dlls. It will be a lot of copy pasting, but that's the general architecture we decided on with BT5. This is also followed with the different flavors of iidxhook already.

Similar to what I already commented on. I suggest splitting this code into two separate hook dlls. It will be a lot of copy pasting, but that's the general architecture we decided on with BT5. This is also followed with the different flavors of iidxhook already.
icex2 commented 2020-10-05 08:17:24 +03:00 (Migrated from github.com)

In GitLab by @mon on Oct 5, 2020, 07:17

Commented on src/main/jbhook-util/p3io.c line 168

Just checked and yes, it fails on jubeat (1). I have a working copy now, so I'll fix this up.

In GitLab by @mon on Oct 5, 2020, 07:17 Commented on [src/main/jbhook-util/p3io.c line 168](https://github.com/djhackersdev/bemanitools/compare/46b1ddbc1a6a93a05a90b55bba5a23fbe38e3b80..7b55aff2a65e6072b7ac8a1b6a799f94c75a3e6a#diff-2a09449a3a8de09d5aa948e96e513c06R168) Just checked and yes, it fails on jubeat (1). I have a working copy now, so I'll fix this up.
icex2 commented 2020-10-06 09:50:16 +03:00 (Migrated from github.com)

In GitLab by @xyen on Oct 6, 2020, 08:50

Commented on src/main/jbhook-util/p3io.c line 168

I wouldn't do this here, instead I'd pass it in as a config param from the actual jbhook, and remove the whole avslibs thing.

In GitLab by @xyen on Oct 6, 2020, 08:50 Commented on [src/main/jbhook-util/p3io.c line 168](https://github.com/djhackersdev/bemanitools/compare/46b1ddbc1a6a93a05a90b55bba5a23fbe38e3b80..7b55aff2a65e6072b7ac8a1b6a799f94c75a3e6a#diff-2a09449a3a8de09d5aa948e96e513c06R168) I wouldn't do this here, instead I'd pass it in as a config param from the actual jbhook, and remove the whole `avslibs` thing.
icex2 commented 2020-10-06 09:50:16 +03:00 (Migrated from github.com)

In GitLab by @xyen on Oct 6, 2020, 08:50

Commented on src/main/jbhook-util/acio.h line 9

It uses wchar_t because the hooks are all based on the wide versions of the functions, the multibyte ones get wrapped into the wide ones.

In GitLab by @xyen on Oct 6, 2020, 08:50 Commented on [src/main/jbhook-util/acio.h line 9](https://github.com/djhackersdev/bemanitools/compare/9f4e79294296d386006bc6344530788431b7a929..cf126bef4c02826f8630367c5eac88c9c30bf38a#diff-713a060583f38b1ad827740839eecb12R9) It uses `wchar_t` because the hooks are all based on the wide versions of the functions, the multibyte ones get wrapped into the wide ones.
icex2 commented 2020-10-06 18:55:24 +03:00 (Migrated from github.com)

I just checked the code and got reminded that the irp struct contains a wchar_t version for the filename of an open call. Also remembered that this makes sense to have CreateFileA and CreateFileW handled transparently for anything that uses the hook/iohook module (single byte filenames can be transformed to multibyte but not vice versa without loss, naturally). /thoughts

Then that's fine, ignore my comment 👍

I just checked the code and got reminded that the irp struct contains a `wchar_t` version for the filename of an open call. Also remembered that this makes sense to have `CreateFileA` and `CreateFileW` handled transparently for anything that uses the `hook/iohook` module (single byte filenames can be transformed to multibyte but not vice versa without loss, naturally). /thoughts Then that's fine, ignore my comment :+1:
icex2 commented 2020-10-06 18:59:37 +03:00 (Migrated from github.com)

If I understand your idea correctly @xyen, then I think yours is the better solution. It avoids the avs call/depdency and creating a heuristic to fix this. Furthermore, for iidx, we configure the roundplug values in the iidxhook.conf file and that worked out well across all the roundplug based versions of the game. The use-case here looks identical.

If I understand your idea correctly @xyen, then I think yours is the better solution. It avoids the avs call/depdency and creating a heuristic to fix this. Furthermore, for iidx, we configure the roundplug values in the `iidxhook.conf` file and that worked out well across all the roundplug based versions of the game. The use-case here looks identical.
icex2 commented 2020-10-10 15:24:51 +03:00 (Migrated from github.com)

In GitLab by @mon on Oct 10, 2020, 14:24

Commented on src/main/acioemu/icca.c line 152

changed this line in version 2 of the diff

In GitLab by @mon on Oct 10, 2020, 14:24 Commented on [src/main/acioemu/icca.c line 152](https://github.com/djhackersdev/bemanitools/compare/46b1ddbc1a6a93a05a90b55bba5a23fbe38e3b80..7b55aff2a65e6072b7ac8a1b6a799f94c75a3e6a#diff-affab87058fe7f10f8cdc694a83c62e0R152) changed this line in [version 2 of the diff](/djhackers/bemanitools/-/merge_requests/55/diffs?diff_id=1333&start_sha=7b55aff2a65e6072b7ac8a1b6a799f94c75a3e6a#afe0e349cab0b6e39bf4435fdcb044da5be5b82e_152_151)
icex2 commented 2020-10-10 15:24:51 +03:00 (Migrated from github.com)

In GitLab by @mon on Oct 10, 2020, 14:24

Commented on src/main/acioemu/icca.c line 219

changed this line in version 2 of the diff

In GitLab by @mon on Oct 10, 2020, 14:24 Commented on [src/main/acioemu/icca.c line 219](https://github.com/djhackersdev/bemanitools/compare/46b1ddbc1a6a93a05a90b55bba5a23fbe38e3b80..7b55aff2a65e6072b7ac8a1b6a799f94c75a3e6a#diff-affab87058fe7f10f8cdc694a83c62e0R219) changed this line in [version 2 of the diff](/djhackers/bemanitools/-/merge_requests/55/diffs?diff_id=1333&start_sha=7b55aff2a65e6072b7ac8a1b6a799f94c75a3e6a#afe0e349cab0b6e39bf4435fdcb044da5be5b82e_219_219)
icex2 commented 2020-10-10 15:24:52 +03:00 (Migrated from github.com)

In GitLab by @mon on Oct 10, 2020, 14:24

Commented on src/main/jbhook-util/p3io.c line 168

changed this line in version 2 of the diff

In GitLab by @mon on Oct 10, 2020, 14:24 Commented on [src/main/jbhook-util/p3io.c line 168](https://github.com/djhackersdev/bemanitools/compare/46b1ddbc1a6a93a05a90b55bba5a23fbe38e3b80..7b55aff2a65e6072b7ac8a1b6a799f94c75a3e6a#diff-2a09449a3a8de09d5aa948e96e513c06R168) changed this line in [version 2 of the diff](/djhackers/bemanitools/-/merge_requests/55/diffs?diff_id=1333&start_sha=7b55aff2a65e6072b7ac8a1b6a799f94c75a3e6a#2ded3973774a972ba7c7e6b8bdb931ac406bf477_168_168)
icex2 commented 2020-10-10 15:24:52 +03:00 (Migrated from github.com)

In GitLab by @mon on Oct 10, 2020, 14:24

Commented on src/main/jbhook-util/p3io.c line 161

changed this line in version 2 of the diff

In GitLab by @mon on Oct 10, 2020, 14:24 Commented on [src/main/jbhook-util/p3io.c line 161](https://github.com/djhackersdev/bemanitools/compare/46b1ddbc1a6a93a05a90b55bba5a23fbe38e3b80..7b55aff2a65e6072b7ac8a1b6a799f94c75a3e6a#diff-2a09449a3a8de09d5aa948e96e513c06R161) changed this line in [version 2 of the diff](/djhackers/bemanitools/-/merge_requests/55/diffs?diff_id=1333&start_sha=7b55aff2a65e6072b7ac8a1b6a799f94c75a3e6a#2ded3973774a972ba7c7e6b8bdb931ac406bf477_161_161)
icex2 commented 2020-10-10 15:24:52 +03:00 (Migrated from github.com)

In GitLab by @mon on Oct 10, 2020, 14:24

added 4 commits

  • 04bb28df - Fix security check for jubeat1
  • c9ea3c15 - Better logs on bad PCBID
  • 5dc617f7 - Move eamuse.c/h to jbhook-util and better IP fix
  • 0ffc6753 - icca: codestyle fixes

Compare with previous version

In GitLab by @mon on Oct 10, 2020, 14:24 added 4 commits <ul><li>04bb28df - Fix security check for jubeat1</li><li>c9ea3c15 - Better logs on bad PCBID</li><li>5dc617f7 - Move eamuse.c/h to jbhook-util and better IP fix</li><li>0ffc6753 - icca: codestyle fixes</li></ul> [Compare with previous version](/djhackers/bemanitools/-/merge_requests/55/diffs?diff_id=1333&start_sha=7b55aff2a65e6072b7ac8a1b6a799f94c75a3e6a)
icex2 commented 2020-10-10 15:32:56 +03:00 (Migrated from github.com)

In GitLab by @mon on Oct 10, 2020, 14:32

Commented on src/main/acioemu/icca.c line 131

changed this line in version 3 of the diff

In GitLab by @mon on Oct 10, 2020, 14:32 Commented on [src/main/acioemu/icca.c line 131](https://github.com/djhackersdev/bemanitools/compare/46b1ddbc1a6a93a05a90b55bba5a23fbe38e3b80..0ffc675332a49d013aa1a5e47eb8518b79aaf69c#diff-affab87058fe7f10f8cdc694a83c62e0R131) changed this line in [version 3 of the diff](/djhackers/bemanitools/-/merge_requests/55/diffs?diff_id=1334&start_sha=0ffc675332a49d013aa1a5e47eb8518b79aaf69c#afe0e349cab0b6e39bf4435fdcb044da5be5b82e_131_139)
icex2 commented 2020-10-10 15:32:57 +03:00 (Migrated from github.com)

In GitLab by @mon on Oct 10, 2020, 14:32

Commented on src/main/acioemu/icca.c line 277

changed this line in version 3 of the diff

In GitLab by @mon on Oct 10, 2020, 14:32 Commented on [src/main/acioemu/icca.c line 277](https://github.com/djhackersdev/bemanitools/compare/46b1ddbc1a6a93a05a90b55bba5a23fbe38e3b80..0ffc675332a49d013aa1a5e47eb8518b79aaf69c#diff-affab87058fe7f10f8cdc694a83c62e0R277) changed this line in [version 3 of the diff](/djhackers/bemanitools/-/merge_requests/55/diffs?diff_id=1334&start_sha=0ffc675332a49d013aa1a5e47eb8518b79aaf69c#afe0e349cab0b6e39bf4435fdcb044da5be5b82e_277_285)
icex2 commented 2020-10-10 15:32:58 +03:00 (Migrated from github.com)

In GitLab by @mon on Oct 10, 2020, 14:32

added 1 commit

  • 4e522a83 - More sane ICCA product code setting

Compare with previous version

In GitLab by @mon on Oct 10, 2020, 14:32 added 1 commit <ul><li>4e522a83 - More sane ICCA product code setting</li></ul> [Compare with previous version](/djhackers/bemanitools/-/merge_requests/55/diffs?diff_id=1334&start_sha=0ffc675332a49d013aa1a5e47eb8518b79aaf69c)
icex2 commented 2020-10-10 15:40:53 +03:00 (Migrated from github.com)

In GitLab by @mon on Oct 10, 2020, 14:40

Commented on src/main/jbhook-util/p3io.c line 168

So, the AVS dependency is indeed the incorrect solution and I'm going to remove it.

However! Do IIDX games transparently modify the passed-in gamecode to something else? This is where the problem stems from and I still think using the sidcode here is the correct solution.

In GitLab by @mon on Oct 10, 2020, 14:40 Commented on [src/main/jbhook-util/p3io.c line 168](https://github.com/djhackersdev/bemanitools/compare/46b1ddbc1a6a93a05a90b55bba5a23fbe38e3b80..7b55aff2a65e6072b7ac8a1b6a799f94c75a3e6a#diff-2a09449a3a8de09d5aa948e96e513c06R168) So, the AVS dependency is indeed the incorrect solution and I'm going to remove it. However! Do IIDX games transparently modify the passed-in gamecode to something else? This is where the problem stems from and I still think using the sidcode here is the correct solution.
icex2 commented 2020-10-10 17:52:02 +03:00 (Migrated from github.com)

In GitLab by @mon on Oct 10, 2020, 16:52

Commented on src/main/jbhook-util/acio.c line 42

changed this line in version 4 of the diff

In GitLab by @mon on Oct 10, 2020, 16:52 Commented on [src/main/jbhook-util/acio.c line 42](https://github.com/djhackersdev/bemanitools/compare/46b1ddbc1a6a93a05a90b55bba5a23fbe38e3b80..4e522a83692f035aee2d459ad3eff8e8f20a5db6#diff-ce464984a1cab0bde02b0692638b6b85R42) changed this line in [version 4 of the diff](/djhackers/bemanitools/-/merge_requests/55/diffs?diff_id=1335&start_sha=4e522a83692f035aee2d459ad3eff8e8f20a5db6#aad75f3908f34f807b7f561975db96f135896e06_42_40)
icex2 commented 2020-10-10 17:52:02 +03:00 (Migrated from github.com)

In GitLab by @mon on Oct 10, 2020, 16:52

Commented on src/main/jbhook/dllmain.c line 55

changed this line in version 4 of the diff

In GitLab by @mon on Oct 10, 2020, 16:52 Commented on [src/main/jbhook/dllmain.c line 55](https://github.com/djhackersdev/bemanitools/compare/46b1ddbc1a6a93a05a90b55bba5a23fbe38e3b80..4e522a83692f035aee2d459ad3eff8e8f20a5db6#diff-5eb1bc44612c08ace0d2df759263cd1dR55) changed this line in [version 4 of the diff](/djhackers/bemanitools/-/merge_requests/55/diffs?diff_id=1335&start_sha=4e522a83692f035aee2d459ad3eff8e8f20a5db6#cc901a171ec604a099887048e90a044d2e6a8803_55_0)
icex2 commented 2020-10-10 17:52:03 +03:00 (Migrated from github.com)

In GitLab by @mon on Oct 10, 2020, 16:52

added 3 commits

  • f5edffa3 - Remove avslibs, it was a mistake
  • 5a7541cf - Split jbhook
  • 11420f4b - Remove accidental commit

Compare with previous version

In GitLab by @mon on Oct 10, 2020, 16:52 added 3 commits <ul><li>f5edffa3 - Remove avslibs, it was a mistake</li><li>5a7541cf - Split jbhook</li><li>11420f4b - Remove accidental commit</li></ul> [Compare with previous version](/djhackers/bemanitools/-/merge_requests/55/diffs?diff_id=1335&start_sha=4e522a83692f035aee2d459ad3eff8e8f20a5db6)
icex2 commented 2020-10-10 17:56:48 +03:00 (Migrated from github.com)

In GitLab by @mon on Oct 10, 2020, 16:56

added 1 commit

  • a66b38fa - Better handling of black plug sidcode

Compare with previous version

In GitLab by @mon on Oct 10, 2020, 16:56 added 1 commit <ul><li>a66b38fa - Better handling of black plug sidcode</li></ul> [Compare with previous version](/djhackers/bemanitools/-/merge_requests/55/diffs?diff_id=1336&start_sha=11420f4b05fe8473754bba6e904b880eb2fd259e)
icex2 commented 2020-10-10 18:16:15 +03:00 (Migrated from github.com)

In GitLab by @mon on Oct 10, 2020, 17:16

added 1 commit

  • 6d521d03 - Basic docs for the various new jbhook dlls

Compare with previous version

In GitLab by @mon on Oct 10, 2020, 17:16 added 1 commit <ul><li>6d521d03 - Basic docs for the various new jbhook dlls</li></ul> [Compare with previous version](/djhackers/bemanitools/-/merge_requests/55/diffs?diff_id=1337&start_sha=a66b38faaf8b5c792fff6f63649e517ba698cfc9)
icex2 commented 2020-10-11 21:30:56 +03:00 (Migrated from github.com)

👍

:thumbsup:
icex2 commented 2020-10-11 21:33:21 +03:00 (Migrated from github.com)

Nit: Code style, line break before control block. I know this is minor but it helps keeping an overall consistent look which makes reading code easier. You can easily apply code formatting by running make code-format (however, I think the part with line breaks before and after control blocks cannot be covered by clang format...).

Nit: Code style, line break before control block. I know this is minor but it helps keeping an overall consistent look which makes reading code easier. You can easily apply code formatting by running `make code-format` (however, I think the part with line breaks before and after control blocks cannot be covered by clang format...).
icex2 commented 2020-10-11 21:34:41 +03:00 (Migrated from github.com)

Since this is part of the git history anyway, is there a reason that this should be kept as a comment instead of being removed?

Since this is part of the git history anyway, is there a reason that this should be kept as a comment instead of being removed?
icex2 commented 2020-10-11 21:35:27 +03:00 (Migrated from github.com)

Nit: Label indention level -4 spaces.

Nit: Label indention level -4 spaces.
icex2 commented 2020-10-11 21:35:44 +03:00 (Migrated from github.com)

Nit: Code style, line break before control block.

Nit: Code style, line break before control block.
icex2 commented 2020-10-11 21:37:39 +03:00 (Migrated from github.com)

Why is that hooked?

Why is that hooked?
icex2 commented 2020-10-11 21:38:08 +03:00 (Migrated from github.com)

Same question here. I don't really see any major change in the code below.

Same question here. I don't really see any major change in the code below.
icex2 commented 2020-10-11 21:40:48 +03:00 (Migrated from github.com)

That looks definitely more sane. I suggest creating constants in some header file that reference what's viable to pick, e.g. const char* ac_io_emu_prod_code_icca = "ICCA" instead of "hardcoding" them.

That looks definitely more sane. I suggest creating constants in some header file that reference what's viable to pick, e.g. `const char* ac_io_emu_prod_code_icca = "ICCA"` instead of "hardcoding" them.
icex2 commented 2020-10-11 21:41:47 +03:00 (Migrated from github.com)

👍

:thumbsup:
icex2 commented 2020-10-11 21:43:32 +03:00 (Migrated from github.com)

Not a comment regarding this line, but regarding the commit of this change. Since the commit introduces a rather major change and is just named "Split jbhook", do you mind rewording the commit message and be a bit more elaborate on why you do the split in the commit's message body?
Also a few brief details about how you split them are also good when someone has to browse the history later.

Not a comment regarding this line, but regarding the commit of this change. Since the commit introduces a rather major change and is just named "Split jbhook", do you mind rewording the commit message and be a bit more elaborate on why you do the split in the commit's message body? Also a few brief details about how you split them are also good when someone has to browse the history later.
icex2 commented 2020-10-11 21:45:14 +03:00 (Migrated from github.com)

How come that gamestart-02.bat addresses an exe game with jbhook1 and gamestart.bat addresses a dll game with jdbook3? Looks like this one needs to be renamed to something greater 02, maybe gamestart-03.bat?

How come that `gamestart-02.bat` addresses an exe game with jbhook1 and `gamestart.bat` addresses a dll game with jdbook3? Looks like this one needs to be renamed to something greater `02`, maybe `gamestart-03.bat`?
icex2 commented 2020-10-11 21:48:27 +03:00 (Migrated from github.com)

A brief comment on when this might be necessary and what's the difference might be good to have here for future readers.

A brief comment on when this might be necessary and what's the difference might be good to have here for future readers.
icex2 commented 2020-10-11 21:52:47 +03:00 (Migrated from github.com)

This does not cover reading options from a config file. The cconfig module isn't perfect, but takes care of reading from file, parsing different types, e.g. int, float, bool, and handles cmd args overriding. Take a look at how iidx/sdvx have used it for reference and just copy-paste, e.g. iidxhook/ config-iidxhook1.h/c

This does not cover reading options from a config file. The `cconfig` module isn't perfect, but takes care of reading from file, parsing different types, e.g. int, float, bool, and handles cmd args overriding. Take a look at how iidx/sdvx have used it for reference and just copy-paste, e.g. `iidxhook/ config-iidxhook1.h/c`
icex2 commented 2020-10-11 21:56:02 +03:00 (Migrated from github.com)

Minor, but memory leak. I suggest that you rather pass in a const char* and dupe it inside the module. Cleanup of duped string follows in jbhook_util_p3io_fini

Minor, but memory leak. I suggest that you rather pass in a `const char*` and dupe it inside the module. Cleanup of duped string follows in `jbhook_util_p3io_fini`
icex2 commented 2020-10-11 21:56:59 +03:00 (Migrated from github.com)

I don't understand how this is "better handling" of the plug code. Do you mind elaborating in the commit message?

I don't understand how this is "better handling" of the plug code. Do you mind elaborating in the commit message?
icex2 commented 2020-10-11 21:58:16 +03:00 (Migrated from github.com)

Yup, it's not just you. Very good to have this here 👍

Yup, it's not just you. Very good to have this here :thumbsup:
icex2 commented 2020-10-11 21:58:37 +03:00 (Migrated from github.com)

Nit: This is not called "kactools" anymore but bemanitools.

Nit: This is not called "kactools" anymore but bemanitools.
icex2 commented 2020-10-11 21:59:28 +03:00 (Migrated from github.com)
DLL to the game process. `dist/jb` contains bat scripts with all the
```suggestion:-0+0 DLL to the game process. `dist/jb` contains bat scripts with all the ```
icex2 commented 2020-10-11 22:00:48 +03:00 (Migrated from github.com)

Suggestion:

* `data`
* `prop`
* Various dll files including `jubeat.dll` **OR** `jubeat.exe`
Suggestion: ``` * `data` * `prop` * Various dll files including `jubeat.dll` **OR** `jubeat.exe` ```
icex2 commented 2020-10-11 22:02:15 +03:00 (Migrated from github.com)
Run the `gamestart-XX.bat` file where `XX` denotes the version of the game you want to run.
```suggestion:-0+0 Run the `gamestart-XX.bat` file where `XX` denotes the version of the game you want to run. ```
icex2 commented 2020-10-11 22:03:19 +03:00 (Migrated from github.com)
## Running jubeat or ripples?
Modify `jbhook-01.conf` (jubeat) or `jbhook-02.conf` (ripples).

Can you extend this and point out a few things that you typically have to modify, e.g. PCBID, network address for completeness?

```suggestion:-0+0 ## Running jubeat or ripples? Modify `jbhook-01.conf` (jubeat) or `jbhook-02.conf` (ripples). ``` Can you extend this and point out a few things that you typically have to modify, e.g. PCBID, network address for completeness?
icex2 commented 2020-10-11 22:03:29 +03:00 (Migrated from github.com)
* Open the `prop/ea3-config.xml`
```suggestion:-0+0 * Open the `prop/ea3-config.xml` ```
icex2 commented 2020-10-11 22:03:41 +03:00 (Migrated from github.com)
* Replace the `ea3/network/services` URL with network service URL of your
```suggestion:-0+0 * Replace the `ea3/network/services` URL with network service URL of your ```
icex2 commented 2020-10-11 22:03:55 +03:00 (Migrated from github.com)
* Edit the `ea3/id/pcbid`
```suggestion:-0+0 * Edit the `ea3/id/pcbid` ```
icex2 commented 2020-10-11 22:04:11 +03:00 (Migrated from github.com)
Run the launcher without the hook dll: `launcher jubeat.dll`
```suggestion:-0+0 Run the launcher without the hook dll: `launcher jubeat.dll` ```
icex2 commented 2020-10-11 22:04:32 +03:00 (Migrated from github.com)
Run the `gamestart-01.bat` file as admin.
```suggestion:-0+0 Run the `gamestart-01.bat` file as admin. ```
icex2 commented 2020-10-11 22:04:56 +03:00 (Migrated from github.com)
Run the `gamestart-02.bat` file as admin.
```suggestion:-0+0 Run the `gamestart-02.bat` file as admin. ```
icex2 commented 2020-10-11 22:05:20 +03:00 (Migrated from github.com)
Run the `gamestart.bat` file as admin.

Also, shouldn't this be called gamestart-03.bat?

```suggestion:-0+0 Run the `gamestart.bat` file as admin. ``` Also, shouldn't this be called `gamestart-03.bat`?
icex2 commented 2020-10-11 22:07:23 +03:00 (Migrated from github.com)

Yes, IIDX does that by setting the dongle codes via the config file. Naturally, this requires different config files for different game version but this turned out to be the most flexible and maintainable solution so far. See here for the different config files for the different IIDX version, iidx 11 config here.

Yes, IIDX does that by setting the dongle codes via the config file. Naturally, this requires different config files for different game version but this turned out to be the most flexible and maintainable solution so far. See [here for the different config files for the different IIDX version](https://dev.s-ul.eu/djhackers/bemanitools/-/tree/master/dist/iidx), [iidx 11 config here](https://dev.s-ul.eu/djhackers/bemanitools/-/blob/master/dist/iidx/iidxhook-11.conf#L62).
icex2 commented 2020-10-12 17:50:15 +03:00 (Migrated from github.com)

In GitLab by @xyen on Oct 12, 2020, 16:50

Commented on GNUmakefile line 229

this was also from the avslibs change I think

In GitLab by @xyen on Oct 12, 2020, 16:50 Commented on [GNUmakefile line 229](https://github.com/djhackersdev/bemanitools/compare/9f4e79294296d386006bc6344530788431b7a929..cf126bef4c02826f8630367c5eac88c9c30bf38a#diff-b0fa74059a31d3efac99fea6d20ca25aR229) this was also from the avslibs change I think
icex2 commented 2020-10-12 17:50:15 +03:00 (Migrated from github.com)

In GitLab by @xyen on Oct 12, 2020, 16:50

Commented on doc/jbhook/README.md line 51

idk if we should be promoting loose dll files, btools works with dll's in the modules folder if you pass it correctly, idk how to word this succinctly though.

In GitLab by @xyen on Oct 12, 2020, 16:50 Commented on [doc/jbhook/README.md line 51](https://github.com/djhackersdev/bemanitools/compare/46b1ddbc1a6a93a05a90b55bba5a23fbe38e3b80..6d521d037c0ff3f663514be63ef40427bb6015bd#diff-2bcca856c49b9e4a4bb5d2d71bccbc36R51) idk if we should be promoting loose dll files, btools works with dll's in the modules folder if you pass it correctly, idk how to word this succinctly though.
icex2 commented 2020-10-12 18:48:08 +03:00 (Migrated from github.com)

Have there been any releases that follow the vanilla way of keeping the dll files in the modules folder? I would definitely encourage that, but this hasn't been implemented so far and we would have to cover both use-cases, with and without a modules folder to ensure existing setups keep working.

Have there been any releases that follow the vanilla way of keeping the dll files in the `modules` folder? I would definitely encourage that, but this hasn't been implemented so far and we would have to cover both use-cases, with and without a `modules` folder to ensure existing setups keep working.
icex2 commented 2021-03-17 02:24:47 +03:00 (Migrated from github.com)

In GitLab by @mon on Mar 17, 2021, 24:24

With the merging of !83, I'm going to pick this back up again, fix lighting (H44B) and eamio coexistence, fix all the issues found during review, and rebase to create a clean commit history. Hopefully within ~3 weeks or so.

In GitLab by @mon on Mar 17, 2021, 24:24 With the merging of !83, I'm going to pick this back up again, fix lighting (H44B) and eamio coexistence, fix all the issues found during review, and rebase to create a clean commit history. Hopefully within ~3 weeks or so.
icex2 commented 2021-12-31 13:07:48 +03:00 (Migrated from github.com)

In GitLab by @mon on Dec 31, 2021, 11:07

Commented on src/main/jbhook2/options.c line 15

If you'll accept this answer - no.
ddrhook and sdvxhook both use args_recover and "manual" argv parsing instead of cconfig, the purity of the codebase isn't in danger. All of the options jbhook2/3 need are all flags with no additional parsing required. I think it's reasonable to just have it like this because I just want this PR to actually make it in :(

In GitLab by @mon on Dec 31, 2021, 11:07 Commented on [src/main/jbhook2/options.c line 15](https://github.com/djhackersdev/bemanitools/compare/9f4e79294296d386006bc6344530788431b7a929..cf126bef4c02826f8630367c5eac88c9c30bf38a#diff-1eec4fdcb90cf4e71af428587bbd6fd1R15) If you'll accept this answer - no. ddrhook and sdvxhook both use args_recover and "manual" argv parsing instead of cconfig, the purity of the codebase isn't in danger. All of the options jbhook2/3 need are all flags with no additional parsing required. I think it's reasonable to just have it like this because I just want this PR to actually make it in :(
icex2 commented 2021-12-31 13:29:40 +03:00 (Migrated from github.com)

In GitLab by @mon on Dec 31, 2021, 11:29

Commented on src/main/jbhook-util/p3io.h line 23

changed this line in version 7 of the diff

In GitLab by @mon on Dec 31, 2021, 11:29 Commented on [src/main/jbhook-util/p3io.h line 23](https://github.com/djhackersdev/bemanitools/compare/46b1ddbc1a6a93a05a90b55bba5a23fbe38e3b80..6d521d037c0ff3f663514be63ef40427bb6015bd#diff-b9119a30feb07c819474d4d09049dc70R23) changed this line in [version 7 of the diff](/djhackers/bemanitools/-/merge_requests/55/diffs?diff_id=2206&start_sha=6d521d037c0ff3f663514be63ef40427bb6015bd#158af0ffb167c5c66c34c89e6ba7b5d3d8de5d2b_23_23)
icex2 commented 2021-12-31 13:29:40 +03:00 (Migrated from github.com)

In GitLab by @mon on Dec 31, 2021, 11:29

Commented on src/main/jbhook-util/eamuse.c line 105

changed this line in version 7 of the diff

In GitLab by @mon on Dec 31, 2021, 11:29 Commented on [src/main/jbhook-util/eamuse.c line 105](https://github.com/djhackersdev/bemanitools/compare/46b1ddbc1a6a93a05a90b55bba5a23fbe38e3b80..6d521d037c0ff3f663514be63ef40427bb6015bd#diff-8a74d414776770c3a9839b7a876125a6R105) changed this line in [version 7 of the diff](/djhackers/bemanitools/-/merge_requests/55/diffs?diff_id=2206&start_sha=6d521d037c0ff3f663514be63ef40427bb6015bd#f58f090ee8ab1d919f95764cef7eceffb6bfacce_105_101)
icex2 commented 2021-12-31 13:29:40 +03:00 (Migrated from github.com)

In GitLab by @mon on Dec 31, 2021, 11:29

Commented on src/main/jbhook-util/eamuse.c line 76

changed this line in version 7 of the diff

In GitLab by @mon on Dec 31, 2021, 11:29 Commented on [src/main/jbhook-util/eamuse.c line 76](https://github.com/djhackersdev/bemanitools/compare/46b1ddbc1a6a93a05a90b55bba5a23fbe38e3b80..6d521d037c0ff3f663514be63ef40427bb6015bd#diff-8a74d414776770c3a9839b7a876125a6R76) changed this line in [version 7 of the diff](/djhackers/bemanitools/-/merge_requests/55/diffs?diff_id=2206&start_sha=6d521d037c0ff3f663514be63ef40427bb6015bd#f58f090ee8ab1d919f95764cef7eceffb6bfacce_76_76)
icex2 commented 2021-12-31 13:29:41 +03:00 (Migrated from github.com)

In GitLab by @mon on Dec 31, 2021, 11:29

Commented on src/main/acioemu/icca.c line 74

changed this line in version 7 of the diff

In GitLab by @mon on Dec 31, 2021, 11:29 Commented on [src/main/acioemu/icca.c line 74](https://github.com/djhackersdev/bemanitools/compare/46b1ddbc1a6a93a05a90b55bba5a23fbe38e3b80..6d521d037c0ff3f663514be63ef40427bb6015bd#diff-affab87058fe7f10f8cdc694a83c62e0R74) changed this line in [version 7 of the diff](/djhackers/bemanitools/-/merge_requests/55/diffs?diff_id=2206&start_sha=6d521d037c0ff3f663514be63ef40427bb6015bd#afe0e349cab0b6e39bf4435fdcb044da5be5b82e_74_67)
icex2 commented 2021-12-31 13:29:41 +03:00 (Migrated from github.com)

In GitLab by @mon on Dec 31, 2021, 11:29

Commented on dist/jb/gamestart.bat line 10

changed this line in version 7 of the diff

In GitLab by @mon on Dec 31, 2021, 11:29 Commented on [dist/jb/gamestart.bat line 10](https://github.com/djhackersdev/bemanitools/compare/46b1ddbc1a6a93a05a90b55bba5a23fbe38e3b80..6d521d037c0ff3f663514be63ef40427bb6015bd#diff-79e4275ed7e5bceea41b6da2c94054e3R10) changed this line in [version 7 of the diff](/djhackers/bemanitools/-/merge_requests/55/diffs?diff_id=2206&start_sha=6d521d037c0ff3f663514be63ef40427bb6015bd#72695eda45dc2d00c073d49b5e946b18eb977742_10_0)
icex2 commented 2021-12-31 13:29:41 +03:00 (Migrated from github.com)

In GitLab by @mon on Dec 31, 2021, 11:29

Commented on src/main/jbhook-util/acio.h line 23

changed this line in version 7 of the diff

In GitLab by @mon on Dec 31, 2021, 11:29 Commented on [src/main/jbhook-util/acio.h line 23](https://github.com/djhackersdev/bemanitools/compare/46b1ddbc1a6a93a05a90b55bba5a23fbe38e3b80..6d521d037c0ff3f663514be63ef40427bb6015bd#diff-713a060583f38b1ad827740839eecb12R23) changed this line in [version 7 of the diff](/djhackers/bemanitools/-/merge_requests/55/diffs?diff_id=2206&start_sha=6d521d037c0ff3f663514be63ef40427bb6015bd#5de04b369149b2bc17444415cabf1df53c890c53_23_23)
icex2 commented 2021-12-31 13:29:42 +03:00 (Migrated from github.com)

In GitLab by @mon on Dec 31, 2021, 11:29

Commented on src/main/jbhook2/dllmain.c line 93

changed this line in version 7 of the diff

In GitLab by @mon on Dec 31, 2021, 11:29 Commented on [src/main/jbhook2/dllmain.c line 93](https://github.com/djhackersdev/bemanitools/compare/46b1ddbc1a6a93a05a90b55bba5a23fbe38e3b80..6d521d037c0ff3f663514be63ef40427bb6015bd#diff-b3f2377e20239cd8c7b5b179b4fc92a8R93) changed this line in [version 7 of the diff](/djhackers/bemanitools/-/merge_requests/55/diffs?diff_id=2206&start_sha=6d521d037c0ff3f663514be63ef40427bb6015bd#96e94e580707a01a9b002a2d1b1cbed62c735cfb_93_95)
icex2 commented 2021-12-31 13:29:42 +03:00 (Migrated from github.com)

In GitLab by @mon on Dec 31, 2021, 11:29

Commented on doc/jbhook/README.md line 34

changed this line in version 7 of the diff

In GitLab by @mon on Dec 31, 2021, 11:29 Commented on [doc/jbhook/README.md line 34](https://github.com/djhackersdev/bemanitools/compare/46b1ddbc1a6a93a05a90b55bba5a23fbe38e3b80..6d521d037c0ff3f663514be63ef40427bb6015bd#diff-2bcca856c49b9e4a4bb5d2d71bccbc36R34) changed this line in [version 7 of the diff](/djhackers/bemanitools/-/merge_requests/55/diffs?diff_id=2206&start_sha=6d521d037c0ff3f663514be63ef40427bb6015bd#8e4b2f13e98ee2c293e3a0c14c5e395189ea8263_34_34)
icex2 commented 2021-12-31 13:29:42 +03:00 (Migrated from github.com)

In GitLab by @mon on Dec 31, 2021, 11:29

Commented on doc/jbhook/README.md line 42

changed this line in version 7 of the diff

In GitLab by @mon on Dec 31, 2021, 11:29 Commented on [doc/jbhook/README.md line 42](https://github.com/djhackersdev/bemanitools/compare/46b1ddbc1a6a93a05a90b55bba5a23fbe38e3b80..6d521d037c0ff3f663514be63ef40427bb6015bd#diff-2bcca856c49b9e4a4bb5d2d71bccbc36R42) changed this line in [version 7 of the diff](/djhackers/bemanitools/-/merge_requests/55/diffs?diff_id=2206&start_sha=6d521d037c0ff3f663514be63ef40427bb6015bd#8e4b2f13e98ee2c293e3a0c14c5e395189ea8263_42_42)
icex2 commented 2021-12-31 13:29:42 +03:00 (Migrated from github.com)

In GitLab by @mon on Dec 31, 2021, 11:29

Commented on doc/jbhook/README.md line 51

changed this line in version 7 of the diff

In GitLab by @mon on Dec 31, 2021, 11:29 Commented on [doc/jbhook/README.md line 51](https://github.com/djhackersdev/bemanitools/compare/46b1ddbc1a6a93a05a90b55bba5a23fbe38e3b80..6d521d037c0ff3f663514be63ef40427bb6015bd#diff-2bcca856c49b9e4a4bb5d2d71bccbc36R51) changed this line in [version 7 of the diff](/djhackers/bemanitools/-/merge_requests/55/diffs?diff_id=2206&start_sha=6d521d037c0ff3f663514be63ef40427bb6015bd#8e4b2f13e98ee2c293e3a0c14c5e395189ea8263_51_51)
icex2 commented 2021-12-31 13:29:42 +03:00 (Migrated from github.com)

In GitLab by @mon on Dec 31, 2021, 11:29

Commented on doc/jbhook/README.md line 58

changed this line in version 7 of the diff

In GitLab by @mon on Dec 31, 2021, 11:29 Commented on [doc/jbhook/README.md line 58](https://github.com/djhackersdev/bemanitools/compare/46b1ddbc1a6a93a05a90b55bba5a23fbe38e3b80..6d521d037c0ff3f663514be63ef40427bb6015bd#diff-2bcca856c49b9e4a4bb5d2d71bccbc36R58) changed this line in [version 7 of the diff](/djhackers/bemanitools/-/merge_requests/55/diffs?diff_id=2206&start_sha=6d521d037c0ff3f663514be63ef40427bb6015bd#8e4b2f13e98ee2c293e3a0c14c5e395189ea8263_58_58)
icex2 commented 2021-12-31 13:29:43 +03:00 (Migrated from github.com)

In GitLab by @mon on Dec 31, 2021, 11:29

Commented on doc/jbhook/README.md line 65

changed this line in version 7 of the diff

In GitLab by @mon on Dec 31, 2021, 11:29 Commented on [doc/jbhook/README.md line 65](https://github.com/djhackersdev/bemanitools/compare/46b1ddbc1a6a93a05a90b55bba5a23fbe38e3b80..6d521d037c0ff3f663514be63ef40427bb6015bd#diff-2bcca856c49b9e4a4bb5d2d71bccbc36R65) changed this line in [version 7 of the diff](/djhackers/bemanitools/-/merge_requests/55/diffs?diff_id=2206&start_sha=6d521d037c0ff3f663514be63ef40427bb6015bd#8e4b2f13e98ee2c293e3a0c14c5e395189ea8263_65_65)
icex2 commented 2021-12-31 13:29:43 +03:00 (Migrated from github.com)

In GitLab by @mon on Dec 31, 2021, 11:29

Commented on doc/jbhook/README.md line 66

changed this line in version 7 of the diff

In GitLab by @mon on Dec 31, 2021, 11:29 Commented on [doc/jbhook/README.md line 66](https://github.com/djhackersdev/bemanitools/compare/46b1ddbc1a6a93a05a90b55bba5a23fbe38e3b80..6d521d037c0ff3f663514be63ef40427bb6015bd#diff-2bcca856c49b9e4a4bb5d2d71bccbc36R66) changed this line in [version 7 of the diff](/djhackers/bemanitools/-/merge_requests/55/diffs?diff_id=2206&start_sha=6d521d037c0ff3f663514be63ef40427bb6015bd#8e4b2f13e98ee2c293e3a0c14c5e395189ea8263_66_65)
icex2 commented 2021-12-31 13:29:43 +03:00 (Migrated from github.com)

In GitLab by @mon on Dec 31, 2021, 11:29

Commented on doc/jbhook/README.md line 68

changed this line in version 7 of the diff

In GitLab by @mon on Dec 31, 2021, 11:29 Commented on [doc/jbhook/README.md line 68](https://github.com/djhackersdev/bemanitools/compare/46b1ddbc1a6a93a05a90b55bba5a23fbe38e3b80..6d521d037c0ff3f663514be63ef40427bb6015bd#diff-2bcca856c49b9e4a4bb5d2d71bccbc36R68) changed this line in [version 7 of the diff](/djhackers/bemanitools/-/merge_requests/55/diffs?diff_id=2206&start_sha=6d521d037c0ff3f663514be63ef40427bb6015bd#8e4b2f13e98ee2c293e3a0c14c5e395189ea8263_68_68)
icex2 commented 2021-12-31 13:29:43 +03:00 (Migrated from github.com)

In GitLab by @mon on Dec 31, 2021, 11:29

Commented on doc/jbhook/README.md line 72

changed this line in version 7 of the diff

In GitLab by @mon on Dec 31, 2021, 11:29 Commented on [doc/jbhook/README.md line 72](https://github.com/djhackersdev/bemanitools/compare/46b1ddbc1a6a93a05a90b55bba5a23fbe38e3b80..6d521d037c0ff3f663514be63ef40427bb6015bd#diff-2bcca856c49b9e4a4bb5d2d71bccbc36R72) changed this line in [version 7 of the diff](/djhackers/bemanitools/-/merge_requests/55/diffs?diff_id=2206&start_sha=6d521d037c0ff3f663514be63ef40427bb6015bd#8e4b2f13e98ee2c293e3a0c14c5e395189ea8263_72_72)
icex2 commented 2021-12-31 13:29:43 +03:00 (Migrated from github.com)

In GitLab by @mon on Dec 31, 2021, 11:29

Commented on doc/jbhook/jbhook1.md line 15

changed this line in version 7 of the diff

In GitLab by @mon on Dec 31, 2021, 11:29 Commented on [doc/jbhook/jbhook1.md line 15](https://github.com/djhackersdev/bemanitools/compare/46b1ddbc1a6a93a05a90b55bba5a23fbe38e3b80..6d521d037c0ff3f663514be63ef40427bb6015bd#diff-12d31da1758ec7469e4a4864e1521cabR15) changed this line in [version 7 of the diff](/djhackers/bemanitools/-/merge_requests/55/diffs?diff_id=2206&start_sha=6d521d037c0ff3f663514be63ef40427bb6015bd#f0d01f4b8f4bd06ca3fcc7c486829c6392b5e08b_15_15)
icex2 commented 2021-12-31 13:29:43 +03:00 (Migrated from github.com)

In GitLab by @mon on Dec 31, 2021, 11:29

Commented on doc/jbhook/jbhook2.md line 15

changed this line in version 7 of the diff

In GitLab by @mon on Dec 31, 2021, 11:29 Commented on [doc/jbhook/jbhook2.md line 15](https://github.com/djhackersdev/bemanitools/compare/46b1ddbc1a6a93a05a90b55bba5a23fbe38e3b80..6d521d037c0ff3f663514be63ef40427bb6015bd#diff-07e6fb947c0845ab5f90fd275af1bc4bR15) changed this line in [version 7 of the diff](/djhackers/bemanitools/-/merge_requests/55/diffs?diff_id=2206&start_sha=6d521d037c0ff3f663514be63ef40427bb6015bd#e31271208be22615699f5a2427bb94ee87eef06a_15_15)
icex2 commented 2021-12-31 13:29:44 +03:00 (Migrated from github.com)

In GitLab by @mon on Dec 31, 2021, 11:29

Commented on doc/jbhook/jbhook3.md line 18

changed this line in version 7 of the diff

In GitLab by @mon on Dec 31, 2021, 11:29 Commented on [doc/jbhook/jbhook3.md line 18](https://github.com/djhackersdev/bemanitools/compare/46b1ddbc1a6a93a05a90b55bba5a23fbe38e3b80..6d521d037c0ff3f663514be63ef40427bb6015bd#diff-8b6c21d0f160ff49ec1fd81fc963d721R18) changed this line in [version 7 of the diff](/djhackers/bemanitools/-/merge_requests/55/diffs?diff_id=2206&start_sha=6d521d037c0ff3f663514be63ef40427bb6015bd#8a3e73005060f402924a00bd3a7dd18386531bc2_18_18)
icex2 commented 2021-12-31 13:29:44 +03:00 (Migrated from github.com)

In GitLab by @mon on Dec 31, 2021, 11:29

added 160 commits

  • 6d521d03...9f4e7929 - 159 commits from branch djhackers:master
  • 8e92ffd4 - jubeat: support p3io games

Compare with previous version

In GitLab by @mon on Dec 31, 2021, 11:29 added 160 commits <ul><li>6d521d03...9f4e7929 - 159 commits from branch <code>djhackers:master</code></li><li>8e92ffd4 - jubeat: support p3io games</li></ul> [Compare with previous version](/djhackers/bemanitools/-/merge_requests/55/diffs?diff_id=2206&start_sha=6d521d037c0ff3f663514be63ef40427bb6015bd)
icex2 commented 2021-12-31 13:34:14 +03:00 (Migrated from github.com)

In GitLab by @mon on Dec 31, 2021, 11:34

The great rebase of 2021 (just!) has finished.

Some other big changes from past review notes:

  • all the bloody nonsense with sidcode just-in-time fixes has been nuked at ice and xyen's suggestion, it was stupid code and the game config exists for a reason. Thanks for your sanity there.
  • fixed all the "nit" comments, as well as their original sources (because I copied docs from iidxhook)
  • Added screen rotation which took WEEKS because opengl is totally new to me, huge usability boost

Ripples still isn't tested because the data is MIA, I do have the libavs from it which has exports in a different order, so it requires a new exports file. This is what ya get for using ordinals...

Truthfully, I haven't performed a re-test with the rebase. However, I have no future re-architects or changes, so assuming the code is considered approved I'll go run my full local suite.

In GitLab by @mon on Dec 31, 2021, 11:34 The great rebase of 2021 (just!) has finished. Some other big changes from past review notes: - all the bloody nonsense with sidcode just-in-time fixes has been nuked at ice and xyen's suggestion, it was stupid code and the game config exists for a reason. Thanks for your sanity there. - fixed all the "nit" comments, as well as their original sources (because I copied docs from iidxhook) - Added screen rotation which took WEEKS because opengl is totally new to me, huge usability boost Ripples still isn't tested because the data is MIA, I *do* have the libavs from it which has exports in a different order, so it requires a new exports file. This is what ya get for using ordinals... Truthfully, I haven't performed a re-test with the rebase. However, I have no future re-architects or changes, so assuming the code is considered approved I'll go run my full local suite.
icex2 commented 2022-01-01 13:04:28 +03:00 (Migrated from github.com)

Why did you remove the heap size?

Why did you remove the heap size?
icex2 commented 2022-01-01 13:56:49 +03:00 (Migrated from github.com)

Just in a talk with @mon and we aligned that this solution is fine as it is regarding simplicity.

Just in a talk with @mon and we aligned that this solution is fine as it is regarding simplicity.
icex2 commented 2022-01-03 10:08:03 +03:00 (Migrated from github.com)

In GitLab by @mon on Jan 3, 2022, 08:08

added 7 commits

  • 5fe88214 - p3ioemu: reorganise code for easy reading
  • f9764088 - jbhook: fix missing heap sizes in gamestart.bat
  • 6e72983a - jbhook: Add some better documentation
  • f1fcfeb1 - jbhook: Finalise half-baked "rotate window" hooks
  • f67c2e48 - jbhook: Fix security error when booting knit append
  • f0300ba6 - jbhook: make errors right-side-up as well
  • 55da4f6b - jbhook2: also use ICCB mode (fixes copious)

Compare with previous version

In GitLab by @mon on Jan 3, 2022, 08:08 added 7 commits <ul><li>5fe88214 - p3ioemu: reorganise code for easy reading</li><li>f9764088 - jbhook: fix missing heap sizes in gamestart.bat</li><li>6e72983a - jbhook: Add some better documentation</li><li>f1fcfeb1 - jbhook: Finalise half-baked &quot;rotate window&quot; hooks</li><li>f67c2e48 - jbhook: Fix security error when booting knit append</li><li>f0300ba6 - jbhook: make errors right-side-up as well</li><li>55da4f6b - jbhook2: also use ICCB mode (fixes copious)</li></ul> [Compare with previous version](/djhackers/bemanitools/-/merge_requests/55/diffs?diff_id=2209&start_sha=8e92ffd498f24b863e827fb93606cf105b1a5be9)
icex2 commented 2022-01-03 10:08:05 +03:00 (Migrated from github.com)

In GitLab by @mon on Jan 3, 2022, 08:08

Commented on dist/jb/gamestart.bat line 10

Mistake, fixed!

In GitLab by @mon on Jan 3, 2022, 08:08 Commented on [dist/jb/gamestart.bat line 10](https://github.com/djhackersdev/bemanitools/compare/9f4e79294296d386006bc6344530788431b7a929..cf126bef4c02826f8630367c5eac88c9c30bf38a#diff-79e4275ed7e5bceea41b6da2c94054e3L10) Mistake, fixed!
icex2 commented 2022-01-03 10:10:03 +03:00 (Migrated from github.com)

In GitLab by @mon on Jan 3, 2022, 08:10

This has now been successfully tested on the following game versions:

  • jubeat (2008)
  • knit append
  • copious append
  • saucer
  • saucer fulfill

jbhook3 (saucer->festo) is very stable, I didn't bother testing prop/qubell/clan/festo

In GitLab by @mon on Jan 3, 2022, 08:10 This has now been successfully tested on the following game versions: - jubeat (2008) - knit append - copious append - saucer - saucer fulfill jbhook3 (saucer->festo) is very stable, I didn't bother testing prop/qubell/clan/festo
icex2 commented 2022-01-03 12:58:42 +03:00 (Migrated from github.com)

In GitLab by @mon on Jan 3, 2022, 10:58

added 3 commits

  • 64c76b5e - jbhook1: also use ICCB
  • 69236b17 - jbhook2: fix broken windowed toggle
  • cf126bef - jbhook2: Move hooking further back where possible

Compare with previous version

In GitLab by @mon on Jan 3, 2022, 10:58 added 3 commits <ul><li>64c76b5e - jbhook1: also use ICCB</li><li>69236b17 - jbhook2: fix broken windowed toggle</li><li>cf126bef - jbhook2: Move hooking further back where possible</li></ul> [Compare with previous version](/djhackers/bemanitools/-/merge_requests/55/diffs?diff_id=2211&start_sha=55da4f6b0a3cc9ea69ef56f10010620ed5ee8a7e)
icex2 commented 2022-01-03 12:59:34 +03:00 (Migrated from github.com)

In GitLab by @mon on Jan 3, 2022, 10:59

2008, knit append, and copious append have been tested (and appropriate fixes pushed) on my jubeat cab. It usually runs festo, so I have no concerns for saucer/fulfill.

I consider this now "ready to merge"

In GitLab by @mon on Jan 3, 2022, 10:59 2008, knit append, and copious append have been tested (and appropriate fixes pushed) on my jubeat cab. It usually runs festo, so I have no concerns for saucer/fulfill. I consider this now "ready to merge"
icex2 commented 2022-01-04 21:34:15 +03:00 (Migrated from github.com)

In GitLab by @HAYU on Jan 4, 2022, 19:34

I'm happy that this project has resumed. When this is released, can it be used with jbio-p4io? I would like to report that my cab cannot reset ACIO when jbhook2 before the recent modification is used with jbio-p4io.

In GitLab by @HAYU on Jan 4, 2022, 19:34 I'm happy that this project has resumed. When this is released, can it be used with jbio-p4io? I would like to report that my cab cannot reset ACIO when jbhook2 before the recent modification is used with jbio-p4io.
icex2 commented 2022-01-05 00:02:47 +03:00 (Migrated from github.com)

Huge contribution and amazing job. I don't see any major no-goes and no reason to keep this further blocked regarding any quality concerns. Let's forward fix anything else that comes up after the release.

Huge contribution and amazing job. I don't see any major no-goes and no reason to keep this further blocked regarding any quality concerns. Let's forward fix anything else that comes up after the release.
icex2 commented 2022-01-05 00:02:52 +03:00 (Migrated from github.com)

approved this merge request

approved this merge request
icex2 commented 2022-01-05 00:05:38 +03:00 (Migrated from github.com)

resolved all threads

resolved all threads
icex2 commented 2022-01-05 02:53:51 +03:00 (Migrated from github.com)

In GitLab by @mon on Jan 5, 2022, 24:53

@HAYU yes, I encountered that exact bug. It was fixed in cf126bef and jbhook2 now works correctly!

In GitLab by @mon on Jan 5, 2022, 24:53 @HAYU yes, I encountered that exact bug. It was fixed in cf126bef and jbhook2 now works correctly!
icex2 commented 2022-01-05 05:37:02 +03:00 (Migrated from github.com)

In GitLab by @HAYU on Jan 5, 2022, 03:37

Thank you for this wonderful work and the quick 5.37 launch.
I don't think any MCODE for K44 is supported. K44 does not run in any destination(A:C:A, J:C:A, K:C:A).
(+edit) J44 seems to only run J:C:A.

In GitLab by @HAYU on Jan 5, 2022, 03:37 Thank you for this wonderful work and the quick 5.37 launch. I don't think any MCODE for K44 is supported. K44 does not run in any destination(A:C:A, J:C:A, K:C:A). (+edit) J44 seems to only run J:C:A.
icex2 commented 2022-01-05 05:55:42 +03:00 (Migrated from github.com)

In GitLab by @mon on Jan 5, 2022, 03:55

Please be more specific as to the issues you are experiencing. Is it a crash? Error message?
K44 and J44 covers all games. What games are you actually running?

In GitLab by @mon on Jan 5, 2022, 03:55 Please be more specific as to the issues you are experiencing. Is it a crash? Error message? K44 and J44 covers all games. What games are you actually running?
icex2 commented 2022-01-05 06:16:03 +03:00 (Migrated from github.com)

In GitLab by @HAYU on Jan 5, 2022, 04:16

SECURITY ERROR(BLACK) occurs in K44. It's trivial, but J44 has SECURITY ERROR(BLACK) other than J Region.

In GitLab by @HAYU on Jan 5, 2022, 04:16 SECURITY ERROR(BLACK) occurs in K44. It's trivial, but J44 has SECURITY ERROR(BLACK) other than J Region.
icex2 commented 2022-01-05 06:18:10 +03:00 (Migrated from github.com)

In GitLab by @mon on Jan 5, 2022, 04:18

Please tell me what games! I need to know the exact mixes (jb1? knit? knit append? prop?) etc.

In GitLab by @mon on Jan 5, 2022, 04:18 Please tell me what games! I need to know the exact mixes (jb1? knit? knit append? prop?) etc.
icex2 commented 2022-01-05 06:23:17 +03:00 (Migrated from github.com)

In GitLab by @HAYU on Jan 5, 2022, 04:23

J44=knit, K44=copious (used jb-03 and jb-04 respectively)
Only J44 seems to pass in jbhook_util_p3io_init.
I temporarily added SECURITY_MCODE_GAME_JB_4 and designated it as K44, and the copious was executed normally.

In GitLab by @HAYU on Jan 5, 2022, 04:23 J44=knit, K44=copious (used jb-03 and jb-04 respectively) Only J44 seems to pass in jbhook_util_p3io_init. I temporarily added SECURITY_MCODE_GAME_JB_4 and designated it as K44, and the copious was executed normally.
icex2 commented 2022-01-05 06:38:20 +03:00 (Migrated from github.com)

In GitLab by @mon on Jan 5, 2022, 04:38

Alright, thank you for the clarification. I know enough now and I can fix this later.

In GitLab by @mon on Jan 5, 2022, 04:38 Alright, thank you for the clarification. I know enough now and I can fix this later.
icex2 commented 2022-01-05 19:13:36 +03:00 (Migrated from github.com)

In GitLab by @HAYU on Jan 5, 2022, 17:13

I'm sorry to keep leaving comments on this side.

wavepass card reader is not available when used in copious with jbio-p4io.dll. The '+' button on the keyboard number pad still works.

If knit use eamio-icca.dll together, It can use contactless reader perfectly, but if copious use it, copious will have a problem after reading the card once.

I think it's a problem caused by emulation with a slotted reader. If I set something wrong, please point it out.

In GitLab by @HAYU on Jan 5, 2022, 17:13 I'm sorry to keep leaving comments on this side. wavepass card reader is not available when used in copious with jbio-p4io.dll. The '+' button on the keyboard number pad still works. If knit use eamio-icca.dll together, It can use contactless reader perfectly, but if copious use it, copious will have a problem after reading the card once. I think it's a problem caused by emulation with a slotted reader. If I set something wrong, please point it out.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Max/djhackersdev_bemanitools#156