Digital Paint Discussion Board

Development => General Development => Topic started by: payl on March 27, 2011, 03:34:41 PM

Title: Banterous demo downloader
Post by: payl on March 27, 2011, 03:34:41 PM
So, after some development, i can say it's ready to publicate:

*Banterous demo downloader v.1.4*

It's simple tool, which make you able to download and run demo from http://demos.banterous.co.uk/ fast. Also, it can find demo by player or map (* and ? works like in DOS [and only like in DOS!], so: *vic* to find Viciouz demos).

Download it here: -removed-

How it works:
A) If you want just to watch demo
 1. Copy URL
 2.Paste URL into program
 3.Be sure 'Run that paintball with that demo' is checked
 4.Click 'GO'
 5.Wait until paintball starts

B) Want to find demo?
 1.Type in what you want to find (don't forget to use * -it's needed).
 2.Click 'GO'
 3.Wait
 4.Wait one second more (who cares if it freeze).
 5.Choose which demo u want
 6.Click 'GO' to choose this demo
 7.Be sure 'Run that paintball with that demo' is checked
 8.Click 'GO' on main form on downloading demo
 9.Wait until paintball runs with that demo

C) Want to catch link?
 1.If Link catcher isn't active, click on it.
 2.Copy URL of banterous website or dplogin download link.
 3.Link will appear, just click 'Go'.

Update v.1.1:
- Override dialog
- "Nothing found" after searching
- User-friendly message to Error #-11
- Directory choose dialog
- You can't make forms bigger or smaller
- Result form is bigger
- Submitted time on results
- Adding "\" if you don't put it in paintball path
- Less laggy downloading (but not in threads so still lags :-] )

Update v.1.2:
Uploaded version v.1.2 , which only add support for new links used in banterous website.

Update v.1.3:
Version v.1.3 has been uploaded! This is next support fix version. Also it's compiled with Lazarus 0.9.30 now.

Update v.1.4:
News in v.1.4:
-Link catcher!
-Support for dplogin demos download!
-Now all forms are default in the middle of screen (as f3l1x said to make is suitable for all resolutions).
-Updated my maskchk unit so some buggy links won't work anymore

Important update 21/07/2011:
As i'm not going to support community anymore, i remove all download links.
You are still able to use this program, if you already have it on your computer, but you can't redistribute it in any way.
Title: Re: Banterous demo downloader
Post by: f3l1x on March 27, 2011, 05:11:44 PM
Looks good. Anyway, Lazar is object pascal or not? I dont know now..
Title: Re: Banterous demo downloader
Post by: T3RR0R15T on March 27, 2011, 05:29:38 PM
Didn't tested it much, but here are some things:

