The online racing simulator
Searching in All forums
(27 results)
1
ikkah
S2 licensed
"LFS is already playing a replay"

If it's smart enough to tell me that, shouldn't it be smart enough to quit the previous replay and start playing a new one?

Edit: No problems with R9700, Catalyst 5.10
Last edited by ikkah, .
ikkah
S2 licensed
15 years in F1, 7 world championships, then he does a mistake (or three) like that. You're either a Ferrari fan or an idiot if you deny that.
ikkah
S2 licensed
Quote from sgt.flippy :Could anyone get a tape of this online? I'd like to see it. I'm gonna watch the news now, maybe it's on. I hope I can see what happend. Anyway, I believe schumi is able to do something like this.

http://www.youtube.com/watch?v=Kb0tyPCGWKY

and

http://personal.inet.fi/koti/y ... 3_schumacher_incar_LQ.avi
ikkah
S2 licensed
Quote from Kegetys :I find this style of indenting to be very readable, and keep the code from being too 'loose' which I find makes it harder to read. I guess thats because the first C code I ever read was indented like this (I think)...

My style is the exact opposite of that.

void nkfsDec( void *data, int size ) {
BYTE *k = key;
for ( int i = 0; i < size; ++i ) {
((BYTE*)data)[i] -= *k++;
if ( *k == 0x00 ) {
k = key;
}
}
}

Yes, my tabs are 8 spaces wide. In my opinion making the code look loose makes it easier to read. I overuse horizontal space but I don't like to waste vertical space as much, maybe because I want to see as much code as possible without having to scroll.

So what do your IDEs look like in action? Here's my VC++: http://www.lfs-suomi.com/ikkah/vs.png

Notice the ultrawide code view and the light green background for comments.
ikkah
S2 licensed
http://php.net/manual/en/funct ... ql-real-escape-string.php

Try that. Since ' is used to mark where the text string starts and ends, you'll have to avoid using that character. That is, if you have a string like 'ikkah's head', MySQL will think the string is only 'ikkah' and the rest is syntax error. Check that URL, it's probably explained better there.
ikkah
S2 licensed
Quote from sdether :If your concern is ability to move your code to other platforms, I know my lib runs under mono, and pretty much anything written against the 1.1 spec of .NET will run under mono. The way I see it, the only real drawback to .NET/mono is having to install the runtime (23MB). However, it comes standard with every windows OS shipped and installs with SP2 for XP and the new Ubuntu and Fedora Core distributions come with mono pre-installed, so the runtime requirement is quickly becoming a non-issue.

Erm, sorry for the stupid question, but: what's the point of supporting other platforms when LFS only runs on Windows?
ikkah
S2 licensed
ikkah
S2 licensed
Uhm, your parser does that now, right? If there's a parser doing that already, I don't see why I should add that feature to my parser. It's meant to imitate the results table in LFS anyway, and DNF drivers aren't listed there either.
ikkah
S2 licensed
Quote from maczo :ikkah, are you sure you placed all lines of code referring to output? im quite convinced that your parser doesnt output drivers who didnt finish (although i dont doubt it FINDS them - stole some code btw, hope you dont mind ).

Hehe, whoops! It does find those drivers, but doesn't actually save them anywhere. Steal as much code as you want to, if it does good for the community, it does good for me
ikkah
S2 licensed
Don't want to steal your thread or anything, but here's my parser:

Executable: http://www.lfs-suomi.com/uploads/mpr-parse.exe
C++ source: http://www.lfs-suomi.com/uploads/mpr-parse.cpp

It can find drivers that didn't finish, with a few exceptions. It prints an ugly HTML-file that's supposed to look a bit like the results board in LFS. The code is a bit hacky, since I thought I'd never show it to anyone, but if you want to modify it for your own purposes, I'm not stopping you.
Last edited by ikkah, .
ikkah
S2 licensed
ikkah
S2 licensed
I agree with most of the stuff, but I really doubt that 5/10 is a good enough score. Sure, points are always relative, and LFS is the best scoring game on that site (there's one with 4/10), but still I feel that the score isn't enough. Even with those issues, LFS doesn't sounds like a 5/10 game.
ikkah
S2 licensed
Guys, this thread is over three months old. Let's avoid the flamewar and let the thread die.
ikkah
S2 licensed
Here's the problem: right when you start the replay, it says "poa.agarash left the pits (FXO)". The race hasn't begun yet, but the countdown has. That's why Agarash's block of data is 282 bytes instead of 335. I don't know of a way to detect this, so I just tell my drivers to not pit when the race starts
ikkah
S2 licensed
Well there's no specific reason, it's just something that has troubled me (and Kegetys). There were a few ideas that are impossible to do well without 3d orientation. I was kinda hoping to get an answer from the devs on this one?
ikkah
S2 licensed
Wouldn't work well enough.
InSim - orientation of the car
ikkah
S2 licensed
Hey,

why is it that you can get the position of the car in 3d (x, y and z), but you can only get 2d orientation (y-axis angle)? Could we get just a few extra bytes for 3d orientation?
ikkah
S2 licensed
Our dog after a short walk in the snow: http://personal.inet.fi/cool/hakki/michelin.jpg
ikkah
S2 licensed
http://www.lfs-suomi.com/uploads/mpr-parse.cpp

That's my parser, in C++. It's a bit hacky since I didn't think I'd show it to anyone

Look for "const int magic_offset", that's where I move to that block of data. The offset to the username block depends on the number of players, unlike in S1 where it was always in the same place.

My parser can find all the players that were ingame when the replay started, this means you can't find people who started from the pits, joined the game after spectating or connected to the server after the replay started. It's good enough for running a league, though.
ikkah
S2 licensed
Hmm, OK, did a little bit of research, those look like car bits. Allowed cars on that server, that is. S1 cars are listed just above the rules bits, I guess the rest of the cars are in the same order as everywhere else, f.e. LFSWorld.

the_angry_angel, I think he's trying to find LFSWorld usernames.
Last edited by ikkah, .
ikkah
S2 licensed
(deleted lots of text here.. should have read the message properly first)

I haven't found a reliable way to find usernames in the replays, but I've had quite good results by playing with offsets. I can find most drivers this way, and it's more reliable than trying to find patterns. Try combining these two methods.
Last edited by ikkah, .
ikkah
S2 licensed
I think there should also be a link to the homepage of the add-on, not just the file.
ikkah
S2 licensed
Only about 30 icons outside the screen

It's like that mostly because it was the default download folder for Firefox.. and my laziness has helped quite a bit too. Absolutely no excuse for all those icons, I never even open apps using the desktop (mostly because I can't find anything)
ikkah
S2 licensed
Yeah, it must be some kind of a bug. Had this in an LFS Suomi race, and AFAIK everyone on the server saw the messages. Had about five of those messages, apparently the AI was learning
1
FGED GREDG RDFGDR GSFDG