   How to read the position of the car outside the game
  Hi All, I want to read the car position ,acc, velocity from the game, developed by the game manufacturers. Do the games put out any such information in .dat file or something , that I can read by constantly polling into it. And if they do is there a specific format.Regards,NS   
  WTF?   ;  Well, many games(mostly FPS) have a "console" that you can type commands into, and some of these commands display stats like that. But I doubt they have functionality that dumps those stats into a file, and besides you don't even mention what game you're talking about.   ;Quote:Original post by contactmeDo the games put out any such information in .dat file or something , that I can read by constantly polling into it.In general, Nohowever you might be asking about a specific game, and they might break the rule...Quote:Original post by contactme...is there a specific format...No;Quote:Original post by contactmeHi All, I want to read the car position ,acc, velocity from the game, developed by the game manufacturers. Do the games put out any such information in .dat file or something , that I can read by constantly polling into it. And if they do is there a specific format.Regards,NSThe answer to your question is no, I think:S (im not entirely sure what you were asking)Basically how the data for a game is stored is entirely game dependent. Some companys publish the formats they use (or people reverse engineer them) and a search of the internet may help you out for a specific game. There is, however, no global standard for how/where the data is stored.   ;  there are however some games, or more commonly SIMULATORS, that do expose internal state variables via well-defined interface, for example the FlightGear flight simulator exposes pretty much all of its runtime state variables via all sorts of different network interfaces (http, telnet, raw telnet etc).Likewise, X-Plane uses a similar approach, too.However, without you providing additional background info, we are unlikely to be able to actually help you.;  Thanks for the replies!!I am using the F1 racing game from EA sports as of now. The reason I want to read the car position/acce/velocity as want to move another device based on the motion. Right now I am just polling on the joystick. And moving my device, but that does not exactly follow the game. can I write a script or something to read the car values. I am totally new to this stuff and want to learn more about gaming using this as my starter project. I hope I have made my question clearer.Thanks, NS   ;Quote:Original post by contactmeI hope I have made my question clearer.Yes you have.  ThanksQuote:Original post by contactmecan I write a script or something to read the car values.The short answer is:no you cannot.The long answer is:At least not without a hell of a lot more knowledge than you seem to possess (no offense intended).  There is zero of the current game's information that is written to disk.  This means you would have to directly access the current memory of the game.  Windows doesn't like you to do this (i.e. it's very very hard).Even after you access the memory, however, you are left with garbage.  The memory footprint of every game is completely different; there are no standard formats.  You'd have to reverse engineer it yourself.  The process would be something like this:Play the game.  get your car into a specific positiondump all the memory to disk (no idea how you'd do this)Play the game again.  get your car into a slightly different positiondump all the memory to diskdiff the two memory chunks and note which things are different (what you are diffing here is binary data, there will be no variable names or anything useful to tell you what you're looking at)Do this maybe 20-30 times and you'll have a 1% chance of knowing which offset in memory is the position or the car.  The problem is that unlike a savegame file or something else written to disk, there is zero reliability in the memory footprint of a runtime game.  Different objects can be in different offsets at runtime depending on current memory layout, various random elements in a game, and other items.-me   ;  I recommend you email EA and ask them, there's no way you're going to be able to reverse engineer something that complicated. They'll probably tell you where to get off, but if so you're no worse off than you are now, and they may provide the information for networked games.   ;  You'd have to use something like Cheat Engine, but even then that requires a fairly advanced knowledge of the inside of Windows PE.   