hohav / py-slippi

Python library for parsing SSBM replay files
MIT License
56 stars 25 forks source link

Item Ownership Data #43

Open Samoe97 opened 1 year ago

Samoe97 commented 1 year ago

Hello, I am having trouble with determining the ownership of an item in a replay file. Currently, my system is to get an item once it's spawned, then check both player characters' states and see who spawned it. This is tedious as it requires manually finding and checking for the character state string value for each unique spawnable item in the game.

I could be wrong but I was under the impression there is an "Owner" flag in Melee that would help determine which player spawned an item, but I can't figure out if this is possible to access via Py-Slippi. Thank you in advance for any help.

Kered13 commented 1 year ago

The item owner field was added in Slippi 3.6.0. I'm not sure what version of Slippi PySlippi aims to support at the moment, but it does not currently support the Item owner field. Should be pretty easy to add though. You could probably do it locally if you want.