An OpenPlanet plugin to show medal times in Trackmania games
phlarx / tm-ultimate-medals Goto Github PK
View Code? Open in Web Editor NEWAn OpenPlanet plugin to show medal times in Trackmania games
License: GNU General Public License v3.0
An OpenPlanet plugin to show medal times in Trackmania games
License: GNU General Public License v3.0
An OpenPlanet plugin to show medal times in Trackmania games
A configurable hotkey which toggles window visibility.
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.
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!
Depends on OP 1.21.3 or later being available for MP4 and Turbo
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
So you end up with a personal best that's blank:
The mode will dynamically display only the faster medal nearest to the PB (and fastest medal (usually author) if none are faster)
Instead of colored dots, allow displaying the medals as raster images.
Needs images of same size/format for all of:
Use const string &in str
instead of string str
and similar.
I think just needs a re-sign because it's been so long, and it might pre-date the addition of sig checking.
If it freezes like so, the plugin must be reinstalled (or the game restarted?) to un-freeze it.
Only on plugin reload or map change (except PB, that one works fine to hide :P )
Fonts currently are not freed, and so cause a memory leak. See: openplanet-nl/issues#39
When that is fixed, reenable dynamic font loading.
Hey,
Could you add a setting to add the WR on top of all times if we don't hold it, and make only 1 time pb/wr if we hold it?
pleeeaase
when i pressed "next map" in the turbo campaign it showed the #095 medals but kept my pb from #094 as seen here https://prnt.sc/24nvuqf when i was 1:03.842 faster than STM
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).
Allow easier formatting for #6 and also make it simpler to toggle display off
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)
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.
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
Waiting for OP 1.23.3 to be available for all games
e.g. one to show everything, and one to show just the PB. Three slots?
If hotkey support added, one hotkey per preset.
See title.
Something in the latest game update must have broken the PB time being displayed on the widget.
Don't know if it's related to what Codecat mentioned in https://openplanet.dev/news/2022/march-31-game-update
PS: thanks for this awesome plugin btw ❤️
Not sure what changed, but it's old code + dead code; make it better.
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?)
tm-ultimate-medals/UltimateMedals.as
Line 379 in 35687bc
Since Championsmedal exports a getter for the CM time it would be neat if UM would support it, optionally. So all the times are neatly within one compact HUD. I always found it a little bit messy two have 2 HUDs that essentially do the same.
It could be an opptional dependency so there's no obligation to install anything.
https://gitlab.com/naninf/champion-medals/-/blob/main/src/export/Export.as
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
Once a run is completed, show that time (and possibly the autocalculated other medals) for hunting the map's AT
...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.
I think just needs a re-sign because it's been so long, and it might pre-date the addition of sig checking.
Something in the recent game update made it so that local-only PBs are no longer included in the standard best-time logic.
Theory: the times are only in Player.Score.BestRaceTimes, which might only be accessible via, e.g., MLHook
May be useful for streamers with viewers looking to download the map.
Possible additional info to consider:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.