Raised This Month: $138 Target: $400
 34% 

Sorting a tree of Key Values


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
dustinandband
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.

https://i.imgur.com/fbIeHtM.png
https://i.imgur.com/g0v9EX5.png

Any suggestions?

sample CFG
Spoiler
dustinandband is offline
zipcore
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
Reply


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