Digital Paint Discussion Board

Paintball 2: The Game => Paintball 2 Discussion => Topic started by: ViciouZ on April 15, 2007, 04:35:28 AM

Title: DPGet v0.8 Open Beta
Post by: ViciouZ on April 15, 2007, 04:35:28 AM
Recently I've been messing around with batch scripts, like the Community Edition installer script, and the way that with a few easily found freeware tools it can be used as a simple, very easy to learn and quite powerful programming language. Anyway, I decided to see what I could do with a simple batch script and a freeware tool, and this is what I came up with:

DPGet 0.8
Download attatched on latest build release post

Feedback please :-)

Incase you were wondering, the database updates every time you run. If enough people vote for this then it will go in build018's community edition.

edit:

What it is is a small program which you can use to download a map from dplogin.com/files/maps by entering its name.
It also uses a (currently) small database of DP-related files which is hosted on my webserver. You can browse these files or search through them. When you find a file you like, type in the number displayed to the left of the file, and it will be downloaded to the same directory as DPGet. In the case of maps, they are copied to %dppath%\pball\maps\.

Planned Features:
-Better Searching (no capitalisation problem)
-More map sources (if the file cannot be found on dplogin, go to OTB etc.
-More files in the database

Please reply here if you find any bugs.

Edit2: Due to an odd change in licensing, i've had to remove download.exe from the zip.
Please download it here:
http://www.noeld.com/programs.asp?cat=misc#download (It's under "File Downloader")
and place in the same folder as DPGet.bat
resolved
Title: Re: DPGet v0.2 Open Beta
Post by: lekky on April 15, 2007, 04:47:14 AM
but what is it!! :P

Edit: so what database does it download from?
Title: Re: DPGet v0.2 Open Beta
Post by: ViciouZ on April 15, 2007, 04:59:34 AM
One hosted on my webserver, which I'm going to add a load of files to.
Title: Re: DPGet v0.2 Open Beta
Post by: lekky on April 15, 2007, 05:54:31 AM
www.clan-qehs.co.uk/downloads (http://qehs.indiereview.co.uk/webspell/index.php?site=files&file=5)
Title: Re: DPGet v0.2 Open Beta
Post by: KnacK on April 15, 2007, 06:34:43 AM
I believe that a LOT more information is needed.

I like the enthusiasm, but need more info.
Title: Re: DPGet v0.2 Open Beta
Post by: KnacK on April 15, 2007, 06:40:35 AM
both
Title: Re: DPGet v0.2 Open Beta
Post by: lekky on April 15, 2007, 06:41:07 AM
the post. Needs more info about what you are offering, and how it works i expect.
Title: Re: DPGet v0.2 Open Beta
Post by: ViciouZ on April 15, 2007, 06:46:54 AM
If you want to know how it works, right click on DPGet.bat and click edit. Batch scripting is a very easy language to understand. You may notice it uses a lot of workarounds to achieve its aims.
Title: Re: DPGet v0.2 Open Beta
Post by: KnacK on April 15, 2007, 07:08:26 AM
If you want to know how it works, right click on DPGet.bat and click edit. Batch scripting is a very easy language to understand. You may notice it uses a lot of workarounds to achieve its aims.


OK...

But give us the details for all that it does.
/me is gonna wring ViciouZ like a wet sponge to get info outa him.
Title: Re: DPGet v0.2 Open Beta
Post by: ViciouZ on April 15, 2007, 07:10:05 AM
Quote
What it is is a small program which you can use to download a map from dplogin.com/files/maps by entering its name.
It also uses a (currently) small database of DP-related files which is hosted on my webserver. You can browse these files or search through them. When you find a file you like, type in the number displayed to the left of the file, and it will be downloaded to the smae directory as DPGet. In the case of maps, they are copied to C:\games\paintball2\pball\maps\.

Planned Features:
-Better Searching (no capitalisation problem)
-More map sources (if the file cannot be found on dplogin, go to OTB etc.
-More files in the database
-.-

Also, you can read the readme.

Or choose the 'About' Option.

OK, I need some help here. Could somebody post links to as many map sources as possible. I was going to use maps.ch1ll.com but that seems to be dead. What would really be helpful if someone downloaded all the maps from DPlogin.com, OTB, Rock, etc. and host them all on one server.
Title: Re: DPGet v0.2 Open Beta
Post by: KnacK on April 15, 2007, 07:19:48 AM
I just tried to find the license for this little download.exe program.  It appears that it is shareware and not open source.

You might want to contact the author about using it.
just my $.02

On a side note - I like the program/batch script that you have written.  Maybe you might want to tag up with Z and work on something bigger.
Title: Re: DPGet v0.2 Open Beta
Post by: ViciouZ on April 15, 2007, 07:23:27 AM
What the HELL?!
As of yesterday that was freeware.
Knack, get on IRC, either network, I would like to talk to you.
Title: Re: DPGet v0.2 Open Beta
Post by: Eiii on April 17, 2007, 07:00:08 PM
Heh, I wrote a program just a few weeks ago that does exactly this. It's attached, along with a readme.

EDIT- Removed. New version below.
Title: Re: DPGet v0.2 Open Beta
Post by: y00tz on April 17, 2007, 08:53:57 PM
recommendation: this line right here...

Code: [Select]
echo copy %map% C:\games\paintball2\pball\maps\ >>dlmap.bat
does not work for everyone... what about a 'set pb directory' option where we could type in the address.

Cheers,
y00tz.


btw - eiii you're program is over twice the size of his.. ;)
Title: Re: DPGet v0.2 Open Beta
Post by: Cobo on April 17, 2007, 08:57:53 PM
HKEY_LOCAL_MACHINE\SOFTWARE\Digital Paint\Paintball2 INSTDIR
Registry key for DP2 installation.
Title: Re: DPGet v0.2 Open Beta
Post by: y00tz on April 17, 2007, 08:58:58 PM
Bam, atta boy good work Cobo
Title: Re: DPGet v0.2 Open Beta
Post by: Eiii on April 17, 2007, 09:23:51 PM
btw - eiii you're program is over twice the size of his.. ;)

btw - mine is a stand-alone program. His his a batch file that goes with a third-party program you have to download.

Thanks for that, cobo, I'll implement it.
PS- Can't access registry from BAT files, I believe. C# FTW! :D
Title: Re: DPGet v0.2 Open Beta
Post by: Cobo on April 17, 2007, 09:25:19 PM
I believe you can acces registry files from bat files, eiii :P
But anyway, C# would work way better than a batch file, except you dont give the source :P
Title: Re: DPGet v0.2 Open Beta
Post by: Eiii on April 17, 2007, 09:27:01 PM
Ooh, using reg.exe. Yeah, didn't think of that. <_<
Title: Re: DPGet v0.2 Open Beta
Post by: Cobo on April 17, 2007, 09:37:59 PM
Thats why you never got to be a cow!
Title: Re: DPGet v0.2 Open Beta
Post by: Eiii on April 17, 2007, 09:51:30 PM
:(

New version, anyway. Now uses the registry, as Cobo pointed out, and added error handling which was for some reason missing from the version I posted.
Title: Re: DPGet v0.2 Open Beta
Post by: Cobo on April 17, 2007, 09:55:22 PM
k, now make a GUI :)
and 'maybe' you'll get to be a cow someday ;)
Title: Re: DPGet v0.2 Open Beta
Post by: Eiii on April 18, 2007, 12:14:13 AM
...that sounds like just going to the maps folder on dplogin.
Title: Re: DPGet v0.2 Open Beta
Post by: y00tz on April 18, 2007, 05:46:52 AM
btw - eiii you're program is over twice the size of his.. ;)

btw - mine is a stand-alone program. His his a batch file that goes with a third-party program you have to download.

Haha the size difference was 1kb, twas a joke.
Also, there is no need for a GUI for such a simple program.

Cheers,
y00tz
Title: Re: DPGet v0.2 Open Beta
Post by: ViciouZ on April 18, 2007, 09:22:14 AM
I'm implementing an update feature into the program to check for updates on the packages you download when you run paintball.
Also new is going to be:
- Improved searching
-Ability to choose pball directory done 0.3
- Possibly integrated installers for zip files

Thanks for the suggestions. Anyway, I've reached an agreement with the author of download.exe and for the tiny fee of £6 I can redistrobute it.

The great thing about batch files are
1. They're easy to use.
2. Anyone can see the code, learn from it, point out errors and make their own improvements.

Here is 0.3

Also, if you want a LOT of maps (complete OTB ftp server) type *.bsp at the "Enter map name..." dialog. Note: typing *.* intercourses up DPGet by copying the files.
Title: Re: DPGet v0.2 Open Beta
Post by: KnacK on April 18, 2007, 11:22:13 AM
Filter out *.* so that it doesn't happen.
Title: Re: DPGet v0.2 Open Beta
Post by: ViciouZ on April 18, 2007, 11:38:00 AM
I will in 0.4 when I get back.
Title: Re: DPGet v0.2 Open Beta
Post by: y00tz on April 18, 2007, 02:13:48 PM
Suggestions:

1.  Allow users to not enter a directory, and allow it to go to default. (C:\games\paintball2)
2.  The typing TWICE of the pb2 directory seems annoying and pointless

Note: when it asks you to reenter the directory, just hit up and it should show it

Question, what license is this released under, can the user redistribute?

edit: +1 karma for good work, keep it up
Title: Re: DPGet v0.2 Open Beta
Post by: Cobo on April 18, 2007, 02:29:32 PM
The great thing about batch files are
1. They're easy to use.
2. Anyone can see the code, learn from it, point out errors and make their own improvements.

C# is easy to use and since c# is a .NET language, I can use .NET reflector to see the code :P
Title: Re: DPGet v0.2 Open Beta
Post by: Zorchenhimer on April 18, 2007, 02:48:55 PM
1.  Allow users to not enter a directory, and allow it to go to default. (C:\games\paintball2)

Bad idea. I have 3 versions of pball on my computer, and I want it to go to the right one (currently "\painball2b17").
Title: Re: DPGet v0.2 Open Beta
Post by: y00tz on April 18, 2007, 03:22:24 PM
1.  Allow users to not enter a directory, and allow it to go to default. (C:\games\paintball2)

Bad idea. I have 3 versions of pball on my computer, and I want it to go to the right one (currently "\painball2b17").

I believe you missed my reply earlier where I recommended (http://dplogin.com/forums/index.php?topic=5865.msg67835#msg67835) he allow users to change the directory.  What I'm saying is, if a user just hits enter twice it would default C:\games\paintball2\, instead of nothing.  He should allow users to set directories as I stated before, I was just suggesting he add a 'catch' for the end-user if they fail to enter something.

I guess to understand the context, you would have had to read my reply earlier.

No harm.
Cheers,
y00tz
Title: Re: DPGet v0.2 Open Beta
Post by: Zorchenhimer on April 18, 2007, 06:29:40 PM
Sorry, must have over read that.
Title: Re: DPGet v0.2 Open Beta
Post by: y00tz on April 18, 2007, 08:05:08 PM
Yeah np Z, :P I was just thinking of a way to improve the program without adding unnecessary junk. 
Title: Re: DPGet v0.2 Open Beta
Post by: KnacK on April 18, 2007, 08:21:03 PM
Also,

Depending upon the reg key for the install directory is not a good thing. As I also have a few different versions installed like Z does.


Keep up the great work though V
Title: Re: DPGet v0.2 Open Beta
Post by: ViciouZ on April 19, 2007, 10:49:23 AM
OK, here's version 0.4:

Changes:
- Default DP directory (just press enter)
- Filtered out *.* on map input screen
- Fixed bug in "Search Files"
- Added buggy but usable "Check fo updates" option *
- Edited about text :D

*Currently only works for the script itself. Please test this option to see if it works. Currently it will ALWAYS find a new version, that is in there for testing purposes.

Remember: If you find any bugs or have suggestions or questions just post them here or PM me.
Title: Re: DPGet v0.4 Open Beta
Post by: y00tz on April 19, 2007, 12:10:23 PM
Please test this option to see if it works. Currently it will ALWAYS find a new version, that is in there for testing purposes.

It works.

Good job V, it works very smooth.  When I try to download map *.bsp it downloads 5 then freezes (on 1_.. something or another)  Do I just have all maps or is this a problem?

Well done,
Cheers,
y00tz
Title: Re: DPGet v0.4 Open Beta
Post by: ViciouZ on April 19, 2007, 01:23:00 PM
Wow. We should have a community development team, VWXYZ.
Whoever wants to fill the W and X slots contact me, lol.

Edit:
When I try to download map *.bsp it downloads 5 then freezes (on 1_.. something or another)  Do I just have all maps or is this a problem?
I think that was a bug on the OTB servers. I left my copy of DPGet running and it managed to get to shazam so I don't think it was the script.
Title: Re: DPGet v0.4 Open Beta
Post by: Zorchenhimer on April 19, 2007, 01:30:11 PM
I would try to see if I got the same error, but it won't go through my proxy. Don't worry about trying to make it go through it, I've got 16 days till the end of the semester (ie No more evil proxy! WOO!). Besides, nothing gets through the bloody thing. :)
Title: Re: DPGet v0.4 Open Beta
Post by: y00tz on April 19, 2007, 05:08:59 PM
Wow. We should have a community development team, VWXYZ.
Whoever wants to fill the W and X slots contact me, lol.

lol!
Title: Re: DPGet v0.5 Open Beta
Post by: ViciouZ on April 21, 2007, 12:27:38 PM
Ok, version 0.5:

- Added news feature.
- Added fallback map server *
- Fixed mahusive bug to do with DP directory

* If a map is not found on OTB, it will try DPLogin. I will add more soon, but atm I haven't tested it because I have yet to find a map OTB don't have.

Want to release this before I start working on a package updater for Zorch's menus.

You can download it here, but I'd rather you tried the update feature. If a news feature appears on the menu, it will have worked. Post back here for feedback.
Title: Re: DPGet v0.6 Open Beta
Post by: ViciouZ on April 22, 2007, 12:58:03 PM
Version 0.6 released!
To get it use the inbuilt update feature.
If you're Zorchenhimer, I've uploaded it here too.
New features
- Bugfixes
- Package updater for Z's menus
Title: Re: DPGet v0.5 Open Beta
Post by: Zorchenhimer on April 22, 2007, 01:07:35 PM
If you're Zorchenhimer, I've uploaded it here too.

:D Thanks!
Title: Re: DPGet v0.6 Open Beta
Post by: y00tz on April 22, 2007, 01:09:22 PM
Happy (14th) birthday!

2 notes:
-If I select 4 ("Check for package updates") it crashes (Meaning Z hasn't updated his since my version? IDK)
-When I go to the about section it stills says 0.4 (leading me to believe for a bit that it wasn't updating).

I just noticed these two immediately, now I'll take the time to check it out further

Good work, as always, and thanks

Cheers,
y00tz
Title: Re: DPGet v0.5 Open Beta
Post by: ViciouZ on April 22, 2007, 01:18:26 PM
Oh excrement
seems my coding isnt that great
i'll fix it tomorrow.
Title: Re: DPGet v0.5 Open Beta
Post by: ViciouZ on April 23, 2007, 09:26:24 AM
Ok, y00tz, please download attatched file, unzip the 2 files (not the directory) to dpget directory, and click runme. Then reply here with the generated debug.txt
Title: Re: DPGet v0.5 Open Beta
Post by: GreenAffairz on April 23, 2007, 12:55:08 PM
im at school right now but it seems interesting, ill check it out later :]
Title: Re: DPGet v0.5 Open Beta
Post by: y00tz on April 26, 2007, 08:09:14 PM
Zorchenheimer is planning on making themes for his new menu pack - looks like DPGet could have yet another use.. a theme browser and downloader for the menu pack :)
Title: Re: DPGet v0.6 Open Beta
Post by: ViciouZ on May 01, 2007, 10:49:09 AM
If anyone is using this I recommend they don't use the databse for a couple of days as I am testing a new tool which developers of DP Content will like. Check the news for more info.

Sadly, DPGet 0.7 will also be delayed as due to curiosity and a bug in the update system, my mum has accidentally overwritten the DPGet 0.7 beta with 0.6.

If anyone has any Ideas or requests for features please post them somewhere. Also, if you have a good knowledge of both English and German, have a couple of spare hours, and are interested in translating DPGet then please drop me a PM.
Title: Re: DPGet v0.5 Open Beta
Post by: lekky on May 01, 2007, 11:57:29 AM
Mums, the achilles heel of software dev.!
Title: Re: DPGet v0.5 Open Beta
Post by: ViciouZ on May 01, 2007, 12:00:51 PM
LOL, wonder what she'd say if she saw that. Probably:
"How was I to know that the version marked "BETA, ADMINS ONLY" wasn't the one I was meant to try?"
Title: Re: DPGet v0.5 Open Beta
Post by: y00tz on May 01, 2007, 08:17:02 PM
Ouch. :( Did she auto-update over a newer version of DPGet?
When you get 0.7 alpha/beta completed again, be sure to send it my way...

Cheers,
y00tz
Title: Re: DPGet v0.5 Open Beta
Post by: ViciouZ on May 02, 2007, 09:38:47 AM
It'll be a while.

Is anyone interested in translating DPGet to german? You won't have to change the code, just the on-screen messages.
Title: Re: DPGet v0.5 Open Beta
Post by: b00nlander on May 02, 2007, 09:51:40 AM
sure, just drop a file on IRC or as PM or whatever
Title: Re: DPGet v0.5 Open Beta
Post by: ViciouZ on May 02, 2007, 09:53:57 AM
I'll get in touch once 0.7 is done. Otherwise I'd have to update it again.
Title: Re: DPGet v0.7 Open Beta
Post by: ViciouZ on May 04, 2007, 01:16:54 PM
Okey Doke, version 0.7 is out. Nothing special really, just some bugfixes and some improvements (look at the title bar). The difference is that this also has a German translation thanks to Pureblood.
Title: Re: DPGet v0.8 Open Beta
Post by: ViciouZ on May 07, 2007, 12:14:59 PM
Sorry for the triple post, but I wanted to bump the thread so people would notice the 0.8 release.
The major feature in this build is the integration of the german language. Thanks to Zorchenhimer's helpful ideas and suggestions, now one batch file contains both the English and German versions of DPGet, fixing many potential update problems. Thanks to Pureblood for the translation once again, Zorch for his integration idea, and the whole community for your feedback and help. If you haven't downloaded DPGet yet, you might as well wait a month or two for the final release (I'm pretty busy right now). However, if you already have DPGet, please update to this latest version as i have probably intercoursed up the german code while integrating it. Once again, feedback would be helpful, although if it is a request, put it in the feature vote thread.

Attached for new users and Zorchenhimer alike.
Title: Re: DPGet v0.8 Open Beta
Post by: y00tz on May 07, 2007, 02:20:41 PM
Oi, very good ViciouZ!

Feedback:
Install went fast and fine, all downloads are working well and most of all the interface is complete!

1.0 is fast approaching :P

Great job ViciouZ!


+1'd but:
Code: [Select]
An Error Has Occurred!
Sorry, you can't repeat a karma action without waiting 730 hours.