Open the X-Sim notifier or download it!
motion simulator DIY community Follow us on  Twitter Add to iGoogle
motion simulator DIY community

help us with codemasters Dirt2 extradata set to 1

Moderator: sirnoname

on 15.12.2009, 19:32

help us with codemasters Dirt2 extradata set to 1

New postby sirnoname on 15.12.2009, 19:32

Communitywork
to find more ingame values of Dirt 1+2 and Grid

sam.jpg
sam.jpg (7.88 KiB) Viewed 937 times


Hello together,
I hope there are some interests in the riddle of the extradata="0" entry and some of the readers like to help to bring light into the dark hole of codemasters. I found out that when I set extradata="1" the output of Dirt2 Demo is not a LFS outsim compatible data format. What is a dataformat? It is the order of the ingame values that are send by the game. Have a look to the LFS data format:
Code: Select all
LFS Packet: 68 Bytes
struct INPUT
{
   int         time;
   float         angular[3];
   float         orientation[3];
   float         acceleration[3];
   float         velocity[3];
   float         possition[3];
   int         id;
};

In this dataformat the time comes first as a 4 byte integer value. This value will increase every milisecond.
Followed by three angular float (dot e.g. 3,6) values with 4 bytes (easy accuracy).
And now we have a new dataformat:
Code: Select all
Dirt2 Packet: 152 Bytes
struct INPUT
{
   float global racingtime in ms
        float time in ms after startshoot
        ?
        ?
        ...
};

This is the point where you come into the game :)
Attached is a little program. If you start it (it will minimize to taskbar) you can start the MMF Visualizer and look at the ingame values in relatime. The outsimdirt2 will for now not display anything, it will only pass through to the MMF visualizer
Find out which value could be which ingame synonym. Find out if there is a LFS outsim like structure with 152 bytes with google.
For now it seems for me, that this is nearly like the old outsim format but now with 8byte double precision values.
I do not see ingame Gear values at all, but the last value could be RPM (4 Bytes).

Install:
Simple insert the grid type setup to the game (Port 4123). Type 127.0.0.1 if you are using dualscreen or insert a IP of another computer where you can run outsimdirt2 and MMF Visualizer.
Then start the outsimdirt2 and run the mmf visualizer. Insert as name "mmftestmover" and as size 152.
After openenig you see everywhere a zero.
Start the game and look at the values, try offsets and type combinations.

My results:
I can see the first 4byte float values increasing in ms and the seconds 4byte float is increasing after the start shoot.
Then are following game position and accelerations, which might be in 8byte double instead in 4 byte float.
The values near the end react on the keyboard input.
The last 4byte value increases like RPM, but I am not sure.
The MAP values might be map oriented or car oriented.

mmfvisualizer.zip
(361.71 KiB) Downloaded 23 times
Note: the included plugin is a fake plugin only to transfere the data to the MMF visualizer! No x-sim support!
User avatar
sirnoname
Executive X-Sim software developer & BETA section leader
 
Posts: 2279
Joined: 08.11.2006, 20:12
Location:Germany Augsburg, Germany
Local time: 09.09.2010, 12:51
Obtained thanks: 462


on 05.02.2010, 18:52

Re: help us with codemasters Dirt2 extradata set to 1

New postby sirnoname on 05.02.2010, 18:52

Codemasters has provided the needed informations.
The new data harvester can get some more details out of Dirt2 like speed, gear, laptime, round etc. ...

I open a new thread for this update ...
User avatar
sirnoname
Executive X-Sim software developer & BETA section leader
 
Posts: 2279
Joined: 08.11.2006, 20:12
Location:Germany Augsburg, Germany
Local time: 09.09.2010, 12:51
Obtained thanks: 462



Similar topics

Return to Force-Sender & Plugins


Social Bookmarking
Bookmark bei: Mr. Wong Bookmark bei: Del.icio.us Bookmark bei: Webnews Bookmark bei: Icio Bookmark bei: Oneview Bookmark bei: Linkarena Bookmark bei: Newskick Bookmark bei: Folkd Bookmark bei: Yigg Bookmark bei: Digg Bookmark bei: Reddit Bookmark bei: Simpy Bookmark bei: StumbleUpon Bookmark bei: Slashdot Bookmark bei: Netscape Bookmark bei: Furl Bookmark bei: Yahoo Bookmark bei: Spurl Bookmark bei: Google Bookmark bei: Blinklist Bookmark bei: Blogmarks Bookmark bei: Diigo Bookmark bei: Technorati Bookmark bei: Newsvine Bookmark bei: Blinkbits Bookmark bei: Ma.Gnolia Bookmark bei: Smarking Bookmark bei: Netvouz

Who is online

Users browsing this forum: No registered users and 1 guest