WatWowMap / DataParser

Raw data parser alternative to RealDeviceMap /raw endpoint
8 stars 8 forks source link

PVP Display Issue #35

Closed TurtIeSocks closed 4 years ago

TurtIeSocks commented 4 years ago

PVP-Issue

Same version of MapJS (1.6.4) for both. RDM on the left, DP on the right.

versx commented 4 years ago

Interesting I don't think I've seen it not show the IV's row, someone had mentioned there was an issue that only some of the individual values would be saved at times so maybe that has something to do with that. I know the percentage format is off because RDM saves it as 0.9972 while DP saves as 99.72 so MapJS is multiplying 99.72 * 100 to get the 9999%. I'll change the pvp script to match RDM's style for compatibility. The pvp filtering issue might be because DP can save Great, Ultra, or both stats while RDM only does both or none. (If that makes sense) So some filtering might need to be adjusted tbh.

For example, run this query against both databases pokemon table, RDM shouldn't return anything but DP should:

SELECT * FROM pokemon WHERE expire_timestamp > UNIX_TIMESTAMP() AND 
(
    pvp_rankings_great_league IS NULL AND
    pvp_rankings_ultra_league IS NOT NULL
);