djhackersdev / minime

ALLNET services for newer Sega arcade games
20 stars 3 forks source link

[Chunithm] all songs score disappear after 315 different songs played #6

Closed icex2 closed 1 year ago

icex2 commented 4 years ago

In GitLab by @sjy0079 on Dec 31, 2019, 10:16

The problem is the score can only record 315 times in the table cm_user_music. When the 316th record is added, all of the record will not appear in the game. When I finish one round game (3 songs), not continue and re-enter the game with aime card, the front round record disappeared too.

The thing stranger is when I edit my database(db.sqlite3), remove the records in table cm_user_music util the record count is less than 315, the records remind can display correctly in the game! What the thing! And when I play ONE OR MORE new records, I lost all record again in the game.

BTW, when I play the songs I've played(when the record count is or less then 315), all things are OK. Problem always happened when record count added to 316, or more.

Here are the files that can help to reproduce the problem, include: a db.sqlite3 with 316 records in cm_user_music, the card info of mine(owner of the 316 records, felica.txt and sram.bin)

https://mega.nz/#F!Oy4RSaaA!t1TqlB3SjHSnOZdmhOzv0Q

icex2 commented 4 years ago

In GitLab by @winooxx on Jan 19, 2020, 17:51

I can reproduce this problem too. FYI, GetUserMusicApi returns nextIndex: -1 when the problem occurs, the correct value maybe nextIndex: 0 though.

icex2 commented 4 years ago

In GitLab by @NeumPhis on Jan 30, 2020, 17:29

I can confirm that item list also has this problem. If the item list is large enougth the game will fail to read but without any error.

I suggest lower the max result per page parameter here to let the game handle paging itself.

https://dev.s-ul.eu/djhackers/minime/blob/master/src/chunithm/handler/getGameSetting.ts#L19

I test with max size 300 and the game can read all music result successfully.

icex2 commented 4 years ago

In GitLab by @tau on Jan 30, 2020, 17:52

closed via merge request !6