JonathanSafer / screeps

Screeps AI
MIT License
25 stars 7 forks source link

Newbie help #179

Closed pacomms closed 2 years ago

pacomms commented 3 years ago

How do i use this on my server ? when i load the code into my folder from a git download it just scrolls cannot find module

Error: Unknown module 'lib/utils' at Object.requireFn (:20840:23) at main:1:45 at main:181:3 at Object.exports.evalCode (:15370:76) at Object.requireFn (:20858:28) at Object.exports.run (:20801:60)

Be kind total newbie here, just wanted to see your code to give me ideas :-)

Kyo0x commented 2 years ago

Yeah, can't seem to figure out why myself either, maybe Jonathan knows :)

pacomms commented 2 years ago

maybe its a tad odd, just wont find the modules at all, Jonathan help :-)

jordansafer commented 2 years ago

You need to use the rollup command to combine everything into 1 file. The command is npm run roll, which will generate a file at dist/main.js-