• Advertisement
  • Popular Tags

  • Popular Now

  • Advertisement
  • Similar Content

    • By GytisDev
      me and few friends are developing simple city building game with unity for a school project, think something like Banished but much simpler. I was tasked to create the path-finding for the game so I mostly followed this tutorial series up to episode 5. Then we created simple working system for cutting trees. The problem is that the path-finding is working like 90% of the time, then it get stuck randomly then there's clearly a way to the objective (tree). I tried looking for some pattern when it happens but can't find anything. So basically I need any tips for how I should approach this problem.
      Use this image to visualize the problem.
    • By aymen
      please any know how can i' calculate the centroid from any number vertices
    • By Henry Fernandez
      Good day sir/maam. I am developing a game for my thesis and im done with multiplayer and plan to start the implementation of AI but i dont know how/where to start. Please give an advice. I am developing it in C# using UNITY. 
      Im am now collected all pieces that has possible moves but i am stuck on which best move to select. I hope you will help me. This is link explained the game https://en.wikipedia.org/wiki/Game_of_the_Generals 

    • By Priceman
      Firstly, hello to everyone.
      So, as the title says, i'm looking for a bit of direction for designing and programming my game idea. What i'm essentially trying to do is create a 2d side scroller along the lines of such titles as Dust: An Elysian Tail, Ori and the Blind Forest, or the Odin Sphere series. I'm currently taking courses on Udemy to learn unity and C#. I chose this route since one of my favorite indie dev studios, Ska Studios, use it making their games. I'm already a decent artist and animator, so I just need something to put the pieces together. I guess i'm looking for an opinion on if this is the best route to take for someone completely new to game development and programming. I've looked into engines like gamemaker, but for what I have in mind (progression systems, inventories, etc) it didn't seem like the way to go. RPGmaker and Unreal also don't seem to be right for what I have in mind. 
      Anyway, thanks for taking the time to help.
    • By fr0st2k
      Hello All.
      I have been working with a small team the last few months on development of a mobile RPG/gacha game, inspired by games like: Brave Frontier, Summoners War, One Piece Treasure Cruise, and even Diablo. 
      The idea behind the game is to create a fun collection game that has a good amount of strategy, with a focus on creating a true game for gamers.  Not a corporate run money grabber like the majority of mobile games.
      We have done a lot of work already on the game, however, I am at a point now where I need dedicated team members who have a passion for game development and the project.
      Take a look at some of the screenshots of the game to get an idea of where we are.
      The game involves collecting characters, and leveling them, to compete against more difficult encounters.  I took a lot of inspiration from my days playing Diablo 2.  If you boil down diablo's gameplay mechanics, you get a core game based around efficiency.  The better your items, the faster you can clear zones to the bosses, and the safer the battle with the bosses are.  After you kill the boss, you pull a slot machine lever and get more items.  The better your character(and skill), the more chances you get at pulling that slot machine lever.
      This game uses that core mechanic in a mobile environment.  Instead of running through Act3 to mephisto, you send your characters out on an 'explore' mission.  A specific amount of time goes by based on your characters power, then you fight a strategic boss fight, where you can win loot.  The explore times range from a few minutes, to hours/days.  You can speed up that time by playing a 'tap' game, similar to Tap Titans.  
      It is a great formula, and even without proper balancing, the game is already shaping up to be a lot of fun.
      --- What I need moving forward:
      Team requirements:
      1. Lead developer / Senior Programmer (unity)
      We need someone who is very fluent in unity game development, and someone who can lead a team of newer programmers. If you have been looking for a project that you can take control of, or need some resume building work that will provide a finished product to show off, this is a great position to fill, as the game is nearly complete already.
      Ideally, this candidate would be proficient in unity client and server side programming
      If you are interested in the position, we can talk profit sharing once the app launches.  (contracts will be required)
      2. Programmers
      If you are newer to programming, or just want to sharpen your skills and gain some experience on a game development team, reach out.  I'd be interested in talking to you and seeing if you are a good fit. 
      I suspect an NDA might be required, but other than that, this position would be great to hop in and out of, and again, would be a great way to contribute to a great project and gain valuable experience.
      3. Pixel Artist / Spine animator
      Either or.  I am currently getting art from a team out in Indonesia.  They are great, but hard to communicate with.  I'd love to have a dedicated artist with Spine(or any alternative 2d pixel animation) experience.  
      If you have interest in joining this team, please reply back.  Again, i'd like to reiterate, this is primarily a hobby based project.  However, it will eventually hit the app store and (ideally)generate income.  All team members will be a part of that revenue stream.
      Please respond with any questions, would be happy to respond.

  • Advertisement
  • Advertisement
Sign in to follow this  

Unity Hijacking a function in a dll which an exe loads

This topic is 2893 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I've been trying to use this direct3d hooking sample to hook irrlicht to get stats about my games rendering. The sample only works if the exe itself loads d3d. In my case i use irrlicht for rendering so my app loads irrlicht which loads d3d9.dll Is there a way that i can modify this code to allow me to get the d3d9 device when an app loads d3d9 through another dll? I've tried plenty of googling but I could'nt find anything... Any help would be appreciated. Thanks

Share this post

Link to post
Share on other sites
Google for IAT hooking (Import Address Table hooking).

The short answer is that suppose you have some exe called A.EXE which import from B.DLL, C.DLL, and D.DLL. Also, B.DLL and C.DLL both independently import from D.DLL. In this case, A.EXE, B.DLL, and C.DLL all have their own independent table that they do lookups through when mapping a function imported from D.DLL to an address that it can use to actually jump to

A robust IAT hooking solution accounts for this by recursively enumerating all possible modules and imports and hooking all of them, not just the one imported by the EXE.

To translate this to your above example, if you only apply an IAT hook to your EXE, you're not hooking irrlicht's copy of the IAT, only your EXEs. Since irrlicht is importing from d3d as well, it also has its own IAT that you need to hook.

Share this post

Link to post
Share on other sites
There shouldn't be any difference - the only thing I can think of is that irrlicht loads d3d9.dll from the Windows directory rather than the current directory for some reason. What does Process Monitor show?

EDIT: Never mind, I thought you were using a proxy DLL for some reason...

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement