The online racing simulator
Searching in All forums
(921 results)
DarkTimes
S2 licensed
Quote from MadCatX :I remember it too and to be honest, adding hacks to allow a buggy application to run is also a no-no. If you want to run DOS apps, use an emulator or DosBOX like apps. I agree it's kinda hard to have an opinion on this. MS is known to have bugs in their own API's which forced programmers to create workarounds for it. When MS fixed these bugs, such apps usually stopped working. On the other hand the amount of work they put to keep compatibility to at least some extend is admirable. Nevertheless, there are always apps that just break and then it's all down to costs of upgrading to a newer version of such apps. I can't imagine a developer team paying for a multilicense for both Win7 and MSVS 2008 just because MSVS 2005 doesn't work under Vista+.

Yeah, but you only notice the lack of compatibility for the programs that stop working. There are hundredths, if not thousandths, of old programs that MS hacked on their own kernel to support, and you don't realise that they've done it because those programs just work. As Spolsky says in the essay above, it's a question of philosophy. A long time ago MS took the decision that your old programs shouldn't stop working just because you upgrade your OS. Now, turns out that they cannot check every program ever made because that's impossible, some programs will still fail, but I still think that it's the right approach to have taken. Frankly I'd rather have some backwards-compatibility rather than none at all. I don't think that the alternatives (complete compatibility vs none) are feasible or, in the later case, desirable.

Edit: Incidentally Bioshock doesn't work on Windows 7 with Realtec HD audio. I may have just undermined my own argument. Bioshock isn't even a legacy app, it's DX10 for god's sake!
Last edited by DarkTimes, .
DarkTimes
S2 licensed
Quote from boothy :
  • local client, but i'm online in a server
  • yes, a race (open config) is in progress

OK this is a scenario where I can imagine an error like that might be thrown. Can I ask is it only against an open config host that this occurs, or does it occur on a 'closed' config host as well? I'm thinking this error might be an open config issue as I haven't tested that yet.

It might be a bit late to start debugging tonight, but I'll try and check it out tomorrow.

Incidentally don't worry about testing it against old LFS versions, I'm pretty sure that's not the problem.
DarkTimes
S2 licensed
Quote from MadCatX :I know how old that piece is, but it worked flawlessly in XP. Even WINE handles it almost perfectly, it's just W7 that gave me a hell of a hassle. MS should really make up their mind, either maintain compatibility or ditch it completely - I'm OK with either as long as I know what to expect. This "could work, would work, should work... doesn't work" is what's annoys me.

Reminds me of the famous story about the Windows team adding hooks to the Windows kernel to make sure Sim City still ran.

Quote :I first heard about this from one of the developers of the hit game SimCity, who told me that there was a critical bug in his application: it used memory right after freeing it, a major no-no that happened to work OK on DOS but would not work under Windows where memory that is freed is likely to be snatched up by another running application right away. The testers on the Windows team were going through various popular applications, testing them to make sure they worked OK, but SimCity kept crashing. They reported this to the Windows developers, who disassembled SimCity, stepped through it in a debugger, found the bug, and added special code that checked if SimCity was running, and if it did, ran the memory allocator in a special mode in which you could still use memory after freeing it.

I actually think the Windows team deserve more credit than they get for stuff like this.
DarkTimes
S2 licensed
OK, thanks for the report, but I will need more information to be able to understand what's causing your error.
  • Which version of InSimSniffer?
  • Is the message a popup dialog box or the big unhandled exception dialog? (if the later please post the stacktrace)
  • Are you connecting to a dedi server or a local client?
  • Are you connecting to an empty host or to one with a race already in progress?
  • Does this happen with the old version of LFS or just Z32?
I have tested InSimSniffer 1.2.6 against LFS Z32 and it works fine (there is no reason it should not), so I would imagine this error must be caused by something else.
DarkTimes
S2 licensed
An extension that turns Visual Studio 2010 into a Python IDE. Supports IronPython and CPython.

