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
for some reason variables that dont start in a capital dont always work.
single letter variables like "i" work fine, but if its more than one letter it seems to need to start in a capital
Use the scan command in the terminal (from home pc) to see if there are any pserv- servers.
Lets debug if this is your issue.
Replace let i = 0;
with let i = ns.getPurchasedServers ( ).length;
If your script does not fail anymore, then you have definitely reached the maximum.
You can also put in a check to make sure hostname is not an empty string before calling ns.scp and ns.exec, like so:
If you want to try again from the start and don't mind losing the purchase costs, you can delete the servers like so: