Talk:Replay file
From Worms Knowledge Base
Hey I don't get it, Melon, why do you remove my correct informations ???!! (the ones about the checksum part) here is a part of my program that reads replays :
case 0x08: xx = waReplay.readDWord(); zz = waReplay.readDWord(); frame = xx; ms = frame*2; d = ms % 100; c = (ms % 6000 - d)/100; b = (ms % 360000 - c * 100 - d)/6000; a = (ms % 21600000 - b*6000 - c * 100 - d)/360000; sprintf(time,"[%02d:%02d:%02d.%02d] ",a,b,c,d); xx *= 2; printf("\n%s",time); printf("%d",xx); break;
It works perfectly, and the time is on 4 bytes, NOT one !!!
- After your edit, I reverted the page because you ended accidentally deleting a huge chunk of it. I tried to re-insert the information you added afterwards, but it's likely I missed a bit. If you check out the edit you originally made, you'll notice that most of the "Releasing of a power-managed weapon" section is missing, and the remainder of the article is formatted incorrectly. Trying to solve it manually was too much work, so I just hit the revert button. Please put back in any valid information that got lost. Sorry about that. --Melon 08:23, 28 February 2008 (MST)