http://pytools.codeplex.com/
DarkTimes
S2 licensed
That photo was posted to Reddit earlier, basically Schumacher with Vettel back in 2006 or something.
DarkTimes
S2 licensed
Quote from sinbad :Reduce its effect to bring the contest back to the fast-car vs. underdog duels, and the chances of two equally matched cars having a "scrap" are reduced hugely. I know which I'd prefer to see.

I agree, but I still don't like to see the car behind have such a straight line advantage that they've passed before they reach the braking zone. I'm not saying do away with the DRS advantage, but just tone it down a bit so that the driver behind can still get alongside and then make them fight it out under braking.

In my mind DRS was introduced to solve the problem of a trailing car that's faster being unable to pass a slower car due to not being able to follow in the slipstream. At the moment DRS seems like a big red 'overtake' button. I would prefer to see its effectiveness reduced to purely allow the driver behind to get into a position to attempt a pass, instead of at the moment where it seems to guarantee one.

But frankly, these are small tweaks to the system I'm suggesting. I was sceptical of DRS back at the start of the year, but I think it's been working out very well.
Last edited by DarkTimes, .
DarkTimes
S2 licensed
I uploaded a new version, as I had made a mistake with the MTC packet that caused a breaking bug. I uploaded it to my original post.

I have checked this new version against T-RonX's original example program (from the first post in this thread), and it seems to work OK!
Last edited by DarkTimes, .
DarkTimes
S2 licensed
Well thanks for that really detailed error report! As I say I will only provide support for stuff that I have changed (e.g. CON, RST, MTC (except the variable-sized thing) and OutGaugePack).

Other than that the library is completely unchanged and works as it always did.

using System;
using LFS_External.InSim;

class Program
{
static void Main()
{
InSimInterface insim = new InSimInterface(new InSimSettings());

insim.VER_Received += new InSimInterface.VER_EventHandler(insim_VER_Received);

insim.Connect();

Console.ReadKey(true);
}

static void insim_VER_Received(LFS_External.Packets.IS_VER VER)
{
Console.WriteLine("InSim Version: {0}", VER.InSimVer);
}
}

DarkTimes
S2 licensed
According to the license for LFS_External you are free to disassemble the library and basically do what you like with it, so with that in mind I updated it for LFS Z32. This meant adding the IS_CON packet and event, updating OutGaugePack with the relevant dash-lights and flags, as well as a couple of other small changes, such as IS_MTC*.

I created a new assembly versioned 1.1.1.7 that you can download below, that includes the updated assembly as well as the disassembled source (updated for VS2010).

If you find a bug with my changes I'll fix it, but I am in no way providing support for this library and I will not add any new features (the source is included in my download so you can add them yourself). Also if T-RonX has a problem with it I'll take it down.

* Note that I did not make IS_MTC a variable-sized packet, as that would have required a crap-bunch more work, also LFS_External does not deal with other variable-sized packets anyway. If you want stuff like variable-sized packets (better performance), proper string support (for other charsets than just ASCII) and many other general improvements, I recommend using InSim.NET.

I have also updated the original example program, which can be found below. The changes are mainly improvements to the code to make it more succinct and more efficient.
Last edited by DarkTimes, .
DarkTimes
S2 licensed
Quote from NitroNitrous :Streaming in English? I've found Turkish only

Not sure how legal this is, in fact pretty sure it's not, but anyway I pay the license fee and I don't care.

http://bbc-player.com/
DarkTimes
S2 licensed
Good race, a lot of action. I think DRS is proving quite good, but they need to tone down the effect. I'd like to see it allow drivers to get alongside, I don't like to see them passing before the braking zone. But other that than, been great so far this year!
DarkTimes
S2 licensed
Wow, so many overtakes in the one shot, I don't know which one to watch!
DarkTimes
S2 licensed
I picked up Mass Effect for £2.50 yesterday, not played it much yet as I'm still working my way through Fallout 3. Yes, I am at least two years behind in games. Was tempted by Sim City 4, as I used to love playing that back on the SNES, but I guess it's too late now for the sale.

