LittleDev Posted April 5, 2016 Report 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 ? Quote Link to comment Share on other sites More sharing options...
fatherbushido Posted April 5, 2016 Report 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 Quote Link to comment Share on other sites More sharing options...
LittleDev Posted April 5, 2016 Author Report 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. Quote Link to comment Share on other sites More sharing options...
sanderd17 Posted April 5, 2016 Report 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. 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.