victorcrimea
Community Members-
Posts
11 -
Joined
-
Last visited
-
Days Won
1
Everything posted by victorcrimea
-
I have an idea for a mod but have no idea how to start.
victorcrimea replied to Cyrus_Junior's topic in Tutorials & Guides
Good news is that it doesn't even need to be installed on all clients. It can be a mod without compatibility check. Since everyone has a simulation state, you as a host or as a NON host can write a chat message that "player X is training/building (SOMETHING)". If you want to start fast, ask Claude. If you want to rather make it by hand - look at GUI JS code and also how other mods are structured. -
TLDR: https://demo.veredus.io - play and watch here. 6v6 AI match in browser shown by Specula. [link to this exact moment] Hi all, I've been building Specula, a web service that lets you play, watch and replay 0 A.D. matches in a web browser. You don't need to install anything. You can try it by the link above. No registration is required. I already posted about the observer functionality, but now it is a fully self-contained service that also allow playing the game. The best way to try it is multiplayer. Grab a friend (or three), type a nickname, click "New game" and send them the room link. The demo server runs up to 9 player matches at once. If no one is around, there's always an AI-vs-AI match running that you can watch. It runs best in Chrome, but Firefox works too. Press F4 for some debug info if you like tinkering. It all started with this comment in another topic few years ago (https://wildfiregames.com/forum/topic/129222-hot-take-gui-mods-are-not-cheats-and-we-should-not-regulate-their-use-general-discussion-about-cheat-prevention/?do=findComment&comment=596312) and I took it as a personal challenge. Here some features beyon what original 0ad does: - you can play on any device that has a modern browser (keyboard and mouse also needed due to input specifics), be it ipad or chromebook, so now you can procrastinate on a work laptop where security team doesn't let you install 0ad. - you can enjoy multiplayer 0ad even if you or your friend only have IPv6 - you can observe matches from your phone. (touch support is OKAYish for observing, not suitable for playing) - Limit observers so that it's impossible to cheat via observing the match. The host picks the delay, and whether observers see everything, only explored areas, or nothing until the match ends. - Replay matches in the browser: Hosted matches are recorded. Replays have pause, speed control, a timeline you can scrub, and links to a specific moment. - Each match is essentially a vanilla 0ad game under the hood and you can download a replay that is playable in local 0ad. - Fair pause: server manages pause and allow for brief disconnects. If a player disconnects, the game can pause to give them time to come back. Each seat has a pause allowance, and a pause every player agrees to doesn't count against it. - improved setup screen: non-host now can choose their civ themselves - host migration: if original host leave the match, host rights migrate to the next available human player. - up to 15 players (on selected maps that support it) and theoretically unlimited observers - command delay is reduced from 800 to ~200ms and works consistently. - host's IP is never exposed in multiplayer matches - player never receives data from the fog of war How it works Each match runs in a headless copy of Pyrogenesis (no graphics) on the server. Your browser never runs the simulation, which is why a phone can keep up. The server turns the game state into a compact visual model of units, buildings, animations, territory and fog of war. It compresses that and sends it over a WebSocket, and the browser smooths movement between updates. The renderer is written in Rust, compiled to WebAssembly and drawn with wgpu (WebGPU, or WebGL2 where WebGPU isn't available). It uses 0ad;s own models, textures, animations and sounds, converted ahead of time into compact files and served via CDN. When you play, your orders go over the WebSocket to the engine on the server. You only ever connect to the website. Current limitations - no registration, everybody can name themselves however they want. - no moderation, so if you are sensitive to words refrain from reading the chat messages, or at leas disable observers chat in settings - no password protected games: by design, since this is a free demo server I want to be able to take a look at how you play. - no save/restore. - 0 A.D. 0.28 only, no mods. - It's still early. Expect rough edges and some differences from the regular game's interface. Please try a multiplayer game and tell me what breaks, either with the Feedback button or in this thread.
-
Hello. I have built a web-based observer for live 0ad matches https://map.veredus.io It uses client-server architecture, so simulation does not happen in the browser. Browser only renders what server sends as a compressed stream. Right now it randomly runs 1v1 or 4v4 match with all players being AIs to demonstrate capabilities. I specifically asking @Dunedan and @Stan for permission/API to get live matches IPs/ports from lobby so that they can be broadcasted instead of soulless AI playing with themselves. I believe such a webpage is a good landing to attract more (potential) players. Some features(in random order): - desktop and mobile view - ~30MB of stream data per hour - assets served via CDN (2.4 GB full game, but only what is shown is downloaded, saved to local storage via Cache API) - translations from original game - WebGPU and WebGL fallback - playback control: pause, seek, rewind. - delay to live match to prevent scouting via observation - sharing with current time offset "I" key or four finger tap on mobile cycles through debug panels. Settings allow changing the visual enhancements. Please also share your ideas at to how this can be used. Any feedback is welcome.
-
Dedicated server
victorcrimea replied to victorcrimea's topic in Game Development & Technical Discussion
@Stan here you go: docker run -it --rm --name veredus -p 20595:20595/udp -v veredus:/data ghcr.io/victorcrimea/veredus:latest-sidecar Then connect with stock client via direct ip. Try to run a match with AI. Disconnect and reconnect to check the rejoin with ai. -
Dedicated server
victorcrimea replied to victorcrimea's topic in Game Development & Technical Discussion
@Dunedan I'm thinking of adding a single-user lobby mode: one-time hosting using a single user account. Initiator connects via trusted address, lobby listing happens only when initiator is connected, nothing is ever sent to MUC chat. Rated game report can also be sent on behalf of the initiator. I know this a a grey area, but I'm open to suggestions, how to make it not disruptive to the community and still useful for players. -
I needed dedicated server for 0ad and I built it: Veredus is an unofficial dedicated server for 0 A.D. and it's out now. No player hosts the match, so it keeps going when someone leaves or has a bad connection(with a timeout). Dropped players get their slot back when they reconnect, and matches carry on after a server restart or killed. Players join with vanilla 0.28 game. An optional companion, the "sidecar", runs AI opponents on the server, lets players rejoin without asking state from player, and records results and replays. The server is free and open source. Code and setup instructions here: https://github.com/victorcrimea/veredus I only have Linux, so I'd really like to hear from anyone who can try it on Windows or macOS: does the server start, can players connect, and does the sidecar build and run? Please post bug reports, suggestions and questions here or as a GitHub issue. Veredus is not affiliated with Wildfire Games. Basically any feedback is welcome.
-
When you normally host a game, server is created under the hood with random controller secret. Then you connect (locally though) to your server and by prenting that secret you are identified as controller, so you can change match settings and start the game, kick and ban players. As of the rest of the questions: even though I called it dedicated server, it nothing more than "just server". I do not host it for public use. I expect others (and wildfiregames eventually) to use it to host their own games. As of logs, it doesn't store anything but of course it has lots of debug prints. But in general, it doesn't "know" more about you than any other Game howt in the lobby when they host normally. DDOS protection is not implemented. But it is possible to write integration with fail2ban, so that offenders(incorrect auth, impersonation, too much packets per minute) canbe banned on iptables level. I never knew that langames have any rules regarding mods compatibility. But if you host in lobby it shows mods of the controller as usual. Draw in stale somewhat harder to implement without server-side simulation. Draw in laggy game is very much possible, since it is easily observable from ping times. Could you please explain how is it a violation of the ToS hosting a single game from single(own) account? It is no different than hosting a game normally. Just server is topologically decoupled from the client.
-
Hey everyone, I've been working on a dedicated server for 0 A.D. and it's reached a point where I'd love to get some community feedback on it. The idea came from two problems that have bugged me (and probably many of you) for a while: players who can't host games and players rage-quitting rated games. What it does (implemented and working): Game hosting - players connect to the dedicated server instead of directly to each other. No more NAT headaches. If you have ipv4, you can play. Lobby integration - the server connects to the lobby and games appear in the game list like any regular hosted game. Player rejoin - If you disconnect (crash, or intentionally), you can rejoin the game in progress. The server keeps the session alive. Rejoining with AI still not supported. Automatic controller assignment - the first player to connect becomes the game controller. Unlimited observers - no cap on how many people can watch a game in progress. Server-authoritative pause - In rated games, the server controls pause functionality rather than leaving it up to players. No more abuse of the pause button to stall or tilt your opponent. Every player has a total budget of 3 minutes. It used both for pause time and disconnected time. Rage-quit detection. When a player disconnects from a rated game without resigning, the server posts a public message in the lobby chat. It won't stop anyone from quitting, but at least there's a visible record. I hope this can be integrated with existing lobby bots. Auto-restart - when last client disconnects, server is pruned and started again from scratch. The server supports following operating modes depending on how you want to integrate with the lobby: - no lobby, for direct IP connection. - single lobby account - use your own credentials to host advertise the game in the lobby. The problem is that you won't see your own game. TBD - multiple lobby account - server can use a pool of lobby accounts. In this case it can host as many games as number of accounts provided. At the moment this is against TOS, to use multiple user accounts. so this mode is a proof of concept only. Technical details for the curious The server is written in Rust. It's a network-only relay, it coordinates packet forwarding between clients but doesn't run the game simulation itself. The actual gameplay still uses pyrogenesis's existing lockstep networking model. the server just sits in the middle instead of one player acting as host. Code is here: https://gitea.wildfiregames.com/victorcrimea/0ad/src/branch/feature/dedicated-server/server What I'm looking for: I'd love to hear from real players what features are especially valuable to you? Would you use this? Any concerns about the approach, reliability, trust, anything really.
-
This https://gitea.wildfiregames.com/0ad/0ad/pulls/8758 Dedicated server partially solves this problem. When player leaves rated game without previously sending resign -> it is detected and reported. Can be automated to the rating bot. I also think that some grace period needed: players may connect and realize that their networking conditions are not allowing a good gameplay and disconnect or basically drop the connection. Maybe in first 2 minutes this is ok to tolerate.
-
While I'm against "wild west" in competitive gaming (in extremes it will become a challenge of automation tools). I completely agree with the incentive to make game fair by-design. 1. In order to make game fair and truly transparent it is essential to play competitive matches without fog of war. I understand it is not THAT fun, but at least it eliminates a possible map reveal hack. 2. I do not agree with the quote above that sharing only relevant state is not possible and here is where I come from: I can easily play 0ad game via Parsec(remote desktop application). So my host computer simulates and renders 0ad, captures frames and sends me only video stream which is limited to 10 mbit/s. Total video stream lag is 20ms (encode 7ms, network(LAN) 13ms, decode 10ms) and game is very much playable. Which is an extreme edge case showing that sending only relevant information is possible. So let's derive a useful solution from that: if two players Alice and Bob want to play a very important competitive match I could host a game for them on my computer. Running two vanilla instances of 0ad, and give them access via remote desktop(be it parsec or whatever else). Thus they won't be able to reveal what's under fog of war in any way and their computers will never access the full simstate. This last example shows that it is ultimately possible to do that. I assume that video stream(knowing nothing about it's content) is way less optimized that the game could be. I also totally understand that my network is low latency and supporting less reliable connections is harder, but again if you look at a video stream it gets jelly and pixelated when network has hiccups, it doesn't make game OOS. @bb_ what do you think about this?
