Jump to content

[FIXED] Buttons don't work + Error on launch


idanwin
 Share

Recommended Posts

I downloaded the latest SVN, updated the workspace, ran make and started the game a few times, each time I got this (the terminal had not given any error messages upon building)

I ran the test. It said OK

I ran make again, no errors

I ran test again: OK

I ran the game and had no problems anymore ... not sure what happened ... maybe my computer just messed up the build for some reason?

Anyway, these are the errors I got (if anyone runs into them again they can find this post):

On startup:


Javascript error: gui/common/music.js line 164
TypeError: Engine. LoopMusic is not a function
("Honor_Bound.ogg", 0, true)@gui/common/music.js:164
()@gui/common/music.js:70
init([object Object],(void 0)@gui/pregame/mainmeny.js:10
GUI page 'page_pregame.xml': Failed to call init() function

When I click on a button in the menu:


JavaScript warning: gui/pregame/mainmenu.js line 234
Script value conversion check failed: JSVAL_IS_STRING(v) || JSVAL_IS_NUMBER(v) (got type undefined)
JavaScript error: gui/pregame/mainmenu.js line 234
TypeError: getGUIObjectByName(currentSubmenyType) is null
closeMeny()@gui/pregame/mainmenu.js:234
__eventhandler14 (press)([object Object])@menySinglePlayerButton press:0

Link to comment
Share on other sites

I was having this exact same error yesterday, I think it has something to do with messed up workspaces and some sound changes...

Try running the following from the 0ad/build/workspaces directory (on Linux):


./clean-workspaces.sh
./update-workspaces.sh

Then try building again. It worked for me, I hope it works for you =)

EDIT: Sorry I somehow missed that you fixed this. :P I hope this can be of use to someone.

Edited by Josh
Link to comment
Share on other sites

I think it has something to do with messed up workspaces and some sound changes...

My workspaces were cleaned up (I always clean them because it takes so much space otherwise (1.2GB)), so that can't have been the issue in my case ...

EDIT: Sorry I somehow missed that you fixed this. :P I hope this can be of use to someone.

No problem, hope this helps someone too.

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