The online racing simulator
Searching in All forums
(921 results)
DarkTimes
S2 licensed
Quote from U4IK ST8 :I will admit I have no clue about the different religious beliefs of people who dress like that and I don't want to know tbh.

OK, well... I can't think of anything to say back to that. It would be nice if you would learn about the different cultures and religions of the world, about what they think, how they dress and why they believe the things they do. Seven billion people in the world, you know, might be nice to find out who you share a planet with. You might be like me and figure out that they're all actually OK really.
Last edited by DarkTimes, .
DarkTimes
S2 licensed
Quote from U4IK ST8 :Well imo he is carrying that sword as a deterrent to the rioters, which implies he's using it for self defence, which is illegal.

No, he's a Sikh, possibly an elder, who wears a sword as part of his ceremonial dress (similar to the way highlanders wear a dirk as part of their dress). The fact that you originally couldn't tell the difference between a Sikh and a Muslim shows that you really have very little idea what you're talking about.

Quote from thisnameistaken :They appear to be chanting 'EDL'. So presumably they're there to enjoy a fight with whoever blunders into Eltham with dark skin. **** all to do with a 'fight back'.

Oh great, that's what every volatile situation needs, a bunch of violent racists.
Last edited by DarkTimes, .
DarkTimes
S2 licensed
Quote from U4IK ST8 :Why would anyone complain about that?

Well then why complain about a Sikh carrying his ceremonial sword? If a Scotsman is allowed to carry a ceremonial sword, then why shouldn't a Sikh?
DarkTimes
S2 licensed
Quote :he had the article as part of a national costume

Which also covers Scotsman carrying a dirk (short-sword) as part of their highland dress, which I don't see anyone complaining about.
DarkTimes
S2 licensed
Quote from NeOn_sp :I would like to ask something related about efficiency..

I have a comand like !top , which shows best laps and bla bla. The problem is that sometimes, when an user request that list, got disconected.

The way i´m sending those buttons are:

insim.Send(new IS_BTN { Text = blanco + "Pista: " + amarillo + strArray[1] + "(" + strArray[2] + ") ", BStyle = ButtonStyles.ISB_LEFT | ButtonStyles.ISB_DARK, UCID = mso.UCID, H = 6, W = 70, T = 30, L = 15, ClickID = 8, ReqI = 8 });
insim.Send(new IS_BTN { Text = blanco + "Coches: " + amarillo + strArray[4], BStyle = ButtonStyles.ISB_LEFT | ButtonStyles.ISB_DARK, UCID = mso.UCID, H = 6, W = 70, T = 36, L = 15, ClickID = 9, ReqI = 9 });
and more BTNs, up to 30...

The question is, is this the correct way of doing this? Or there are better ways?

Just so we're clear, the user disconnects from the host when you send too many buttons? That sounds like you are just sending someone more data than their connection can manage. When you send the buttons they first get sent to the host, then the host sends them to each player. It isn't really InSim.NETs fault if someone can't cope with all the data the dediserver is sending them.

One thing you could try is batch sending the buttons, but if the user is disconnecting from the dediserver then that probably won't help.


<?php 
// Create list of buttons.
var buttons = new List<IS_BTN> {
    new 
IS_BTN /* button 1 */ },
    new 
IS_BTN /* button 2 */ },
    new 
IS_BTN /* button 3 */ },
    
// Etc...
};

// Send list in one go.
insim.Send(buttons);
?>

When batch sending packets in this way the data is sent in a single send call, rather than making a separate call for each packet. This can be much more efficient when sending large amounts of packets. Still it would have little effect if the problem lies between the dedi-host and the client.
Last edited by DarkTimes, .
DarkTimes
S2 licensed
There's a massive difference between someone who takes drugs and a drug addict. It's the same difference that exists between drinking a bottle vodka a day and having a glass of wine with dinner. It's entirely possible to use drugs recreationally and not become a drug addict, in fact the vast majority of drug users, both alcohol and narcotics, do just that and get on with their lives absolutely fine thankyou very much. Drug addiction, any addiction in fact, is a symptom of a larger problem, be it poverty, depression, environment... or just circumstance (edit: or just boredom, frankly). I agree with Moose, having grown up on a poor housing estate in Glasgow, lying to children about the effects of drugs just exasperates the problem (it did for my peergroup). Anyway, that's all I can be bothered to type about the subject.
Last edited by DarkTimes, .
DarkTimes
S2 licensed
Quote from Becky Rose :Something I had not realised before, the BBC will still be covering the other races with a highlights program.

So all is not lost.

Just stream/torrent them off the interweb, that's what I plan to do. Hey, it's not moral or cool, but I'm beyond caring these days.

Sky Sports is just too expensive to justify subscribing for a single sport. I used to work for Sky and got Sky World for free, but even then I barely watched it. When I left the company and went back to Freeview I didn't miss it. My experience of working for Sky for several years is that it's extremely overpriced, has terrible customer service, and doesn't have many good TV shows, expect for some US imports that are frankly cheaper to buy on DVD. Some people love it however, like really obsessively love it, so I guess it's horses for courses!

To me it's nothing to do with the quality of the coverage, or the fact that the Murdoch owned papers are awful, racist, fascist bullshit, it's purely the fact that something I've always been able to watch for no extra cost is now prohibitively expensive. That sucks and makes me very depressed. Thank god for the dark corners of the interweb.
Last edited by DarkTimes, .
DarkTimes
S2 licensed
Quote from BlueFlame :He left enough room for DiResta to get by on the right of the track, Di Resta just chose to go the long way round and made it look worse than it was.

Nah, I disagree, that was a classic case of rejoining the track dangerously. Hamilton should have waited for a clear space and then made a controlled turn. As it was he just dropped the clutch, did a burnout and frightened DiResta onto the grass. That penalty was fair in my view.
DarkTimes
S2 licensed
Quote from Juzaa :Ok, seems odd that MTV3 didn't mention Hamilton's radio being dead in the broadcast. I was unaware of his radio being dead. Not a single mention about it in Finnish news about the race. Quite strange behaviour from Mclaren if it's true that they didn't even tell Hamilton which tires they were going to give him and that they wanted to ruin Button's race. Certainly something Ron Dennis would never have done.

It was only mentioned by Hamilton in his post-race interview. He said he was talking to the pits but they couldn't hear him. It was not mentioned during the BBC commentary either. He definitely did say that he didn't know the team were going to put inters on.

Quote from pearcy_2k7 :Thought he said they told him to stay out at the last minute as they didn't want them queing?

Yeah, you might be right. I'm going on my memory of his interview with Jake and Brundle. I think he said he was told to pit, but ignored it, then at the last minute the team told him to stay out anyway. I thought it was interesting that Button had already decided not to pit, but didn't feel like telling the team.
Last edited by DarkTimes, .
DarkTimes
S2 licensed
Quote from Juzaa :Button's tactic to use hard tires and to go with them to the end was designed by the team and Hamilton's pit stop where they gave him wet tires was due to his tires running out but taking the intermediate tires was for sure Hamilton's call. He had to pit anyway because his tires were running out and he decided to take a chance. Blaming Mclaren for giving him intermediate tires is just ridiculous.

Um, no. Hamilton didn't have radio communication with the pits. It was the team decision to put him on inters, he was told to box but he didn't know which tyres the team were going to put on. He said inters was not his decision. Button was told to come in and queue behind Hamilton to change to inters, but he ignored them and stayed out on slicks. They both said this in their interviews on the BBC post-race show.
DarkTimes
S2 licensed
Quote from boothy :Maybe if retards like Perez weren't disobeying waved yellow flags and diving up the inside of other cars then there'd be less SCs needed - a 10s stop-go should've been the minimum penalty. Also maybe there was a yellow flag at the pit exit that we couldn't see, or maybe, just maybe, Vettel should have enough brains to notice a car being dragged back up the pit exit especially given the car was to the side of the track for the past couple of laps...

As for Lewis' penalty, probably deserved but he just needed to creep it forward a bit to give himself more room for a doughnut.

I don't understand what you're saying... What has Perez getting a penalty got to do with the marshals creating a dangerous situation? You may accuse me of being over-cautous, but I still think it's unnecessarily dangerous to pull a car the wrong way round the track while drivers are making their pit stops.

Sorry!
Last edited by DarkTimes, .
DarkTimes
S2 licensed
Great win from Button! Good recovery from DiResta finishing 7th.

I think Button would have won that even without Lewis' mistakes, Hamilton would had to have pit again anyway because he wouldn't have made the super-soft tyres last to the end of the race. I think the penalty Lewis got was deserved, he made DiResta jump off the race track, but it was the call for intermediates that really cost Hamilton a decent result. Frankly the guy who's come out of this best is Vettel, who has increased his championship lead.

Edit: Actually, best thing about Hungary? Means next race is Spa!
Last edited by DarkTimes, .
DarkTimes
S2 licensed
Pff, Lewis has thrown this all away. Button leading through!
DarkTimes
S2 licensed
That's ****ing crazy what they're doing with that Renault, they should have brought out the safety car. They were pulling the car backwards up the pitlane exit while Vettel was making his pitstop!
DarkTimes
S2 licensed
More rain in ten minutes!
DarkTimes
S2 licensed
Plus there is the brilliance of Cornelius playing 123456 on Yo Gabba Gabba.

Cornelius - 123456
DarkTimes
S2 licensed
Cat Power - Cross Bones Style

