The online racing simulator
Extracting data from LFS
(9 posts, started )
#1 - aldoz
Extracting data from LFS
hello all.
I would to know how can i extract data from a race in LFS.
for make you understand well what i mean please think about the "force-dynamics" platform. This machine extract the race data (g-force, speed, jumps) and give these data to the motors witch push some pistons to make the movement.

Are there some software for doing it? If ye, what software?
Please teach me about, i am very interesting about

Thank you
Using Outsim and special coding will make it possible. These values exist at Outsim, thats for sure.
OutSim is posible to do it
#4 - aldoz
Ah good! So, i find some youtube video about, some forum speaking about but i can't find the downloadable version of outsim!

Where i gets wrong?
#5 - PoVo
Quote from aldoz :Ah good! So, i find some youtube video about, some forum speaking about but i can't find the downloadable version of outsim!

Where i gets wrong?

OutSim is just a protocol.

You have to use a library to read from OutSim.

There is a C# library by T-RonX. And some other library's in different languages.
#6 - aldoz
Quote from PoVo :OutSim is just a protocol.

You have to use a library to read from OutSim.

There is a C# library by T-RonX. And some other library's in different languages.

Ah ok, now it's all a bit much clear.
Please, tell me if i get the logic about:

1) I need to install some C++ compiler
2) I need to download C library by T-Ronx
3) I need to make an executable C++ program in witch run the T-Ronx library
4) This executable program must be launched when LFS (and other games too?) is running
5) This executable program read the LFS variables providing a live log?

6) Now i need something (a reading software?)that :
A) Can read this live log
B) transform data from the live log in other commands
C) now these new commands must to go out to another software in another machine (a second PC networked with the main pc).
D) In that another machine (pc2) there is a software picking the commands from my executable c++ program, these commands are sended to some motors attached on pc2. (attached how? via?)

Please, tell me if the first, basic logic is right or not!

Thank you!
You can run the Outsim reader on PC2, reading the data throught the IP of the other computer

Outsim provides you the values, you have to convert those values into the ones your hardware uses (angles, accelerations...). Then you have to send the data to the HW (somehow). This is all I know
#8 - aldoz
Mm ok, i understand the really far and basic logic. But the step from 1 to 5 are right?

This library is a piece of some executable?
What are the steps i need to do for have OutSim working in my pc?
#9 - PoVo
Quote from aldoz :Mm ok, i understand the really far and basic logic. But the step from 1 to 5 are right?

This library is a piece of some executable?
What are the steps i need to do for have OutSim working in my pc?

TRonX's library is not C++, it's C#.

He already has made an example code, which can be opened using Visual Studio C#, and it already displays things like speed etc. All you have to do is change the IP, ports and the information that you want to read.

Extracting data from LFS
(9 posts, started )
FGED GREDG RDFGDR GSFDG