Difference between revisions of "Talk:Replay file"

From Worms Knowledge Base

Jump to: navigation, search
(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: ...)
 
(Question: new section)
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 +
== Checksum ==
 
Hey I don't get it, Melon, why do you remove my correct informations ???!! (the ones about the checksum part)
 
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 :
 
here is a part of my program that reads replays :
  
                case 0x08:
+
case 0x08:
                    xx = waReplay.readDWord();
+
    xx = waReplay.readDWord();
                    zz = waReplay.readDWord();
+
    zz = waReplay.readDWord();
                    frame = xx;
+
    frame = xx;
                    ms = frame*2;
+
    ms = frame*2;
                    d = ms % 100;
+
    d = ms % 100;
                    c = (ms % 6000 - d)/100;
+
    c = (ms % 6000 - d)/100;
                    b = (ms % 360000 - c * 100 - d)/6000;
+
    b = (ms % 360000 - c * 100 - d)/6000;
                    a = (ms % 21600000 - b*6000 - c * 100 - d)/360000;
+
    a = (ms % 21600000 - b*6000 - c * 100 - d)/360000;
                    sprintf(time,"[%02d:%02d:%02d.%02d] ",a,b,c,d);
+
    sprintf(time,"[%02d:%02d:%02d.%02d] ",a,b,c,d);
                    xx *= 2;
+
    xx *= 2;
                    printf("\n%s",time);
+
    printf("\n%s",time);
 +
    printf("%d",xx);
 +
break;
  
                    printf("%d",xx);
+
It works perfectly, and the time is on 4 bytes, NOT one !!! <small>—Preceding [[w:Wikipedia:Signatures|unsigned]] comment added by [[User:Robi|Robi]] ([[User talk:Robi|talk]] • [[Special:Contributions/Robi|contribs]]) 00:47, 28 February 2008 (UTC)</small><!-- Template:Unsigned -->
                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. --[[User:Melon|Melon]] 08:23, 28 February 2008 (MST)
 +
 
 +
=== Sorry ===
 +
Oh i see, my fault, didn't see it, all my apologies, i edited the page, it should be okay now :) <small>—Preceding [[w:Wikipedia:Signatures|unsigned]] comment added by [[User:Robi|Robi]] ([[User talk:Robi|talk]] • [[Special:Contributions/Robi|contribs]]) 15:32, 28 February 2008 (UTC)</small><!-- Template:Unsigned -->
 +
 
 +
== Self-contradiction ==
 +
In the Actions section, it says:
 +
:"For example, the action 1E corresponds to the left arrow ; the action 21 to the {{highlight|down arrow}}. If the active worm is in the third team, the frame will look like "02 1E 03 21 03" (New frame, pressing left and pressing {{highlight|up}})."
 +
 
 +
Another similar contradiction can be found in the table:
 +
{|
 +
|-
 +
! Code !! Arguments !! Action !! Example
 +
|-
 +
| 1E || || Left arrow (In all its in-game usages) || 02 1E 02 {{highlight|21}} 02 : Player 2 had {{highlight|Up}}-Left pressed in that frame.
 +
|-
 +
| 1F || || Right arrow
 +
|-
 +
| 20 || || Up arrow (In all its in-game usages)
 +
|-
 +
| 21 || || Down arrow
 +
|}
 +
 
 +
&mdash;[[User:Explorer09|Explorer09]] 13:13, 30 December 2009 (UTC)
 +
 
 +
== Question ==
 +
 
 +
Is the replay file capable of showing the weapons of each team? I think it would be nice to click with the right button of the mouse and see the weapons of that team that is now playing on that round. If the team waste ammo it can be seen clicking the right buttom. [[User:FoxHound|FoxHound]] 06:10, 10 June 2010 (UTC)

Latest revision as of 06:10, 10 June 2010

Checksum

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 !!! —Preceding unsigned comment added by Robi (talkcontribs) 00:47, 28 February 2008 (UTC)

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)

Sorry

Oh i see, my fault, didn't see it, all my apologies, i edited the page, it should be okay now :) —Preceding unsigned comment added by Robi (talkcontribs) 15:32, 28 February 2008 (UTC)

Self-contradiction

In the Actions section, it says:

"For example, the action 1E corresponds to the left arrow ; the action 21 to the down arrow. If the active worm is in the third team, the frame will look like "02 1E 03 21 03" (New frame, pressing left and pressing up)."

Another similar contradiction can be found in the table:

Code Arguments Action Example
1E Left arrow (In all its in-game usages) 02 1E 02 21 02 : Player 2 had Up-Left pressed in that frame.
1F Right arrow
20 Up arrow (In all its in-game usages)
21 Down arrow

Explorer09 13:13, 30 December 2009 (UTC)

Question

Is the replay file capable of showing the weapons of each team? I think it would be nice to click with the right button of the mouse and see the weapons of that team that is now playing on that round. If the team waste ammo it can be seen clicking the right buttom. FoxHound 06:10, 10 June 2010 (UTC)

Personal tools