The online racing simulator
Learning To Program.
(91 posts, started )
Well if you want to write a simple InSim app, the easiest thing would create a program that logged lap times so you could look at them after the race.

All you would need to do is to send the IS_ISI initialisation packet to LFS, then wait for the IS_LAP packets to arrive, which you could write out to a text file.

I can't really imagine anything simpler than that.

Edit: You might want to also keep a list of driver names and playerIDs, so you can tell which lap belongs to which driver.
ok thanks will have a go
might take a while cause im on a few cans now and dont want to stuff it up lol
I wonder how dmwright's racing sim is coming along
Quote from dawesdust_12 :Wheel, read, what he posted is C# not C++

Okay, but what I wrote isn't C++ anyway, it's C... If it was C++ then it would look like:


#include "stdafx.h"
#include <iostream>

using namespace std;

int main(int argc, char* argv[])
{
cout << "Hello, world!" << endl;
return(0);
}

pwn3d... F*CKING PWN3D!!!!
#81 - Woz
Quote from racemania :hi guys didnt want to make another thread so ill post here,

ive just started to learn C,C++ and C# im starting to get more confident in programing now, and starting to understand where ive made mistakes altho im not to the advanced stages yet, i feel like a challenge so i thought idd try somthing a little differant to what the books teach you, i was wondering if there was anything in lfs i could try that was just small and would give me an understanding in how apps work with insim 4.

as i said just started out and loving it but need a challange, nothing too hard just somthing easy, thanks for any help and thanks for getting me into programing as ive been following some of the topics arround here and thought idd try some of you are really good but i spose it all comes with time i cant wait till i write me first programe for lfs just dont know what to write ?

so any ideas, and no i dont want to make a cruise server type of app lol,

thanks from racemania future programer (i hope)

A tip to help.


Use C#, Get the object wrapper for insim, I think its a sticky in the programming area. This will take away all the pain of the low level stuff. You can then get on doing the bits that do stuff.

The thing you learn after a long time at the code face is if code/libraries are available on the terms that you can accept then use it. It will save you loads of time and pain
Quote from wheel4hummer :Okay, but what I wrote isn't C++ anyway, it's C... If it was C++ then it would look like:


#include "stdafx.h"
#include <iostream>

using namespace std;

int main(int argc, char* argv[])
{
cout << "Hello, world!" << endl;
return(0);
}

pwn3d... F*CKING PWN3D!!!!

I didn't know that this was a competition. Not everyone has the urge to whip out their e-penis every 10 seconds. I'd rather not be called a whore.
Quote from Woz :A tip to help.


Use C#, Get the object wrapper for insim, I think its a sticky in the programming area. This will take away all the pain of the low level stuff. You can then get on doing the bits that do stuff.

The thing you learn after a long time at the code face is if code/libraries are available on the terms that you can accept then use it. It will save you loads of time and pain

thanks,
cant seem to find anything in the stickys? anyone know where i might find it? ive got the LFSsdk is there anything else i should have to help me on my ways?

once again thanks.
Quote from dawesdust_12 :I didn't know that this was a competition. Not everyone has the urge to whip out their e-penis every 10 seconds. I'd rather not be called a whore.

You're just pissed because your attempt at a smart-ass post in failed. The only person you should be angry at is yourself.
Since when was I angry? Somebody is a little insecure.
Quote from dawesdust_12 :Since when was I angry? Somebody is a little insecure.

You are acting in such a manner that I would be flamed for.
Yes, but the people love me, so I can do what I want!

/me calls my Thread Hijacking Mafia, to make sure this operation ends in success.
Settle down children, Sam's on his leash at the moment but he's not been fed in days and he's real grouchy. Don't make me set him on you.
Sam's grouchy?! LOL! That's rather hysterical after various events that if everyone found out about, UKCT would lose all class... wait

Learning To Program.
(91 posts, started )
FGED GREDG RDFGDR GSFDG