Digital Paint Discussion Board
Paintball 2: The Game => Paintball 2 Discussion => Topic started 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
-
but what is it!! :P
Edit: so what database does it download from?
-
One hosted on my webserver, which I'm going to add a load of files to.
-
www.clan-qehs.co.uk/downloads (http://qehs.indiereview.co.uk/webspell/index.php?site=files&file=5)
-
I believe that a LOT more information is needed.
I like the enthusiasm, but need more info.
-
both
-
the post. Needs more info about what you are offering, and how it works i expect.
-
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.
-
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.
-
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.
-
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.
-
What the HELL?!
As of yesterday that was freeware.
Knack, get on IRC, either network, I would like to talk to you.
-
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.
-
recommendation: this line right here...
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.. ;)
-
HKEY_LOCAL_MACHINE\SOFTWARE\Digital Paint\Paintball2 INSTDIR
Registry key for DP2 installation.
-
Bam, atta boy good work Cobo
-
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
-
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
-
Ooh, using reg.exe. Yeah, didn't think of that. <_<
-
Thats why you never got to be a cow!
-
:(
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.
-
k, now make a GUI :)
and 'maybe' you'll get to be a cow someday ;)
-
...that sounds like just going to the maps folder on dplogin.
-
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
-
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.
-
Filter out *.* so that it doesn't happen.
-
I will in 0.4 when I get back.
-
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
-
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
-
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").
-
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
-
Sorry, must have over read that.
-
Yeah np Z, :P I was just thinking of a way to improve the program without adding unnecessary junk.
-
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
-
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.
-
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
-
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.
-
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. :)
-
Wow. We should have a community development team, VWXYZ.
Whoever wants to fill the W and X slots contact me, lol.
lol!
-
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.
-
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
-
If you're Zorchenhimer, I've uploaded it here too.
:D Thanks!
-
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
-
Oh excrement
seems my coding isnt that great
i'll fix it tomorrow.
-
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
-
im at school right now but it seems interesting, ill check it out later :]
-
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 :)
-
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.
-
Mums, the achilles heel of software dev.!
-
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?"
-
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
-
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.
-
sure, just drop a file on IRC or as PM or whatever
-
I'll get in touch once 0.7 is done. Otherwise I'd have to update it again.
-
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.
-
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.
-
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:
An Error Has Occurred!
Sorry, you can't repeat a karma action without waiting 730 hours.