Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

[lib] GPF v1.1c - Overlaying Direct3D games (DX 8+9) (FIXED)


  • Please log in to reply
95 replies to this topic
MasterFocus
  • Moderators
  • 4323 posts
  • Last active: Jan 28 2016 01:38 AM
  • Joined: 08 Apr 2009
####################################################################################
This old forum will be archived ( see https://autohotkey.c...s-decommission/ ).
For my up-to-date code and information, check the following links:
http://git.io/master | https://github.com/MasterFocus | http://masterfocus.ahk4.net/ | https://sites.google...masterfocusahk/
####################################################################################


----------------------------------------------------------------------------------------------
License: GNU AGPL (v3.0) external_link.gif
Please check: MasterFocus's Home Topic
This topic's latest update: 15/august/2012
----------------------------------------------------------------------------------------------
Important: please consider reading the documentation notes about
the possibility of getting your online game account banned when using GPF!
----------------------------------------------------------------------------------------------

Library:
    GPF_v1.1c (fixed multiline string filling issue)

Description:
Allows you to overlay Direct3D games by DllCalling functions in gpcomms.dll.
As qou9p0vq said: 'The provided got features for ingame text (and others)' ... 'a wrapper dll for easy access (gpcomms.dll)'
Source: http://www.mikoweb.e...dex.php?node=28

Requirements:
• DX8 or DX9 (only works with games designed for DirectX8 or 9 !!)
gpcomms.dll, [d3d9.dll and d3dx9_27.dll] or [d3d8.dll] (all provided along with the AHK file)

Features:
• Up to 5 ingame single-line text fields
• Up to 5 ingame multi-line text fields
• One ingame picture
• Screenshot taker (BMP/JPG)
• Ingame toggleable FPS
• Game screen size retriever
• No global variables (functions use their own static variables)

How To:
1. Copy/move correspondent d3d*.dll(s) to game directory, where its executable is.
2. Do not overwrite any files and be sure to place the DLL(s) in the correct folder!
3. Be sure to have gpcomms.dll in the same folder of this library.
4. That's it. You're good to go!

Documentation:
See GitHub for more information

Disclaimer:
The file gpcomms.dll is originally provided here external_link.gif under the zlib License external_link.gif

Changelog:
v1.1c - 08/june/2010
• Fixed AuxGetFilledStr issue regarding multiline fields (thanks andz)
v1.1b - 14/july/2009
• Fixed ShowMultiLine and ShowFPS (thanks ayosh)
v1.1 - 02/july/2009
• Added screenshot taker, toggleable FPS info and game screen size retriever
• Provided DLL for DirectX9
v1.0b - 30/june/2009
• Added picture-related functions
• Fixed usage of static variables
v1.0 - 24/june/2009
• Released first version, containing 5 functions (main and all text-related ones)

MasterFocus
  • Moderators
  • 4323 posts
  • Last active: Jan 28 2016 01:38 AM
  • Joined: 08 Apr 2009
Reserved post.

- EDIT (08/june/2010 17:00h BRT)

## Latest version seems to be stable (no other bugs reported so far).

## Please read the documentation, it contains valuable information and I spent a couple of hours on it. :wink:

## I have still not tested all functions, so tell me if something doesn't work.

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Antonio França -- git.io -- github.com -- ahk4.net -- sites.google.com -- ahkscript.org

Member of the AHK community since 08/Apr/2009. Moderator since mid-2012.


MasterFocus
  • Moderators
  • 4323 posts
  • Last active: Jan 28 2016 01:38 AM
  • Joined: 08 Apr 2009
Yet another reserved post.


## Files inside GPF_v1.1c.rar
- GPF_v1.1c.rar
----- DX8 Specific Files
---------- d3d8.dll
---------- gpcomms.dll
----- DX9 Specific Files
---------- d3d9.dll
---------- d3dx9_27.dll
---------- gpcomms.dll
----- GPF_v1.1c.ahk

## Total number of functions: 10 usable + 1 auxiliar


k3ph has pointed me this topic where some people were already creating AHK functions using GPP. Now I remember that I've seen this topic before, but I found it a bit too messy and couldn't be satisfied with some things like declaring certain global variables. Anyway, I cannot complain as I've learned a lot creating this library and trying to write a good documentation. Hope you all enjoy it! :D

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Antonio França -- git.io -- github.com -- ahk4.net -- sites.google.com -- ahkscript.org

Member of the AHK community since 08/Apr/2009. Moderator since mid-2012.


Thrawn
  • Members
  • 30 posts
  • Last active: Apr 05 2011 06:07 PM
  • Joined: 12 May 2008
awesome!
thank you very much. whats up with the dx9 version of the dll?

MasterFocus
  • Moderators
  • 4323 posts
  • Last active: Jan 28 2016 01:38 AM
  • Joined: 08 Apr 2009

whats up with the dx9 version of the dll?

I intend to add a few things to the DX8 version and finish
its documentation so I can release a DX9 version as well.

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Antonio França -- git.io -- github.com -- ahk4.net -- sites.google.com -- ahkscript.org

Member of the AHK community since 08/Apr/2009. Moderator since mid-2012.


Mystiq
  • Members
  • 83 posts
  • Last active: Nov 06 2011 07:07 PM
  • Joined: 08 Jan 2007
Looks interesting. Dont think i have any DX8 games installed to test this, plenty of DX9 games though. ;)

