GreepTheSheep / openplanet-MXRandom

An Openplanet plugin that takes a random map from MX / TMX and play it
https://openplanet.dev/plugin/mxrandom
GNU General Public License v3.0
20 stars 29 forks source link

RMT null pointer access on collecting goal medal after medal below goal was collected #89

Closed dwhitacre closed 1 year ago

dwhitacre commented 1 year ago

Describe the bug During this RMT run someone on the server got the gold medal and then 2 minutes later the author (goal) medal was obtained. When the author medal was obtained a null pointer access was thrown leading to the plugin not correctly switching maps.

To Reproduce Steps to reproduce the behavior: Seems to be caused by someone getting gold and then author medal happening later. It was on a prepatch ice map as well.

Expected behavior I expect the map to successfully switch and no null pointer access to log

Screenshots Relevant Logs:

Openplanet (please complete the following information):

Additional context It seems api calls to mx start to fail after the event as well. Manually skipping maps would successfully connect to the api and download the next map. This was used for the rest of the vod to manually skip maps after author medal was collected. Seemed to never recover from the null pointer access issue.

dwhitacre commented 1 year ago
[    ScriptEngine] [00:37:30]  Loaded zipped plugin 'MXRandom' (version 2.3.4)

Seems was on 2.3.4 from what I can tell.

GreepTheSheep commented 1 year ago

Seems like it's the same as #81. But this issue has more details. Closing #81 for using this one.

XertroV commented 1 year ago

I believe this happened when:

I guess this probably happens shortly after the player joins, but not sure exactly.

Anyway, I have pushed a patch for MLFeed that should mean BestRaceTimes is always populated.