Files
Commonwealth-Online-Public/ui/views/CommonwealthOnline/browser/components/mock-data.js
T
andrew fe620020be Add PrismaUI HTML server browser & integration
Integrate a PrismaUI_F4-based HTML server browser and related tooling. Adds a ThirdParty submodule (framework-F4-Conversion), UI views (CommonwealthOnline browser HTML/JS/CSS), and multiple plugin headers/sources to bridge PrismaUI/Scaleform, handle menu input, and manage server browser data and actions (mock server list, join/connect flow).

Key changes:
- New build/deploy scripts: build-prismaui.bat, build-all.bat, deploy-all.bat, deploy-ui.bat and a PowerShell helper for linking the Ultralight SDK (ULTRALIGHT_SDK_PATH, default F:\\UltralightSDK).
- Plugin additions: F4TPrismaUI, F4TScaleformUI, F4TServerBrowserBridge, F4TServerBrowserData, F4TMenuInput, F4TDebugOverlay and implementations to create/show/hide the HTML view, forward controller input, register Scaleform functions (openManager/closeManager), and push UI events.
- Networking: add ConnectToServer(host,port) and keep ConnectToLocalServer() as wrapper; update connection logs and error handling.
- Main menu SWF/AS updates: updated MainMenu.swf and MainMenu.as to call closeManager() when leaving multiplayer and to integrate open/close hooks.
- Documentation: plugin/setup.md updated with PrismaUI build/deploy instructions.
- Removed Main_ModManager.swf (deleted).

Primary intent: provide an in-game HTML server browser (toggleable with F9 or Scaleform calls), wire up controller input, and add build/deploy workflow for PrismaUI/Ultralight so developers can build and deploy the UI and plugin together. Mock server data is used for now; network join/connect plumbing is provided for local/dev servers.
2026-06-08 14:02:49 +12:00

101 lines
2.6 KiB
JavaScript

window.CO_MOCK_SERVERS = [
{
id: "nz-1",
name: "Commonwealth NZ #1",
region: "Oceania",
players: 6,
maxPlayers: 12,
ping: 32,
worldspace: "Commonwealth",
mode: "Co-op",
status: "Open",
modded: true,
passworded: false,
favorite: true,
description: "Relaxed co-op server for explorers and builders. No PvP. Help each other rebuild the Commonwealth.",
rules: ["No griefing or stealing", "Respect build sites", "Mic optional"]
},
{
id: "vault111",
name: "Vault 111 Co-op",
region: "North America",
players: 3,
maxPlayers: 8,
ping: 48,
worldspace: "Commonwealth",
mode: "Co-op",
status: "Open",
modded: false,
passworded: false,
favorite: false,
description: "Story-friendly co-op. Stay in sync with main quest progression.",
rules: ["No skipping major quest beats without group consent"]
},
{
id: "dc-rp",
name: "DC Wasteland RP",
region: "North America",
players: 10,
maxPlayers: 10,
ping: 72,
worldspace: "Commonwealth",
mode: "Roleplay",
status: "Full",
modded: true,
passworded: true,
favorite: false,
description: "Light roleplay server set around Diamond City trade routes.",
rules: ["Stay in character in voice", "No combat logging"]
},
{
id: "far-harbor",
name: "Far Harbor Expedition",
region: "Europe",
players: 4,
maxPlayers: 6,
ping: 118,
worldspace: "Far Harbor",
mode: "Co-op",
status: "Open",
modded: true,
passworded: false,
favorite: true,
description: "DLC-focused co-op run through Far Harbor content.",
rules: ["DLC content required", "Spoiler tags in chat for newcomers"]
},
{
id: "local-relay",
name: "Local Relay (Dev)",
region: "Local",
players: 0,
maxPlayers: 16,
ping: 1,
worldspace: "Commonwealth",
mode: "Co-op",
status: "Open",
modded: false,
passworded: false,
favorite: false,
host: "127.0.0.1",
port: 7777,
description: "Python relay used by the Commonwealth Online prototype. Start server/server.py before joining.",
rules: ["Development server only"]
},
{
id: "survival-hard",
name: "Survival Hardcore",
region: "Europe",
players: 2,
maxPlayers: 4,
ping: 95,
worldspace: "Commonwealth",
mode: "Survival",
status: "Open",
modded: true,
passworded: false,
favorite: false,
description: "Hardcore survival with limited respawns and shared resources.",
rules: ["Permadeath on disconnect during combat", "Shared stash rules apply"]
}
];