Page 1 of 1
DemoPlotter 1.2
Posted: Wed Apr 27, 2005 6:56 am
by NRGizeR
OK, finally got the stats done, so here is DemoPlotter 1.2. NOW WITH STATISTICS!!
http://www.abo.fi/~cbjorkel/apps/DemoPlotter.zip
and you could check out the manual for version 1.1 at
http://www.abo.fi/~cbjorkel/apps/demoplotter.html. I don't have one for 1.2 since they were the same apart from an extra option in Plot type (none) and an extra checkbox that you should tick if you want stats for the demo in question.
for those of you that haven't seen DemoPlotter, you can check out this thread as well:
http://forums.aq2world.com/viewtopic.php?t=1418
Let me know if you find any bugs/other weird stuff so that I can (hopefully) fix them. I think I'll try to add more stats if I find a good way to parse the hit/kill/death messages...
-NRG
Posted: Wed Apr 27, 2005 7:09 am
by NRGizeR
seems like I broke something when rendering only the map... but I'll fix it soon
still works good if you have selected a demo, and chosen plot type none if you don't want the demo lines in the map shot.
-NRG
Posted: Wed Apr 27, 2005 7:19 am
by Den
nice job
Posted: Wed Apr 27, 2005 7:37 am
by aztecx
ok i had a look at it. Just wondering what can i use it for.
Posted: Wed Apr 27, 2005 12:05 pm
by NRGizeR
OK, I've fixed the bug now I think, just redownload the .zip file to get the fixed version.
aztecx wrote:ok i had a look at it. Just wondering what can i use it for.
You can render maps from a birds perspective, and you can render demos ontop of that, to see how you move on the map, where you got your kills, and where you camp
In this version you can also get a stats summary for the demo. E.g. how many kills you got in the demo, how far you moved, how long the demo is, etc. Just try it
Posted: Mon May 09, 2005 1:49 am
by NRGizeR
<shameless bump> \o/ </shameless bump>
Posted: Mon May 09, 2005 9:44 am
by Haudrauf
Some things..
Isn't it possible to read out the map that the .dm2 refers to?
So I wouldn't always have to chose the .bsp myself. I would only point it to the maps-directory.
Then.. allow only demos of same maps
Check demo-protocol version, if version 34 then allow it.
If 35 .. either implement r1q2 demo reading too (all documented) or say: "nope guy, this demo doesn't work for me".
And.. for the file-choser, pls remember the last directory used and start off there for the next chosing-process.
I tried plotting a demo I recorded serverside. I can't tell you if the protocol version was 35 or 34 then. I assume 34.. It didn't work out though. I can send you the demo to test.
Posted: Mon May 09, 2005 12:11 pm
by NRGizeR
To be honest I'm a bit "out of the loop" at moment since it's been a while since I actually did some coding on the demo parsing part of the program. Logic would still tell me that it should be possible to load the .bsp from the info in the .dm2 (since q2 does that) it shouldn't allow demos from different maps. it it does, that's probably a bug. I've been checking for the map message (the message printed when you load the map) and/or (can't remember for sure) the same bsp name to be the same for demos loaded, but in the event that these two are the same, it could allow the demos to be plotted although they are different maps. This because I couldn't be arsed to write a md5 checksum calculator just to check this, when it at least in principal shouldn't really be needed.
Did you actually get a render of the server side map? that is... did it try to render it and failed? The server side demo has a totally different structure so I just can't parse this with the code I've got atm, and DemoPlotter should say that it can't render the demo if it gets a server side demo.
for the file chooser... I still don't know if I can do anything about that. This is a platform specific extension of java, and I'm very limited as to what I can do with it, I more or less ask for a file and this returns it to me. That's about it.
In what way is a r1q2 demo different? I would imagine that there wouldn't be many changes, and it could be that DemoPlotter could render it the way it is now as well (since I don't use anywhere near all the info in the demo)...
Thanks for the comments
-NRG
Posted: Tue May 10, 2005 6:20 am
by Da^JuaN
I tried to make it from my demos i made from the aq2w cw from last sunday, but simplicity demo just goes fine, but on the cliff2 demo i get the error: "Bad message: Demo Damaged"
I did nothing else than i do to other demos, the only thing i can imagine, i stopped the demo in map 2 (=simplicity), thats the reason why my demo is "damaged"?
Posted: Tue May 10, 2005 7:26 am
by NRGizeR
You will get the "demo damaged" message when demoplotter finds the ID code 0x00 for a block (or was it 0x01?) anyway... it's a ID that shouldn't exist in a demo. So either (most proably) I've parsed something wrong in that demo, the demo is actually damaged in some way, or you're using some client that actually uses this ID for something... but as I said, probably a bug... I'd appreciate it if you'd like to send me the demo so that I can look into it.
-NRG