Jump to content

Javascript error when running in Ubuntu 20.04


Stéphane Charette
 Share

Recommended Posts

I upgraded my desktop to Ubuntu 20.04.  Which upgraded 0ad.  But now it wont run.  Instead, it logs this error many times per second:

ERROR: JavaScript error: Errors executing script event "Tick"
ERROR: JavaScript error: __internal(0) Tick line 0
ReferenceError: onTick is not defined
  __eventhandler0 (Tick)@__internal(0) Tick:0:1
ERROR: JavaScript error: Errors executing script event "Tick"
ERROR: JavaScript error: __internal(0) Tick line 0
ReferenceError: onTick is not defined
  __eventhandler0 (Tick)@__internal(0) Tick:0:1

 

I cannot seem to find any references to this error, so could use some help.  This is the version I have installed:

> dpkg -l | grep 0ad
ii  0ad                                           0.0.24~r23742-0ubuntu1~20.04~wfg0          amd64        Real-time strategy game of ancient warfare
ii  0ad-data                                      0.0.24~r23742-0ubuntu1~20.04~wfg0          all          Real-time strategy game of ancient warfare (data files)
ii  0ad-data-common                               0.0.24~r23742-0ubuntu1~20.04~wfg0          all          Real-time strategy game of ancient warfare (common data files)

 

0ad_screenshot.png

Link to comment
Share on other sites

Thanks, @Stan`, that helped me solve it.  In case anyone else runs into this:

  • Most of the errors were cause by a folder called ~/.local/share/0ad/mods/techtree.
  • I found if I completely deleted the folder called ~/.local/share/0ad/mods then it was rebuilt when the game would start up again, and this time with zero javascript errors.
Link to comment
Share on other sites

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...