Few questions about d3d9.dll
#1

Hi,

I want to ask a few questions about the d3d9.dll file that GTA is using.

1. What exactly is d3d9.dll? What's it's purpose?
2. How/Why is GTA using d3d9.dll?
3. Is SA-MP using d3d9.dll? If it is, then why?
4. Are we allowed to modify d3d9.dll?
5. Is it possible for this d3d9.dll to send/receive information to/from a sa-mp server directly? If yes, then how could that be achieved?

I'm asking these questions as I'd like to try and modify this .dll to see how can a sa-mp server be improved with the help of it.
Reply
#2

But this is intresting, because if d3d9.dll exists in the GTA directory, then game will automatically load the .dll and you don't need any mod or something to load .dll into the game.
Reply
#3

Quote:
Originally Posted by kurta999
View Post
But this is intresting, because if d3d9.dll exists in the GTA directory, then game will automatically load the .dll and you don't need any mod or something to load .dll into the game.
Well if that isn't how a lot of mods are often injected in to the game
Reply
#4

To my knowledge, SA-MP doesn't use d3d9.dll by default. It's mainly used for mods like ENB Series and Windowed mode.
Reply
#5

Afaik, when 0.3a released, SA-MP blocked d3d9.dll. But the SA-MP renders were still rendering, how could be that possible?
Reply
#6

But if d3d9.dll would be blocked, you still can use ASI Loader to inject .dll and you can also hook directx outside of d3d9.dll, like SA-MP.

The best solutuion would be block every memory modifications outside of SA-MP like in MTA, but this will be big fail because then I can't use my custom mod
Reply
#7

Quote:
Originally Posted by Gamer_Z
View Post
it does hook it's functions so it's used. How else could sa-mp control all the graphics stuff?
To my knowledge, a lot of games can hook with d3d9.dll injections. That doesn't immediately mean it's specifically used for SA-MP. Although my knowledge on this is very scarce, so don't trust me on it. :P
Reply
#8

Quote:
Originally Posted by Gamer_Z
View Post
you don't need a d3d9.dll to hook the functions of the graphics drivers
You can hook any function you wish from any executable binary
Well, my point was that d3d9.dll isn't GTA or SA-MP specific, but I guess you know that already.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)