Incidentally, Fallout 3 is the best game I've played for a long time, well recommended. But then I guess most people figured that out two or three years ago.
DarkTimes
S2 licensed
This exception is being thrown by the Entity Framework, it's not got anything to do with InSim.NET. The reason InSim.NET reports the exception is because it's being thrown on the packet receive thread.

You need to look for this exception in reference to the Entity Framework, unfortunately I can't really help you fix it.

http://www.google.co.uk/search ... invalidoperationexception
DarkTimes
S2 licensed
Quote from PMD9409 :4 heli's were flown in, only 3 left. One was apparantly "destroyed". No US ops were injured during it all. The 4th heli apparantly had a flight control problem. Interesting.

The 4th helicopter crashed with mechanical difficulties and the ops guys blew it up to prevent it falling into enemy hands. Apparently.
DarkTimes
S2 licensed
Quote from pearcy_2k7 :Hardly a short memory is it? 2004.

You must be a lot younger than me, because to me 2004 feels like yesterday.
DarkTimes
S2 licensed
Quote from pearcy_2k7 :Ofcourse it's important to discuss it, theres not been enough time to release info yet. You wouldn't care would you, you've not had any attacks in your country, your not being threatened, i imagine if any of your family were killed by these groups your opinions would be quite a bit different.

Um, he's Spanish, but you've probably forgotten about the Madrid bombings.
DarkTimes
S2 licensed
Quote from pearcy_2k7 :I think they trained to the taliban to fight some other group, kinda backfired.

Well yea, during the Afghan/Russian war the Afghan fighters received help and funding from the CIA. 'Tis was an 'enemy of my enemy' kinda thang.
DarkTimes
S2 licensed
Quote from Racer X NZ :Prince Philip...<snip />

Far more entertaining is that Prince Philip has his own Cargo Cult.

http://en.wikipedia.org/wiki/Prince_Philip_Movement
DarkTimes
S2 licensed
Quote from NotAnIllusion :Ennio Morricone - L'Estasi Dell'oro (Bandini Remix)
http://www.youtube.com/watch?v=x9Kujas1IsM

Hmm, well I love that song, truly, but I'm not sure the remix improves it. Frankly they could have just re-edited the original so it was twice as long and it would have been awesome.
DarkTimes
S2 licensed
Quote from KiRmelius :His willy is growing from his knee!!!

Well, that's 300 years of inbreeding for you...
DarkTimes
S2 licensed
Is there no documentation anywhere that shows what this OutSim derived packet is supposed to contain?

As I said, I'm happy to add it, but without knowing what the actual struct contains I can't do anything. I don't personally own any of those games, so I can't test them myself.

Edit: Whoops, it's OutSim, shows how much attention I'm paying.
DarkTimes
S2 licensed
So all I need to do is add eight floats onto the end of the OutSimPack struct? If so, that's very easy.

unsigned Time; // time in milliseconds (to check order)

Vector AngVel; // 3 floats, angular velocity vector
float Heading; // anticlockwise from above (Z)
float Pitch; // anticlockwise from right (X)
float Roll; // anticlockwise from front (Y)
Vector Accel; // 3 floats X, Y, Z
Vector Vel; // 3 floats X, Y, Z
Vec Pos; // 3 ints X, Y, Z (1m = 65536)

int ID; // optional - only if OutSim ID is specified

float Ext1;
float Ext2;
float Ext3;
float Ext4;
float Ext5;
float Ext6;
float Ext7;
float Ext8;
};

If that's all I need to do, then I can create a new built with those floats added on the end, then you can figure them out in your own time. Once you've figured out what they mean, I can update the field names.
Last edited by DarkTimes, .
DarkTimes
S2 licensed
Just had a look at the source on SourceForge, it looks to me that JInSim has not been updated for quite a while, and doesn't have the updated DashLights/ShowLights flags. So it seems you can't use JInSim with the latest version of OutGauge, you'd either need to modify the source, or find another library.

Edit: Or as Morpha below says, use his nifty script.
Last edited by DarkTimes, .
FGED GREDG RDFGDR GSFDG