Skip to content

TypeError when loading SVDX and scanning a card. #88

Description

@Biduleman

When I launch SVDX I get a white screen instead of the main screen.
When I scan a card, I get this error:

 [db] Database loaded: sdvx@asphyxia.db
[sdvx@asphyxia] ====================================
[sdvx@asphyxia] Calling common function
[sdvx@asphyxia] Game: ∇
[sdvx@asphyxia] Highest music id: 2375
[sdvx@asphyxia] TypeError: Cannot read properties of undefined (reading 'toString')
[sdvx@asphyxia] ====================================                                  

Removing the ".toString()" from

/handlers/common.ts

     songNum = (absVersion >= 6) ? Math.max(...mdb.mdb.music.map(m => parseInt(m['id']))) : songNum
      console.log("Highest music id: " + songNum)
      for (let i = 0; i <= songNum; i++) {
        var foundSongIndex = mdb.mdb.music.map(function(x) {return x['id']; }).indexOf(i.toString());
                                                                                            ^^^

fixes the issue and allows the game to start normally.

My logs say Game: ∇ but I had the same issue with Exceed Gear.

KFC-2025120900 and KFC-2026020300

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions