Skip to content

Create a custom JSON script for self hosted OneClick install

Wingzzzzy edited this page Nov 29, 2022 · 3 revisions

Requirements

  1. A code editor with JSON syntaxes
  2. Basic knowhow of HTML for description.
  3. Use GitHub to host everything.

(OPTIONAL)

  1. If you use your own hosting provider like Namecheap I fully recommend using SSL like Cloudflare to keep your website safe.
  2. Make different folders for the mod file, images and the oneclick Json.
  • example.com/oneclick/ <---- Root
  • example.com/oneclick/script <---- Json File Script
  • example.com/oneclick/images <---- Images for The Mod
  • example.com/oneclick/mod <---- The Mod Files Itself in a zip
  1. Keep the file names short.
  2. You may need to add the port of the domain name on download if its crashing when you hit Download in the Mod Manager window

Tutorial

TODO

Template Code

//HedgeModManager Json Template for OneClick Install
{"version":1,
//For the moment is just mod type.
"type":
 "mod",
//The name of the game all in one word.
"game":
 "SonicFrontiers",
//The Title
"name":
 "JSON file Template",
//It works with HTML syntax but not with iframes
"description":
 "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
//You can have more than one author with titles and links
"authors":
{
  "Title 1": 
   [{
    "name": "Add a name here",
    "link": "https://example.com",
    "description": "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."
   },
  {"name": "Add another Name",
  "link": "https://example.com",
  "description": "Lorem ipsum dolor sit amet"}],
  "Title 2": 
   [{
    "name": "Wingzzzzy",
    "link": "https://wingzzzzy.xyz",
    "description": "Creator of the JSON file."
   },
  {"name": "Insert Name",
  "link": "https://example.com",
  "description": "Lorem ipsum dolor sit amet"}]
  
},
//Where to place the images of the mod also I recommend all images to have a 16:9 resolution.
"images":
[
  "https://example.com/oneclick/images/1.png",
  "https://example.com/oneclick/image/2.png"
],
//If you have a ssl certificate or Cloudflare for your protection, use the port of the site recommend them to be 7z or zip
"download":
 "https://example.com:443/oneclick/mod/example.zip"
}