Digital Paint Discussion Board
Development => General Development => Topic started by: Eiii on August 15, 2007, 03:41:28 AM
-
I made a demo browser, as the auto-recorded demos' filenames are hard to decipher at first glance.
It's pretty simple. They're organized by year, then month. Double-click to view. Only works with auto-recorded demos, as they're the only ones that are hard to play/read and that I can get the date/time of. Be warned, this is my first project in C++ so for all I know it'll destroy your freaking computer or something. Suggestions welcome.
Linklinklinklink (http://eri3ch.googlepages.com/DemoBrowser-GUI.exe)
Last update: Aug. 17, 4:26PM PST
-
Bravo Eiii,
I applaud anyone who has taken the jump to try coding and turning it in to a contribution to DP.
Good Job.
-
The Windows comes, but there is no menu. Everythink is white.
My paintball is at: I:\Paintball 2 (Build 19)\
U use the complete location or only pball\demos\ ?
-
Mm, sorry. Released too late at night, and I didn't remember to implement that. It assumes your paintball is in C:\games\paintball2, but I'll get right on having it read from registry.
-
Eiii,
Don't get it to read from the registry, have a user entered folder option, or perhaps both wit hthe user being able to change the install location.
-
Okay, done. It now reads from the registry, provided you don't supply a path in the command line argument(s).
For example, in T3RROR15T's case:
"*path*DemoBrowser-GUI.exe" I:\Paintball2 (Build 19)in the shortcut path or whatever would make his work, if that data wasn't reflected in the registry.
Everything should work, and to the extent I've tested it, it does. But who knows.
-
This happens right when I start it up. :/
-
What's in your registry for pb2's install directory? Current user and local machine.
-
"C:\paintball2b19" for both of them.
-
Huh. I don't know, then. To sort!
-
Works fine for me. thx
-
I put it in pball/demos and it isn't working I get an error no auto demos.
-
Where you put it doesn't matter. You probably got that error because you have no automatically recorded demos. OR, you installed paintball and then moved it so that the registry is wrong. See my comments above on command-line arguments.
-
Oh yes I did move it how would I fix it?
-
See my comments above on command-line arguments.
Okay, done. It now reads from the registry, provided you don't supply a path in the command line argument(s).
For example, in T3RROR15T's case:
"*path*DemoBrowser-GUI.exe" I:\Paintball2 (Build 19)in the shortcut path or whatever would make his work, if that data wasn't reflected in the registry.
Everything should work, and to the extent I've tested it, it does. But who knows.
-
So should I insert that except with my location into the code or would you have to do that.
-
Put it here.
-
Ahh.... it works like a dream thanks Eiii and great job.
-
Thanks, good to know that that works. :D
-
Sorry to say this but if I double click on anything I get an error I can still sort through to look at what month they were all recorded in though.
-
Hmmm. I can't think of any reason that would be... what OS are you running?
I made some tiny changes that might make it work or something.
-
It still does it and I'm using XP.
-
Try removing any trailing slashes you put in the path. What path is it in, specifically?
-
Nice. If you wanted to expand that even further, you could get the date and time from the file properties and list non-auto demos.
-
I thought about that, but I want this to be only for auto-recorded stuff, as they're usually used for matches, and they're the ones that are hard to identify/play.
-
It is C:\Documents and settings\CINJO\Paintball2\pball\demos.
-
You need to put the path that the paintball2.exe executable is in- in this case, C:\Documents and Settings\CINJO\Paintball2
-
It works now also though if you double click on dates like 2007 or whatever then it will bring up Paintball and just try to open a non-existent demo.
-
Haha, I could swear I fixed that. Well, it's fixed now. Re-upped.