phlarx / tm-checkpoint-counter Goto Github PK
View Code? Open in Web Editor NEWAn OpenPlanet plugin to show checkpoint counts in Trackmania games
License: GNU General Public License v3.0
An OpenPlanet plugin to show checkpoint counts in Trackmania games
License: GNU General Public License v3.0
Depends on OP 1.21.3 or later being available for MP4 and Turbo
When installing this plugin, script compilation fails. This might be related to a recent update to the PlayerState or MLFeed plugin.
Relevant log messages:
\$aaa(08:52:27) \$ff7 ScriptRuntime \$997PluginManager \$z\$ff0Installing plugin with site ID 79 and identifier "CheckpointCounter"\$z
\$aaa(08:52:28) \$7f7 ScriptEngine \$997CheckpointCounter \$z\$f00PlayerState.op/:/AR_Data.as (428, 48) : ERR : Identifier 'PlayerCpInfo_V3' is not a data type in namespace 'MLFeed' or parent\$z
\$aaa(08:52:28) \$7f7 ScriptEngine \$997CheckpointCounter \$z\$f00PlayerState.op/:/AR_Data.as (428, 3) : ERR : Shared type 'sTMData' doesn't match the original declaration in other module\$z
\$aaa(08:52:28) \$7f7 ScriptEngine \$997PluginManager \$z\$f00Script compilation failed!\$z
\$aaa(08:52:28) \$7f7 ScriptEngine \$997PluginManager \$z\$777Loaded zipped plugin 'CheckpointCounter' (version 3.1.0)\$z
Openplanet version: 1.25.45
Plugin versions:
A lot of people have copied the logic for their own plugins, so maybe make the implementation a little easier to just drop in to other projects
PlayerState seems to have some performance issues with full servers; I've heard that MLFeed avoids those issues.
Possibility to add an option to hide the counter if the number of checkpoints on the map is 0 (eg. Royal maps, since Royal don't allow CPs)
As the current method is technically just an estimate, this could be significantly improved.
Reference of possible strategies:
The field comes from the default 3 laps... need to check for the presence of a multilap start/finish waypoint
If checkpoints are placed very close to each other and the car's speed is very high going through them, not all of them are counted. If the framerate cap is lowered, the problem worsens, so it seems to be caused by taking multiple checkpoints in a single frame. It is easily reproduceable on this map: https://trackmania.exchange/tracks/view/141153
Change the please report this map to Phlarx#1765 on Discord
message to point to this Github issues page instead.
Add a setting to load and display with a user-defined font. Look to the Dashboard plugin for an implementation example.
Suggested by KevindeB#5500 in the OP discord.
Offer a color-editable background, since the values can be difficult to see in some environments.
Look to Ultimate Medals and Dashboard for inspiration
Is there a tutorial page on the OP site? Otherwise a text tutorial is good.
This is deprecated.
Use const string &in str
instead of string str
and similar.
Can you add an option to show the checkpoint counter at times when not driving, such as during intros and after a finish
(I know this is possible since my UCI plugin works during these times)
You may want to use -
or similar instead of 0
for the taken checkpoints during these times, idk
When driving a map in the map editor, the plugin doesn't seem to count the checkpoints.
The plugin is able to detect the total number of CPs on the map, but it will always stay on 0 out of X CPs.
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.