Author Topic: Demo Browser  (Read 5083 times)

Eiii

  • Autococker
  • Posts: 4595
Demo Browser
« on: August 15, 2007, 01: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
Last update: Aug. 17, 4:26PM PST
« Last Edit: August 17, 2007, 05:26:47 PM by Eiii »

KnacK

  • Global Moderator
  • Autococker
  • Posts: 3039
Re: Demo Browser
« Reply #1 on: August 15, 2007, 05:18:07 AM »
Bravo Eiii,

I applaud anyone who has taken the jump to try coding and turning it in to a contribution to DP.

Good Job.

T3RR0R15T

  • Map Committee
  • Autococker
  • Posts: 2593
Re: Demo Browser
« Reply #2 on: August 15, 2007, 06:17:13 AM »
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\ ?

Eiii

  • Autococker
  • Posts: 4595
Re: Demo Browser
« Reply #3 on: August 15, 2007, 06:23:11 AM »
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.

KnacK

  • Global Moderator
  • Autococker
  • Posts: 3039
Re: Demo Browser
« Reply #4 on: August 15, 2007, 06:25:19 AM »
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.

Eiii

  • Autococker
  • Posts: 4595
Re: Demo Browser
« Reply #5 on: August 15, 2007, 06:50:05 AM »
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:
Code: [Select]
"*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.

Zorchenhimer

  • Autococker
  • Posts: 2614
Re: Demo Browser
« Reply #6 on: August 15, 2007, 08:51:02 AM »
This happens right when I start it up. :/

Eiii

  • Autococker
  • Posts: 4595
Re: Demo Browser
« Reply #7 on: August 15, 2007, 08:56:12 AM »
What's in your registry for pb2's install directory? Current user and local machine.

Zorchenhimer

  • Autococker
  • Posts: 2614
Re: Demo Browser
« Reply #8 on: August 15, 2007, 09:01:43 AM »
"C:\paintball2b19" for both of them.

Eiii

  • Autococker
  • Posts: 4595
Re: Demo Browser
« Reply #9 on: August 15, 2007, 09:13:10 AM »
Huh. I don't know, then. To sort!

T3RR0R15T

  • Map Committee
  • Autococker
  • Posts: 2593
Re: Demo Browser
« Reply #10 on: August 15, 2007, 10:05:17 AM »
Works fine for me. thx

Apocalypse

  • Autococker
  • Posts: 1463
Re: Demo Browser
« Reply #11 on: August 15, 2007, 05:19:32 PM »
I put it in pball/demos and it isn't working I get an error no auto demos.

Eiii

  • Autococker
  • Posts: 4595
Re: Demo Browser
« Reply #12 on: August 15, 2007, 05:37:18 PM »
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.

Apocalypse

  • Autococker
  • Posts: 1463
Re: Demo Browser
« Reply #13 on: August 15, 2007, 05:51:11 PM »
Oh yes I did move it how would I fix it?

Eiii

  • Autococker
  • Posts: 4595
Re: Demo Browser
« Reply #14 on: August 15, 2007, 05:52:27 PM »
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:
Code: [Select]
"*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.

Apocalypse

  • Autococker
  • Posts: 1463
Re: Demo Browser
« Reply #15 on: August 15, 2007, 05:56:31 PM »
So should I insert that except with my location into the code or would you have to do that.

Eiii

  • Autococker
  • Posts: 4595
Re: Demo Browser
« Reply #16 on: August 15, 2007, 06:05:23 PM »
Put it here.

Apocalypse

  • Autococker
  • Posts: 1463
Re: Demo Browser
« Reply #17 on: August 15, 2007, 06:10:40 PM »
Ahh.... it works like a dream thanks Eiii and great job.

Eiii

  • Autococker
  • Posts: 4595
Re: Demo Browser
« Reply #18 on: August 15, 2007, 06:11:25 PM »
Thanks, good to know that that works. :D

Apocalypse

  • Autococker
  • Posts: 1463
Re: Demo Browser
« Reply #19 on: August 15, 2007, 06:12:44 PM »
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.