The setup menu offers the vehicles and maps that came back
The front end's catalogs are hand-written from the console's RPConfig.xml, and the promoted resource file brought content they did not know about. Eleven vehicles added - dark, blktrn and neut, which the console names Blacker Puck, Black Tarantula and Neutrino, plus the eight community Blacker variants - and seven maps, keeping the console's own convention of bracketing non-arcade tracks in dashes. The football map list is deliberately untouched. The console config has its per-scenario invalid lists commented out, so it says nothing about whether the new tracks are football-legal, and guessing would put players on a map with no scoring zones. A note where the catalog is declared, not a check: validating the keys against RPL4.RES at menu time crashes, because the front end runs before the resource file is opened and GetResourceFile has nothing to search yet. That drift is real - this menu offered blkspk for a while before any vehicle resource backed it - but the place to catch it is offline against the built file, not in the boot path. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -33,6 +33,17 @@ namespace
|
||||
{ "brewers", "Brewer's Bane" },
|
||||
{ "pain", "Paingod's Passage" },
|
||||
{ "headoff", "Freezemoon's Freeway" },
|
||||
|
||||
// Maps that came with the promoted resource file. The console
|
||||
// config brackets their names in dashes, which is how it marks
|
||||
// the ones that are not original arcade tracks.
|
||||
{ "arena", "-- Arena (Small) --" },
|
||||
{ "demoderb", "-- Arena (Large) --" },
|
||||
{ "donut", "-- Donut --" },
|
||||
{ "tourdemars", "-- Tour De Mars --" },
|
||||
{ "trough", "-- Ares' Armpits --" },
|
||||
{ "wiserguys", "-- Wiserguy's --" },
|
||||
{ "rpweekend2014", "-- Zaxxis --" },
|
||||
};
|
||||
|
||||
// Football excludes pain/headoff and adds the football build of
|
||||
@@ -110,6 +121,23 @@ namespace
|
||||
{ "spitter", "Spitter" },
|
||||
{ "puck", "Armadillo" },
|
||||
{ "dragon", "Dragon" },
|
||||
|
||||
// Restored with the promoted resource file: cut from the .bld
|
||||
// after 4.10 shipped, back now that RPL4.RES carries them again.
|
||||
// Names from the console's own RPConfig.xml.
|
||||
{ "dark", "Blacker Puck" },
|
||||
{ "blktrn", "Black Tarantula" },
|
||||
{ "neut", "Neutrino" },
|
||||
|
||||
// Community variants that came with the same archive.
|
||||
{ "blkrpuck", "Blacker Armadillo" },
|
||||
{ "blkrbroc", "Blacker Broccoli" },
|
||||
{ "blkrdragon", "Blacker Dragon" },
|
||||
{ "blkrlepton", "Blacker Lepton" },
|
||||
{ "blkrquark", "Blacker Quark" },
|
||||
{ "blkrspk", "Blacker Speck" },
|
||||
{ "blkrtran", "Blacker Tarantula" },
|
||||
{ "blkrwasp", "Blacker Wasp" },
|
||||
};
|
||||
|
||||
const CatalogEntry kColors[] =
|
||||
@@ -1483,6 +1511,14 @@ Logical
|
||||
// LobbyRoomLeft: fall through to the setup menu
|
||||
}
|
||||
|
||||
// NOTE: the vehicle catalog below is hand-written while RPL4.RES is
|
||||
// built elsewhere, so the two can drift - this menu offered 'blkspk'
|
||||
// for a while before any vehicle resource backed it. Validating here
|
||||
// does NOT work: the front end runs before the resource file is
|
||||
// opened, so GetResourceFile() has nothing to search yet. If this is
|
||||
// worth guarding, do it offline against the built RPL4.RES (see
|
||||
// tools/resbuild) rather than at menu time.
|
||||
|
||||
for (;;)
|
||||
{
|
||||
FEState fe;
|
||||
|
||||
Reference in New Issue
Block a user