Raised This Month: $138 Target: $400

Sorting a tree of Key Values

Post New Thread Reply   
Thread Tools Display Modes
Author Message
Senior Member
Join Date: May 2015
Old 09-07-2019 , 04:22   Sorting a tree of Key Values
Reply With Quote #1

Had someone request a mod that includes a !top10 command - which outputs the top 10 highest times per map.
He requested that it be done without a database (so using key values & a local cfg file).

I'm about 70% done, but trying to figure out a way to sort the "leaderboard_times" -> "highest_times" -> "MAP NAME HERE" categories, since I'll need to associate a round ID with each time, while rearranging it.

I thought about rearranging the CFG file so directly underneath the map name, is the rank (#1 - 10), then the Round ID & time associated with it. But it still seems cumbersome.


Any suggestions?

sample CFG
dustinandband is offline
Veteran Member
Join Date: Mar 2010
Location: m_flZipcore
Old 09-07-2019 , 05:02   Re: Sorting a tree of Key Values
Reply With Quote #2

Customer knows whats good for him KAPPA
zipcore is offline

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -4. The time now is 03:46.

Powered by vBulletin®
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Theme made by Freecode