Warconn Posted February 24, 2009 Author Share Posted February 24, 2009 Ok, i have finally decided to release the updater source!!!here it isCLIENT SIDEIn ModHandleDataadd:``` If casestring = "updates" Then Dim updatename As String Dim Ending Dim path As String Dim retval As String Dim theURL Dim savepath Dim number As Integer Dim Amount updatename = parse(1) path = parse(2) number = parse(3) Amount = parse(4) Call WriteINI("UPDATES", STR(number), updatename, App.path & "\update.ini") Call WriteINI("PATHS", STR(number), path, App.path & "\update.ini") Call WriteINI("UPDATES", "amount", STR(Amount), App.path & "\update.ini") If updatename = "complete" Then Call Shell(App.path & "\updater.exe", vbNormalFocus) Call GameDestroy End If End If```to the end of the casestringsthengo to your frmipconfigAdd a button and name it btnstartupdatedouble click the button to add this code to it:``` MsgBox "Your download is about to begin, this will take 2-5 minutes to update. Please Do not go to a different screen as it slows down the updating process. Thanks", vbOKOnly, "Update" Call SendData("loadupdates" & END_CHAR)```after you have added that, we will edit some of the config filesgo to config.ini in your client folderopen up the file, and under the heading [IPCONFIG]add```website=PUT THE ROOT OF THE WEBSITE HERE THAT HAS ALL THE FILES 'ex http:\\www.eclipse.webs.com\updatefiles\```a note on this*** all of your files MUST be in the same directory on your website, DONOT add different files in the directory***once that is done, your are done client side, 1/3 of the way done ;)–--------------------------------------------------------------------------SERVER SIDEGo to ModHandleDataand after``` Case "returningcustomboxmsg" Call Packet_CustomBoxReturnMsg(index, Val(parse(1))) Exit Sub```add``` Case "loadupdates" 'loadupdates Dim onename As String Dim onepath As String Dim number Dim path As Long Dim ending As Long Dim Amount As Long Dim update As Integer number = 1 Amount = ReadINI("UPDATES", "amount", App.path & "\updates.ini", vbNullString) Do While number <= Amount onename = ReadINI("UPDATES", str(number), App.path & "\updates.ini", vbNullString) onepath = ReadINI("PATHS", str(number), App.path & "\updates.ini", vbNullString) Call SendDataTo(index, "updates" & SEP_CHAR & onename & SEP_CHAR & onepath & SEP_CHAR & number & SEP_CHAR & Amount & END_CHAR) number = number + 1 Loop Exit Sub```Once that is done, we have to add an ini to the server folderGo to the server folder, and add a updates.iniinside that file add```[UPDATES]amount=3 'this is how many files you want to update1=client.exe2=MainMenu.jpg3=complete 'this needs to be the last thing on your list, without it, the updater will not stop updating [PATHS]1=\ 'these are the paths that you want the files downloaded to, one slash is the root of the file2=\GUI\3= 'donot put anything for the complete path, it will not do anything```DONT FORGET TO TAKE OUT THE NOTES BEFORE YOU RUN IT, IT WILL NOT WORK IF YOU DONTand that is all for that ini file2/3 done–--------------------------------------------------------------------------------------------UPDATER EDITINGok, the updater has some features that you can make your own. This is the GUI, an animated GIF, and the background of the progress barhere are the files you could change to customize it moreAll in the \GUI\ fileupdater.bmpupdaterbanner.gifYou can change all of thoughs to what ever you choose, but please dont use the ones that are in New Colony online…That is about it, here is the link to the updaterhttp://dl.getdropbox.com/u/301475/updater.exeBefore you ask any questions about how you cannot get it to work, download New Colony Online, go to the configuration menu, and watch how it runs.[EDIT]you need to dl and register these files for the updater to work ;)http://dl.getdropbox.com/u/301475/ANIGIF.OCXhttp://dl.getdropbox.com/u/301475/ccrpprg6.ocx[EDIT2]I found a little bug which i have fixed, you need to get this new copy of the updaterhttp://dl.getdropbox.com/u/301475/updater.exeI also have the images here for you guys ;)http://dl.getdropbox.com/u/301475/updater.bmphttp://dl.getdropbox.com/u/301475/updaterbanner.gifsorry for the delay, i have been having troubles with my computer…Thanks, any troubles, let me know...Warconn Link to comment Share on other sites More sharing options...
Warconn Posted February 24, 2009 Author Share Posted February 24, 2009 oops, forgot to add the dll's for the gif and bar…i updated the main post Link to comment Share on other sites More sharing options...
Drag0n Posted February 24, 2009 Share Posted February 24, 2009 trying this out. THANKS! I needed a non-Triad really bad..Let me check it out. Link to comment Share on other sites More sharing options...
Lanphrost Posted February 24, 2009 Share Posted February 24, 2009 Looks good, bookmarking this page for when my game is ready to have this installed. Has it been tested? Link to comment Share on other sites More sharing options...
Warconn Posted February 24, 2009 Author Share Posted February 24, 2009 yea, it has been fully tested, you can try it out yourself by downloading New Colony Online, found in my sigthanks guys Link to comment Share on other sites More sharing options...
Drag0n Posted February 24, 2009 Share Posted February 24, 2009 I'm testing right now, shouldn't be too long. Wait a bit. Link to comment Share on other sites More sharing options...
Drag0n Posted February 24, 2009 Share Posted February 24, 2009 What is the Animation GIF Control 2.30 serial? I can't seem to get it to work without it.. Link to comment Share on other sites More sharing options...
ewcreator Posted February 25, 2009 Share Posted February 25, 2009 I think it for the progress (am I right?) Link to comment Share on other sites More sharing options...
Warconn Posted February 25, 2009 Author Share Posted February 25, 2009 @ÃÂragon:> What is the Animation GIF Control 2.30 serial? I can't seem to get it to work without it..for that, just hit continue or ok, i dont have a serial number for that, it is the only way that i found atleast to run a GIF animation…Yea, you dont have to register that to use the updater Link to comment Share on other sites More sharing options...
Tyr Posted February 25, 2009 Share Posted February 25, 2009 @ÃÂragon:> trying this out. THANKS! I needed a non-Triad really bad..> > Let me check it out.There are loads more other patchers avaible, such as neoncube (fully adaptable gui and style)good job Warconn, i didn't know you were going to release you hard work, I hope this helps ppl out! Link to comment Share on other sites More sharing options...
Warconn Posted February 25, 2009 Author Share Posted February 25, 2009 @Tyr:> There are loads more other patchers avaible, such as neoncube (fully adaptable gui and style)> > good job Warconn, i didn't know you were going to release you hard work, I hope this helps ppl out!thanks, i decided to because i remember when i started, i really needed an updater, so this way, everyone can have one. I am also hoping it might get put into 3.0 ;)Thanks guysWarconn Link to comment Share on other sites More sharing options...
Lanphrost Posted February 25, 2009 Share Posted February 25, 2009 This would go great in my updater wish then ;D Link to comment Share on other sites More sharing options...
Warconn Posted February 25, 2009 Author Share Posted February 25, 2009 yes it would ;) Link to comment Share on other sites More sharing options...
Drag0n Posted February 25, 2009 Share Posted February 25, 2009 Is there any download for the images, / image sizes? Link to comment Share on other sites More sharing options...
Warconn Posted February 26, 2009 Author Share Posted February 26, 2009 ooo. Forgot to add those. M computer is crrently off now b/c I'm adding memory to it. Once I get it up and running I'll add the imagesThanks for the reminderWarconn Link to comment Share on other sites More sharing options...
Drag0n Posted March 3, 2009 Share Posted March 3, 2009 Please hurry, I need this for Alpha and Beta. Link to comment Share on other sites More sharing options...
Guest Posted March 3, 2009 Share Posted March 3, 2009 It works like a charm, but still need to be able to change the images. I'm waiting on the them!Thanks, it is exactly what I needed. Great Job! Link to comment Share on other sites More sharing options...
Warconn Posted March 3, 2009 Author Share Posted March 3, 2009 [EDIT2]I found a little bug which i have fixed, you need to get this new copy of the updaterhttp://dl.getdropbox.com/u/301475/updater.exeI also have the images here for you guys ;)http://dl.getdropbox.com/u/301475/updater.bmphttp://dl.getdropbox.com/u/301475/updaterbanner.gifsorry for the delay, i have been having troubles with my computer… Link to comment Share on other sites More sharing options...
Drag0n Posted March 4, 2009 Share Posted March 4, 2009 Thanks Warconn! Any specific size for the GIF though? Link to comment Share on other sites More sharing options...
Warconn Posted March 4, 2009 Author Share Posted March 4, 2009 what ever size that gif is, use that as a base for whatever you are doing. Link to comment Share on other sites More sharing options...
Drag0n Posted March 4, 2009 Share Posted March 4, 2009 Okay. Thanks for your help, I will definitely use this! Link to comment Share on other sites More sharing options...
Guest Posted March 4, 2009 Share Posted March 4, 2009 Thanks for the Update! I was wondering why the images were not changing.Update: The "updaterbanner.gif" is still not changing.Can you just release the source files, and I'll add you to creds.[Edit]I meant I plan on adding you to creds anyways, I really like the updater but the .gif is still not changing.Thats a bummer that your not going to post the source. I was going to see if there was a another way to run the .gif cause it acts like it is stored in the animator and thats why it is not changing when I update it."Unless I have to use a GIF of the same exact size".. which is a hassle. and honesly the animator popup is horrid for users, but livable for the meantime.Do you think you could configure it to autorun on startup, kinda like Triad does, that would be more user friendly for clients, instead of having to manually do it every update?It's just a thought, I'm not trying to cause you more work or grief, but if I'm going to continue to use it I'd like for it to be somewhat customizable if your not posting the source. As of right now the GIF problem is abit un-nerving, Or you could even yet post an updater without the GIF animator and GIF.I'm sorry if I sound so picky or unappreciative but, this updater has more possiblities and I'd like to see it put to full use, without limitations. I have been working hard on my game and these minor things just tend to stick out like a sore thumb.I hope this doesn't come to you in any offense as this is not my intent. So far you've done a great job with it. But if your going to post such things for other members to use, you should allow them the option for full customization.Believe me if I could make my own I would, but why waste time if someone is going to offer. Link to comment Share on other sites More sharing options...
Warconn Posted March 4, 2009 Author Share Posted March 4, 2009 nah, im not releasing the actual updater source, did you download the new updater.exe, redownload that, then try with the changed images…i would apperciate it if you add me to the credits either way..thanksWarconn Link to comment Share on other sites More sharing options...
Drag0n Posted March 4, 2009 Share Posted March 4, 2009 What do you actually do with the updater.exe.. Why is there a button in IPCONFIGDoes it run the updater.exe? If so where should I put it? Link to comment Share on other sites More sharing options...
Warconn Posted March 4, 2009 Author Share Posted March 4, 2009 yes, the button can really go anywhere aslong as you include the code that is suppost to go with it.What the button does it creates a ini of all the updates, it closes the client, runs the updater, once the update is done, it deletes the ini, like it was never thereYou cannot run the updater by itself, you must run it from the client for it to work. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now