XL-Updater (D2X-XL Auto-Update Tool)
Moderators: Grendel, Aus-RED-5
XL-Updater (D2X-XL Auto-Update Tool)
XL-Updater 0.1 \"Really Early Alpha\" Released
Windows-Only Release
Installation & Use:
- copy 'xl-updater' into your D2X-XL root folder, then run
a few things to note:
1) 'data' folder support is not yet complete....currently, everything will be extracted to the main folder
2) JRE 1.5 is required
3) The GUI sucks at the moment...I'm doing my best w/o using a layout manager
4) Must have D2X-XL 1.5.99 or later for checking to work correctly (will soon have the program download/install a new version automatically if -print_version switch is not avaliable)
5) I am well aware the Close button does not work....use the X button in the meantime
6) Some junk files are still left behind after program termination....if you need a really clean PC 24/7, feel free to delete 'd2x-xl.zip' and 'd2x-xl-version.txt' after each run
7) progress bar does not work (need to read up on Threads to get this working)
Basically...I wanna see if all the basics are down before I start tweaking Well then....
Download:
http://rapidshare.de/files/11845306/xl-updater.zip.html
Windows-Only Release
Installation & Use:
- copy 'xl-updater' into your D2X-XL root folder, then run
a few things to note:
1) 'data' folder support is not yet complete....currently, everything will be extracted to the main folder
2) JRE 1.5 is required
3) The GUI sucks at the moment...I'm doing my best w/o using a layout manager
4) Must have D2X-XL 1.5.99 or later for checking to work correctly (will soon have the program download/install a new version automatically if -print_version switch is not avaliable)
5) I am well aware the Close button does not work....use the X button in the meantime
6) Some junk files are still left behind after program termination....if you need a really clean PC 24/7, feel free to delete 'd2x-xl.zip' and 'd2x-xl-version.txt' after each run
7) progress bar does not work (need to read up on Threads to get this working)
Basically...I wanna see if all the basics are down before I start tweaking Well then....
Download:
http://rapidshare.de/files/11845306/xl-updater.zip.html
Re:
http://en.wikipedia.org/wiki/MD5Diedel wrote:What is an MD5 check?
I did say that an external program can do this just as easily....and I did say that this sounds easy enough even for me to do
I'll make the Swing GUI first....then I'm gonna have to think about how to get the update info from the servers....something tells me I can't use MD5 hashes on the actual application :/ (maybe a small text file saying what's the latest version is)
Re:
take that backSirius wrote:Honestly, no cockpit is better anyway.
Diedel.....I need to talk with you in real-time somehow. I heard you use IRC, so just name the server and channel
Re:
which server/channel??? :/ there are 2Diedel wrote:We can talk, but only at 22:00 GMT+1 or later (which would be about 3 hours from when I am typing this). We can meet in the Descent channel (I am using Vortex to visit it).
that was teh fun
while I was talking with you, I noticed a big flaw with how I created the GUI (guess it doesn't like me adding ActionListeners to static objects)...no probs though, I'll put in more than 1 hour this time
but yeah, if you could implement that command line switch for me, that would be a big help
edit> K....rewritten the GUI, got the ActionListeners to work....just waiting now on the switch
while I was talking with you, I noticed a big flaw with how I created the GUI (guess it doesn't like me adding ActionListeners to static objects)...no probs though, I'll put in more than 1 hour this time
but yeah, if you could implement that command line switch for me, that would be a big help
edit> K....rewritten the GUI, got the ActionListeners to work....just waiting now on the switch
Re:
stdout will do fineDiedel wrote:Where should the output go to: stdout? text file?
need to start thinking about how to check/download the current version that is on the servers....I got some ideas, but it might require you to do something a little(little little) extra for every release :/
Some current ideas
1)Less bandwidth idea: maybe put a small text file on the servers....put the most recent version number in there....should only take up bytes of bandwidth for the check.
2)More bandwidth idea: do releases as you normally do....every time a version check is queried, that whole archive is downloaded, unpacked, "--version"ed, and if it is newer, overwritten on top of the old version. Dial-up people will hate this, cause it will always download 600KB even if no update is avaliable :/
Re:
ooohhh....that's even better ^^Diedel wrote:All you'd need to do is to examine d2x.html for the package file names, as they all now contain the current version number.
might think about putting a changelog viewer right into the GUI, but I wanna get the basics down first
Just a little update:
I got checking for the server's current version working (dunno how though....that part of code is extremely messy....it'll work for now, but I gotta change it if I want it to support multiple OSes ).....it checks the version in the download link
now please...implement that switch for me
I got checking for the server's current version working (dunno how though....that part of code is extremely messy....it'll work for now, but I gotta change it if I want it to support multiple OSes ).....it checks the version in the download link
now please...implement that switch for me
Another update on my project \"XL-Updater\" (I have such creativity )
Everything is pretty much done for a open beta release....got checking server version, downloading, and unzipping working...now all that's left to do is to (once again) bug Diedel for a --version switch and implement that.....
so bug him now
Everything is pretty much done for a open beta release....got checking server version, downloading, and unzipping working...now all that's left to do is to (once again) bug Diedel for a --version switch and implement that.....
so bug him now
Re:
Diedel wrote:Kirby,
d2x-xl v1.5.99 will print the version string into a file named 'd2x-xl-version.txt' in the data folder (application folder if no data folder present), when called with switch '-print_version' and will then immediately terminate.
Thanks for bringing up the different folders D2X-XL supports....I totally forgot about that, cause right now everything unzips into the main folder.
I hope java.io provides a directory method
edit> http://java.sun.com/j2se/1.5.0/docs/api ... tml#exists()
looks like I got lucky I LOVE JAVA!!! ^^
Well, I know that I'm little bit late... But if someone will need to do a version check (of something else), here is the source of tiny program that can do it (written for the Nullsoft Install System on its script language):Diedel wrote:d2x-xl v1.5.99 will print the version string into a file named 'd2x-xl-version.txt' in the data folder (application folder if no data folder present), when called with switch '-print_version' and will then immediately terminate.
Code: Select all
OutFile "d2x_ver.exe"
SilentInstall silent
Section ""
GetDllVersion "d2x-xl.exe" $R0 $R1
IntOp $R2 $R0 / 0x00010000
IntOp $R3 $R0 & 0x0000FFFF
IntOp $R4 $R1 / 0x00010000
ClearErrors
FileOpen $0 "d2x-xl-version.txt" w
IfErrors done
FileWrite $0 "$R2.$R3.$R4"
FileClose $0
done:
SectionEnd
May I also note that people may not want their d2x.ini file overwritten, specially if it has player name in it to start automatically.
Maybe check the date of the unpacking ini file against the existing one and if newer, display both so new ini lines can be copied across. (Or something like that)
Maybe check the date of the unpacking ini file against the existing one and if newer, display both so new ini lines can be copied across. (Or something like that)
Pilot from Oz
Re:
Who made this into a topic????
I don't think ANYONE wants their d2x.ini file overwritten....I will probably exclude this file from being extracted by default, and add a option later if someone so happens to request it for some odd reasonWeyrman wrote:May I also note that people may not want their d2x.ini file overwritten, specially if it has player name in it to start automatically.
getting the DLL Version was my first idea, but this would of only worked for Windows users....using a switch just seems more versatileWell, I know that I'm little bit late... But if someone will need to do a version check (of something else), here is the source of tiny program that can do it (written for the Nullsoft Install System on its script language):
Re:
Me.Kirby wrote:Who made this into a topic????
Re:
There....now we can both live happily ever afterDiedel wrote:Why do you want to rename it to "XL"-Updater, when it's for "D2X-XL"? You can do that yourself by editing your first post, btw. I won't hinder you, though questioning decisions of mine in this forum area can have unforeseeable consequences ... (ooooh, the feeling of MOD POWAH! )