3. Hosting the Json
3.0.1 Before you start
- Create your Json
- Validate your Json via jsonlint
- Save it as filename.json on your computer
Pick one of the following options. You only need to follow step 3.1 OR 3.2
3.1 Github
- Goto github and create an account
- Once you are logged in click on the
+
icon in the top right corner and selectNew repository
- Give your new repository a name, set it to public and click
create repository
- Click on
uploading an existing file
located below theQuick setup - if you've done thisd kind of things
header
- Upload your json and click on the
Commit changes
button - Click on the new created file
- Click on
Raw
on the right side of your screen
- Copy the URL and paste it in the GameUserSettings.ini
[WBUI2]
JsonURL="the-raw-link"
3.1.1 Editing the file
- Go to the page where you clicked on the
Raw
button - Click on the pencil icon
- Do your changes and hit the
Commit changes...
button on the right side - Click
Commit changes
on the popped up menue - Click on the
Raw
button and check if your changes are applied. This may take a few minutes - If the changes are applied you can update the UI from the ingame console via
cheat scriptcommand WBUI2 update
. In theory this should work via rcon too (with or withoutcheat
)
You only need to follow step 3.1 OR 3.2
3.2 Rentry.co
Rentry is using CloudFlare. The anti-bot-check of CloudFlare blocks the mod from downloading the json. If you experience errors while using rentry.co i suggest trying GitHub
- Goto rentry.co
- Paste your Json and click on the
Go
button in the bottom left
- IMPORTANT: Save the edit code which is displayed at the top
- Scroll to the bottom of the site and click the
Export
button - Select
Raw
- Copy the URL and paste it in the GameUserSettings.ini
[WBUI2]
JsonURL="the-raw-link"
3.2.1 Editing the file
- Enter the URL without the
/raw
at the end in your browser - Scroll down to the bottom and click the
Edit
button - Do your changes, enter the edit code you saved earlier and hit save
So think the issue most are having is due to cloudflare. After a lot of testing, Any domain i've used that is using proxying via cloudflare will give errors when trying to load the Json file. This includes pastebin since they use cloudflare, whereas github does not. There may be something to do with where a server is located that could allow it to pull from a Cloudflare protected domain, however, it seems its not always the case and most likley has something to do with Anti-bot settings being used.
Basically, use a domain NOT proxied by cloudflare where possible with this mod
If hosting on your own webhost and you use Cloudflare, then setup a sub-domain just for the files, and do not proxy it via cloudflares system.