Table of Contents

[Script component] Basic leaderboard

The goal of this script component is to allow the map developer can easily have the leaderboard feature on their map. Please feel free to give feedback or report bugs or feature requests.

Feature of this leaderboard script component

Note: It will update data every 12 seconds. (this is for the safety of the server.)

Requirement for your map before use

How to use (3 mins)


Download the file and paste it into your map (into the UI's script)


Beware, do not paste in 1 line like this. This is wrong.

This is correct

Note: The above video shows how to obtain the UI ID from the PC version only. For the mobile phone, Please see the below section.
 Finish, you can run the map. The leaderboard will work now.


(Optional) How to get UI Id on mobile phone

Please see this document. https://dev-wiki.mini1.cn/cyclopdeia?wikiMenuId=3&wikiId=1374

(Optional) Advance setting

Change this variable if you want to get more or less ranking data. The default is the top 10.

Change this variable if you want the leaderboard to update so often or slower (the default is to update every 12 seconds). But beware, don't update the leaderboard too often, the leaderboard may crash. You can see more details in this document. https://dev-wiki.mini1.cn/cyclopdeia?wikiMenuId=2125&wikiId=2208
Actually, I don't recommend anyone change this value.

(Optional) Display leaderboard sync time counter

(Optional) Future improvement


Code description

Function "callback2()"

!!! And it is very important to know that after you call the cloud server API to get the data from the leaderboard, you will not immediately receive the callback. The callback may delay return up to several seconds or sometimes maybe a minute.

Function "Game_Run()"

Function "mysplitlb()"

Function "Player_NewInputContentLB()"

Function "Game_PlayerEnterLB()"