The online racing simulator
Searching in All forums
(921 results)
DarkTimes
S2 licensed
I uploaded a version of InSimSniffer 1.1 compiled for the brand new .NET Framework 4.0 to the first post. I also fixed a very small bug that caused some packet info to be processed twice.
DarkTimes
S2 licensed
A good tip for VS C# 2010 is to go into Tools > Settings and chose Expert Settings, which will give you back all the menu and toolbar options you would be familiar with from VS 2008.

Edit: Incidentally the release version of C# Express uses about 100mb of memory less than the beta, and appears to run much much faster.
Last edited by DarkTimes, .
DarkTimes
S2 licensed
Visual Studio 2010 is out today, including Visual C# 2010 Express Edition.

Of course, this also means that the .NET Framework 4.0 is out too, so everyone with a Windows system should download it post-haste. Contrary to popular belief, the .NET Framework client is actually a rather small download, normally just a few megabytes. You officially have no excuse.

Get Visual C# 2010 Express: http://www.microsoft.com/express/Downloads/
Get the best version of .NET for you: http://www.hanselman.com/smallestdotnet/
DarkTimes
S2 licensed
There is no point contributing to the community, as anything meaningful you do is just lost in space. For every guy who really cares about programming, there are ten guys asking "HOW DO U BUTTON I HAV INSIM BASE U HAV DO SKYPE?!?!?!" I write programs for LFS because I enjoy writing programs and sometimes the two overlap. However I have no desire to teach anyone on this forum any more, as so much of the discussion here is just infantile nonsense that has nothing to do with writing computer programs, or anything else for that matter.
Last edited by DarkTimes, .
DarkTimes
S2 licensed
Yes.

struct IS_CNL // ConN Leave
{
byte Size; // 8
byte Type; // ISP_CNL
byte ReqI; // 0
byte UCID; // unique id of the connection which left

byte Reason; // leave reason (see below)
byte Total; // number of connections including host
byte Sp2;
byte Sp3;
};

enum
{
LEAVR_DISCO, // 0 - disconnect
LEAVR_TIMEOUT, // 1 - [b]timed out[/b]
LEAVR_LOSTCONN, // 2 - [b]lost connection[/b]
LEAVR_KICKED, // 3 - kicked
LEAVR_BANNED, // 4 - banned
LEAVR_SECURITY, // 5 - OOS or cheat protection
LEAVR_NUM
};

DarkTimes
S2 licensed
I can't get Wild Young Hearts by Noisettes out of my head. I love this song.
DarkTimes
S2 licensed
I use Smooth Gestures without any issues.
DarkTimes
S2 licensed
I'm not sure what the error is, but that message suggests you are either trying to use a port which is already in use or one that hasn't been correctly shutdown. With UDP it shouldn't matter that LFS is using that port, in fact that's the whole idea! LFS is broadcasting packets on that UDP port, which you're trying to listen out for. Check that you app is the only program listening on that port and you are not trying to reuse a port used by LFS_External or anything else. Also make sure you are using the same port number you have specified in CFG.txt or in the ISI packet.
DarkTimes
S2 licensed
20 years isn't old for an airliner. Gotta remember they have teams of engineers fixing and replacing parts all the time. Not like the rusting Mazda sitting in your garage that hasn't seen a drop of oil in 10 years.

But anyway... I fell asleep with the TV on last night and this story woke me up this morning. I cannot imagine the shock and mourning that must be running through Poland right now. I said to an American friend earlier to imagine Air Force 1 coming down, as that's the level of devastation the country is experiencing. Terrible, tragic and sorrowful.
DarkTimes
S2 licensed
Quote from DavidTiger :Is this updated for the updated OutGuage struct?
I have a great idea for a program im working on but Im halted by not having the correct structs through LFS_External

If not please update it

It's fairly easy to roll your own OutGauge code. All you need to do is create a UDP socket, bind it to the correct port, and then unpack each packet that is received. UDP is a very simple protocol to work with, and not much code is required.
DarkTimes
S2 licensed
A const value needs to be a literal in most all languages I think. In C# you can work around this by using static readonly parameters to make the result of an expression constant, I don't know if PHP may have an equivalent you could use.

static readonly string STRING_NONE = (1 << 0).ToString();

DarkTimes
S2 licensed
A good, but not great, race. Happy to see Vettel get the win he deserves, and some great drives from Rosberg and again from Kubica. A fantastic drive from Hamilton in the McLaren, he really made it a race worth watching as he cut through the pack. Impressive from Alonso too, showing he has the skill to drive round a problem and still do the business, just sad that his car gave up before the flag.

