Talk:Replay file
From Worms Knowledge Base
Revision as of 00:47, 28 February 2008 by Robi (Talk | contribs) (New page: 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: ...)
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 !!!