Thanks in advance! :)

BF2 Player
  • Members
  • 67 posts
  • Last active: Mar 21 2010 01:10 AM
  • Joined: 27 Mar 2009
Yea, this will be really useful once the DX9 version is finished, I too dont have any DX8 games lol

Faust
  • Guests
  • Last active:
  • Joined: --
Could you give out the d3d8 and the gpcomms.dll source code?

Greets Faust

Fry
  • Members
  • 885 posts
  • Last active: Jan 17 2011 09:57 PM
  • Joined: 01 Nov 2007
Is there a way to make it show a picture, or say a crosshair?

MasterFocus
  • Moderators
  • 4323 posts
  • Last active: Jan 28 2016 01:38 AM
  • Joined: 08 Apr 2009

Could you give out the d3d8 and the gpcomms.dll source code?

As I've already stated, I'm not the original provider of those.

Is there a way to make it show a picture, or say a crosshair?

Sure :D but not in v1.0 :?
I promise I'll finish this DX8 version ASAP!
(I had 2 exams today, 2 more to go now...)

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Antonio França -- git.io -- github.com -- ahk4.net -- sites.google.com -- ahkscript.org

Member of the AHK community since 08/Apr/2009. Moderator since mid-2012.


Fry
  • Members
  • 885 posts
  • Last active: Jan 17 2011 09:57 PM
  • Joined: 01 Nov 2007
Ok! Thanks!

MasterFocus
  • Moderators
  • 4323 posts
  • Last active: Jan 28 2016 01:38 AM
  • Joined: 08 Apr 2009
BUMP !
Version 1.0b released !
Ingame Picture available !! :D

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Antonio França -- git.io -- github.com -- ahk4.net -- sites.google.com -- ahkscript.org

Member of the AHK community since 08/Apr/2009. Moderator since mid-2012.


BF2 Player
  • Members
  • 67 posts
  • Last active: Mar 21 2010 01:10 AM
  • Joined: 27 Mar 2009
Cool!
Now for DX9 to finish so I can acutally use it lol. :D

Fry
  • Members
  • 885 posts
  • Last active: Jan 17 2011 09:57 PM
  • Joined: 01 Nov 2007
Will this only show up in DX8 Games, will I be able to see it in my desktop?

MasterFocus
  • Moderators
  • 4323 posts
  • Last active: Jan 28 2016 01:38 AM
  • Joined: 08 Apr 2009

Will this only show up in DX8 Games, will I be able to see it in my desktop?

Only ingame. That's the purpose of this library. I've already seen a lot of people here (just like me) searching for a method to overlay Direct3D games. When I found this solution, I immediately decided to create a library and share it. :)

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Antonio França -- git.io -- github.com -- ahk4.net -- sites.google.com -- ahkscript.org

Member of the AHK community since 08/Apr/2009. Moderator since mid-2012.