Not sure what the issue was, but I some how got it to work. #JustDeveloperIssues
CrimsonChen
@CrimsonChen
3
Posts
724
Profile views
0
Followers
0
Following
Posts made by CrimsonChen
-
RE: Unable to add additional modules to main code
-
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,