- Why does it make the highest id on top? Not the lowest?
- I can only close the result window with the X. Maybe add an abort button.
- "Choose demo" popup, if it found nothing and i click "Go" in the result window.
- If i type nothing in the link field and click "Go", it makes me an "Error #-11". Maybe add an error message here or make the "Go" button only clickable, if i entered a text which starts with http://, https:// or ftp://.
- Add the option to choose another paintball folder. I can type it manually, but clicking is better :P
- Ask the user before it overwrites an existing demo file.
- If i type in something like ^^ into the map name field, it hangs up and gives me an "Error #-101" after a while. Maybe add an error message here.
- You have the date (time_submitted). Maybe add it to the results.
Title: Re: Banterous demo downloader
Post by: Sporti on March 27, 2011, 05:51:46 PM
nice.
Title: Re: Banterous demo downloader
Post by: payl on March 27, 2011, 06:21:18 PM
1.Why does it make the highest id on top? Not the lowest?
2.I can only close the result window with the X. Maybe add an abort button.
3."Choose demo" popup, if it found nothing and i click "Go" in the result window.
4.If i type nothing in the link field and click "Go", it makes me an "Error #-11". Maybe add an error message here or make the "Go" button only clickable, if i entered a text which starts with http://, https:// or ftp://.
5.Add the option to choose another paintball folder. I can type it manually, but clicking is better :P
6.Ask the user before it overwrites an existing demo file.
7.If i type in something like ^^ into the map name field, it hangs up and gives me an "Error #-101" after a while. Maybe add an error message here.
8. You have the date (time_submitted). Maybe add it to the results.
1.It doesn't sort result, first it downloads JSON list then convert it into array and test for matching. So, banterous website format this like that.
2.If you are lazy... Ok :-]
3.Then what it should do? Write 'nothing found' after searching?
4.#-11 means that is not good banterous website... But if i add that only good demo site will be accepted, then user can get annoyed: Why i can't click that? I better add some user-friendly message.
5.I allways think that writing is better, but ok
6.Same ID=Same file? Or am i wrong?
7. In my case it founds 0 demos (it allways hangs for a while.. :P - downloading whole banterous demo list). #-101 means error while downloading data, so i guess it was your internet problem.
8. If you want...
Title: Re: Banterous demo downloader
Post by: Narga on March 27, 2011, 11:25:16 PM
It would be cool if it could convert the .dm2 to a .AVI or .MPEG2.
Title: Re: Banterous demo downloader
Post by: webhead on March 28, 2011, 04:41:37 AM
It would be cool if it could convert the .dm2 to a .AVI or .MPEG2.
ViciouZ made a tool that will convert to .avi: DP2Demo2AVI (http://dplogin.com/forums/index.php?topic=7798.0)
Title: Re: Banterous demo downloader
Post by: payl on March 28, 2011, 07:01:41 AM
It would be cool if it could convert the .dm2 to a .AVI or .MPEG2.
It's "Banterous demo downloader" not "demo converter".

Looks good. Anyway, Lazar is object pascal or not? I don't know now..
(Forgot to reply before... :-] )
Yes, it's object pascal/Delphi.

And, i made most features requested:
- Override dialog
- "Nothing found" after searching
- User-friendly message to Error #-11
- Directory choose dialog
- You can't make forms bigger or smaller
- Result form is bigger
- Submitted time on results
- Adding "\" if you don't put it in paintball path
- Less laggy downloading (but not in threads so still lags :-] )

Will upload v.1.1 in seconds... Done
Title: Re: Banterous demo downloader
Post by: Aveiro on March 28, 2011, 09:45:39 AM
everywhere my name (avi, avi, avi,...)
Title: Re: Banterous demo downloader
Post by: Narga on March 28, 2011, 09:58:56 AM
It's "Banterous demo downloader" not "demo converter".

I know, but it would be cool if it could. I would use Fraps, but I tried it and for some reason, after 5 or 10 secs, it stops recording.
Title: Re: Banterous demo downloader
Post by: payl on March 28, 2011, 10:07:26 AM
I know, but it would be cool if it could. I would use Fraps, but I tried it and for some reason, after 5 or 10 secs, it stops recording.
It would be cool, if some1 create program to 'create' money, huh? You offtopic, so please stop it. And there is program which convert demos into .AVEIRO .AVI format, which webhead mentioned (and that was offtopic too).
Title: Re: Banterous demo downloader
Post by: pvtjimmy on March 28, 2011, 10:48:53 AM
It would be cool, if some1 create program to 'create' money, huh? You offtopic, so please stop it. And there is program which convert demos into .AVEIRO .AVI format, which webhead mentioned (and that was offtopic too).

probably the first comment by a polak that made me laugh loud :D

