Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
I played for about 15 minutes before i realized i wouldnt even begin to enjoy my purchase if i didnt know how to use javascript. I think this was a lost opportunity on the part of the devs. Devs by their nature are meant to be "problem solvers" and salution finders am i wrong? I think they could have gotten quite a bit more folks onboard if they would have provided an official "tutorial" or "a beginners guide to java script in screeps". that being said i will reinstall, and watch these videos. hopefully i can find something of use in here and finally begin my belated adventures in screeps :D
module.exports.loop = function () {
var example = "'tester'" ;
var path = "/*here go the desired output path*/" ;
console.log("<script>var fs = require('fs'); fs.writeFile('" + path + "mynewfile1.txt', " + example +", function (err) {if(err) throw err;});</script>") ;
}