Log in

View Full Version : Delayed Hook



dahazeyniinja
01-25-2015, 01:50 PM
Currently, if I want Dxtory and the RTST in-game overlay to work simultaneously I have to launch the game with the RTST in-game overlay disabled. This allows Dxtory to hook, after which I can enable the in-game overlay of the tracker. Dxtory has a feature that delays how long it will wait to hook into the game by X number of seconds (X being a number entered in the settings), and I think it would be a nice convenience addition if the same was added for RTST if possible, once you guys are done making sure version 10 has all the main features complete of course

Silencer
01-25-2015, 02:24 PM
So Beta 10 already has something like that in it. It is not configurable and it still needs some improvement, but how it works right now is it makes sure a period of time passes where the frame rate is above a certain threshold. That way we don't try to allocate resources during an intense frame stalling operation (typically during a loading screen).

One of the next things I am trying to get in is a much more compatible hooking process. Right now the best type of hook occurs during the DirectX device create call, which unfortunately is not compatible with some other programs (like apparently dxtory) So that leaves me with two options: one is improving our mid-function hook (starting after PS2). There are some issues with that currently especially on 8.1 x64. On top of that each OS and architecture changes how that works.

The other option is including a trampoline which may allow CreateDevice to work with other programs, but that involves writing a disassembler. I'm up for the challenge, but time is hard to come by. This probably needs to happen for the delayed start to really make a difference though.