Furthermore, try using the "search-button" (it's there for a reason) if you're looking for some special, game-related, software. Although you seem to be very clever, someone else already had the most of your ideas, i.e. you'll probably find a solution for it on the forumz ;)
Title: Re: Banterous demo downloader
Post by: ViciouZ on March 28, 2011, 12:01:35 PM
1.It doesn't sort result, first it downloads JSON list then convert it into array and test for matching. So, banterous website format this like that.
That's why the API lets you put "sortfield" and "order" into the get requests ;)

It would be cool if it could convert the .dm2 to a .AVI or .MPEG2.
ViciouZ made a tool that will convert to .avi: DP2Demo2AVI (http://dplogin.com/forums/index.php?topic=7798.0)
Yeah, it's really really bad... I'm working on a tutorial/app which uses .kkapture to automate it, with the benefits of perfect framerate, sound sync and not needing like 500gb of HD space.

Also, this piece of software rocks ;D
Title: Re: Banterous demo downloader
Post by: payl on April 05, 2011, 05:50:57 PM
Bump.

Uploaded version v.1.2 , which only add support for new links used in banterous website. Enjoy.

Ideas are welcome!
Title: Re: Banterous demo downloader
Post by: payl on April 26, 2011, 09:18:51 AM
Again bump.

Version v.1.3 has been uploaded! This is next support fix version. Also it's compiled with Lazarus 0.9.30 now.
(I'm hope that is last version and Viciouz don't create more link types :P )

Bugs? Ideas? Feel free to post it here.
Title: Re: Banterous demo downloader
Post by: f3l1x on April 26, 2011, 11:57:16 AM
Bug:
If i have no installed the game. I saw the error message and then is the window in bottom right corner (nearlly whole window hide). Same thing with finding demos. I have windows 7.

Idea:
Vicouz has map screenshot database. Dont you want to connect with it? But this is only more user stuff ;-)
Title: Re: Banterous demo downloader
Post by: payl on April 26, 2011, 02:29:03 PM
Bug:
If i have no installed the game. I saw the error message and then is the window in bottom right corner (nearly whole window hide). Same thing with finding demos. I have windows 7.
Oh yes i forgot about form position... will be fixed in v.1.4 .

Idea:
Vicouz has map screenshot database. Dont you want to connect with it? But this is only more user stuff ;-)
For now i don't ever download any part of banterous website, except demo. I just get ID from link and download it... I'm not sure how it should look like. If you type link into browser, you get all info, with map preview too. I made this just to stop annoying downloading, like choosing demos directory first, next opening paintball and typing in demo name... Thats annoying, better you copy link into my downloader, click button and you are watching demo.
Title: Re: Banterous demo downloader
Post by: f3l1x on April 27, 2011, 11:30:31 AM
For now i don't ever download any part of banterous website, except demo. I just get ID from link and download it... I'm not sure how it should look like. If you type link into browser, you get all info, with map preview too. I made this just to stop annoying downloading, like choosing demos directory first, next opening paintball and typing in demo name... Thats annoying, better you copy link into my downloader, click button and you are watching demo.

Just idea. I was looking for some improvement.. Btw, Lazarus looks great. I work in JAVA but sometimes i search sth easier ;-) Can you give mi ani tips/feedback about Lazarus?
Title: Re: Banterous demo downloader
Post by: payl on April 27, 2011, 12:16:29 PM
Lazarus is RAD, so its kinda faster than clear java. Also it gives not bad speed results. And we can install Lazarus almost everywhere... Well everything you need is on Lazarus wiki... http://wiki.lazarus.freepascal.org/Lazarus_Documentation . If you have any questions fell free to ask anyone on Lazarus IRC, in mailing list, or eventually me :P . But instalation doesn't make any troubles and you should compile "hello world" without problems... Next time ask on PM, i hate offtopic on my project threads :D .
Title: Re: Banterous demo downloader
Post by: payl on May 16, 2011, 10:13:39 AM
So, Banterous demo downloader v.1.4 is out!

News in v.1.4:
-Link catcher!
-Support for dplogin demos download!
-Now all forms are default in the middle of screen (as f3l1x said to make is suitable for all resolutions).
-Updated my maskchk unit so some buggy links won't work anymore

I guess it's biggest update ever in banterous demo downloader. Enjoy!
Bugs,Ideas & feedback below!
Title: Re: Banterous demo downloader
Post by: HaRmonY on May 22, 2011, 01:32:09 PM
rly nice!
Title: Re: Banterous demo downloader
Post by: f3l1x on May 23, 2011, 02:52:29 AM
For now i don't ever download any part of banterous website, except demo. I just get ID from link and download it... I'm not sure how it should look like. If you type link into browser, you get all info, with map preview too. I made this just to stop annoying downloading, like choosing demos directory first, next opening paintball and typing in demo name... Thats annoying, better you copy link into my downloader, click button and you are watching demo.

I mean that you just linked on the picture.
E.q.
http://bantero.us/demos/?page=demo&id=767
You know mapname. Airtime.
link: http://bantero.us/demos/images/pball/mapshots/airtime.jpg

