Jump to content

ERROR - JavaScript onTick is not defined


mahtande
 Share

Recommended Posts

As title say.

It's a constant repeat until forced exit, and preventing getting past initial screen. (The screen with buttons such as "options" and "exit".)

From interestinglog.html:

ERROR: JavaScript error: gui/pregame/BackgroundHandler.js line 11 this.backgrounds is null BackgroundHandler@gui/pregame/BackgroundHandler.js:11:41 MainMenuPage@gui/pregame/MainMenuPage.js:8:28 init@gui/pregame/mainmenu.js:14:3
ERROR: GUI page 'page_pregame.xml': Failed to call init() function
ERROR: Errors executing script event "Tick"
ERROR: JavaScript error: __internal(1) Tick line 1 onTick is not defined __eventhandler2 (Tick)@__internal(1) Tick:1:1
ERROR: Trying to use a sprite that doesn't exist ("productLogo").
ERROR: Trying to use a sprite that doesn't exist ("companyLogo").
ERROR: Errors executing script event "Tick"
ERROR: JavaScript error: __internal(1) Tick line 1 onTick is not defined __eventhandler2 (Tick)@__internal(1) Tick:1:1
[...]
ERROR: Errors executing script event "Tick"
ERROR: JavaScript error: __internal(1) Tick line 1 onTick is not defined __eventhandler2 (Tick)@__internal(1) Tick:1:1

Clicking EXIT yield:

ERROR: Errors executing script event "Press"
ERROR: JavaScript error: __internal(22) Press line 1 closeMenu is not defined __eventhandler28 (Press)@__internal(22) Press:1:1

Spec:

OS             : Linux 6.0.2-arch1-1 (#1 SMP PREEMPT_DYNAMIC Sat, 15 Oct 2022 14:00:49 +0000)
CPU            : x86_64, Intel Core i7-4710HQ @ 2.50GHz, 2.49 GHz
Memory         : 15912 MiB; 11979 MiB free
Video Card     : NVIDIA NVIDIA GeForce GTX 860M/PCIe/SSE2
Video Driver   : 4.6.0 NVIDIA 520.56.06 OpenGL 4.6.0 NVIDIA 520.56.06
Video Mode     : 1920x1200:24
Sound Card     : Built-in Audio Analog Stereo; 
Sound Drivers  : 1.1 ALSOFT 1.22.2

0AD Build and source:

25 Sept 2022 (27104-release)
Installed from ArchLinux repository:
    community/0ad a26-1 & community/0ad a26-2 got same error
    community/0ad-data a26-1 installed (no -2 available yet)

 

Link to comment
Share on other sites

Nope, can't access nothing as it's the "respond to click"-function (onClick/Click) which isn't found/defined in some of following:

gui/pregame/BackgroundHandler.js
gui/pregame/MainMenuPage.js
gui/pregame/mainmenu.js

Also, floating on top of the menu is constant repeat of the error... so can't really see any button but exit one. (See screenshot)

 

It doesn't seem linked to existing config/cache either; deleting those doesn't help and also tested the AppImage-version, which isn't official I know, and getting same issue with it too.

Screenshot_20221023_0AD-JavaScript-Tick-Error.png

Link to comment
Share on other sites

Unlabelled a24? Doesn't sound possible; unless there's an issue upstream when packaging.

Here's what the package manager tells me:

# pacman -Ss 0ad
community/0ad a26-2 [installed]
    Cross-platform, 3D and historically-based real-time strategy game
community/0ad-data a26-1 [installed]
    Cross-platform, 3D and historically-based real-time strategy game (data files)

I could downgrade to 0ad a26-1 to match 0ad-data package, and I tried that too in fact, yet still same issue.

Link to comment
Share on other sites

21 minutes ago, smiley said:

The build date seems to check out though. There seems to be some overwriting going on.

Can you check if there any remnants of the old installation lying around in somewhere? An old mod or something perhaps.

11 minutes ago, Stan` said:

Yeah you might want to check what mods are enabled. you can do 0ad -mod=mod or edit the configuration file directly.

Had no mods installed at all, however - removing ~/.local/share/0ad worked out. Seems some file in there was messing things up.

Thank you!

  • Like 2
Link to comment
Share on other sites

  • 2 weeks later...

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