GithubHelp home page GithubHelp logo

phlarx / tm-ultimate-medals Goto Github PK

View Code? Open in Web Editor NEW
12.0 1.0 11.0 103 KB

An OpenPlanet plugin to show medal times in Trackmania games

License: GNU General Public License v3.0

AngelScript 100.00%
plugin trackmania openplanet maniaplanet trackmania2020 trackmania-turbo

tm-ultimate-medals's Introduction

Version Total Downloads Tags 1 Tags 2 Tags 3

An OpenPlanet plugin to show medal times in Trackmania games

tm-ultimate-medals's People

Contributors

codecat avatar phlarx avatar thaumictom avatar zai-tm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

tm-ultimate-medals's Issues

Permit right alignment

When against the right edge of the screen, variable window widths (due to map names) isn't great. Investigate allowing the window to align right.

MP4 - Script compilation failed on 1.11.0 update

Ultimate Medals won't load on MP4 after updating to 1.11.0. ScriptEngine log shows:

UltimateMedals UltimateMedals.as (503, 01) : INFO : Compiling void Main()
UltimateMedals UltimateMedals.as (627, 35) :  ERR : Both operands must be handles when comparing identity
Script compilation failed!

Personal Best is not shown when you've only played a map online in MP4/TM2

For personal best time in MP4, you get the time using this bit of code:

#elif MP4
      if(network.TmRaceRules !is null) {
        auto scoreMgr = network.TmRaceRules.ScoreMgr;
        pbest.time = scoreMgr.Map_GetRecord(network.PlayerInfo.Id, map.MapInfo.MapUid, "");
        pbest.medal = CalcMedal();
#endif

But I've noticed that when you've only played maps online, this doesn't give you a result because TmRaceRules is null

billede

So you end up with a personal best that's blank:

billede

Add "next medal" mode

The mode will dynamically display only the faster medal nearest to the PB (and fastest medal (usually author) if none are faster)

Add alternate medal images

Instead of colored dots, allow displaying the medals as raster images.

Needs images of same size/format for all of:

  • MP4
  • TURBO
  • TMNEXT

MP4 requires dev mode

I think just needs a re-sign because it's been so long, and it might pre-date the addition of sig checking.

Medal sorting is unstable

If one input is int(-1) and the other is int(INT_MAX), the sorting function is unstable (returns int(INT_MIN) in both directions).

Better times alignment

For times near the 1-hour barrier, or even the 10-minute barrier, times can get hard to compare at a glance, and so alignment at the last ':' would help (if possible)

Add an option to truncate extremely long track names or split them up in 2 lines

Todays TOTD "Backwards Progression ft AgentWhiskey & Henkisme" has such an extremly long name that the HUD takes up a third of the width of my screen. I am exaggerating but its immense.

image

I would be cool if that could be adjusted somehow.

Maps containing "ft" or "ft." could be split in 2 lines, maybe even with a lower fontsize for the 2nd line or something

Null pointer access on 1.6 on MP4

I got the following null pointer access exception in my log when I switched from a public server to starting a local network server.

[   ScriptRuntime] [17:55:05]  Script exception: Null pointer access
[   ScriptRuntime] [17:55:05]    UltimateMedals.as (line 379, column 9)
[   ScriptRuntime] [17:55:05]      #0  void Main() (UltimateMedals.as line 379)

Seems to be this line: (pbest is null?)

pbest.time = scoreMgr.Map_GetRecord(network.PlayerInfo.Id, map.MapInfo.MapUid, "");

Microfreezes when playing online in Maniaplanet

When you play on an online server in Maniaplanet with the plugin enabled, the game has micro freezes 1-2 times/second.
As soon as the plugin is disabled the freezes disappear. These also do not appear in solo.

Tested on the Smurfen.net[Canyon] server

Investigate font scaling

...and scale the whole window by extension.

There was a OP bug that halted progress earlier, which is now fixed, and so the investigation should continue.

MP4 requires dev mode

I think just needs a re-sign because it's been so long, and it might pre-date the addition of sig checking.

Permit displaying additional map info, such as TMX IDs

May be useful for streamers with viewers looking to download the map.

Possible additional info to consider:

  • MX/TMX ID
    • useful and relatively easy to add, but relies on info external to the game
  • Map weight (coppers)
    • unlikely to be very useful, existed on TMNF/TMUF UI but removed since
  • Map ratings, from TMX or elsewhere
    • better leave that to dedicated plugins, I want to keep this as lightweight as possible
  • Creation date
    • mildly useful for the ice changes, or other future physics tweaks, but low importance

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.