Razviar / marvelsnaptracker

Marvel Snap Tracker repo
https://marvelsnap.pro/
154 stars 34 forks source link

How to get it running locally? #45

Open twynsicle opened 1 year ago

twynsicle commented 1 year ago

Had a few ideas I wanted to try, given access to some of the game data, so I thought this application might be a good base to build from. Unfortunately, having some issues running the app locally,

ERROR in unable to locate 'C:/workspace/marvelsnaptracker2/src/our-active-win/*.dll*' glob

ERROR in unable to locate 'C:/workspace/marvelsnaptracker2/src/our-active-win/*.pdb*' glob

Which causes a crash with

pinging psList
Starting parser from Global...
pinging psList
There will be sent this number of events:  10
This is user ID: a2e5e8dc-d285-4049-b0dd-70f2c5b73bbb
pinging psList
There will be sent this number of events:  8
This is user ID: a2e5e8dc-d285-4049-b0dd-70f2c5b73bbb
found SNAP
    at rejectAndCleanup (node:electron/js2c/browser_init:2:77411)
    at EventEmitter.stopLoadingListener (node:electron/js2c/browser_init:2:77786)
    at EventEmitter.emit (node:events:513:28) {
  errno: -2,
  code: 'ERR_FAILED',
  url: 'http://localhost:3000/overlay_window'
}
{
  msg: 'Failure to load url in overlay window',
  err: "Error: ERR_FAILED (-2) loading 'http://localhost:3000/overlay_window'",
  type: 'Error',
  entry: 'http://localhost:3000/overlay_window',
  stack: "Error: ERR_FAILED (-2) loading 'http://localhost:3000/overlay_window'\n" +
    '    at rejectAndCleanup (node:electron/js2c/browser_init:2:77411)\n' +
    '    at EventEmitter.stopLoadingListener (node:electron/js2c/browser_init:2:77786)\n' +
    '    at EventEmitter.emit (node:events:513:28)'
}

I tried disabling the overlay entirely to sidestep the issue, but that means that I only get game updates between games, not during. Guessing one of those missing libraries is what is able to read the Snap file state in memory, rather than what is being saved to the file system?

Any chance the repo is just missing a couple of files? or is there some extra steps to build the missing files?

Razviar commented 1 year ago

The thing is, we use injection written in C# to get data from the live match. There's VS project you need to build, so you'll get our-active-win dlls and then you'll be able to run it.