If anyone wants to try this is the first prototype of the spotter app that I am creating for the Kissmyrank Applink:
https://www.dropbox.com/s/kgs213kyaxrts4k/ac_kissmyrank_app.zip?dl=0
The app is divided into 3.
Kissmyrank Link to connect to the server
Kissmyrank Flags to show flags about penalties and warnings (and also other visuals)
Kissmyrank Messages to show messages
Flags are random atm, just messing with it for testing.
To define flags edit the py file and add to the flags controls:
Code:
"flag_id": {
"path": "filename",
"slot": slot#
},
Example:
Code:
"vsc": {
"path": "vsc.png",
"slot": 0
},
where vsc.png is the file in the images folder (need to be squared transparent PNG).
Slots are like this
0|1|2
0= permanent flags like VSC (will not disappear)
1= temporary flags like penalties and damage (will auto disappear after the amount of seconds you set)
2 = permanent flags like Drive-Through (will not disappear)
The other important part is under:
"event_map"
Here is where you bind events in Kissmyrank\Language\en.json to flags and text:
It goes like this:
Code:
"id": [flags [flag1, flag2], sound, shows [show_flag1, show_flag2, show_text], text slot, seconds]
Example:
In en.json you can find this line:
Code:
"money_penalty": "Penalty%s: %s %s. You now have %s.",
If you add this:
Code:
"money_penalty": [["penalty", "vsc"], "", [1, 1, 1], -1, 12],
You're telling the app to show the "penalty" flag and the "vsc" flag defined as above when the money penalty event occurs (doesn't really make sense right now, it was just for testing).
Sound leave empty (there is no sound right now).
Shows (third arg) work like this
If flags are [flag1, flag2]
Shows [1,0,1] means that you want to show flag 1, hide flag 2 and show the text (third one is text, must be there).
Text slots are like this:
0 -> first line (for VSC and formation lap, text will not disappear on its own)
1 -> second line (for DT and perma penalty, text will not disappear on its own)
-1 -> auto-choose first available temporary message line (will disappear after the amount of seconds set)
seconds is the amount of seconds in which the temp flag/messages will disappear
This is not required if you do not include temp flags (slot 1) or temp text (slot -1).
App is BETA, use it only for testing.
Works with Kissmyrank 1.6 and above (you can join KMR|Applink Dev Server and do some infractions to test).
Password is "1" (just 1).
If someone would like to provide PNGs for the various events, you're welcome.