Jump to content

[SOLVED] Debian 0.25a no multiplayer


year0
 Share

Recommended Posts

Hello, folks.

I finally managed to install the latest version of 0ad through Debian backports.

Sadly, the game only seems to work fine with Single Player, as I get a series of strange error messages as soon as I try to load any online content such as the Terms of Service, Terms of use or try to join the lobby.

 

Does anyone know how to solve this? I've previously tried to install 0ad through both Snap and Flatpak and the result was even worst.

I am running Debian GNU/Linux 11 (bullseye) x86_64.

 

Would accept any additional solution to running 0.25 in stable Debian. I can't stand having to resort to Windows for a game that is and has always been UNIX friendly.

Thank you in advance.

 

Error Transcript:

ERROR: JavaScript error: gui/termsdialog/termsdialog.js line 69
Script value conversion check failed: v.isString() || v.isNumber() || v.isBoolean() (got type undefined)
  initLanguageSelection@gui/termsdialog/termsdialog.js:69:4
  init@gui/termsdialog/termsdialog.js:22:2
  openTerms@gui/common/terms.js:10:9
  initLobbyTerms/</button.onPress@gui/prelobby/common/terms/termslobby.js:47:13
ERROR: JavaScript error: gui/termsdialog/termsdialog.js line 69
JS_ReportError was called
  initLanguageSelection@gui/termsdialog/termsdialog.js:69:4
  init@gui/termsdialog/termsdialog.js:22:2
  openTerms@gui/common/terms.js:10:9
  initLobbyTerms/</button.onPress@gui/prelobby/common/terms/termslobby.js:47:13
ERROR: GUI page 'page_termsdialog.xml': Failed to call init() function

Screenshot from 2022-01-07 17-43-58.png

Link to comment
Share on other sites

4 hours ago, year0 said:

Does anyone know how to solve this?

Hi. Try start game with english locale:
 

LANG=en_EN 0ad

patch:
 

Spoiler

diff --git a/binaries/data/mods/mod/gui/termsdialog/termsdialog.js b/binaries/data/mods/mod/gui/termsdialog/termsdialog.js
index 4420e990bb..70869d08bc 100644
--- a/binaries/data/mods/mod/gui/termsdialog/termsdialog.js
+++ b/binaries/data/mods/mod/gui/termsdialog/termsdialog.js
@@ -62,7 +62,7 @@ function initLanguageSelection()
 
         // current locale
         let currentLocaleDict = Engine.GetFallbackToAvailableDictLocale(Engine.GetCurrentLocale());
-        if (currentLocaleDict != baseNames[0])
+        if (currentLocaleDict != baseNames[0] && baseNames.indexOf(currentLocaleDict) != -1)
             list.push(displayNames[baseNames.indexOf(currentLocaleDict)]);
 
         return list;

 

4 hours ago, year0 said:

I've previously tried to install 0ad through both Snap and Flatpak and the result was even worst

If you write error lines, we will try to solve

Link to comment
Share on other sites

  • Silier changed the title to [SOLVED] Debian 0.25a no multiplayer

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...