The online racing simulator
Searching in All forums
(7 results)
Pettor
Demo licensed
Quote from MaKaKaZo :Is this actually my CInsim library??? I don't know anything about outgauge and didn't know that it could be used with my lib Anyway, I haven't touched it since 2008 so the main update I guess is to grab the newest insim.txt in the docs folder and rename it to insim.h and use that for the header file of my lib.

Also you have to look for the line that sets the size of buttons text and remove the comment in it so you can write text into buttons (you have to specify the size of the C string to up to 240 chars).

Haha, yes it's your lib. It's possible by using the udp_get_packet and OutGaugePack from insim.h.

Your lib is working very nice i must say
Pettor
Demo licensed
Very helpful, both tips worked perfectly! Thank you!
CInsim Outgauge Flags
Pettor
Demo licensed
Hi,

I am using CInsim to get Outgauge data in my c/c++-application. The connection is working and I can get data from the game about speed, RPM etc, but the Outgauge->Flags is not updating for me.

I tried using code as:

if (pOutgauge->Flags | OG_HANDBRAKE)
{
printf("Handbrake");
}

This will give me that the handbrake light is always on. If i check the flags (of type word) variable this never changes any values when pressing handbrake, headlights etc. Is there any setup needed for these to work?

I also wonder if LFS contain implementation of signal left and right. I can't find any controller for it, but the flags contain them.

Regard,
Petter Gustavsson
Pettor
Demo licensed
Thanks for the answers once again,

We actually got in touch with the creator and it seems we can make a deal of using PPJoy so that is probably what we are going to do. What's good with that solution is that any simulator could be steered with our application, not only LFS. The same calibration problem maybe will occur for us too, and if we fix I can tell you.

The AIRS project sound very interesting indeed. It's a really cool and engaged community around this game that I think "bigger" developers should learn from. This also makes me want to use LFS

Regards,
Pettor
Demo licensed
Thank you for both your replies,

AndroidXP: An inaccurate speed would be enough so i think OutSim would be suitable, but very good notice that it's not totally accurate, certainly something that must be considered.

BlackBird: Really good information. Seem LFS suits all our needs but will need some modification to work perfectly. FF will be used, but totally controlled by us and no need to get from the simulator. You say you made a AIRS project. Is that the company AIRS and if so, is PPJoy ok to use in non-commercial purpose? We are doing a project that will be used in demonstration purpose for the hardware and I think we will need the creators permission.

We will maybe need to modify the interface (make it disappear) somewhat also, but there seem to be a lot of settings for this ingame. But it would be nice if it was possible to be fully configurable.

Regards,
Pettor
Demo licensed
Quote from AndroidXP :I think you need to be a bit more precise with what data you actually need to read and "set." OutGauge is really only useful for getting the gauge (rpm, speed, pedal state) data, but not the steer amount.

Reading the G25 axes itself is not really a problem and can be easily achieved with DirectInput. As for overriding the steering input, you'll have to use a virtual HID (as I guess mouse steer or keyboard steer is not an acceptable alternative). However you don't really have to write that yourself, as there's already PPJoy that creates virtual joystick devices. These devices are usually meant as controller adapters (so that you can for example connect console controllers to your COM port and use them or similar), but there's also an IOCTL controlled virtual device that you can simply access programmatically.

Thank you for the answer,

You seem to have understood my question correctly.

The "setter" idea is all about setting the data input to the simulator like with PPJoy but without the virtual joystick in the middle (i.e. without the HID interface in between). Data we want to set is steering-angle, speed and buttons pressed. The thing is we are not really sure if PPJoy can be used (license) in our context but maybe there are more alternatives we haven't seen and we are trying to mail the creator of PPJoy. We are receiving the data from G25 through direct input already so that works great.

The easiest way for our system to work is to be able to "set" data directly to the simulator, but i guess this isn't possible and was mostly a long shoot hoping for the best .

The getter data needs to be the speed in LFS and the gauge values. Speed is the most important part because we need this sent to the additional hardware. But i think i saw someone getting speed data etc. from LFS in their InSim (or was it OutSim) application.

Regards,
Set and get LFS data
Pettor
Demo licensed
Hi,

I am currently looking for a suitable racing simulator for a master thesis work. LFS seem to fit my needs very well, but there are some additional details i would like to here your thoughts about.

DESCRIPTION: The project is simply put based on a simulator, steering-wheel and some additional hardware. What we do is that: first the steering wheel (G25) is moved and sends it's new steering data to the additional hardware where the steering wheel data (steering angle) is manipulated. This manipulated data is later sent back to our computer running a simulator (Like LFS) that receives the new steering data. We then take the steering data from the simulator and transmit it to a hardware gauge interface.

QUESTION: Hope i haven't bored you yet, because here comes what i would like to discuss. Is there any possibility to send data from say, an user created application, that LFS then receive steering data from and use in-game, like a "setter"? This is the preferred case cause it would make our life easier. If this is not possible we have an idea of creating a virtual steering wheel in Windows that receives the new manipulated data which the simulator then listens to just as if it was and ordinary steering wheel. But that option is way more time consuming than being able to set the data right away.

The functionality of "getting" data from LFS and transmitting it to the gauge-hardware should be easy with all additional applications created for this, like OutGauge etc.?

I would be very thankful for any thought and recommendation about this subject!

Regards,
FGED GREDG RDFGDR GSFDG