The online racing simulator
Searching in All forums
(907 results)
traxxion
S2 licensed
Quote from NL_RevZ :..

So if I understand correctly they don't have preset arrangements? If not, I'd suggest to make our own format (free practise, qualifying, race, final) and let them make a price for it depending on how many people show up.
traxxion
S2 licensed
Quote from BastianB :this is the LFS-FORUM not the "Lerts can time-travel with his toaster"-forum

Quote from CasseBent :I'm sure you'll have a long winded answer for me. Which in turn will make me consider that hamsters are the dominant species because they have fluffy backs and no tails.

Quote from CasseBent :lerts ruined the thread, by clarifying, to absolutely no one but himself and the voices

Quote from sinbad :Hey, why are there no aspirins in the jungle?
Because the paracetamol.

Golden, but if we look closely we'll see that "paracetamol", whilst sounding a lot like "parrots eat 'em all" is actually just the word "paracetamol". Any in any case, IF there were a jungle with aspirins in it somewhere (very hard to believe!!!) parrots would not eat 'em all, leaving the joke completely redundant. Stupid made up nonsense. It is bad for medicine, bad for the jungle, and worst of all, it suggests that parrots are drug addicts, and I find that offensive. Down with made up jokes!!

Hahaha! I had to laugh at original post, but these comments absolutely made my day :ices_rofl

@lerts: I enjoyed most of your posts so far, but don't take it too far man...
Last edited by traxxion, . Reason : added sinbad's :D
traxxion
S2 licensed
Kaw don't fit in no karts anyway.
traxxion
S2 licensed
There have been multiple requests to keep this thread in English, so that interested foreigners can understand this too...

Quote from Takumi_lfs :and what do you think of my weed idea?

Not interested.
traxxion
S2 licensed
Quote from Krutch :Good idea! You or anyone else willing to write this news item? I'd move it in the right section

That would be my task.. Haven't had time for it yet, try to do it this week.

On topic: you can put me on the list as interested. Just be aware that the longer you wait, the bigger the chances are that bad weather spoils the party..
traxxion
S2 licensed
Quote from traxxion :Penalty weight according to championship standings for GT1: automagic balancing.

I think every negative point about this suggestion can be countered by the fact that in the end the best will win anyway.. So with that cleared, what's left is the pro of the suggestion (and the solution for the main "issue") close(r)-racing.

I've had some positive replies to this in PM's, but so far no support here..
Just noticed the thread is originally meant to be a GT2 discussion, so apologies for going off-topic, but is there really no basis for this suggestion?
traxxion
S2 licensed
Quote from Paranoid Android :Don't know about the other translations, but the greek one at least is horrendous!

Haha, same for Dutch
traxxion
S2 licensed
Very nice! Best of luck!
traxxion
S2 licensed
Quote from popsy :what do you guys do?

We search!
traxxion
S2 licensed
Hahahha best thread title, ever!
Way-to-go everyone... great effort resulting in great results throughout the whole season!
Many thanks to the drivers Rudy van Buren, Marcel vd Linden, Bas Bouma, Wouter de Bruijn, Jeroen vd Berg, Vincent Staal and Thomas Arends...
And to the rest of the Dutch community for their support, help, and enthusiasm...
Netherlands, World Champions!!!!
Last edited by traxxion, .
traxxion
S2 licensed
As far as I know, switch statements can only handle integers, you're asking it to work with strings.
traxxion
S2 licensed
Try declaring bool OfficerOn, etc. at the very top of your function, outside any if, else or foreach statements.
traxxion
S2 licensed
Penalty weight according to championship standings for GT1: automagic balancing.

I think every negative point about this suggestion can be countered by the fact that in the end the best will win anyway.. So with that cleared, what's left is the pro of the suggestion (and the solution for the main "issue") close(r)-racing.
traxxion
S2 licensed
Quote from Bawbag :Well if you are me then we are both alien fast then right, right?

Deal.
traxxion
S2 licensed
Quote from Bawbag :The last two posts were me btw, on my 2nd and 3rd account.

Liar! You are actually me, so that makes me alien-like fast then, right, right?

Edit: seriously though, not sure where Sherlock got that knowledge from but I would sincerely like to hear his suggestion for the second account of mr. Nieminen.
traxxion
S2 licensed
Quote from AMB :is that the guy from first, J.Niemen or something? if so he's not new that's his second account.

