-
Notifications
You must be signed in to change notification settings - Fork 61
Create a custom JSON script for self hosted OneClick install
- A code editor with JSON syntaxes
- Basic knowhow of HTML for description.
- Use GitHub to host everything.
(OPTIONAL)
- If you use your own hosting provider like Namecheap I fully recommend using SSL like Cloudflare to keep your website safe.
- 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
- Keep the file names short.
- 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
If you don't have any hosting at all I fully recommend using GitHub for all the assets of the mod hosting and also recommend all files names to be a minimum of 10 characters. In general, is kind of easy if you use my Template Code below as it has all the info you need on how to make it you can remove and add stuff to it was made to be idiot proof as possible.
All you need to do is to only care about game, name, Description, authors, images and download.
Each one has comments about what its dose. If you need help with HTML syntaxes this is a good place to find everything about it but for beginners if you start a syntax you have to end it with the same syntax but add an / near the syntax example <b>This will be a bold text</b>
.
Archive your mods using 7z or zip so the mod loader can unzip it without any problems.
If you find any problems, contact me on discord over at Wingzzzzy#2100 and I will try to help you out.
To be made but it will be a site with step by step what to place in it and at the end it will download a Json file.
//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 or anything that needs to render from a link like images or videos.
"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/images/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"
}