search -  faq -  rulez -  staff

forums






map cycle
irc              pwnalizer
voice         dswp bar




Register

Login


It is currently 05.01.25

 

All times are UTC + 1 hour




Post new topic Reply to topic  [ 11 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: slicey on swim
PostPosted: 05.06.13 
Offline
DSWP Meme Artist
User avatar

Joined: 12.05.10
Posts: 1853
Location: Estonia
-----tdm:  
nick: WidespreadPanic
skill: 562.918
kills: 12260
deaths: 10971
ratio: 1.11
-----bomb:  
nick: SelfRescuingPrincess
skill: 254.796
kills: 219
deaths: 202
ratio: 1.08
Regardless of the fact that this thread deserves a bump due to the awesomeness contained herein, I can’t help but brag about my leetness and post the proof.

The Algiers demo suffers from the infamous “no hands” bug, and well, long story short, today I solved a problem GlaD-don was having with an old 3.7 demo by converting and editing the crap out of it. Having discovered the tools that would allow one to abuse any demo to their heart’s content I recalled the broken Algiers demo. Now, I had recorded two very short demos (one normal, the other with the bug triggered) about a year and a half ago when I first tried fixing it, so now I could just convert and compare them. As one could imagine, the fix required changing just one byte, or in the converted XML format, under <persistants>:

<field index="3" value="3"/>

to

<field index="3" value="1"/>

The fixed demo is attached, what follows is my PM to don explaining the process of slicing his demo:

Quote:
I couldn’t figure out how to make the demo play properly, but on the other hand, I was able to chop it into playable pieces, removing the GTV lobby stages (test_bigbox in the pak0 or Quake 3, no bloody clue why this would cause issues, it loads just fine with /map in UrT 3.7). The steps:

Get Quake Live Demo Tools — despite the name it also supports Quake 3 demos. Load the demo and export it (File -> Export -> Export XML). WARNING: the resulting file is pretty frickin’ large, 13 megs of CAvsICU.dm_68 resulted in a 279 MB file.

To open and edit this file, you need something that would support “huge files” (Google "text editor" "huge files" to find something that fits your system). I used the Windows-only JujuEdit.

The demo dump looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<quakedemo protocol="68">

(these first two lines are necessary for parsing, whatever you delete, leave these intact)
(now we start loading the first map of the demo)
<message sequence="1354" acknowledge="7">
<gamestate sequence="93">
<config index="0">
(blah blah blah)
(loads of more tags)
<message sequence="32735" acknowledge="124">
<snapshot serverTime="608104550" deltaNum="2" snapFlags="4" areamaskLen="1" areamaskData="0xfd">
<player>
<field name="commandTime" value="608104337"/>
<persistants>
<field index="9" value="38"/>
</persistants>
</player>
</snapshot>
</message>

(this is where a new map is loaded, delete everything after or before this spot as needed and you’ll have a valid demo)
<message sequence="32736" acknowledge="124">
<gamestate sequence="1567">
<config index="0">
(blah blah blah)
(loads of more tags)
<message sequence="32735" acknowledge="124">
<snapshot serverTime="608104550" deltaNum="2" snapFlags="4" areamaskLen="1" areamaskData="0xfd">
<player>
<field name="commandTime" value="608104337"/>
<persistants>
<field index="9" value="38"/>
</persistants>
</player>
</snapshot>
</message>

(demo ends; leave the last tag intact or you’ll get a parse error)
</quakedemo>

After saving your edited XML, it’s time to load it back into QLDT (File -> Import). Converting it back to a demo is, um, a bit funny — right-click on the demo in the list and choose “Pack”. This will convert the demo and zip it up (and yes, there’s “Open” instead of “Save” in the dialog, at least in the Windows version).

*shrug* Done! Encounter any problems? Just ask, or if nothing else works, I could mangle your demos for you.

(Feel free to post this anywhere you like.)


Attachments:
slicey_algiers-fixed.dm_68 [2.48 MiB]
Downloaded 709 times

_________________
Путін — хуйло

Beginner’s Guide to Urban Terror (woefully out of date)

Daily Deadnade (last updated September 9, 2016)



 
Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ]  Go to page Previous  1, 2

All times are UTC + 1 hour


Who is online

Users browsing this forum: Google [Bot] and 19 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Imprint

Powered by phpBB © 2000, 2002, 2005, 2007, 2008, 2009, 2010 phpBB Group

Skin by Lucas Kane
we use apache2 mod rewrite with phpBB SEO
map train_beta1-100 © 2009 by SteveMcQueen
Statistics Backend + Database by XLR Stats and B3 Bot
mapvote robot and gameserver monitor © 2009 by BlinKy
mumble viewer Copyright © 2008 Dominik Radner (aka Urmel)
mumble switcher and integration © 2008 by XTJ7, Unclefragger and Wursti
Localisation Plugin © 2009, Team Leads Plugin © 2009 and Knifer Plugin © 2009 by SvaRoX
for our stats we use Chart.js Copyright (c) 2013-2015 Nick Downie.
the stats also use some jQuery jQuery v2.1.4 | (c) 2005, 2015 jQuery Foundation, Inc.



voice server
bomb » dswp.de:22223
status: online
players: 0/24
map: ut4_casa
 
jump » dswp.de:22224
status: online
players: 0/20
map: ut4_uberjumps_beta3
 
freeze » dswp.de:22225
status: online
players: 0/32
map: ut4_casa
 
tdm » dswp.de:22226
status: online
players: 0/32
map: ut4_paris
 
tdm » dswp.de:22227
status: online
players: 0/32
map: ut4_tohunga_b10
 
btw test the new ajax serwer monitor here!
top 20 players


nameskillkills
-Dws.BLINGBLING*-*1071.72418631
NormaSnockers1155.39400492
Zottel1090.4276378
make.them.suffer1143.27269872
>8v=1130.37230156
moon1100.78195615
sjas1048.1192315
peace1163.51190660
Wagner_Moura967.849188001
Goomba1151.68182677
z0rn996.032181016
Mad1117.01179124
[dswp]PLZ1144.31178516
Graf_ZahlIII1136.8167407
Zohan997.679159737
ubercunt1012.45159240
Yarrr!1187.33156233
I_am_nOOb1182.57151268
Pandageddon1171.49148319
Pirat1030.51145798