Not much has been said about the championship, but it's really hotting up as we get closer to the European leg of the season.

1. Massa 39
2. Alonso 37
3. Vettel 37
4. Button 35
5. Rosberg 35
6. Hamilton 31
7. Kubica 30
8. Webber 24

Four points separate the top five!
DarkTimes
S2 licensed
Quote from Shagrathx :It was a bit more complicated than that, but I got it working just now.

You might want to enumerate on how you got it working, as it's likely other people will have the same problem in the future.
DarkTimes
S2 licensed
OK - the first error listed there says:

- Could not locate the assembly 'LFS_External'. Check to make sure this assembly exists on disk

So... the problem is that the compiler is being told to use the LFS_External library, but it doesn't know where to find it. A reference to that library has not been added to the project yet. All of the other errors on that screenshot are just a result of it not being able to find that one library. It actually warns you those errors might happen!

- You may get compilation errors

Now, I don't know VB.NET at all, but you should be able to right-click on the project in the solution explorer and select 'add reference'. On the references dialog, select the 'browse' tab and then find the LFS_External.dll which should have been included in the zip file you downloaded from this thread.

I believe that once the reference to the library has been added, you should be able to build the project without any problems.
Last edited by DarkTimes, .
DarkTimes
S2 licensed
I find that the Visual Studio conversion process works pretty well actually. What errors are you getting when you try to convert it? In my experience once you've converted a project, you then need to build it before the errors and warnings will go away. Many of the errors you see are just a result of Visual Studio looking for .NET references and assemblies which haven't been built yet.
DarkTimes
S2 licensed
A good place to start is Microsoft's Visual C# Learning Centre, which has lots of articles and videos which will teach you some of the fundamentals. Also a lot of people don't realise that Visual Studio actually has a bunch of tutorials and resources built in, which you can find in the help menu, although admittedly most of these do presume some prior knowledge.

In my view, and I know this isn't the way it works any more, the best way to learn how to program is by reading a book. I've no idea what the best C# book for beginners is these days, but it shouldn't be too hard to find out with a quick Google. Another option would be to look for a college class in your local area, which you may even be able to take for free if you talk to your local benefits office.
DarkTimes
S2 licensed
Less women die in road accidents than men, which in my mind makes women better drivers. Admittedly I'm not an expert, but I think that not-dieing is a pretty good benchmark.
DarkTimes
S2 licensed
Quote from Wilko868 :Well I've never had one of these so called Deja-vu dreams. I've had the creepy predict the future ones

That's what I mean by deja-vu dreams. It's when something happens and you go "dude, I dreamt this!"

I should say that I'm not a psychologist, I know nothing about neuroscience or dreams or anything, I'm just thinking out-loud.
DarkTimes
S2 licensed
I think it's interesting that there are so many people who have these "deja-vu dreams". I have had them too. I think that the brain is not linear, it tricks us into thinking that we perceive the world in a procedural order, but really it's a big tangled mess of abstract connections. The mind is not like a CPU, it doesn't have a central pipe where all instructions are processed. It's more like a multicore processor where everything is executed in parallel and once the processes are finished it tries to sync it all back up. I guess you could say that "deja-vu", or "dream deja-vu", is like a human concurrency error.
Last edited by DarkTimes, .
DarkTimes
S2 licensed
Schumi took a massive whack at the start, I'd be surprised if he didn't have some sort of mechanical problem resulting from that clash. I know he's getting old and the car isn't awesome, but he's still better than Alguersuari.
DarkTimes
S2 licensed
Woot - awesome drive from Button! That's told the naysayers hasn't it!
DarkTimes
S2 licensed
All of the example code and example programs which are included with pyinsim are copyright and warranty free. pyinsim itself is under the LGPL, however this does not extend to the example code or documentation, which are released under Creative Commons. Learjet's cruise server is completely fair, supported by me and I'm happy for him to pimp it wherever he pleases.
Last edited by DarkTimes, .
DarkTimes
S2 licensed
I must say this is one of the better programmer requests I've seen on this forum, so I really hope you find someone to work on this with you. You could have maybe mentioned a little more about the platform and language you expect the programmer to work in, but aside from that you have earned the coveted DarkTimes seal of approval.
DarkTimes
S2 licensed
Quote from Mazz4200 :So if there are any Twitters here, maybe you could send him a message and ask for more insight into this Red Bull thing?

Done.

Note: I believe the plural is "tweeple".
Last edited by DarkTimes, .
DarkTimes
S2 licensed
Nope sorry I don't do MSN, plus I don't know anything about the open source cruise server anyway.
FGED GREDG RDFGDR GSFDG