agrippa1994 / DX9-Overlay-API

Overlay API for DirectX 9 based games.
MIT License
127 stars 26 forks source link

Cant hook DirectX #18

Closed theobeaudenon closed 9 years ago

theobeaudenon commented 9 years ago

Hi the api doesnt work. I try .Init() and i get 0

Here is files : ghtyyea 1

Here is the code: ziqdkxc 1

Here is the output: ynjcpym 1

boufle commented 9 years ago

Same problem here :(

JohnnyCrazy commented 9 years ago

Hey,

The LolClient is not using DirectX in the first place (I think it's using OpenGL or sth similar). Only the actual LeagueOfLegends.exe process is using DirectX.

Also, you should use the Wrapper this way:

TextLabel label = new TextLabel("arial", 12, TypeFace.NONE, new Point(200, 200), Color.Red, "Hello world", true, true);
Console.WriteLine(label.Id);
theobeaudenon commented 9 years ago

Nothing in game

ywysk9q 1

v1zmu4w 1

Maybe put space in process name ? kvtj4wf 1

JohnnyCrazy commented 9 years ago

Yea, I missed the spaces.

And also, you could try to call DX9Overlay.Init() after SetParam

theobeaudenon commented 9 years ago

We must start the game first ? or launch after ?

my script must run in administrator mode ?

nothing written in game. eqoc9bq 1

theobeaudenon commented 9 years ago

i change the code :

48kl6mz 1

Nothing in game

agrippa1994 commented 9 years ago

What's the return value of DX9Overlay.init() ?

theobeaudenon commented 9 years ago

Its return 1 when the game is on

theobeaudenon commented 9 years ago

I try to call GetFrameRate () in the while but return always 0

agrippa1994 commented 9 years ago

Okay, this is strange. GetFrameRate() returns -1 if an error occurs but in this case it seems to work. Do you have any other DirectX 9 based game? Maybe you can give it a try in another game.

theobeaudenon commented 9 years ago

I tryed on CSSGO & Binding Of Isaac. Do you have a sample code working w/ league of legends ?

theobeaudenon commented 9 years ago

Its work ! Got no idea what I have done :( Got a question, is it possible to get a color of one pixel on the opengl screen ?

agrippa1994 commented 9 years ago

No this is not possible because this API is only supposed to be an interface between your program and the game