LittleDev Posted April 5, 2016 Share Posted April 5, 2016 Hi, I found a call to the 'buildFirstBase' function in the 'headquarters.js' file at line 1385. That function don't seem to exist so is it a 'TODO' or should this part be removed ? Link to comment Share on other sites More sharing options...
fatherbushido Posted April 5, 2016 Share Posted April 5, 2016 (edited) perhaps you should look L250 at mods/public/simulation/ai/petra/startingStrategy.js Edited April 5, 2016 by fatherbushido Link to comment Share on other sites More sharing options...
LittleDev Posted April 5, 2016 Author Share Posted April 5, 2016 Thank you for responding so quickly, I'm still a beginner with javascript and I'm more accustomed to C and Java so I didn't thought that the function could be writen in another file, my bad. Thank you again, I'll be more carefull. Link to comment Share on other sites More sharing options...
sanderd17 Posted April 5, 2016 Share Posted April 5, 2016 We have a few contexts that are separated (f.e. the GUI js files can't access functions defined in the simulation directly, and the AI is also restricted to its own functions). But apart from that, most functions can be called across files indeed. JS doesn't care if it's split up in all different files, or if everything is in one file (on the web, everything is often put in one file to reduce the loading time). So we have to put our own meaning into it. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now