MLFeed: Race Data

A plugin by XertroV(Trusted developer)

All versions

0.5.15

4 months ago

Download 0.5.15

Requires at least Openplanet 1.26.0

add to Player class:

  • uint[]@ NbRespawnsByCp a count of respawns by CP
  • uint[]@ RespawnTimes array of the players respawn times
  • bool PlayerIsRacing if the player is spawned and has not finished
  • bool Eliminated if the player is not spawned and has not finished (indicates a DNF on teams, KO, etc)

0.5.14

5 months ago

Download 0.5.14

Requires at least Openplanet 1.26.0

  • Fix lap detection when a map has LapCount = 0 set (hides Lap 1/1 when using a multilap in a map; affects TOTD 2023-12-10)

0.5.13

8 months ago

Download 0.5.13

Requires at least Openplanet 1.26.0

  • Support next game version (change of script location)
  • Fix rare race condition that can occur when joining a server and a player leaves shortly after.

0.5.12

8 months ago

Download 0.5.12

Requires at least Openplanet 1.26.0

  • Fix bug with LapsNb & CPsToFinish on a server after playing a map with > 1 lap.

0.5.11

8 months ago

Download 0.5.11

Requires at least Openplanet 1.26.0

  • Add accurate number of laps (informed by game mode): .LapCount_Accurate
  • Refactor .CPsToFinish to account for proper number of laps
  • Add .IsFinished getter to player object -- it is just .CpCount == RaceData.CPsToFinish
  • Add .Rules_GameTime, .Rules_StartTime, and .Rules_EndTime to race data for convenience

0.5.10

9 months ago

Download 0.5.10

Requires at least Openplanet 1.25.32

  • Fix COTD quali data in race data v4
  • Add COTD quali data to demo UI

0.5.8

9 months ago

Download 0.5.8

Requires at least Openplanet 1.25.32

Add COTD Qualification data. New properties in RaceData_V4:

// Qualification time known locally
int COTDQ_LocalRaceTime;
// Qualification time according to the API
int COTDQ_APIRaceTime;
// Qualification Rank, updated regularly (3-7s)
int COTDQ_Rank;
// Time you joined the server
int COTDQ_QualificationsJoinTime;
// Stage that qualification is in;
QualificationStage COTDQ_QualificationsProgress;
// true when you load into a server before it has gotten your record from the API
bool COTDQ_IsSynchronizingRecord;
// Incremented each time any COTDQ thing is updated
int COTDQ_UpdateNonce;

0.5.7

11 months ago

Download 0.5.7

Requires at least Openplanet 1.25.32

  • Ensure BestRaceTimes is never null and update comment

0.5.6

12 months ago

Download 0.5.6

Requires at least Openplanet 1.25.32

  • Fix possible rare script exception when Player.Score is null

0.5.5

1 year ago

Download 0.5.5

Requires at least Openplanet 1.25.32

  • Comment out code that optimistically updated BestTime and BestRaceTimes based on CurrentRaceTimes data (may fix an RMT bug).
  • Check if the map changed each frame, rather than once every 60 frames.

0.5.4

1 year ago

Download 0.5.4

Requires at least Openplanet 1.25.32

Fix misuse of #elif preprocessor statement.

0.5.3

1 year ago

Download 0.5.3

Requires at least Openplanet 1.25.32

This update improves ghost data with info about currently loaded ghosts.

  • Additions to GhostData:
    • .SortedGhosts -- an array of all ghosts loaded this session, sorted fastest to slowest
    • .LoadedGhosts -- an array of currently loaded ghosts only, sorted fastest to slowest
    • .NbLoadedGhosts -- the number of ghosts in .LoadedGhosts
  • Addition to GhostInfo_V2:
    • .IsLoaded -- true initially and changed to false when the ghost is unloaded

Additionally, a setting has been added to allow viewing the demo windows when running outside of developer mode. (Defaults to true in dev mode, and false otherwise.)

0.5.2

1 year ago

Download 0.5.2

Requires at least Openplanet 1.25.15

Matchmaking Support

Expose MM info:

  • Clan (Team) Scores, current MVP, Players Finished, Points Limit, Points Repartition, Ranking mode, Round Number, Round Winning Clan, Start of round indicators, Team Populations, Teams Unbalanced flag, Warm Up flag
  • ComputePoints function to calculate player scores and team scores at the end of a round, using current data, given an order that players finish.

Add PlayerCpInfo V4:

  • Added properties: int RoundPoints, int Points, int TeamNum, bool IsMVP, uint CurrentLap, string WebServicesUserId, string Login

0.4.4

1 year ago

Download 0.4.4

Requires at least Openplanet 1.25.15

Race Data v3

  • add .BestLapTimes to PlayerCpInfo_v3
  • populate current CP times and best lap times after joining a new server. This means a players CP times will always be accurate, unlike previously where CPs taken prior to joining the server would have a time of 0.

0.4.3

1 year ago

Download 0.4.3

Requires at least Openplanet 1.25.15

  • Fix for rare crash on map load where player score data is accessed too early.

0.4.2

1 year ago

Download 0.4.2

Requires at least Openplanet 1.25.15

Fix path not returning value.

0.4.1

1 year ago

Download 0.4.1

Requires at least Openplanet 1.25.15

0.4

  • Update access interface to race data and ghost data
  • Add respawn data for all players (number of respawns, last respawn time & cp, time lost to respawn (overall and by cp), theoretical time (i.e., no-respawn time)
  • Other updates to PlayerCpInfo via PlayerCpInfo_V2
  • Add new sort method to race data: Race_Respawns -- it's like the Race method but immediately updates to account for time lost to respawns
  • Improve Race Feed Demo UI
  • Add some properties to GhostInfo

Upgrade guide: https://github.com/XertroV/tm-mlfeed-race-data/blob/master/UPGRADE_v0.4.md

Full Docs: https://github.com/XertroV/tm-mlfeed-race-data/blob/master/MLFeed.autodoc.md

0.3.8

1 year ago

Download 0.3.8

Requires at least Openplanet 1.25.15

Added MLFeed::GetPlayersBestTimes(const string &in playerName) to get the best times set by a player since map load. (It's what the server shows CP splits against)

0.3.7

2 years ago

Download 0.3.7

Requires at least Openplanet 1.25.15

  • 0.3.6: Added Ghost Data (thx for the request, @Orange)
  • 0.3.7: Fix bug with player rankings (.taRank and .raceRank) where they would be off by 1 for a short while when a player left.

0.3.5

2 years ago

Download 0.3.5

Requires at least Openplanet 1.25.15

  • Add field LastRecordTime to race data. When the player sets a new personal best, this is set to that time. Reset to -1 at the start of each map.
  • Update readme / docs

0.3.3

2 years ago

Download 0.3.3

Requires at least Openplanet 1.25.15

  • fix sorting race order when in non-race modes (i.e., player's don't spawn at the same time)

0.3.2

2 years ago

Download 0.3.2

Requires at least Openplanet 1.25.15