E.q.2
pp1: http://bantero.us/demos/images/pball/mapshots/propaint1.jpg
shock: http://bantero.us/demos/images/pball/mapshots/shock.jpg
Title: Re: Banterous demo downloader
Post by: payl on May 23, 2011, 07:43:01 AM
You know mapname. Airtime.
I don't know mapname! Because i never download HTML constaining any informations. And i think this idea isn't needed - if you want to know other info, you open website. And if you are bored of: Choosing download folder, opening paintball and searching demo to play, then my program helps, cause it just need link. And do rest.
Title: Re: Banterous demo downloader
Post by: ViciouZ on May 23, 2011, 08:00:19 AM
I don't know mapname!
Just incase you hadn't seen it, there is "mapname" field in the JSON API which gives you this data :)
Title: Re: Banterous demo downloader
Post by: payl on May 23, 2011, 08:09:53 AM
Just incase you hadn't seen it, there is "mapname" field in the JSON API which gives you this data :)
That is used only if user is using search option (and i trough we are talking about pasted link). And i'm not sure, why you all want map preview picture? Isn't it easier to open banterous website? Then you have chat log, map preview, player recording name and more. And this utility is downloading demo and running it. Not showing detailed informations about demo.
But, according to this idea, i can make button which will open link pasted (if you are too lazy to copy it into browser).
Title: Re: Banterous demo downloader
Post by: webhead on May 23, 2011, 10:29:49 AM
And i'm not sure, why you all want map preview picture? Isn't it easier to open banterous website?
Sounds like they want a program that can do everything the website can do. :)
Title: Re: Banterous demo downloader
Post by: pvtjimmy on May 23, 2011, 10:33:03 AM
Isn't it easier to open banterous website?

Actually it's way easier to just open the website. Therefore I didn't understand you're putting so much effort into this project. However, if you want to continue the work on it, I suggest to follow the feedback from the forumz, so people will also use your software.
Title: Re: Banterous demo downloader
Post by: payl on May 23, 2011, 10:58:43 AM
Sounds like they want a program that can do everything the website can do. :)
Yeah, but i don't really want to replace website. I want to write small utility.
Actually it's way easier to just open the website. Therefore I didn't understand you're putting so much effort into this project. However, if you want to continue the work on it, I suggest to follow the feedback from the forumz, so people will also use your software.
much effort? Only 549+62 lines of sourcecode... That's not much.
Well, i created this program, because i was annoyed how much i need to do to watch demo. If anyone want to make watching faster, he could use this downloader. I don't really want to create big program which can do everything. This is small utility -.- . I don't want to replace banterous website or anything else. So please propose something which could be usefull to download demos/make watching easier.
Title: Re: Banterous demo downloader
Post by: ViciouZ on May 23, 2011, 01:46:52 PM
Payl, maybe if you really wanted to streamline this you could write a firefox extension or similar which would automatically handle banterous links on webpages you browsed on? Not sure if it's possible, but might be interesting :D If you can use DLLs in firefox then you can use the existing source in order to get info on the demo before you dl/run it :D
Title: Re: Banterous demo downloader
Post by: payl on May 23, 2011, 02:24:42 PM
Payl, maybe if you really wanted to streamline this you could write a firefox extension or similar which would automatically handle banterous links on webpages you browsed on?
It's possible, but then what about Opera (<3), Chrome and IE (woah) users? Link catcher is easy and do almost everything. And with plugins application become more complex. And i should create plugins to at least 4 web browsers. This is too hard for me, as i never programmed any plug-in to any of these browsers. Too many problems (creation, installation, communication) to resolve just to remove one Ctrl+C :-] .
Title: Re: Banterous demo downloader
Post by: ViciouZ on May 23, 2011, 06:54:12 PM
It's possible, but then what about Opera (<3), Chrome and IE (woah) users? Link catcher is easy and do almost everything. And with plugins application become more complex. And i should create plugins to at least 4 web browsers. This is too hard for me, as i never programmed any plug-in to any of these browsers. Too many problems (creation, installation, communication) to resolve just to remove one Ctrl+C :-] .
So do an NPAPI plugin which is supported by all except IE, so when you click download and it gets the MIME type application/dm2 then it saves/runs :D
Title: Re: Banterous demo downloader
Post by: payl on May 24, 2011, 08:17:23 AM
So do an NPAPI plugin which is supported by all except IE, so when you click download and it gets the MIME type application/dm2 then it saves/runs :D
I never heard about that ( :o ). And, i made Banterous demo downloader for myself, and just trough that someone else can use it. I don't have time to write it again from scratch and/or learn NPAPI. I'm looking forward into new projects and/or continuing bigger projects, and just maybe small updates in older. I think that Banterous demo downloader is comfortable enough to view demos.
If you think that plugin in NPAPI is needed you can create it :-]
Title: Re: Banterous demo downloader
Post by: webhead on May 24, 2011, 04:28:07 PM
So please propose something which could be usefull to download demos/make watching easier.

