Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

[RELEASE] SOURCED UPDATER


Warconn
 Share

Recommended Posts

Ok, i have finally decided to release the updater source!!!

here it is

CLIENT SIDE

In ModHandleData

add:
```
    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 casestrings

then

go to your frmipconfig

Add a button and name it btnstartupdate

double 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 files
go to config.ini in your client folder

open 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 SIDE

Go to ModHandleData

and 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 folder

Go to the server folder, and add a updates.ini

inside that file add
```

[UPDATES]
amount=3    'this is how many files you want to update
1=client.exe
2=MainMenu.jpg
3=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 file
2=\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 DONT

and that is all for that ini file

2/3 done
–--------------------------------------------------------------------------------------------

UPDATER EDITING

ok, the updater has some features that you can make your own. This is the GUI, an animated GIF, and the background of the progress bar

here are the files you could change to customize it more

All in the \GUI\ file

updater.bmp
updaterbanner.gif

You 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 updater
http://dl.getdropbox.com/u/301475/updater.exe

Before 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.OCX
http://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 updater
http://dl.getdropbox.com/u/301475/updater.exe

I also have the images here for you guys ;)
http://dl.getdropbox.com/u/301475/updater.bmp
http://dl.getdropbox.com/u/301475/updaterbanner.gif

sorry  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

  • Replies 71
  • Created
  • Last Reply

Top Posters In This Topic

@Ð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

@Ð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

@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 guys
Warconn
Link to comment
Share on other sites

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

[EDIT2]
I found a little bug which i have fixed, you need to get this new copy of the updater
http://dl.getdropbox.com/u/301475/updater.exe

I also have the images here for you guys ;)
http://dl.getdropbox.com/u/301475/updater.bmp
http://dl.getdropbox.com/u/301475/updaterbanner.gif

sorry  for the delay, i have been having troubles with my computer…
Link to comment
Share on other sites

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

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..

thanks
Warconn
Link to comment
Share on other sites

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 there

You cannot run the updater by itself, you must run it from the client for it to work.
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
 Share


×
×
  • Create New...