Aller au contenu

DasRU

GamerLine
  • Compteur de contenus

    3
  • Inscription

  • Dernière visite

Visiteurs récents du profil

Le bloc de visiteurs récents est désactivé et il n’est pas visible pour les autres utilisateurs.

DasRU's Achievements

Newbie

Newbie (1/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare

Recent Badges

2

Réputation sur la communauté

  1. Thank you both very much, I have it working locally now! EDIT: Actually I tried to patch the individual song and it worked, but I immediately ran into another song that was swapped in the same way. I then tried to re-download the A20+ final dump from nyaa and patch, and now spicetools crashes out after the boot screen, so I'm going to keep working on what's going on with that since that can't be right. EDIT 2: Just to close the loop on this, I ended up working from the 8-part dump and just overwriting the music contents/data/ files using the clean A3 final patch .rar. That seems to have fixed my issues.
  2. I ran into something strange trying to work with the A3 FINAL 8-part dump from a couple pages back, and I was wondering if there was a fix for what I'm seeing. I noticed that Comet skater (コメット⇒スケイター, code 'cosc'), from what I can tell, has the main track and the menu preview version swapped (ingame fades to silence after 10 seconds, full song appears to play on the menu on hover). From what I can tell just searching on the song's code, those files look the right size with the right names. Is this mixup something that I can fix easily in the files, or would I have to decompile something?
  3. I'm glad you pointed this out, I had been using Asphyxia and had the sense that something was wrong with my scores, but I thought it was failing to save at all, not overwriting scores every time. I went through the exposed code like you have and made a very hacky solution. I think the real 'issue' is more to do with how it appears Asphyxia goes through the DDR DB file on launch and cuts out duplicate entries, but always keeps the latest. But that's just a guess, I didn't go through Asphyxia's code, I just assumed it would be out of my depth and I'd more quickly invent a fix on the plugin side. I'm confident my solution is a bad hack and it may have consequences I haven't seen yet, but from my limited messing around, it works. Beneath line 207 in usergamedata.ts, insert the following block: const scores = await DB.Find<Score>(refId, { collection: "score" }); let newHigh = false; let found = false; for (const sc of scores) { if (sc.songId == songId && sc.difficulty == difficulty) { found = true; if (sc.score < score) { newHigh = true; } } } if (newHigh || !found) { (...upsert blocks...) } Make sure to put the final if statement above the two following upsert blocks, and close the bracket after them. This way, the upserts will not fire unless a score exists and is lower than the score you are trying to save. I don't know if my check that the song exists is necessary, but I was worried this doesn't work correctly if you are beating a song for the first time and thought I'd just toss it in there.
×
×
  • Créer...