Navigation

    forum

    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    1. Home
    2. CrimsonChen
    • Flag Profile
    • block_user
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Groups
    • Blog

    CrimsonChen

    @CrimsonChen

    3
    Posts
    858
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    CrimsonChen Follow

    Posts made by CrimsonChen

    • RE: Unable to add additional modules to main code

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

      posted in General Discussion
      CrimsonChen
    • 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

      posted in General Discussion
      CrimsonChen