Project

General

Profile

Feature #854630

New server command "/list rulesets" to list the available rulesets

Added by Jacob Nevins 6 months ago. Updated 6 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Server
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:

Description

We already have the logic in the server to enumerate .serv files, to support PACKET_RULESET_CHOICES for single-player ruleset selection. We may as well make it easy to see what rulesets there are at the server prompt; we have a lot these days.

(This does further entrench the convention that a .serv file on the data path is associated with a ruleset, where strictly they could be unrelated to rulesets.)

While I'm in there:
  • There doesn't seem a good reason to cache the list, as we do currently. (The caching has been there since the feature was first added.)
  • Handle overlong / too many rulesets better (don't send client truncated filenames in PACKET_RULESET_CHOICES; add logging).
m-list-rulesets.patch (9.44 KB) m-list-rulesets.patch master Jacob Nevins, 2020-01-03 01:34 AM
30-list-rulesets.patch (9.44 KB) 30-list-rulesets.patch S3_0 Jacob Nevins, 2020-01-03 01:34 AM
26-list-rulesets.patch (9.46 KB) 26-list-rulesets.patch S2_6 Jacob Nevins, 2020-01-03 01:34 AM

History

#1 Updated by Jacob Nevins 6 months ago

#2 Updated by Jacob Nevins 6 months ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF