Commit Graph
49 Commits
Author SHA1 Message Date
Hornwitser 5c16809b5b JSDoc use autodetected module name
Change @module <module name> entries to just @module as JSDoc is able to
automatically determine the module name.
2020-04-03 20:51:28 +02:00
Hornwitser 028f00e58a Rename client.js to slave.js
Rename the client.js script to slave.js, and changed places where it's
refered to as client into slave.
2020-04-03 20:51:28 +02:00
Hornwitser 370ee9ed04 Unminify formatBytes
There's no reason to minify formatBytes it saves nothing.  Use the
unminified version as published.
2020-01-14 08:09:39 +01:00
Hornwitser 21d9fdff7b Remove old plugin system
Remove the old client/instance fused plugin system along with
instanceManagement in client.js and getPlugins in master.js.
2019-12-13 22:37:49 +01:00
Hornwitser 278dc9b2d2 Remove empty instanceManager file
Remove the empty/incomplete instanceManager implementation.
2019-11-30 00:08:10 +01:00
Hornwitser 7a2abaa5db Daemonize slave
Rework client.js to support running multiple instances at once and be
managed remotely and implement the neccessary communication
infrastructure for this.

Due to circular dependencies on the implementation of this the master
branch is significantly broken after this.
2019-11-23 15:16:47 +01:00
Hornwitser fcae3ef0c1 Use detected Factorio version
Remove Factorio_version from the config file and use the detected
version of Factorio instead.
2019-11-21 22:25:11 +01:00
Hornwitser ff3fc3b94b Remove .js suffix in require paths
Remove the .js suffix in require paths to make requires consistent
across the project.
2019-10-28 19:45:34 +01:00
Hornwitser a783bd9651 Refactor out config injection in modManager
Change config in modManager to be passed to each individual functions
instead of requiring it be present at load time.
2019-09-16 16:04:08 +02:00
Hornwitser 5f33cf4d3b Remove config management
Remove lib/manager/configManager.js and the config management command
line interface as well as the serverManager's web interface for config
management.  The configuration rewrite will work differently and is not
compatible with configManager.js.
2019-09-16 16:04:08 +02:00
Hornwitser 1ba9e68603 Move instance directory to Instance class
Replace the instancedirectory variable with an Instance class that holds
the directory and has a .path() to get paths relative to the instance
directory.
2019-09-15 13:43:14 +02:00
Hornwitser a63c341209 Move unit tests to test/ folder
Move unit tests for client, master, and the lib to test/ and move plugin
unit tests to <plugin dir>/test.
2019-09-14 14:49:52 +02:00
Hornwitser a31778c7ff Remove unused config parameter to pluginManager
Remove the unused library initialization parameter config to
pluginManager and reorganize pluginManager to no longer be defined by a
function.
2019-09-04 20:43:13 +02:00
Hornwitser 38462d3069 Set User-Agent according to GitHub's request
GitHub requests that the user agent be set to either the name of the
user or the application[1].  Set user agent to the name of this
application as they request.

