The online racing simulator
Searching in All forums
(111 results)
Messiah
S2 licensed
Quote from abz1 :1. so, im trying to convert the replayspeed into a float value, im using the 4 bytes which i got from the array sent from LFS (check attached file to see data) and stored them into a seperate array

So.. I finally have to admin that I don't know how to convert an array of bytes into a float value (yet), hehe. But there's 2 things confusing me.

I'm using C#, very similar to Java.

1) You have a byte value of -128. Isn't the datatype "byte" also a non-signed numeric datatype in Java? That means it cannot hold negative values? If so casting -128 (as integer) to a (byte) will make it 128 (positive).

2) In LFS.Live I'm often using the "BitConverter" class. Maybe you have this in Java as well and "float" is probably called "single" as well as in C#. I don't have the ToFloat() available on a (byte-)array for example. Maybe lets change the negative sign from your -128 and it turns out to be 1.0 as result as well.

After all, the following code gives me 1.0f as output:
byte[] value = new byte[] { 0, 0, 128, 63 };
float floatValue = BitConverter.ToSingle(value, 0);

Console.WriteLine("Float conversion: {0}", floatValue);

Method explained:
Returns a single-precision floating point number from four bytes at a specified position in a byte array.
BitConverter.ToSingle(byte[] array, int startIndex).
Last edited by Messiah, .
Messiah
S2 licensed
Yes, it is possible. The server sends like every message you'd see as you were ingame through InSim, thus making it possible to read all the chat going on, as well as messages (votes, pits, other messages...).

Also it is possible to chat back as the "host". Where "host" is the actual "PlayerName" in the cfg.txt of the server (not the HostName) iirc. A utility would also be able to change a wide variety of server settings (e.g. kick/ban, restart, end race, change track, laps, ...).

...anyway, didn't laugh about your thread at all :P
Messiah
S2 licensed
Quote from Bob Smith :I created a replica of an autocross course for Warper, the track is what is being used in the German Formula Student Championships this year. Assuming I did a good enough job, you could compare the MRT5 with the vehicles competing there.

But still, it's not identical (either car or track). I think the ideal solution is for someone to build Blackwood. Ideally on the field behind my house. Portsmouth doesn't need water resovouirs anyway.

That really sounds like the way to go

Quote :I only wish people could notice the Enthusia Proffesional Racing that I could even call a simulator.

Aye... the physics demo video doesn't look that bad and you're right... one has to try it out at first but it looks promising. I also like the Trailer, some "racing" would've been nice though...

Unfortunately PS2 + Equip + Game would be too expensive for me and in he end, I'd miss the simple and great online mode, I guess
Messiah
S2 licensed
I have never worked with OutSim yet and don't take it serious if I'm wrong but make sure you are converting the raw data to float values (datatype float (4 bytes as well) not double or int or others).

Although the README and InSim doc confuses me... the InSim doc says:
Quote :You can identify an OutSim packet by its size (64 bytes) and first byte (zero).

and the README says:
Quote :unsigned int :time in milliseconds (to check order) (4 bytes)
Angular Velocity :3 floats (12 bytes)
Orientation :3 floats Heading, Pitch, Roll (12 bytes)
Acceleration :3 floats X, Y, Z (12 bytes)
Velocity :3 floats X, Y, Z (12 bytes)
Position :3 ints X, Y, Z (metres x 65536) (12 bytes)
Game ID :1 int (optional ID - if specified in cfg.txt) (4 bytes)

that makes a total of 68 bytes?
Messiah
S2 licensed
You know.. there actually must be S3 soon.. or there will be fewer patches.. I mean, it's "Q" already, not many letters left until "Z"
Messiah
S2 licensed
... you start the same thread of 'You know you play LFS too much when...' over and over again.
Messiah
S2 licensed
Try send some message through LFSW to Atomicpasi .. seen him on the server right now
Messiah
S2 licensed
Quote from GP4Flo :Maybe the devs skip S2 and release S3 this year

Sshhh! Insider info, top secret!

It's done, when it's done! And when it's done, I can also turn on windshield wipers and adjust side mirrors in addition to the turn signals illepall *dreams on*
Messiah
S2 licensed
Quote from Bob Smith :Hahaha. I can imagine you now, walking down the street, randomly running up to strangers shouting "don't use a cracked copy of LFS" (in a voice similar to that weirdo from Police Academy), doing a mild spasm and running off, with mad, twitchy eyes.


