Click here to Skip to main content
15,885,278 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Let's assume that I'm playing a game on PC, most likely off-line, is it possible for me to design a code that can interact with this game??, for example if I'm playing Fifa, and I want to implement a vb code or any other language that can print the score, or the name of the player who has the ball at a moment.

is it possible?, if so, how to do it, or at least in what field should I start looking for the answer (the write words for the search)?

I really appreciate your help in advance.

What I have tried:

unfortunately, no close results on google!!
Posted
Updated 3-Jul-16 22:07pm

It's possible, but...it's impractical.
First off, you'd need to access the memory of that game - which isn't impossible, but isn't easy. Google will hep you there.
Then the fun begins...you can't make it a "generic" application: not all games are the same. So you'd have to make it work specifically with "this game" - in your case FIFA. But even then, you'd have to make it work with your specific version of FIFA, because the code "behind the game" isn't necessarily the same between versions. So you have to write it for "FIFA 14" and a different version for "FIFA 15" and so on. And probably, you'll need to change those depending on the patch level the user has applied...

And then comes the real work!
We have no idea how FIFA works internally. So we don't know how it uses its memory and you will have to work backwards from how the memory has changed when an event happens in game, to find out how the game uses specific bits of memory.

For some games, that's trivial - but for a real-time wendyball simulator? Not so simple at all...

Probably, this is a very complex task that is going to take you some considerable time to work out, just to find where the score is kept!
Good luck - you are going to need it - but we can't give you any specific information on any game internals to help you along. Not because we're being nasty - just we don't know because they don't tell anyone!
 
Share this answer
 
Comments
CPallini 4-Jul-16 4:25am    
5.
Hisham Al-Khalfawi 4-Jul-16 5:37am    
Mate, that's a perfect answer, I really appreciate it.

Thank you very much
OriginalGriff 4-Jul-16 6:53am    
You're welcome!
A few possibilities:
- The game have a published interface made just for this kind of things. You just have to find that documentation/library and start programming. Rather unlikely.
- You have to hack in the game. This include gaining access to the game unshared memory, the OS may make your life difficult until you get necessary privilege. Then you have to hack the memory contain and understand how the memory is used and the meaning of everything. Tedious work.
- Someone already done the job, you just have to leverage this work.
 
Share this answer
 
Comments
CPallini 4-Jul-16 4:25am    
5.
Patrice T 4-Jul-16 4:28am    
Thank you
Hisham Al-Khalfawi 4-Jul-16 5:39am    
Thanks a lot my friend

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900