Unable to add additional modules to main code



  • Hi,

    I am trying to get better at JS and I thought screeps would be a fun way to do so. I am trying to add my own customAPI functions for screeps in the main.js file, but it is throwing an error saying "SyntaxError: Unexpected token ;". I am not sure what I am doing wrong when I try to add my customAPI.js to the main.js code. PFA with screenshots. I was testing my function to get the total cost to build a creep.

    Thanks,

    1_1569784618064_make customAPI required.PNG 0_1569784618063_console error.PNG



  • Not sure what the issue was, but I some how got it to work. #JustDeveloperIssues