David-dp- / mocha-dominoes

This repo will be used only for issue-tracking. Source code is currently maintained in a private repo elsewhere.
GNU General Public License v2.0
0 stars 0 forks source link

Bone placement coords don't match those shown on orange grid #9

Open David-dp- opened 10 years ago

David-dp- commented 10 years ago

sc20131213-102722 In the screencap above, the deployed bone’s center can be seen to be around (450, -180) but the log shows the X coordinate is about 100px off:

DEPLOYMENT : [0_0] from (281500.0) at 2013-12-13-10-27-16.909 to (565.0-190.0) at 2013-12-13-10-27-18.94 Orientation: 0.0 to 0.0

Then I touched my 5-3 bone at the far left of the pile. Its center is around (-220, -175) but the logged X and Y coords are way off:

ILLEGALTOUCH : [GamerBoneInPile-[deployed]GamerBone-GamerTurn] from (-605.0_338.0) at 2013-12-13-10-27-24.164 to (-605.0_338.0) at 2013-12-13-10-27-24.363

David-dp- commented 10 years ago

The 15 Dec delivery is said to fix this, but consider this screencap: sc20131216-155934

and this log snippet:

DEPLOYMENT : [00] from (21.0-168.0) at 2013-12-16-15-59-19.257 to (-455.0_79.0) at 2013-12-16-15-59-21.46 Orientation: 0.0 to 0.0

ILLEGALTOUCH : [GamerBoneInPile-[deployed]GamerBone-GamerTurn] from (-584.0_336.0) at 2013-12-16-15-59-35.432 to (-584.0_336.0) at 2013-12-16-15-59-35.579

The coordinates logged for the DEPLOYMENT are correct when compared to the grid, but those for my illegal touch are not. I touched the rightmost bone in my pile, which the grid shows at approx (140, -160).

David-dp- commented 10 years ago

Using the 2013-12-18 delivery, I also made these changes:

In Constants.java: public static final int bonePlaceDifference = 300; //TODO Replace with some multiple of bone length such as floor(1.8 * boneLength); was 720

In nonSpecificGameConfig, set the following as a temp workaround: "scrollInfoTimeoutInMilliseconds":2000

I then placed the 5-3 bone near the viewport center. When the opponent took his turn, my bone disappeared and his was barely visible on the right side. sc20131219-095216

When I scrolled rightward to have a better look, I found my bone. But it's now 600px rightward of where I placed it: sc20131219-095234