Jump to content
Sign in to follow this  
LittleDev

Alpha 20, Call to a non-existant function in the AI

Recommended Posts

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 ?

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
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.

Sign in to follow this  

×
×
  • Create New...