mauricio1982 Posted January 3, 2011 Report Share Posted January 3, 2011 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/Playing0ADbut it always returns errors. For example, if I type :players[1].resources.food += 1000 it returnsERROR: JavaScript error: Console line 1SyntaxError: syntax errorif I type :startPlacing("hele_infantry_spearman_b") it returns the same. Can somebody tell me which or where is my error?Thanks a lot! Quote Link to comment Share on other sites More sharing options...
k776 Posted January 3, 2011 Report Share Posted January 3, 2011 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. Quote Link to comment Share on other sites More sharing options...
Ykkrosh Posted January 3, 2011 Report Share Posted January 3, 2011 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.) Quote Link to comment Share on other sites More sharing options...
mauricio1982 Posted January 3, 2011 Author Report Share Posted January 3, 2011 Hi!Thanks to both of you. It's a pity that you cannot modify some aspects of the game from consola, but the game is working really good and have a lot of interesting details.Congrats and happy new year! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.