Google-Code-Fork / tibiaapi

Automatically exported from code.google.com/p/tibiaapi
MIT License
0 stars 0 forks source link

Map reader broken(?) #201

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
GetTilesOnSameFloor() and GetTiles().Where(~tile.Z = player.Z) both return
the same tiles. There are 252 tiles returned when there should only be 221 

*11 tiles on the y-axis and 15 tiles on the x-axis in the playing window,
plus the 2 rows/columns off screen to the top and right which would bring
it to 13 y-axis tiles and 17 x-axis tiles. 13x17 = 221.

GetTileWithPlayer is returning the correct information so the problem isn't
there. Also, the player tile is being returned as the 83rd tile which would
be correct if there weren't off screen tiles, but since there are the
player tile should be returned as the 106th tile. The first tile returned
is the top-left most tile in the playing window, and should be two rows
above that.

Original issue reported on code.google.com by joebingham07@gmail.com on 27 Mar 2010 at 12:44

GoogleCodeExporter commented 9 years ago
Seems as though the player tile isn't always the 83rd tile returned. Depending 
on
where you're standing the player tile could be the first or the last tile 
returned...

Original comment by joebingham07@gmail.com on 27 Mar 2010 at 1:33

GoogleCodeExporter commented 9 years ago
Seems as though the map reader is fine? There should be 252 tiles (2016 total 
tiles,
and the client holds 8 floors at a time. 2016 / 18 = 252). Also, I have 
attached a
program that will loop through the tiles returned from GetTilesOnSameFloor() 
and draw
the sprite of each ground Id to the form (sources included). Please note the 
form
will "freeze" when you click 'Get Map' just wait until it is done and the form 
is
updated. The 'Edit Map In Game' button will turn all ground tiles returned into 
void
tiles to show which onscreen tiles were returned (works best in an open area). 
I'll
leave this issue open in case my findings are incorrect.

Original comment by joebingham07@gmail.com on 27 Mar 2010 at 7:09

Attachments:

GoogleCodeExporter commented 9 years ago
Note that when using 'Get Map' in the attached program that some of the returned
tiles aren't in the correct spots, but all the tiles on the floor seem to be 
there,
and you can verify it with 'Edit Map In Game'.

Original comment by joebingham07@gmail.com on 27 Mar 2010 at 8:50

GoogleCodeExporter commented 9 years ago
Nice tool :D Good investigation work.

Original comment by ian320 on 29 Mar 2010 at 8:06

GoogleCodeExporter commented 9 years ago

Original comment by joebingham07@gmail.com on 4 Apr 2010 at 9:55