Open Willster419 opened 4 years ago
here's the latest plugins.py
plugins.py.txt
Looks like the updated game code now expects the last parameter, value, to be a a list or tuple, and the marker is the 2nd value in the list/tuple. So this:
g_sessionProvider.shared.feedback.onMinimapFeedbackReceived(
FEEDBACK_EVENT_ID.MINIMAP_SHOW_MARKER, self._vehicle_id, self._action)
Needs to be this:
g_sessionProvider.shared.feedback.onMinimapFeedbackReceived(
FEEDBACK_EVENT_ID.MINIMAP_SHOW_MARKER, self._vehicle_id, (???, self._action))
Not sure what the 1st value should be.
Also note that I'm not really finding much time to work on this anymore. So it might take a while before I can fix this. I should probably just mark this mod as unmaintained as I'm not really giving it the attention anymore that it should receive.
The code in 1.9:
def __onMinimapFeedbackReceived(self, eventID, entityID, value):
if eventID == FEEDBACK_EVENT_ID.MINIMAP_SHOW_MARKER and self.__animationID:
if avatar_getter.getVehicleIDAttached() == entityID:
self._invoke(self.__animationID, 'setAnimation', value)
The code in 1.10.1:
def __onMinimapFeedbackReceived(self, eventID, entityID, value):
if eventID == FEEDBACK_EVENT_ID.MINIMAP_SHOW_MARKER and entityID != self.__playerVehicleID:
if entityID in self._entries:
entry = self._entries[entityID]
if (self.__isObserver or not avatar_getter.isVehicleAlive()) and avatar_getter.getVehicleIDAttached() == entityID:
return
marker, _ = entry.isInAoI() and value
self._invoke(entry.getID(), 'setAnimation', marker)
I'd assume (self._action, None)
should work?
Hi, There's a bug with the mod in 1.10.0.4:
My guess is the method args needs to be updated?