Jump to content

error in console commands


Recommended Posts

Hi everybody!

I'm trying to modify some configurations in the console, pressing F9 and then writting commands like those in this page:

http://trac.wildfiregames.com/wiki/Playing0AD

but it always returns errors. For example, if I type :players[1].resources.food += 1000 it returns

ERROR: JavaScript error: Console line 1

SyntaxError: syntax error

if I type :startPlacing("hele_infantry_spearman_b") it returns the same. Can somebody tell me which or where is my error?

Thanks a lot!

Link to comment
Share on other sites

Incase you missed it on the page, there is a line that says:

"NB! Below is not yet (2nd October 2010) updated for the latest version, so the information may be inaccurate!"

Things below it, including the commands you posted, are either no longer in the game, or no longer supported.

Link to comment
Share on other sites

There's two relevant things that have changed: console commands shouldn't be started with ":" or "?" any more (just type in the JS expression directly with no prefix), and the simulation system was rewritten so none of those examples work any more. (And most of the examples aren't possible any more - the console commands run in the GUI script context, and the GUI can't directly access the simulation state since they're isolated from each other.)

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