EQ2Interface.com
Search Downloads


Go Back   EQ2Interface > Featured Projects > EQ2MAP

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Unread 02-26-2005, 01:54 AM
taco-man's Avatar
taco-man taco-man is offline
EQ2MAP Updater Author
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Nov 2004
Server: Antonia Bayle
Posts: 1,349
Default Progress on Auto Updater

As some of you may know i am working on writing a visual basic .net program that downloads the newest versions of the map mod automaticly. I wasnt sure if i could do it or not, but apparently i can. i have gotten past everything i wasnt sure i could do, so i hope to have it finished by next week, however i cant promise that because of school and me possibly getting another job

Newest Image:
__________________
EQ2MAP Updater Download
EQ2MAP Website
How to Install a custom interface

Last edited by taco-man : 03-03-2005 at 11:52 PM.
Reply With Quote
  #2  
Unread 02-26-2005, 02:21 AM
Quib Quib is offline
A Griffon
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Jan 2005
Posts: 720
Default

If you'd like any help debugging (mostly making sure it works properly on any machine and has consistent results), that's my specialty. Although most of my experience is with C++, C# and Delphi, I've worked with VB.

Also, your source code is obviously your own; if you don't want anyone to see it, that's cool.

I don't have any way of compiling VB code at the moment, but I'm sure I could spot problems (if any) by reading over the code a couple times in a text editor.

