This Script is Local Only,autodownloader.js will be implemented later
It will install and execute it fine,if you change some code in computerMusic.js
You may have to change it every update(which is an hour after last update time and you execute the launcher) In order for PlayMusic.js to work its magic,you must change stuff in the original musicComputer.js script.
change
if (!ns.fileExists("Music.txt") || ns.args[0] != null) {
await ns.wget(formatPathFile(ns.args[0]), "Music.txt")
}
to
if (!ns.fileExists("Music.txt") || ns.args[0] != (null || 0)) {
await ns.wget(formatPathFile(ns.args[0]), "Music.txt")
}
First pass the server argument. This will go to the specified server. Any vaild server name will do(including Home!). Enter a zero for default,which is MusicServer.Then,pass a bool,0 or 1 for comfimation to purchase the server with the name if the server you're asking for is not available.
The third argument is the location of your listMusicBitburner.txt. Follow computerMusic.js' instructions in https://github.com/MatiasCardullo/JavaScripts-Bitburner Just like autoupdater.js,very easy to install but you will have to run the program yourself.
Commands is listed using the command help.
It also comes with dev protection. By changing the false to a true in datamgr.txt.