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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...