So do an NPAPI plugin which is supported by all except IE, so when you click download and it gets the MIME type application/dm2 then it saves/runs :D

If you think that plugin in NPAPI is needed you can create it :-]

ViciouZ was only answering your question and giving a suggestion -- he wasn't necessarily asking you to make a plugin.
Title: Re: Banterous demo downloader
Post by: payl on May 24, 2011, 04:58:02 PM
(OFFENSE END HERE)
ViciouZ was only answering your question and giving a suggestion -- he wasn't necessarily asking you to make a plugin.
Do you know what 'can' mean? I just told that i have no knowledge/time and that he CAN make this plugin (as he was talking about plugin option much).
Webhead, i don't know how you can (no you dont need to) understand this as that...  ::)
Ah, and as i detected offtopic/offense incoming, i'll ignore all further posts about that. You are welcome.
(OFFENSE BEGIN HERE)
Title: Re: Banterous demo downloader
Post by: Rick on May 24, 2011, 06:23:36 PM
To anyone who has downloaded this.

Is it worth it?
Title: Re: Banterous demo downloader
Post by: f3l1x on May 24, 2011, 06:40:46 PM
To anyone who has downloaded this.
Is it worth it?

Hard to say, better way is try it. You dont have to move your downloaded demo to pb2/demos folder, that's all. Actually you can search demo by nick or mapname.
Title: Re: Banterous demo downloader
Post by: Rick on May 24, 2011, 09:35:54 PM
Hard to say, better way is try it. You dont have to move your downloaded demo to pb2/demos folder, that's all. Actually you can search demo by nick or mapname.
Oh lol. Is that really all it does? I don't watch demo's enough to make it worth it.

NO OFFENCE
Title: Re: Banterous demo downloader
Post by: payl on May 25, 2011, 08:33:37 AM
@idias: Please write PM or create topic about that. Thanks (reported) (and thanks for no offense!): You really could write PM to me because of you think i do somethink bad. But don't offtopic.
Oh lol. Is that really all it does? I don't watch demo's enough to make it worth it.
I think even if you watch demos sometimes, it makes it (watching) faster, so idk if it isn't worth. But i don't force anyone to download this ^.^

(no offense :D )
Title: Re: Banterous demo downloader
Post by: MyeRs on July 18, 2011, 05:08:31 PM
worst thing ever, slow, waste of time to use. OH WOW IT PUTZ IT IN THE RYTE FOLDER NOWAI! Yeah, getting the link, opening this up and doing it all takes the more time then just downloading and saving to a folder. stupidest thing ever made, try to make something useful next time.
Title: Re: Banterous demo downloader
Post by: payl on July 18, 2011, 05:27:31 PM
Quote
Yeah, getting the link, opening this up and doing it all takes the more time then just downloading and saving to a folder.
MyeRs, do it with sth like stoper, you will see difference then. And you might notice you make 3 clicks instead of at least 10 :-] .

Quote
try to make something useful next time.
Ideas? :-]
Title: Re: Banterous demo downloader
Post by: T3RR0R15T on July 18, 2011, 05:49:04 PM
Ideas? :-]

Yes, a tool for serveradmins. To search in multiple log files. PM me, if you want to make such a tool.
Title: Re: Banterous demo downloader
Post by: payl on July 18, 2011, 05:51:45 PM
Yes, a tool for serveradmins. To search in multiple log files. PM me, if you want to make such a tool.
As for now our forum is under attack, i have no time to do anything except response others flame, but if i don't get banned, i'll contact you. :)
Title: Re: Banterous demo downloader
Post by: payl on July 21, 2011, 12:42:53 PM
Bump due to important update in first post.