aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/config.json39
-rw-r--r--src/web/index.html27
2 files changed, 66 insertions, 0 deletions
diff --git a/src/config.json b/src/config.json
new file mode 100644
index 0000000..2598643
--- /dev/null
+++ b/src/config.json
@@ -0,0 +1,39 @@
+{
+ "modpacks":[ //you can have this do multible modpacks
+ {
+ "active":true, //you can deactivate a modpack if you dont want to use it currently
+ "name":"modpack name", //..... really??
+ "server_folder":"C:\\", //optional, but required if you want server > client sync
+ //not the mods folder!
+ //remove this entirely if not in use! do not leave it blank
+ "server_ignore_filter":[
+ "mod to ignore on server.jar",
+ "mod to ignore on server.jar"
+ ],
+ "client_folder":"C:\\", //optional but required for server > client sync
+ "client_ignore_filter":[
+ "same as server. mods to ignore/ not be deleted by sync"
+ ],
+ "compile_zip":false, //should this make a zip of your mods from the defined folder?
+ //it will use the modpack name as the name for the zip
+ "zip_folder":"folder for mods to be ziped", //not the mods folder!! it finds that by itself
+ //make sure your mods are in the /mods folder and NOT /mods/version. ive yet to work with that
+ "zip_ignore_filter":[
+ "same as other. mods to ignore"
+ ],
+ "move_zip_to_server":false, //will this move the mod zip to the server folder?
+ "use_client_sync":true, //should this be used with the client sync software?
+ //requires enable_client_server_sync enabled
+ "client_sync_folder":"C:\\", //same as others
+ //can either be client folder, server folder, or different folder. you chose
+ "client_sync_ignore_filter":[
+ "same as others but server ignore"
+ ]
+ }
+ ],
+ "use_webserver":false, //do you even want to run the webserver?
+ "server_port":4350,
+ "enable_client_server_sync":true //should the client software be allowed?
+ //requires use_webserver to be enabled
+ //use at your own risk!
+} \ No newline at end of file
diff --git a/src/web/index.html b/src/web/index.html
new file mode 100644
index 0000000..8721acc
--- /dev/null
+++ b/src/web/index.html
@@ -0,0 +1,27 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <title></title>
+</head>
+<body>
+ <div align="center">
+ <h1>modpack webpage</h1>
+ <p>here is a list of modpacks</p>
+
+ <div id="modpacks"></div>
+ </div>
+
+ <script type="text/javascript">
+ fetch("/modpacklist")
+ .then(res=>res.json())
+ .then(res=>{
+ res.forEach(modpack_name=>{
+ modpacks.innerHTML+='<div><a href="/modpacks/'+modpack_name+
+ '">'+modpack_name+'</div>';
+ })
+ })
+ </script>
+</body>
+</html> \ No newline at end of file