Jump to content
  • 0

Github updater help?


relentlesspoetry

Question

I cant figure out for the life of me how to get the auto updater working i read and followed all guides on forums and theres always an error..

is there a guide on how to use github with it correctly

 

I get this 90%

2022-01-25 01:24:46.324 [Info] Discovered 0 plugins:

 

sometimes this..

 

2022-01-25 01:24:46.324 [Info] Discovered 0 plugins:


--------------------------------------------------------------------------------
2022-01-25 01:24:52.088 [Info] Acquiring context lock... (0ms)

--------------------------------------------------------------------------------
2022-01-25 01:24:52.088 [Info] Acquired. (0ms)

--------------------------------------------------------------------------------
2022-01-25 01:24:52.089 [Info] Beginning context dispose. (0ms)

--------------------------------------------------------------------------------
2022-01-25 01:24:52.090 [Info] GC.SuppressFinalize (1ms)

--------------------------------------------------------------------------------
2022-01-25 01:24:52.090 [Info] InternalDispose() completed. (1ms)

--------------------------------------------------------------------------------
2022-01-25 01:24:52.090 [Info] Clearing instance... (2ms)

--------------------------------------------------------------------------------
2022-01-25 01:24:52.090 [Info] Releasing context lock... (2ms)

--------------------------------------------------------------------------------
2022-01-25 01:24:52.090 [Info] Released. (2ms)
 

 

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

I've been messing with using Amazon S3 for file hosting/updating and it's been pretty straightforward so far, although I've seen similar issues when individual files don't have permissions correctly set, or the update.json file isn't up to date/reading right. Have you been dumping the entire client folder into your host?

Link to comment
Share on other sites

  • 0
8 minutes ago, TheBearWannabe said:

I've been messing with using Amazon S3 for file hosting/updating and it's been pretty straightforward so far, although I've seen similar issues when individual files don't have permissions correctly set, or the update.json file isn't up to date/reading right. Have you been dumping the entire client folder into your host?

I've tried uploading the entire client, tried packaging from editor. I don't know what i'm doing wrong but i've spent over a week trying to figure it out and still nothing.

Link to comment
Share on other sites

  • 0

It may not be able to do much, but this is my process for updating the files/etc after a lot of fiddling with it in the last 24 hours. From what I've seen, even minor edits in config files can cause the updater to not work correctly (I ended up figuring out the below steps when I was changing a config file after packaging the update, and it didn't match with update.json) 

 

Set up your Host Directories:

  1. Create a new folder on the desktop/wherever and label it as your "pre base client" (But you can call it whatever you want)
  2. Once created, package your game in the editor via Tools > Package Update and save to that folder. This will be the directory files we'll be uploading.
  3. (Optional, but I typically remove the editor/character creator/etc. files since they aren't needed for players.) Upload your client files to your file host service.
  4. Once the files are uploaded and marked as publicly available, locate update.json and find/copy the URL path. We'll need this later. 
  5. Check to make sure folder access permissions are open, and not encrypted/private/etc.
  6. On your computer, duplicate the pre base client folder made in step 2, naming the other copy "Update base client" or something else you can remember. We'll need it for the next steps. 

Prepare the first update:

  1. Open the editor (Very important before editing the config files.)
  2. Going back to your original client folders (Where you have your editor, etc.) navigate to your client directory > Resources > Config.json and edit the "UpdateUrl" line to the URL mentioned in previous step 4. Save and close the file.
  3. In the editor, package it via Tools > Package Update. Select the "Update Base Client" folder, select Yes when you see a prompt offering a differential update.
  4. Create a new folder, naming it "Base Client" and perform another package update to this folder. (This one should have the correct config files and can be distributed to players)
  5. In the  "Update Base Client" folder we should just now have a new update.json file (And maybe some other tiny files) upload these to your file host and overwrite any files that it might be matching to. This ensures the json files are up to date, and are pointing in the right places for future updates.
  6. Launch the client (In the "Base Client" folder created in step 4) and see if it works!

Post-Update Cleanup:

  1. Navigate back to your Client + Editor folder and remove the URL entered in the "UpdateUrl" from step 7 (This is so your editor won't accidently overwrite your changes from the updater version) You'll need to add this line back in when you are packaging other updates.
  2. Delete the "Pre-base client" folder, it's no longer needed after the initial setup process.

I hope this helps! I'm sure it's a really dumb roundabout way of doing things, but hey it worked for me!

 

Edited by TheBearWannabe
Forgot a few steps, updated a bit to clarify.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...