Cbrad24
01-29-2010, 08:51 PM
Cbrad24's Guide To:
Making Your HonMod's Auto-Updateable
<--==[ Latest Update: Fixed a bug with FTP not using BINARY mode, for those who experienced trouble. ]==-->
____________________________________________
Table of Contents:
Tools Required
Uploading Your Mod (Guide For @Space.com)
Uploading Your Mod: Using FTP (FTP is a faster way to upload, Your web host must support FTP)
Editing The .honmod
Updating Via The Mod Manager
Miscellaneous
____________________________________________
Tools Required:
So you want to make your .honmod autoupdatable huh? Well first your gonna need the right tools for the job. Basically all your gonna need is a website to host your mod. Sorry but mediafire ain't gonna work here. You need a host that has direct downloads and the file can be re-uploaded under the same link. Personally, I found the best way to do this is to create your own website. So... after 4 hours of searching for a good host that lets you upload .honmods, I found one (So you don't have too :p).
The host we are going to use today is http://www.atspace.com/. They offer everything your going to need for this with no adds or stuff like that. @Space has a max file upload size of 200kb's (Fine for most UI mods).
--> Feel free to submit a host if you have a better one.
Along with that your going to need your mod file, and the HoN Modification Manager (http://forums.heroesofnewerth.com/showthread.php?t=25883).
Summary:
A Web Host Account -> Recommended: http://www.atspace.com (http://www.atspace.com/)
A .honmod File (http://forums.heroesofnewerth.com/showthread.php?t=25883#Format)
The HoN Modification Manager (http://forums.heroesofnewerth.com/showthread.php?t=25883)
Back To Top
____________________________________________
Uploading Your Mod (Guide For @Space.com):
First things first. Before you can upload your mod your going to have to create your account (using http://www.atspace.com (http://www.atspace.com/) for this tutorial). If the page bugs add an exception for it in Ad Block Plus, the Firefox add-on. So up the top right click register and do just that. Next, after the registration clutter everyone hates, Your going have to create your domain. So head over Step 1 and create your domain, then head over to Step 2.
http://i45.tinypic.com/a9vjib.jpg
Once here you want to create a folder for each of your mods. Do this like so:
Select The Subdomain:
http://i49.tinypic.com/2z65flt.jpg
Create The Folder to Contain Your Mod:
Try to avoid spaces here as your just asking for codeing trouble.
http://i48.tinypic.com/1snq13.jpg
Then Select (Navigate To) The Folder & Upload 2 Files:
-Version.txt
-ModName.honmod
http://i49.tinypic.com/29w5so3.jpg
Contained in the Version.txt your going to simply put the version number (Eg: 1.0). This will be used by the HoNMod Manager to identify the current version. Remember to change this everytime you upload a new version of your mod. With it you also have to upload the new version of the .honmod (Changing the version of that to match the version.txt uploaded with it).
Back To Top
____________________________________________
Uploading Your Mod: Using FTP (FTP is a faster way to upload, Your web host must support FTP):
So you want to upload your mods like a ninja? Well this is for you. :D
Download (http://cbrad24.atspace.com/Misc/Mod_Updater.bat) this (Right click, save as) and save it somewhere for easy access when you want to upload your new version.
Ok now you've done that we need to change it to work with your website and computer. Right click this file and select "Edit". Once there you should have notepad pop up. Were just changing one line here.
TITLE Mod Updater - Made By Cbrad24
ECHO OFF
CLS
ECHO Starting Mod Updater - By Cbrad24
ECHO - - - - - - - - - - - - - - - - -
ECHO Starting Upload.
ECHO ---------------------------------
FTP -s:script.txt YOUR WEBSITE HERE (E.g. cbrad24.atspace.com)
ECHO ---------------------------------
ECHO Mod Updater Complete.
PAUSE (Can remove this. This just pauses it so you can see if there were any errors.)Kinda self explanatory. This is the line your changing in red. Any problems just PM me or try a combination of website names.
After that you want to create a new text file (Script.txt) in the same folder as the batch file. This will hold the code so when you run the batch file it knows what to do. Here is the layout you want.
<Username> (Cbrad24)
<Password> (Not telling you! >=[)
ASCII (Sets the upload type to ASCII for the Version.txt's)
SEND "C:\Users\Corey\Desktop\Mods\LR.txt" "/cbrad24.atspace.com/LockRequester/Version.txt" (Must use full path or a path relative to where you ran this file. E.g. "C:\Users\...." or if you ran this on your desktop "\Mods\LR.txt")
BINARY (Sets the upload type to BINARY for the .ZIP's)
SEND "C:\Users\Corey\Desktop\Mods\LockRequester.honmod" "/cbrad24.atspace.com/LockRequester/LockRequester.honmod" (Same as above)
QUIT (Disconnects from server and allows batch to end)After that save the file (TO THE SAME FOLDER AS THE BATCH) and run the Mod_Updater.bat. It should now work. If not send me a pm or post here and I'll help you out.
That finishes the guide on FTP. I plan to add auto zipping of the files too so you can update your mod by simply editing one file and running the batch (rather then zipping, uploading to website, etc...) so keep an eye out. ;)
Back To Top
____________________________________________
Editing The .honmod:
Simply enough you only have to add 2 lines of code to your mod.xml to add this functionality.
updatecheckurl="http://cbrad24.atspace.com/LockRequester/Version.txt"
updatedownloadurl="http://cbrad24.atspace.com/LockRequester/LockRequester.honmod"
Make sure you set the version to at least 1.2!
mmversion="1.2"Obviously you have to change the link to your own domain. But if you need to find the link just click the file and copy the browser link to the file.
As for where to put these tags, they belong in with the rest of the tags in the <modification> header. So it would look like this:
<modification
application="Heroes of Newerth"
appversion="-0.1.*"
mmversion="1.2"
name="The Mod's Name"
version="1.0"
description="Insert Description"
author="Your Nickname"
weblink="http://www.yourwebsite(or forum post).com/"
updatecheckurl="http://domainname.atspace.com/ModName/Version.txt"
updatedownloadurl="http://domainname.atspace.com/ModName/ModName.honmod"
>Back To Top
____________________________________________
Updating Via The Mod Manager:
There are 2 ways to update a mod in the Mod Manager.
Right Clicking The Mod:
http://i48.tinypic.com/2ebtm45.jpg
Update All Mods:
http://i47.tinypic.com/fycoow.jpg
Back To Top
____________________________________________
Miscellaneous:
If you have any questions/criticism or whatever feel free to comment. :P
Back To Top
Making Your HonMod's Auto-Updateable
<--==[ Latest Update: Fixed a bug with FTP not using BINARY mode, for those who experienced trouble. ]==-->
____________________________________________
Table of Contents:
Tools Required
Uploading Your Mod (Guide For @Space.com)
Uploading Your Mod: Using FTP (FTP is a faster way to upload, Your web host must support FTP)
Editing The .honmod
Updating Via The Mod Manager
Miscellaneous
____________________________________________
Tools Required:
So you want to make your .honmod autoupdatable huh? Well first your gonna need the right tools for the job. Basically all your gonna need is a website to host your mod. Sorry but mediafire ain't gonna work here. You need a host that has direct downloads and the file can be re-uploaded under the same link. Personally, I found the best way to do this is to create your own website. So... after 4 hours of searching for a good host that lets you upload .honmods, I found one (So you don't have too :p).
The host we are going to use today is http://www.atspace.com/. They offer everything your going to need for this with no adds or stuff like that. @Space has a max file upload size of 200kb's (Fine for most UI mods).
--> Feel free to submit a host if you have a better one.
Along with that your going to need your mod file, and the HoN Modification Manager (http://forums.heroesofnewerth.com/showthread.php?t=25883).
Summary:
A Web Host Account -> Recommended: http://www.atspace.com (http://www.atspace.com/)
A .honmod File (http://forums.heroesofnewerth.com/showthread.php?t=25883#Format)
The HoN Modification Manager (http://forums.heroesofnewerth.com/showthread.php?t=25883)
Back To Top
____________________________________________
Uploading Your Mod (Guide For @Space.com):
First things first. Before you can upload your mod your going to have to create your account (using http://www.atspace.com (http://www.atspace.com/) for this tutorial). If the page bugs add an exception for it in Ad Block Plus, the Firefox add-on. So up the top right click register and do just that. Next, after the registration clutter everyone hates, Your going have to create your domain. So head over Step 1 and create your domain, then head over to Step 2.
http://i45.tinypic.com/a9vjib.jpg
Once here you want to create a folder for each of your mods. Do this like so:
Select The Subdomain:
http://i49.tinypic.com/2z65flt.jpg
Create The Folder to Contain Your Mod:
Try to avoid spaces here as your just asking for codeing trouble.
http://i48.tinypic.com/1snq13.jpg
Then Select (Navigate To) The Folder & Upload 2 Files:
-Version.txt
-ModName.honmod
http://i49.tinypic.com/29w5so3.jpg
Contained in the Version.txt your going to simply put the version number (Eg: 1.0). This will be used by the HoNMod Manager to identify the current version. Remember to change this everytime you upload a new version of your mod. With it you also have to upload the new version of the .honmod (Changing the version of that to match the version.txt uploaded with it).
Back To Top
____________________________________________
Uploading Your Mod: Using FTP (FTP is a faster way to upload, Your web host must support FTP):
So you want to upload your mods like a ninja? Well this is for you. :D
Download (http://cbrad24.atspace.com/Misc/Mod_Updater.bat) this (Right click, save as) and save it somewhere for easy access when you want to upload your new version.
Ok now you've done that we need to change it to work with your website and computer. Right click this file and select "Edit". Once there you should have notepad pop up. Were just changing one line here.
TITLE Mod Updater - Made By Cbrad24
ECHO OFF
CLS
ECHO Starting Mod Updater - By Cbrad24
ECHO - - - - - - - - - - - - - - - - -
ECHO Starting Upload.
ECHO ---------------------------------
FTP -s:script.txt YOUR WEBSITE HERE (E.g. cbrad24.atspace.com)
ECHO ---------------------------------
ECHO Mod Updater Complete.
PAUSE (Can remove this. This just pauses it so you can see if there were any errors.)Kinda self explanatory. This is the line your changing in red. Any problems just PM me or try a combination of website names.
After that you want to create a new text file (Script.txt) in the same folder as the batch file. This will hold the code so when you run the batch file it knows what to do. Here is the layout you want.
<Username> (Cbrad24)
<Password> (Not telling you! >=[)
ASCII (Sets the upload type to ASCII for the Version.txt's)
SEND "C:\Users\Corey\Desktop\Mods\LR.txt" "/cbrad24.atspace.com/LockRequester/Version.txt" (Must use full path or a path relative to where you ran this file. E.g. "C:\Users\...." or if you ran this on your desktop "\Mods\LR.txt")
BINARY (Sets the upload type to BINARY for the .ZIP's)
SEND "C:\Users\Corey\Desktop\Mods\LockRequester.honmod" "/cbrad24.atspace.com/LockRequester/LockRequester.honmod" (Same as above)
QUIT (Disconnects from server and allows batch to end)After that save the file (TO THE SAME FOLDER AS THE BATCH) and run the Mod_Updater.bat. It should now work. If not send me a pm or post here and I'll help you out.
That finishes the guide on FTP. I plan to add auto zipping of the files too so you can update your mod by simply editing one file and running the batch (rather then zipping, uploading to website, etc...) so keep an eye out. ;)
Back To Top
____________________________________________
Editing The .honmod:
Simply enough you only have to add 2 lines of code to your mod.xml to add this functionality.
updatecheckurl="http://cbrad24.atspace.com/LockRequester/Version.txt"
updatedownloadurl="http://cbrad24.atspace.com/LockRequester/LockRequester.honmod"
Make sure you set the version to at least 1.2!
mmversion="1.2"Obviously you have to change the link to your own domain. But if you need to find the link just click the file and copy the browser link to the file.
As for where to put these tags, they belong in with the rest of the tags in the <modification> header. So it would look like this:
<modification
application="Heroes of Newerth"
appversion="-0.1.*"
mmversion="1.2"
name="The Mod's Name"
version="1.0"
description="Insert Description"
author="Your Nickname"
weblink="http://www.yourwebsite(or forum post).com/"
updatecheckurl="http://domainname.atspace.com/ModName/Version.txt"
updatedownloadurl="http://domainname.atspace.com/ModName/ModName.honmod"
>Back To Top
____________________________________________
Updating Via The Mod Manager:
There are 2 ways to update a mod in the Mod Manager.
Right Clicking The Mod:
http://i48.tinypic.com/2ebtm45.jpg
Update All Mods:
http://i47.tinypic.com/fycoow.jpg
Back To Top
____________________________________________
Miscellaneous:
If you have any questions/criticism or whatever feel free to comment. :P
Back To Top