/** * wtmm_static.fetch_clusters_list: the list of server regions ("clusters") the player can * pick for matchmaking. * * The stock UI script asks for it right after the matching sign-in * (gui.vromfs.bin scripts/onlineInfo/clustersManagement.nut, updateClustersList): the answer * must carry a non-empty array "clusters" of cluster names, otherwise the script retries and, * after MAX_FETCH_RETRIES (5), signs the player out — the endless re-login loop seen in lab * run 6. The names are the ones the stock scripts know (scripts/onlineInfo/defaultClusters.nut * maps every country to one of them and preselects it; the UI shows loc "cluster/"). * * Everything runs on the player's machine, so the region has no effect on where anything * connects; the list only has to be valid for the stock UI. */ import type { MatchingRequestHandler } from './matching-requests.ts'; const CLUSTERS = ['EU', 'NA', 'CIS', 'SA'] as const; export const fetchClustersList: MatchingRequestHandler = () => ({ clusters: [...CLUSTERS] });