TooAngel / screeps

TooAngel NPC / bot / source code for screeps
https://screeps.com
GNU Affero General Public License v3.0
600 stars 154 forks source link

TypeError: Cannot redefine property #643

Closed UndefinedCpp closed 2 years ago

UndefinedCpp commented 2 years ago

I got a few problems running the scripts. The console output is like the following:

[Time] TypeError: Cannot redefine property: data
                  at Function.defineProperty (<anonymous>)
                  at prototype_room:6:8
                  at eval:108:4
                  at Object.<anonymous>:2:206408
                  at require:19:1
                  at eval:71:4
                  at Object.<anonymous>:2:206408

It occurs in: prototype_creep and prototype_room as far as I know. Can anybody help me ? Sorry my English is not so good.

TooAngel commented 2 years ago

I can try to help. Where are you getting the error on the public or on the private server?

I'm guessing you are just trying to execute the script. The repository is meant to be used within the https://screeps.com/ server environment.

UndefinedCpp commented 2 years ago

I was trying to run in simulation mode... and I guess that was the point. Thanks for help.