*lmao*! And in fact they don't use any cracked whatever at all :P
Messiah
S2 licensed
Hm.. I'm not sure about this. It may be some server running LFS Tweak to modify some car to be similar to a BMW-M5 3.8L or the server is blocking incoming connection due to a firewall or router.

If there was other people than it sounds like it's rather some LFS Tweak setting.

/edit:
Mh okay I just read LFS Tweak won't be out until S2 Final but I found this one to tweak some settings: http://www.lfsforum.net/showthread.php?t=3209

Note to everyone who is not familiar with "tweaking", you can't tweak your car to 5000hp and join a server, you can't join a regular server at all if you change anything. You can play offline for your personal joy, for example tweaking yourself some BMW M5 3.8L

(Got that tweak->joinserver question earlier).
Last edited by Messiah, .
Messiah
S2 licensed
I've never heard of that you can change the penalty for hitting objects.
Messiah
S2 licensed
Congratulations to all teams! 24 hours is a real challenge over and over again!

There were so many people actively involved again, it's just awesome! And the whole thing all around it (if you get up and go get it!) brings you very near to the race, the tracker, the streams, the interviews and all that kind of stuff
Messiah
S2 licensed
MSO maybe?

Quote :struct MsgOutPack // 128 chars - LFS reporting displayed messages
{
char Id [4]; // MSO + zero
char Msg [128]; // displayed message, with colours removed
};

Messiah
S2 licensed
Montreal->Dubai.. uh, what a trip. Hope you like the scene change ^_^

Good luck there with your job and your privates. Err.. I don't mean your "privates".. private stuff and.. uhm.. LFS and so on
Messiah
S2 licensed
I actually don't know what "LFS Lapper" is, but if it doesn't need any user to control some UI first but can be started via commandline it should be possible with web languages (eg PHP, ASP?) to start executables.
Messiah
S2 licensed
Last time I was working on my project, I was doing some gap-message function, sending your own client some message about the driver in front of you and behind you about the gap + split/lap time. Quite more difficult than I thought
Messiah
S2 licensed
I turned on the virtual lights because sometimes you'll start where you can't see the real lights and I start counting in my head. 3 seconds from the first red lights, on zero it goes to green like: Red, Red, Red, Green!

I never floor the pedal because the engine still makes popcorn sound when revving it to the max. I found out starting with wheelspin in the XRR is much better than without, since I don't have a clutch pedal to further optimize a start off the line. Though you are right, it needs some concentration to not spin around in the middle of the field =)

For FWD cars I do like most people over here and trying to reduce wheel spin as much as possible and I rather keep some wheel spin than underrev.
Messiah
S2 licensed
I hope they'll feel slightly p...ed off, for they cannot ruin this great game

Anyway, I'm in no doubt that $$$ offers raise with every stage of LFS, also with no doubt S3 will be one of the best sims outthere for a very long period of time

Oh zeh gods! So much (old) honey!
Messiah
S2 licensed
I don't think that most people care about Credits anyway. They're just like junk you are collecting, because you think "Mmh.. I might need it some day", but you won't need it unless you throw it away and a short while after you really need it

Noone yet knows if they ever will be good for something and what that may be, there were lots of suggestions and ideas though
Messiah
S2 licensed
Quote from scotty37 :Are you liking live for speed because I think its .well do you:fence3d:

Indeed!

Quote from axus :Well this probably takes the crown for the most pointless thread of the year. I know its 1 Jan still - 364 days to go, but I can't see this being beaten.

lol! ^^
Messiah
S2 licensed
I was running late, sorry for that. Too bad, there was no way to join in the midst of the race as I can read while looking for some information on a password, I was used to. I'm surprised by how the server was set up, never seen it before. I'd even finish 15 laps behind

Better luck next time
Messiah
S2 licensed
Happy newyear's everyone =)
Messiah
S2 licensed
I'd like to join as well, if I don't need to be registered anywhere in some season, then this will be the next race on my calendar for I'll not be drunk this newyears... not very much ^_^
Last edited by Messiah, .
Messiah
S2 licensed
Yay, another vertigo \o/ ... oh no wait, it's no vertigo

So... hm I voted for some classes I actually like. Since my favorite is the XRR, even if I'm just moderate/good in speed, it would be kinda boring with GTRs only. If it shouldn't be a GTR only championship, I'd like to see XFG/XRT, TBO, LX4 and the GTR cars on the lists.. maybe a FOX race as well
Messiah
S2 licensed
Heh, thank you

Quote :You were only gone 4 months, was that less than you imagined?

Yes, by far :P
But sometimes I feel like I never left in any way
Last edited by Messiah, .
FGED GREDG RDFGDR GSFDG