Blockland Welcome, Guest. Please login or register.
Did you miss your activation email?
September 21, 2017, 04:25:55 AM

Home Help Login Register
+  Blockland Forum
|-+  Blockland Forums
| |-+  Modification Help
| | |-+  Support_Updater
Pages: [1] 2 3 4 5 6 ... 21
Poll
Question: Should I add increased BLID gathering abilities to Support_Updater and make a public, searchable list of BLIDs and names?
Yes   -34 (81%)
No   -8 (19%)
Total Voters: 42

Author Topic: Support_Updater  (Read 29381 times)
Greek2me

« April 05, 2014, 03:14:21 PM »

Support_Updater v0.11.1
Download

Introducing a simple, easy-to-use update system for Blockland mods... Clients will be notified of updates when running either the Blockland client or the Blockland dedicated server.



Every add-on requires a file called "version.txt". This file contains a version number and the URL of a repository. Support_Updater will check the repository on startup to look for a newer version. When a new version is found, the user will be notified and will be able to download the new file.

Also includes support for change logs using special TML formatting.

Support_Updater Usage Documentation
(or you can find it in the README file included with Support_Updater)

It's really that easy! Just remember that your users need to have Support_Updater installed. I recommend making it a required add-on.



Execute this file in your add-on's client.cs to automatically download Support_Updater for your users. http://mods.greek2me.us/storage/Support_Updater/Support_UpdaterDownload.cs



No website? No problem!
If you don't own a website, you can still use Support_Updater. You'll need a free account on either Bitbucket or Github.

Bitbucket Instructions
Create a public repository called "yourBitbucketUserName.bitbuck et.org" and simply add your repository.txt and *.zip files to it. It can then be accessed at http://yourBitbucketUserName.bitbucket.org.

Github Instructions
Create a public repository called "yourGithubUserName.github.io" and simply add your repository.txt and *.zip files to it. It can then be accessed at http://yourGithubUserName.github.io.
« Last Edit: July 21, 2016, 06:05:03 PM by Greek2me » Logged
Ad Bot

« Full members do not see ads »

elm

« April 05, 2014, 03:21:38 PM »

Intense.
Logged
MrLoLČ

« April 05, 2014, 03:30:46 PM »

I hope this will be default
Logged
Danny Boy

« April 05, 2014, 04:11:21 PM »

Excellent.
Logged
Zeblote

« April 05, 2014, 04:30:28 PM »

So by simply planting a version.txt like that into my add-ons I can trick people using this into downloading fake updates that are actually different add-ons?
Logged
Subpixel

« April 05, 2014, 05:00:55 PM »

I can see it now.
Quote
Changelogs:
  • Discretely added code to delete all client files before warning gets out
Logged
0xBRIANSMITH

« April 05, 2014, 05:18:22 PM »

How about don't download sketchy add-ons??
Logged
Greek2me

« April 05, 2014, 05:25:00 PM »

So by simply planting a version.txt like that into my add-ons I can trick people using this into downloading fake updates that are actually different add-ons?

You could download stuff anyway.

This does not allow you to download new add-ons, only update existing ones of yours that have a version.txt file. The version file is only effective for the add-on it's in - only that .zip file will be written to.
Logged
Pecon

« April 05, 2014, 06:06:59 PM »

This is interesting. I may incorporate this into my currently released mods.

Question: What do you mean by CLRF endings? Does this mean normal newline characters don't work? Or is this just referring to the log files?

Also, are channels restricted to specific things? Like, could we name two different channels for different versions of the mod even though they are both 'release'?

Sorry for so many questions, but I think you'll need to specify a lot more if you want modders to start using this.
« Last Edit: April 05, 2014, 06:20:33 PM by Pecon » Logged
Subpixel

« April 05, 2014, 06:10:54 PM »

You should allow for add-on thumbnails used for the update list. Would be pretty cool.
Logged
Night_Hawk

« April 05, 2014, 06:57:12 PM »

This is rather interesting to see going on here. I could really use this.
Logged
Greek2me

« April 05, 2014, 07:02:27 PM »

This is interesting. I may incorporate this into my currently released mods.

Question: What do you mean by CLRF endings? Does this mean normal newline characters don't work? Or is this just referring to the log files?

Also, are channels restricted to specific things? Like, could we name two different channels for different versions of the mod even though they are both 'release'?

Sorry for so many questions, but I think you'll need to specify a lot more if you want modders to start using this.

CRLF line endings are \r\n (Windows style), rather than \n (Unix style). This is required because \r\n is the HTTP standard, and just using \n will probably give strange results.

You can name channels whatever you want.

I'll create a more formal documentation later.
Logged
Filipe

« April 05, 2014, 10:26:19 PM »

Oh my god, I love you so much have all of my yes
Logged
Pecon

« April 05, 2014, 10:34:50 PM »

http://pecon.us/projects/repository/

I'm not sure if I'm doing something wrong here, or would this work?
Logged
Greek2me

« April 05, 2014, 10:42:29 PM »

http://pecon.us/projects/repository/

I'm not sure if I'm doing something wrong here, or would this work?

Yep, that should work! Somehow the text doesn't show up in Firefox, though.

My repository is simply a text file without the .txt extension. I'm guessing yours is the same?

edit: Just tested it for you. It works, but it looks like you aren't using the correct line endings. This causes the file to be cut off before it's completely downloaded. If you're using Notepad++, go to "Edit -> EOL Conversion -> Windows Format".
« Last Edit: April 05, 2014, 10:53:22 PM by Greek2me » Logged
Pages: [1] 2 3 4 5 6 ... 21  


Login with username, password and session length

Powered by SMF 1.1.20 | SMF © 2013, Simple Machines
Page created in 0.038 seconds with 20 queries.