Resource icon

[Open Assets] Maplist 1

This is a map list utility that allows any player to return a sorted, filtered, and neatly formatted list of maps currently loaded with some information about their level headers. This can easily allow server admins and players to view maps currently loaded on a server and if certain common aspects like being placed into map hell have been modified by SOC.

And yo, Shoebill pictured here is from Etsii's character pack, which you should most definitely check out at this handy link here.

COMMANDS
"listmaps" by itself will display a brief help text describing arguments that the command can take. The command can take any number of arguments separated by spaces. Use the following arguments to control what the command returns:
  • hell - Shows only hell maps.
  • -hell - Hides hell maps.
  • sprint - Shows only sprint (circuit) tracks.
  • -sprint - Hides sprint (circuit) tracks.
  • gametype - Use one of the following gametypes to show only maps configured for that type of match: race, battle, solo. You can also use -race, -battle, and -solo to hide those maps configured for the specified gametype instead.
  • sort: - Sorts the resulting list of maps by a particular attribute you specify. Valid sort attributes:
    • sort:id - Sorts by map ID number (default).
    • sort:name - Sorts by map name A-Z.
    • sort:gametype - Sorts by gametype (due to how gametypes are structured, they will be sorted solo -> race -> battle).
    • sort:sprint - Sorts by sprint track status, with sprint tracks first and non-sprint tracks after.
    • sort:hell - Sorts by hell map status, with hell maps first and non-hell maps after.
  • any other argument - Any other argument not listed above will be treated as a name filter. The map list will be filtered by map name for what you provide. At this time, any name filters used are all or nothing -- if your map doesn't contain ALL searched terms, it won't show up. The filter also will not include "zone" which appears after majority of maps, unless "zone" appears in the map name somewhere other than the end.
An example usage of listmaps: "listmaps race hell sort:name". This will return all race maps in map hell, sorted alphabetically by name.

This script will put a lot of information into the console most of the time. The console will stop saving lines it has returned up to about 60, which makes it impossible to scroll any further up. Everything in the console gets saved to your log.txt, so if you need all of that info you can copy it from your log and use it elsewhere.

A huge thanks to Dr_Nope#0037 who allowed me to work on his original five minute script he made to help another user and turn it into this utility that I hope someone besides me will find useful.
  • kart0089.png
    kart0089.png
    1.1 MB · Views: 914
Author
freeman
Downloads
697
Views
3,575
Extension type
lua
File size
7.8 KB
MD5 Hash
be3d0016423ca064336f7d343b83f4e9
First release
Last update

More resources from freeman

Share this resource

Latest reviews

Welcome to releases!
Upvote 0
Back
Top