-
Who's Online 2 Members, 0 Anonymous, 280 Guests (See full list)
-
Topics
-
Posts
-
Hi, I've been playing this game for a few days and it's pretty fun. When I tried to play with a friend in multiplayer, I couldn't—he couldn't join me and I couldn't join him (I was in the game lobby, not the one for connecting via IP). Several “connection terminated” errors or something like that kept popping up. We tried to join each other for quite a while until, somehow, I think I disabled the firewall for 0 AD and my friend did the same—some inbound and outbound rules using CMD—and after one attempt, we still couldn’t play. But then I logged in, and out of nowhere, the game appeared; I registered, and that’s when I managed to join. My friend shut down the server, and when he restarted it, I tried to join again but couldn’t, even because of the firewall thing, and today we tried again, we checked some firewall settings, and it was about some inbound and outbound rules; my friend was missing an outbound rule or something like that, I created it and I couldn’t get into his server, but after a few tries I managed to play with him again; it said something about logging in, and well, we wanted to start the game again but I couldn’t join, so we left it at that. And what I’d like to ask is, what’s causing this problem? Why was I able to join out of nowhere? I feel like it has something to do with the firewall because my friend got an error saying that something was blocking the connection, I think, but I’m not sure. It’s weird. I’ll send photos of the errors. By the way, I tried searching for how to play online or something similar in the forum and didn't find any results, which is why im writing this. If you have a solution for i can play with my friend without problems i would be very grateful, and sorry for my english i used a translator. 205848153_WhatsAppVideo2026-04-11at7_17_13PM.mp4
-
But there are text inputs when singing in to the multiplayer lobby. I guess a slider would work though
-
Making it a text input is definitely possible, but not straightforward, unfortunately. In the game settings code there are a lot of layers of abstraction, a lot of wrappers and super classes, to make adding new ones easy. Like the current dropdown. But there are no such classes for text inputs yet, since no game setting actually requires them. I suggest to try to make it a slider instead, this is easier since there are existing game setting controls that are sliders. See https://gitea.wildfiregames.com/0ad/0ad/commit/38eb999ff9d627ab319820a5fc77f332b100e32d
-
I am trying to make a text input box for starting resources. How would I make it text input: GameSettingControls.StartingResources = class StartingResources extends GameSettingControlDropdown { constructor(...args) { super(...args); this.dropdown.list = g_StartingResources.Title; this.dropdown.list_data = g_StartingResources.Resources; this.sprintfArgs = {}; g_GameSettings.startingResources.watch(() => this.render(), ["resources", "perPlayer"]); g_GameSettings.map.watch(() => this.render(), ["type"]); this.render(); } ...
-
