Jump to content





Photo

Found a bug that can kill you

Posted by , in Warlords 24 January 2006 · 39 views

During the Vertical Blank the program converts the paddle reading to x-y sprite coordinates as well as setting the X sprite position of the top players and calculating the X positioning values for the bottom players. However, the sequence isn't in the correct order. It's not a major deal, unless you have captured a fireball. If you're holding a fireball then you run the risk of killing yourself even if you've not lost a single brick!The program does the following:
1) Positions the X position of the top players
2) Precalculates the X position of the bottom players
3) Converts all paddle readings to X-Y values
4) starts drawing the visible portion of the screen, where the Y values are used.

The problem occurs when you(as the yellow player) are all the way to the left
Posted Image

And you're trying to move all the way to the right to attack the opposite player
Posted Image

The problem is the paddle readings are converted before the Y value is used, but after the X value is used. By doing this the X value of a paddle reading displayed with the Y value of the next paddle reading and your shield can end up within the wall
Posted Image

or worse, by the king.
Posted Image

If you are holding the fireball and end up by your king then you just killed him. This problem happens to all players. The fix is to move step 3 to step 1, and move step 1 and 2 down to steps 2 and 3.




I have seen this bug before. Most notably at the Philly Classic 5 Warlords Tournament. The player in the top left had the fireball and hadn't lost one brick. When he released the fireball, he killed his warlord. It was harsh because the rules were one and done. He protested but we didn't restart the game.

I can't wait to see more developments on this hack. I'm assuming you're going to fix this bug along with the other improvements.
  • Report
That is the plan ;)

At the rate I'm going(and with prior engagements this month) it'll be March or April before I'm done documenting the source code and can start the hacking.
  • Report

February 2012

S M T W T F S
   1234
56789 10 11
12131415161718
19202122232425
26272829   

Recent Entries

Recent Comments

0 user(s) viewing

0 members, 0 guests, 0 anonymous users

Search My Blog

Latest Visitors