SMALL UPDATE (2008-08-29):
The CInsim library was replaced with a newer version.
X-Y-Z POSITIONING v0.1
This is another application/tutorial I've written in basic C/C++ using my "CInsim" library. This time I have updated the library to support InSim TCP+UDP connection. The previous application I made can be found here: http://www.lfsforum.net/showthread.php?t=46643
All the source code is provided, of course, as well as a code::blocks project file![](/static/smilies/smile.gif)
This application retrieves MCI packets every second and shows to each player his coordinates and the closest car at any moment while they are on track.
It provides a lot of information through the console so it's nice if you want to know what is happening and what packets are being received/what actions are being taken.
QUICK START
Just run the executable in the zip with 3 arguments: IP PORT ADMIN_PASS
(The PThreads dll must be in the same directory)
I recommend to create a Windows link and add those arguments in the properties.
Connect to the server and a welcome message should appear. You can be in the server when the application starts, but be warned that the first thing it does is end the current race/session.
Start running!
PS: I'd like these small apps I'm doing to be linked somewhere in the "My first InSim Application" thread or something like that.
The CInsim library was replaced with a newer version.
X-Y-Z POSITIONING v0.1
This is another application/tutorial I've written in basic C/C++ using my "CInsim" library. This time I have updated the library to support InSim TCP+UDP connection. The previous application I made can be found here: http://www.lfsforum.net/showthread.php?t=46643
All the source code is provided, of course, as well as a code::blocks project file
![](/static/smilies/smile.gif)
This application retrieves MCI packets every second and shows to each player his coordinates and the closest car at any moment while they are on track.
It provides a lot of information through the console so it's nice if you want to know what is happening and what packets are being received/what actions are being taken.
QUICK START
Just run the executable in the zip with 3 arguments: IP PORT ADMIN_PASS
(The PThreads dll must be in the same directory)
I recommend to create a Windows link and add those arguments in the properties.
Connect to the server and a welcome message should appear. You can be in the server when the application starts, but be warned that the first thing it does is end the current race/session.
Start running!
PS: I'd like these small apps I'm doing to be linked somewhere in the "My first InSim Application" thread or something like that.