[Release] DOResourcesDownloader

12/02/2016 10:42 manulaiko3.0#1
I needed a resources downloader that could work through a proxy and as I was too lazy to search for it so I made it myself.

This downloader allows you to specify what you want to download (swf files, xml files, loading screen assets, 2d graphics or 3d graphics) through a proxy (or not) and specify the output directory.

Usage:
Code:
java -jar bin/dord.jar [args] [proxy (host:port)] [path_to_download]
If path_to_download isn't set, resources will be saved to the current working directory.

Available arguments:
  • -d - --debug: Enables debug mode (prints all files being downloaded).
  • -a - --all: Downloads all resources (default if no other argument is specified).
  • -x - --xml: Downloads only xml files.
  • -s - --swf: Downloads only swf files.
  • -2 - --2d: Downloads only 2D client files.
  • -3 - --3d: Downloads only 3D client files.
  • -i - --img: Downloads only do_img.
  • -l - --loadingScreenAssets: Downloads only loading screen assets.
  • -h - --host: Host to download files from (default test2.darkorbit.bigpoint.com).
  • -o - --overwrite: Overwrites already downloaded files (by default already downloaded files will be skipped).

All the parameters can be combined.

Examples:
Code:
java -jar bin/dord.jar --swf --2d --3d ~/DarkOrbit

java -jar bin/dord.jar --img ~/DarkOrbit

java -jar bin/dord.jar --swf --xml ~/DarkOrbit

java -jar bin/dord.jar -h test3.darkorbit.bigpoint.com

java -jar bin/dord.jar -h test3.darkorbit.bigpoint.com -o

java -jar bin/dord.jar 192.168.0.100:8080

java -jar bin/dord.jar
GitHub repository: [Only registered and activated users can see links. Click Here To Register...]
Download: [Only registered and activated users can see links. Click Here To Register...]
For reporting bugs or suggesting features start an issue: [Only registered and activated users can see links. Click Here To Register...]

If you want to add more files to download add a method to com.manulaiko.dord.launcher.downloader.Downloader and call it in the start method.
For downloading single files take a look at swf or xml methods. For downloading files from a xml file take a look at graphics2D, graphics3D, loadingScreenAssets or images methods.

As always, pull requests are welcome.

Changelog:

See you!
12/02/2016 11:33 Vreu#2
Add virustotal link
12/02/2016 11:39 manulaiko3.0#3
Quote:
Originally Posted by Vreu View Post
Add virustotal link
You're free to examine the source and compile it yourself.
12/02/2016 11:59 steppdroid#4
Hello, what compiler recommendations for it? Thanks
12/02/2016 12:07 manulaiko3.0#5
Quote:
Originally Posted by steppdroid View Post
Hello, what compiler recommendations for it? Thanks
If you're not paranoid as the user above, the jar file is in bin/dord.jar
Otherwise the easiest way would be to make a new IntelliJ IDEA project from the sources and run com.manulaiko.dord.launcher.Main.

If you don't have IDEA: [Only registered and activated users can see links. Click Here To Register...]
12/02/2016 12:26 steppdroid#6
Error..
[Only registered and activated users can see links. Click Here To Register...]
Can you add a version already compiled? i'm a noob in java :')
12/02/2016 12:29 manulaiko3.0#7
Quote:
Originally Posted by steppdroid View Post
Error..
[Only registered and activated users can see links. Click Here To Register...]
Enable debug mode with -d argument (and paste output here) and check your internet connection and directory permissions.
12/02/2016 12:38 -=Flavio=-#8
I'm going to use it to download and test Goliath-X on a private server
ty manulaiko <3
12/02/2016 12:54 manulaiko3.0#9
Quote:
Originally Posted by -=Flavio=- View Post
I'm going to use it to download and test Goliath-X on a private server
ty manulaiko <3
I've fixed the host argument in the new version (-h or --host).

Quote:
Originally Posted by steppdroid View Post
Error..
[Only registered and activated users can see links. Click Here To Register...]
Can you add a version already compiled? i'm a noob in java :')
Ok, the problem was because File.separator is the escape character in Windows (congrats Micro$oft).

New version: [Only registered and activated users can see links. Click Here To Register...]

Changelog:
Code:
* Fixed path separator in Winshit.

* Fixed host argument.