As well as being awesome, she's also as cute as a button.
DarkTimes
S2 licensed
Quote from Funnybear :The BBC is without doubt the best broadcaster in the world. It is a model both admired and aspired to by many. The BBC is unique in this modern capatalist world and we should consider ourselves very very lucky that it has managed to survive as long as it has. The Beebs output isn't just about F1 or eastenders or Doctor who. The beeb is about the very programmes you guys have been knocking it for, everyone pays, everyone is entitled to watch well informed, and well made programmes about doorknobs of the 15th Centuary on BBC3. I would gladly pay more for my licence, because I use the whole length and breadth of the BBC, Radio, TV, Internet, News, Current Affairs, Enterainment, Comedy, the list is endless. And I very dare you to come up with viable and equivilent Broadcasters who offer as much as and to the same quality as, the BBC.

Thank you for posting this, you have articulated exactly how I feel. I wanted to post something like this myself, but I didn't because of all the arguing it will cause.
DarkTimes
S2 licensed
I've noticed some .NET programs access LFS pubstat with user/pass for authentication, but without encrypting the password*. Encrypting a password with MD5 in .NET is very simple, there's no reason not to do so.

Here is a quick example.


<?php 
using System
;
using System.Linq;
using System.Security.Cryptography;
using System.Text;

string ComputeMd5Hash(string value) {
    
byte[] hash MD5.Create().ComputeHash(ASCIIEncoding.ASCII.GetBytes(value));

    return 
String.Join(String.Empty, hash.Select(=> h.ToString("x")));
}

// You use it like this...
string passwordHash ComputeMd5Hash(myPassword);
?>

The output of this method should match the output of the PHP md5 function.

* I also see some of these programs store the users password in plain text in a configuration file, which is like leaving the keys to your house under a plant pot in the garden. At the very least you should encrypt the password before you store it.

It would be easy to create some fake addon that read that configuration file and sent the password to me so I could steal your LFS account. I would never do this, but it would be trivial to do so using this method.

Custom addons should not store any passwords at all, as it is too big a security vulnerability. Even if the password was stored using MD5 encryption it would not take too long to crack using a rainbow table attack.
Last edited by DarkTimes, .
DarkTimes
S2 licensed
But important psychologically for Massa, I'm sure. It can't be easy for him having someone as good as Alonso as a teammate.
DarkTimes
S2 licensed
Quote from DarkTimes :

<?php 
CarFlags GetCarsFlags
(IEnumerable<stringcars) {
    
CarFlags flags 0;
    foreach (
string car in cars) {
        
flags |= (CarFlags)Enum.Parse(typeof(CarFlags), cartrue);
    }
    return 
flags;
}

// Use it like this.
CarFlags c GetCarsFlags(new string[] { "UF1""XFG""FBM" });

// Or like...
insim.Send(new IS_PLC {
    
UCID ucid,
    
Cars GetCarFlags(new string[] { "UF1""XFG""FBM" } ),
});
?>


Of course it's probably easier to just send an IS_MST /cars command, and it's simpler code as well.


<?php 
string GetCarString
(IEnumerable<stringcars) {
    return 
String.Format("/cars={0}"String.Join("+"cars));
}

// Use it like this...
insim.Send(GetCarString(new string[] { "UF1""XFG""FBM" }));
?>

The InSim.Send(string) method detects that the string is a command and sends an IS_MST for you.
Last edited by DarkTimes, .
DarkTimes
S2 licensed
Pushed InSim.NET 2.0.12 to release.

Changes
  • TcpSocket and UdpSocket now deal better with corrupted packets
  • Fixed bug in TcpSocket.Send when full buffer isn't sent
You can find the latest release on CodePlex. As always let me know of any issues!
DarkTimes
S2 licensed
Yup, Hamilton screwed up his last lap, otherwise I think he had the pace to do it. Still, good performance from him, Button and Massa. Looking decent for the race tomorrow, of course Vettel now has a big advantage from starting on pole. Plus doesn't hurt to have Alonso on the attack.
Last edited by DarkTimes, .
DarkTimes
S2 licensed
I'm speechless. Only way to watch F1 from next year will be to pirate streams? Possibility of no Martin Brundle? This really really really really sucks. First time ever F1 won't be free-to-air in the UK.

Quote from @MBrundleF1 :BBC/Sky/F1 2012+. Found out last night, no idea how it will work yet. I'm out of contract, will calmly work through options. Not impressed.

Last edited by DarkTimes, .
DarkTimes
S2 licensed
No surprises, really.

Economic Left/Right: -6.00
Social Libertarian/Authoritarian: -7.54

http://www.politicalcompass.or ... hp?ec=-6.00&soc=-7.54
Last edited by DarkTimes, .
FGED GREDG RDFGDR GSFDG