kthxbai

Hahaha, excuse me?
traxxion
S2 licensed
Quote from traxxion :YouTube version to follow, uploading as we speak

http://www.youtube.com/watch?v=8-EBWvsAhao&fmt=6

Trying to find the limit of the car, slowly improving every time, and some hairy moments with other cars on track (that Porsche @3:46 was only centimeters away..!).
traxxion
S2 licensed
Not sure if this belongs here, but I made a quick compilation of some onboard footage during one stint on the track day on Zandvoort last wednesday.. Second day out with the 205 Mi16... what a blast!

Downloadable here [640x480 - 5:54 min - ~128 Mb]

YouTube version to follow, uploading as we speak
traxxion
S2 licensed
Quote from BenjiMC :keep yer trousers on, i never said he was crap/slow. i just said it looks painful to be alonsos front tyres.

Where in my post do I mention you?
traxxion
S2 licensed
Quote from MrRoper :The code isnt that hard for the comparer,

Im happy to knock one up for you at the weekend if you like?

Thanks for the offer man Have to say I normally want to give it a try myself first, but a good example would actually be great in this case. I'll send you my Class via pm.
traxxion
S2 licensed
Quote from MrRoper :does that make any sense???

It makes perfect sense actually, thanks for that!

The biggest difficulty will be to make an algorythm for the comparison though.. That's not gonna be today or the upcoming 10 days.. but I will definitely look into this, soon as I'm back from holidays.

Thanks again!

:surfing:
traxxion
S2 licensed
Quote from MrRoper :are you happy with what an interface is?

I've heard of the word, but my theoretical knowledge of C# is nigh to zero. I usually only dive into the theory when I get stuck with my existing knowledge (like right now with the IComparer). BurnOut69 keeps telling me I have to read my C# bible though
Last edited by traxxion, .
traxxion
S2 licensed
Yeah I figured the word IComparer would come up quite a lot here. Unfortunately I haven't really got my head around that yet.. Seems like I will have to asap though!

Thanks for pointing me in the right direction guys
traxxion
S2 licensed
Quote from xaotik :Dirtiest way ever? Concatenate the name and age and then compare.

Hahaha great stuff, that'll do on my last day before holidays!

I do hope that in the mean time someone else will find a less dirty way!

Thanks a lot xaotik!!
Last edited by traxxion, .
C# Sorting Lists help
traxxion
S2 licensed
Hi

Been struggling to solve this for quite a long time now.. Nowhere on the internet can I find a solution for this.

Please find below a hypothetical example of what I have..
I'm sorting a List<> of "Persons" (consists of name, age and city). This is no problem whatsoever for sorting actions that sort only 1 parameter at a time. Example:


[COLOR=#0000ff][COLOR=#0000ff]public [/COLOR][/COLOR][COLOR=#0000ff][COLOR=#0000ff]class [/COLOR][/COLOR][COLOR=#2b91af][COLOR=#2b91af]Person[/COLOR]
[/COLOR]{
[COLOR=#0000ff][COLOR=#0000ff] public [/COLOR][/COLOR][COLOR=#0000ff][COLOR=#0000ff]int[/COLOR][/COLOR] age;
[COLOR=#0000ff][COLOR=#0000ff] public [/COLOR][/COLOR][COLOR=#0000ff][COLOR=#0000ff]string[/COLOR][/COLOR] name;
[COLOR=#0000ff][COLOR=#0000ff] public [/COLOR][/COLOR][COLOR=#0000ff][COLOR=#0000ff]string[/COLOR][/COLOR] city;

[COLOR=#0000ff][COLOR=#0000ff] public[/COLOR][/COLOR] Person([COLOR=#0000ff][COLOR=#0000ff]int[/COLOR][/COLOR] age, [COLOR=#0000ff][COLOR=#0000ff]string[/COLOR][/COLOR] name, [COLOR=#0000ff][COLOR=#0000ff]string[/COLOR][/COLOR] city)
{
[COLOR=#0000ff][COLOR=#0000ff] this[/COLOR][/COLOR].age = age;
[COLOR=#0000ff][COLOR=#0000ff] this[/COLOR][/COLOR].name = name;
[COLOR=#0000ff][COLOR=#0000ff] this[/COLOR][/COLOR].city = city;
}
}

[COLOR=#0000ff][COLOR=#0000ff]static [/COLOR][/COLOR][COLOR=#0000ff][COLOR=#0000ff]void[/COLOR][/COLOR] Main([COLOR=#0000ff][COLOR=#0000ff]string[/COLOR][/COLOR][] args)
{
[COLOR=#2b91af][COLOR=#2b91af]List[/COLOR][/COLOR]<[COLOR=#2b91af][COLOR=#2b91af]Person[/COLOR][/COLOR]> lstPersons = [COLOR=#0000ff][COLOR=#0000ff]new[/COLOR][/COLOR][COLOR=#2b91af][COLOR=#2b91af]List[/COLOR][/COLOR]<[COLOR=#2b91af][COLOR=#2b91af]Person[/COLOR][/COLOR]>();
lstPersons.Add([COLOR=#0000ff][COLOR=#0000ff]new [/COLOR][/COLOR][COLOR=#2b91af][COLOR=#2b91af]Person[/COLOR][/COLOR](37, [COLOR=#a31515][COLOR=#a31515]"Peter"[/COLOR][/COLOR], [COLOR=#a31515][COLOR=#a31515]"Amsterdam"[/COLOR][/COLOR]));
lstPersons.Add([COLOR=#0000ff][COLOR=#0000ff]new [/COLOR][/COLOR][COLOR=#2b91af][COLOR=#2b91af]Person[/COLOR][/COLOR](24, [COLOR=#a31515][COLOR=#a31515]"René"[/COLOR][/COLOR], [COLOR=#a31515][COLOR=#a31515]"Den Bosch"[/COLOR][/COLOR]));
lstPersons.Add([COLOR=#0000ff][COLOR=#0000ff]new [/COLOR][/COLOR][COLOR=#2b91af][COLOR=#2b91af]Person[/COLOR][/COLOR](41, [COLOR=#a31515][COLOR=#a31515]"Albert"[/COLOR][/COLOR], [COLOR=#a31515][COLOR=#a31515]"Paris"[/COLOR][/COLOR]));
lstPersons.Add([COLOR=#0000ff][COLOR=#0000ff]new [/COLOR][/COLOR][COLOR=#2b91af][COLOR=#2b91af]Person[/COLOR][/COLOR](35, [COLOR=#a31515][COLOR=#a31515]"Albert"[/COLOR][/COLOR], [COLOR=#a31515][COLOR=#a31515]"Paris"[/COLOR][/COLOR]));

[COLOR=#2b91af][COLOR=#2b91af]Console[/COLOR][/COLOR].WriteLine([COLOR=#a31515][COLOR=#a31515]"Sorting by age"[/COLOR][/COLOR]);
lstPersons.Sort([COLOR=#0000ff][COLOR=#0000ff]delegate[/COLOR][/COLOR]([COLOR=#2b91af][COLOR=#2b91af]Person[/COLOR][/COLOR] p1, [COLOR=#2b91af][COLOR=#2b91af]Person[/COLOR][/COLOR] p2) { [COLOR=#0000ff][COLOR=#0000ff]return[/COLOR][/COLOR] p1.age.CompareTo(p2.age); });
[COLOR=#0000ff][COLOR=#0000ff]foreach[/COLOR][/COLOR] ([COLOR=#2b91af][COLOR=#2b91af]Person[/COLOR][/COLOR] p [COLOR=#0000ff][COLOR=#0000ff]in[/COLOR][/COLOR] lstPersons)
[COLOR=#2b91af][COLOR=#2b91af]Console[/COLOR][/COLOR].WriteLine([COLOR=#a31515][COLOR=#a31515]"Name: {0} - Age: {1} - City: {2}"[/COLOR][/COLOR], p.name, p.age, p.city);

[COLOR=#008000][COLOR=#008000]/* OUTPUT:[/COLOR]
[COLOR=#008000]* Sorting by name[/COLOR]
[COLOR=#008000]Name: René - Age: 24 - City: Den Bosch[/COLOR]
[COLOR=#008000]Name: Albert - Age: 35 - City: Paris[/COLOR]
[COLOR=#008000]Name: Peter - Age: 37 - City: Amsterdam[/COLOR]
[COLOR=#008000]Name: Albert - Age: 41 - City: Paris[/COLOR]
[COLOR=#008000]* */[/COLOR]
[/COLOR]
[COLOR=#2b91af][COLOR=#2b91af]Console[/COLOR][/COLOR].WriteLine([COLOR=#2b91af][COLOR=#2b91af]Environment[/COLOR][/COLOR].NewLine);
[COLOR=#2b91af][COLOR=#2b91af]Console[/COLOR][/COLOR].WriteLine([COLOR=#a31515][COLOR=#a31515]"Sorting by name"[/COLOR][/COLOR]);
lstPersons.Sort([COLOR=#0000ff][COLOR=#0000ff]delegate[/COLOR][/COLOR]([COLOR=#2b91af][COLOR=#2b91af]Person[/COLOR][/COLOR] p1, [COLOR=#2b91af][COLOR=#2b91af]Person[/COLOR][/COLOR] p2) { [COLOR=#0000ff][COLOR=#0000ff]return[/COLOR][/COLOR] p1.name.CompareTo(p2.name); });
[COLOR=#0000ff][COLOR=#0000ff]foreach[/COLOR][/COLOR] ([COLOR=#2b91af][COLOR=#2b91af]Person[/COLOR][/COLOR] p [COLOR=#0000ff][COLOR=#0000ff]in[/COLOR][/COLOR] lstPersons)
[COLOR=#2b91af][COLOR=#2b91af]Console[/COLOR][/COLOR].WriteLine([COLOR=#a31515][COLOR=#a31515]"Name: {0} - Age: {1} - City: {2}"[/COLOR][/COLOR], p.name, p.age, p.city);

[COLOR=#008000][COLOR=#008000]/* OUTPUT:[/COLOR]
[COLOR=#008000]* Sorting by age[/COLOR]
[COLOR=#008000][COLOR=#008000][COLOR=#008000]Name: Albert - Age: 41 - City: Paris[/COLOR]
[COLOR=#008000]Name: Albert - Age: 35 - City: Paris[/COLOR]
[COLOR=#008000]Name: Peter - Age: 37 - City: Amsterdam[/COLOR]
[COLOR=#008000]Name: René - Age: 24 - City: Den Bosch[/COLOR]
[/COLOR]* */
[/COLOR][/COLOR]
[COLOR=#008000]
[/COLOR][COLOR=#2b91af][COLOR=#2b91af] Console[/COLOR][/COLOR].ReadLine();
}


Now what I'm looking for is an output like this:


[COLOR=#008000][COLOR=#008000] /* OUTPUT SHOULD BE:[/COLOR]
[COLOR=#008000] * Sort by name, then by age[/COLOR]
[COLOR=#008000] Name: Albert - Age: 35 - City: Paris [/COLOR]
[COLOR=#008000] Name: Albert - Age: 41 - City: Paris[/COLOR]
[COLOR=#008000] Name: Peter - Age: 37 - City: Amsterdam[/COLOR]
[COLOR=#008000] Name: René - Age: 24 - City: Den Bosch[/COLOR]
[COLOR=#008000] * */[/COLOR]
[/COLOR]

So sort the list by name first, and after that sort the already sorted list with a second parameter age. In this example that means that Albert with the age of 35 comes first, over Albert with the age of 41.

Doing this:

[SIZE=2] lstPersons.Sort([/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]delegate[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]([/SIZE][SIZE=2][COLOR=#2b91af][SIZE=2][COLOR=#2b91af]Person[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] p1, [/SIZE][SIZE=2][COLOR=#2b91af][SIZE=2][COLOR=#2b91af]Person[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] p2) { [/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]return[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] p1.name.CompareTo(p2.name); });
lstPersons.Sort([/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]delegate[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]([/SIZE][SIZE=2][COLOR=#2b91af][SIZE=2][COLOR=#2b91af]Person[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] p1, [/SIZE][SIZE=2][COLOR=#2b91af][SIZE=2][COLOR=#2b91af]Person[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] p2) { [/SIZE][SIZE=2][COLOR=#0000ff][SIZE=2][COLOR=#0000ff]return[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] p1.age.CompareTo(p2.age); });
[/SIZE][COLOR=#008000][/COLOR]

(obviously) results in the same list as the one sorted by age only.


Does anybody have any idea how I can achieve this?

Thanks in advance,

René
FGED GREDG RDFGDR GSFDG