[1] https://developer.github.com/v3/#user-agent-required
2019-08-24 11:02:50 +02:00
Hornwitser bc7f3804c8 Remove right-pad
Remove unused dependency right-pad.
2019-08-07 10:18:14 +02:00
Hornwitser f76c84c3f1 Move node_modules/_app/ into lib/ as a package (#190)
Move the contents of node_modules/_app into lib/ as there shouldn't be
any content in node_modules.  This directory is automatically managed
and pruned by npm.

Add lib/ as a local package in package.json, this allows scripts
everywhere to require it's content as "lib/path" instead of relying on
local paths.  This shadows the StdLib Node.js Bindings package, but I
could care less.

Change all requires with lib as a local path and _app to use just lib.
2019-08-04 15:52:36 +02:00
Daniel Vestøl c15709ddc1 0.17 update: Fixed hotpatch and scenario_loader 2019-02-27 11:05:39 +01:00
Daniel Vestøl 852311e84c Plugin loading race condition, resolves #136 2018-09-27 13:48:41 +02:00
Daniel Vestøl 087ba8dabe Improved docs, disabled remoteMap by default 2018-09-09 19:55:09 +02:00
Daniel Vestøl a76e07c07b Enable and disable plugins from the commandline (non functional as of yet) 2018-08-15 23:15:01 +02:00
Daniel Vestøl 1faa3671e4 configManager.js - more useful return values 2018-08-11 19:59:35 +02:00
Daniel Vestøl 8abeb26dce Commandline tools to install/uninstall plugins from github 2018-07-25 01:14:43 +02:00
Daniel Vestøl 958cdfa15a Fixed node client.js manage * mods * 2018-07-24 23:14:02 +02:00
Daniel Vestøl 98131ee66e Very big changes to help custom config paths 2018-07-13 22:56:10 +02:00
Daniel Vestøl 7d99162072 Merge branch '#85' 2018-06-24 13:57:24 +02:00
Daniel Vestøl 447766c752 Fixed mod manager not exiting after downloading mods 2018-06-16 15:41:06 +02:00
Stefan Asbeck 8fe908aa5d fixes issue #87 "Mod manager downloads oldest version of mod available" by downloading the latest version
added factorio version to config file instead of hardcoding it.
2018-05-06 15:55:23 +02:00
Danielv123 c02bb6d58f #85 made instance directory configurable in config.json 2018-05-04 17:50:20 +02:00
Danielv123 fff1989897 Moved fileOps to _app/fileOps 2018-03-28 20:57:57 +02:00
Danielv123 c4fb313aef Added time estimate etc to the github mod downloading 2018-02-22 21:37:31 +01:00
Danielv123 1fcd91342f Made progress bar for github mod downloads 2018-02-22 21:00:35 +01:00
Danielv123 29bffa472b Fixed modManager add and remove functions 2018-02-22 19:13:47 +01:00
Danielv123 64a29c004c Fixed modManager to work in 0.16 2018-02-18 19:50:35 +01:00
Danielv123 4b0bedbacf #59 fixed downloading from github repos using 'github releases' 2018-01-11 21:58:17 +01:00
Danielv123 5d72832402 #59 added node client.js manage mods shared/instance remove modname 2018-01-11 21:44:23 +01:00
Danielv123 625f88c63e node client.js manage [instancename] mods download [modname] 2018-01-08 15:01:10 +01:00
Danielv123 0f246ca9d3 #59 added error handling when not having put token in config.json 2018-01-05 21:26:22 +01:00
Danielv123 f522f19cb5 fixed #65 2017-12-09 14:05:17 +01:00
Danielv123 682856c0a5 Implemented editing configs using node client.js manager #59 2017-11-14 13:06:57 +01:00
Danielv123 8146a313f3 #59 interface for editing config + more docs 2017-11-11 23:51:52 +01:00
Danielv123 906b192683 More work on command line tools #59 2017-11-11 16:40:19 +01:00
Danielv123 490f039d83 Yes, its more JSDOCs 2017-11-08 16:47:32 +01:00
Danielv123 02dc688161 Documented more things with JSDOC 2017-11-07 16:29:43 +01:00
Danielv123 96d60e5428 Attempted to add some JSDOC docs, npm run docs/livedocs 2017-11-06 23:37:21 +01:00
Danielv123 2fd47434bb Added search functionality to mod manager #59 2017-11-06 21:12:25 +01:00
Danielv123 a3195ad8ce More details in mod list 2017-11-06 20:00:19 +01:00
Danielv123 0735aa2db4 More work on listing mods nicely with node client.js manager 2017-11-05 17:50:14 +01:00
Danielv123 c901275f38 'node client.js manage shared list' now lists shared mods 2017-11-04 20:07:25 +01:00
Danielv123 8cf85f3ecc More mod manager stuff, node client.js list is more informative
Now shows nice table with name and port to connect to
2017-11-03 22:54:52 +01:00