I'm really really excited about this. I've got the XML (I'm pretty sure) 100% ready to accept the stuff generated by the EQ2MAP website.

Also, can you spare some details on how this'll work? What directory the user will run the updater from, etc.?

Quib
Reply With Quote
  #3  
Unread 02-26-2005, 02:30 AM
taco-man's Avatar
taco-man taco-man is offline
EQ2MAP Updater Author
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Nov 2004
Server: Antonia Bayle
Posts: 1,349
Default

here is my plan:
at first it will be run in your custom ui folder (where you want the xml files)

eventually i was hoping to have it run in your eq2 directory and make it read your eq2.ini file and just put the files into whatever directory the eq2.ini file is set up to, and if eq2.ini doesnt exist create it and make a folder for the custom ui directory in the eq2.ini file that it made. depending on how hard this is and how important people think this is will determine when i do this, if i do this.

the way it works is it goes to the webserver, downloads an xml file with all the file names of the maps and their md5 checksums, and then generates md5 checksums for all the files in your custom ui folder that you have that are in the file list. if the checksums dont match or the file does not exist, it downloads that file. It sounds simple but it took me a long time because i dont have much experience with vb .net.
__________________
EQ2MAP Updater Download
EQ2MAP Website
How to Install a custom interface
Reply With Quote
  #4  
Unread 02-26-2005, 02:44 AM
Quib Quib is offline
A Griffon
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Jan 2005
Posts: 720
Default

Quote:
Originally Posted by taco-man
here is my plan:
at first it will be run in your custom ui folder (where you want the xml files)

eventually i was hoping to have it run in your eq2 directory and make it read your eq2.ini file and just put the files into whatever directory the eq2.ini file is set up to, and if eq2.ini doesnt exist create it and make a folder for the custom ui directory in the eq2.ini file that it made. depending on how hard this is and how important people think this is will determine when i do this, if i do this.

the way it works is it goes to the webserver, downloads an xml file with all the file names of the maps and their md5 checksums, and then generates md5 checksums for all the files in your custom ui folder that you have that are in the file list. if the checksums dont match or the file does not exist, it downloads that file. It sounds simple but it took me a long time because i dont have much experience with vb .net.
Awesome, and it sounds like you've covered all the bases on functionality. Personally, I'd suggest staying with running it from their custom UI folder; eventually SOE will fix /loadui and we won't use eq2.ini anymore and some people will have a custom UI folder per character. It'll be a little wasteful, but they'd have a copy of the auto-updater in each of their custom UI folders...
or maybe we can move the eq2map folder to the default UI folder so it's consistent regardless of custom UI folder.

Your thoughts?

Quib
Reply With Quote
  #5  
Unread 02-26-2005, 03:13 AM
taco-man's Avatar
taco-man taco-man is offline
EQ2MAP Updater Author
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Nov 2004
Server: Antonia Bayle
Posts: 1,349
Default

sounds good to me i always like less work

by the way, you dont happen to know how to check if a file exists or not on a webserver do you? i tried using IO.File.Exists(url) but it didnt work, which is not suprising.
__________________
EQ2MAP Updater Download
EQ2MAP Website
How to Install a custom interface

Last edited by taco-man : 02-26-2005 at 03:16 AM.
Reply With Quote
  #6  
Unread 02-26-2005, 03:29 AM
Deathbane27's Avatar
Deathbane27 Deathbane27 is offline
aka Mook
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Jul 2004
Server: Nektulos
Posts: 1,451
Default

As a user, I'd prefer to have one program copy that checks eq2.ini, and gives a prompt asking if the target folder is correct, with an option to change it. If you get bored.

Putting the eq2map folder in the Default folder... an interesting concept.
__________________
If it ain't broke, it needs more features!
Reply With Quote
  #7  
Unread 02-26-2005, 03:01 PM
Killarny Killarny is offline
A Griffon
Interface Author - Click to view interfaces
 
Join Date: Dec 2004
Server: Neriak
Posts: 273
Default

Quote:
Originally Posted by taco-man
sounds good to me i always like less work

by the way, you dont happen to know how to check if a file exists or not on a webserver do you? i tried using IO.File.Exists(url) but it didnt work, which is not suprising.
If VB can easily parse HTML, you could check for a 404 ... I imagine you'd end up writing a text parsing routine for this, as I doubt VB comes with HTML classes. But, it should be fairly easy to check for a standard 404 result.
__________________
Reply With Quote
  #8  
Unread 02-27-2005, 12:39 AM
causas causas is offline
A Coastal Crab
 
Join Date: Feb 2005
Server: Antonia Bayle
Posts: 1
Default

Quote:
Originally Posted by taco-man
sounds good to me i always like less work

by the way, you dont happen to know how to check if a file exists or not on a webserver do you? i tried using IO.File.Exists(url) but it didnt work, which is not suprising.
I am not sure if .NET would support this, but if it does use an xmlhttp request(this was done in JavaScript):

Quote:
xmlhttp.open("HEAD", "URL_TO_CHECK",true);
xmlhttp.onreadystatechange=function() {
if (xmlhttp.readyState==4) {
if (xmlhttp.status==200) alert("URL Exists!")
else if (xmlhttp.status==404) alert("URL doesn't exist!")
else alert("Status is "+xmlhttp.status)
}
}
xmlhttp.send(null)
more information can be found here: http://jibbering.com/2002/4/httprequest.html
Reply With Quote
  #9  
Unread 09-03-2006, 01:56 AM
Fighter222 Fighter222 is offline
A Young Mystail Rat
 
Join Date: Aug 2006
Server: Antonia Bayle
Posts: 3
Default Maps not Work

Need help please!

My errors

Unknown Error: Microsoft.VisualBasic
at Microsoft.VisualBasic.CompilerServices.DoubleType.Parse(String Value, NumberFormatInfo NumberFormat)
at Microsoft.VisualBasic.CompilerServices.IntegerType.FromString(String Value)
at Microsoft.VisualBasic.CompilerServices.IntegerType.FromObject(Object Value)
at WindowsApplication7.Form1.DownloadExtras()
at WindowsApplication7.Form1.DoUpdates()
at WindowsApplication7.Form1.Timer3_Tick(Object sender, EventArgs e)
at System.Windows.Forms.Timer.OnTick(EventArgs e)
at System.Windows.Forms.Timer.Callback(IntPtr hWnd, Int32 msg, IntPtr idEvent, IntPtr dwTime)The currency separator information specified in the NumberFormatInfo is ambiguous for parsing.

Pc works with windows 2000
Reply With Quote
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 05:48 PM.


Our Network
EQInterface | EQ2Interface | WoWInterface | LoTROInterface | ESOUI | MMOUI