Hi Vladisslavbelov,
I'm checking out the 6433 ticket you mentioned and Norse_Harold gave me some really good pointers yesterday. However, I didn't manage to solve the problem so I reinstalled the game using .deb instead.
This is what I've been doing now.
1. Located public.zip and extracted TitleDisplay.js
2. Modified line 11 by adding the config mentioned in ticket 6433.
/**
* This class choses the title of the loading screen page.
*/
class TitleDisplay
{
constructor(data)
{
let loadingMapName = Engine.GetGUIObjectByName("loadingMapName");
loadingMapName.caption = sprintf(
data.attribs.mapType == "random" ? this.Generating : this.Loading,
{ "map": translate(data.attribs.settings.mapName || data.attribs.settings.Name) });
}
}
TitleDisplay.prototype.Generating = translate("Generating ā%(map)sā");
TitleDisplay.prototype.Loading = translate("Loading ā%(map)sā");
3. Copied the modified TitleDisplay.js to /usr/share/games/0ad/mods/public
Unfortunately, I got the same error
ERROR: JavaScript error: gui/common/l10n.js line 69
Script value conversion check failed: v.isString() || v.isNumber() || v.isBoolean() (got type undefined)
translate@gui/common/l10n.js:69:36
TitleDisplay@gui/loading/TitleDisplay.js:11:13
init@gui/loading/loading.js:10:19
switchToLoadingPage@gui/gamesetup/Controllers/GameSettingsController.js:282:10
pollPendingMessages@gui/gamesetup/NetMessages/NetMessages.js:42:13
onTick@gui/gamesetup/SetupWindow.js:106:29
@gui/gamesetup/SetupWindow.js:57:64
ERROR: GUI page 'page_loading.xml': Failed to call init() function
ERROR: JavaScript error: gui/loading/loading.js line 22
g_LoadingPage is undefined
reallyStartGame@gui/loading/loading.js:22:2
GAME STARTED, ALL INIT COMPLETE
ERROR: Out-Of-Sync on turn 1
Players: user
Dumping state to /home/user/.config/0ad/logs/oos_dump.txt
Harold asked me about mods yesterday and I didn't see any. However, today, looking at the .deb installation, there is a file called mod.json in the same public folder. Don't know if that can be a problem. It looks quite empty.
{
"name": "0ad",
"version": "0.0.26",
"label": "0 A.D. Empires Ascendant",
"url": "https://play0ad.com",
"description": "A free, open-source, historical RTS game.",
"dependencies": []
}
Harold also mentioned that the problem can be on the other side, on my computer. Because we noticed that if my daughter hosted a game, my computer game crashed instead, with totally different errors. That is for sure pretty darn strange.