4

Don't know about "Screeps"? Visit screeps.com

It's a second line in main script:

var spawnController = require('spawnController');

It's error:

SyntaxError: Unexpected token )
at __evalCode:1:10622
at h:1:12286
at main:2:23

Any suggestions?

J. Steen
  • 15,470
  • 15
  • 56
  • 63
dFionov
  • 129
  • 10
  • Might be a bug with their interpreter. You should file a bug report with them. – Felix Kling Nov 20 '14 at 21:02
  • Thanks, but first line with same code(var harvester = require('harvester');) works... – dFionov Nov 20 '14 at 21:03
  • 1
    Finally find it - error in module 'spawnController'... My fault... :( Thanks anyway - next time i'll edit my question in a proper way. – dFionov Nov 20 '14 at 21:18
  • 2
    If you found the solution, add an answer to your question yourself and mark it as accepted. It's perfectly fine on SO and it might help someone else with a similar problem in the future. Be sure the relevant code to the problem is in the question and a solution to it is in the answer. – Etheryte Nov 21 '14 at 09:10

1 Answers1

3

After 1 hour i was finally find solution - you just need to check all lines of code in required module(not in main). Screeps interpreter points to start of require expression(to 'r' char) if it find some mistakes in module code.
So, be patient and double check all your code...

dFionov
  • 129
  • 10