SRL Archive - Reflection Development

Hooks in progress...


Drakan

2010-05-25 22:52:24

This past update broke quite a few hooks (domino effect). I have fixed most of them, but some are still returning wrong results and I don't have any other hooks to compare them towards. Just know that I havn't forgotten you guys. My updater is still a baby, so not EVERYTHING is solid.

Once Cohen places his output, I'll be able to get the hooks we need for reflection, and I can work on my updater some more. Thanks for your patience!

bbri06

2010-05-26 00:03:37

<3.

Narcle

2010-05-26 03:39:03

They changed how many pixels are in a tile now. Its no longer 128 its 512.

Test GetMyPos and move just 1 tile left or right and the x/y will change by 4 with 128 pixels. Also the position is wrong.

New GetMyPos:
function GetMyPos: TTile;
var
me: Integer;
begin
me := SmartGetFieldObject(0, hook_static_MyPlayer);
Result.x := SmartGetFieldInt(0, hook_static_BaseX) + SmartGetFieldInt(me, hook_animable_PixelX) / 512;
Result.y := SmartGetFieldInt(0, hook_static_BaseY) + SmartGetFieldInt(me, hook_animable_PixelY) / 512;
SmartFreeObject(me);
end;

And of course this also breaks everything else associated with Pixels. TileToMS etc.

cohen

2010-05-26 09:07:52

It's going to take me 2 or so days to release my log, as im transferring my updater to the RHF (Rs hacking Framework), as it can refactor the client with your hooks etc, so yeah. 20 or so hooks broke (The camera ones & minimap ones, i can never seem to properly hook them without it breaking :(, and 2 sdviewport fields are wrong).

Drakan

2010-05-27 09:14:20

Thats ok, cohen, because Ben's Viewport and toolkit hooks work perfectly. Also narcle, get the latest from the SVN. All of that stuff is fixed.