The online racing simulator
Searching in All forums
(976 results)
MadCatX
S3 licensed
Simple and kind of hacky example.
You'll probably want to take just the algorithm in Area::contains().
MadCatX
S3 licensed
The formula is correct. Use sqrt(x^2 + y^2) for ground speed or sqrt(x^2 + y^2 + z^2) for total speed including the vertical part.
MadCatX
S3 licensed
Quote from tristancliffe :I've always wondered...

Let's say something 'new' is invented. Perhaps the internet. Or a new type of fluid container that works in some completely different way to cups and bottles etc.

Who decides if it's a boy, a girl, transgender, a eunuch, or genderless??? Is there a group of "Very Special People" that decide it based on some logic? Are all the languages decided together, or do the Germans decide independantly of the French?

What if you learn of a new thing. How can you tell if it's a boy or a girl? Presumably you can't lift up your... mousemat or whatever, and look to see if it has balls?

The logic behind grammatical gender is about as logical as English rules concerning prepositions or irregular verbs. I'm pretty sure that most native English speakers "feel" the correct form whereas foreigners have to memorize a phonebook of correct combinations before they hopefully grasp the pattern and can extrapolate from it. Grammatical gender of inanimate things is no different and since there is no actual logic involved it differs in different languages (i.e. ladder is a "he" in Czech but "she" in German).
MadCatX
S3 licensed
Just so we're clear, estimations of required PSU power based only on the overall wattage are totally useless. You need to know the current requirements on each rail. Your PSU specs show that it can do 20 A on 3.3 V, 20 A on 5 V and 28 A on 12 V rail. The Intel build nears the limit on the 12 V rail so if you're planning on getting a more powerful GPU or some extra hard drives, you might want to choose a more powerful version.

This is what I've got from PSU Calc with 20 % cap aging, 95% TDP and 95% utilization
3.3 V - 5.3 A
5 V - 9.7 A
12 V - 28.0 A
The AMD build needs an extra amp on the 12 V rail.
MadCatX
S3 licensed
You might want to try to boot a Linux live distro and check if it works there. It the sound always cuts out after the same amount of time, it's very likely some odd power saving issue.
MadCatX
S3 licensed
You can
  • Control the mouse input as you suggested (which has been done before and works).
  • Proxy dinput8.dll and alter steering input that way (unless you have a wheel with 3 pedals connected to the computer, it's probably not worth the trouble).
  • Write a virtual input device (which would give you best level of control but requires some study of WDK).
MadCatX
S3 licensed
Quote from Matrixi :There's one solution to fragmentation atleast. If they got LFS on Steam (which we all know isn't going to happen) then Steam Workshop could handle all the heavy lifting regarding mods and keeping everything synchronized.
...

It's been my experience that the more freedom people have, the bigger mess they'll create. Making the life in such a mess easier with automatic content management might make it work for a while, but I'm afraid that things would eventually crash. All the CS 1.6 servers which require you to download all sorts of texture packs, custom models and sound banks just to have a poolday fragging afternoon spring to mind. Although this model is technically working, it's sort of annoying particularly for the casual players who don't sync their mods database too often.

Quote from MousemanLV :It would be nice if LFS developers could make G27 RPM gauge work [the one on the wheel]!

Don't you have like at least two addons that can do just that?
MadCatX
S3 licensed
Quote from Homeless_Drunk :
Backlash shouldn't scare developers off, it should drive them...only people who get upset about stuff are those who are passionate about something. To have that kind of user base that wants LFS to be THE BEST is pretty awesome...and instead of coddling the community that pays/payed their bills it seems like they just shit on it by playing the 'silent game'...

I'm sorry, but I strongly disagree with this point of view. This is the Interwebz you're talking about - a place full of half-wits, people who know nothing but comment on everything, trolls and good old morons. I experience this every time I read any discussion board. For one interesting or insightful comment there are fifty that are total garbage. I really don't wonder that the devs no longer want to explain themselves to the community. Just take a look back on the kind of threads we've had regarding LFS development since 2009. I don't know how about you, but all the comments from people who've never been involved in software development (or any development for that matter) calling the devs idiots made me sick.
There certainly were better ways how to handle the unexpected hold-up in the development pace, but we as a community could've been a lot more understanding as well instead of screaming "Me wantz my Scirocco!".
MadCatX
S3 licensed
Quote from DANIEL-CRO :
But I think you should first find individual force to each point charge (because of electrical field) F=Q*E think
and then force between two charges (F=k*Q1*Q2/r^2)

Pretty much this. The point charges interact both with the external electric field and with each other. The total force acting on the wire is therefore a sum of field<->C1, field<->C2 and C1<->C2.
MadCatX
S3 licensed
Quote from PoVo :Also enabling and disabling audio enchancements fixes the issue too.

What are these and do you need them? Is it maybe some vendor-specific crap that stopped working because some update changed the way something works internally in Windows? (I remember fixing an odd audio issue on a laptop a while back. I eventually solved the problem by downgrading the audio driver to a pretty antiquated version I happened to find in Realtek's public FTP directory )
MadCatX
S3 licensed
That is very likely a cracked server. Join only the servers that LFS lists in the Multiplayer menu and you'll be fine...
MadCatX
S3 licensed
Quote from Dygear :Back on topic. Assuming a bare Ubuntu 12.10 server, what are the packages I would need to run this from said server?

WINE - preferably 1.5.23 and higher. You can run the dedi from text console like this

wineconsole --backend=curses DCon.exe

MadCatX
S3 licensed
I don't use FRAPS but I find it very odd that the FPS counter was also being recorded. Is there any possibility that you were somehow running two instances of FRAPS simultaneously?
MadCatX
S3 licensed
GIMP is great. Unless you're a professional or have very specific needs, it will serve you well. Inkscape might be worth a shot if you need to edit vector graphics. The best designing tool one can have is creative thinking and no software, no matter how advanced, won't help you with that...
MadCatX
S3 licensed
I'm pretty sure this line should say

out_sim.Connect("127.0.0.1", 35001);
MadCatX
S3 licensed
Quote from Rappa Z :
Anyway, if you don't have anything to hide, why care at all?

The right for privacy allows you to not disclose arbitrary information about your life. If someone has an uncontrolled access to your personal data, this right is taken away from you. That's why you should care.
It's also rather naïve to think that you have nothing to hide, because you do. Everybody does. I'm not talking about large stashes of weed or semtex in the basement here you're looking to sell, I'm talking about stuff that cannot put you behind bars but still can harm your public image. For instance, I'm pretty sure someone could paint me as an über psychotic monster if they got their hands on some of my drunken IM chats history. I think this sums it up very well:
Quote from Cardinal Richelieu :
Give me six lines written by the most honorable of men, and I will find an excuse in them to hang him.

Quote from NitroNitrous :And keep in mind that they DON'T know anything about you. Your data is just registered and IF they want to know about you, they can, which is different than having someone working 24/7 reading all the emails or hearing conversations around the world.

They don't have to assign a person to monitor you 24/7. We have pattern matching algorithms for that. If an organization with access to the kind of data PRISM allowed had the capacity to go through all the data, what makes you think they wouldn't do it?
MadCatX
S3 licensed
Quote from P5YcHoM4N :I've been using this for a while. Anyone who can guess where it is from gets a cookie.

Firefly. The logo as appeared in Serenity actually said "Serenity" under the Chinese characters . (OTOH I don't think the logo was ever shown in the series though...)
MadCatX
S3 licensed
No update should be necessary, you might only have to replace the insim.h file to gain compatibility with a particular version of InSim.
MadCatX
S3 licensed
The error code corresponds to DSERR_BUFFERLOST. Is there anything running on the background that might try to use the audio device while LFS is running? A bug in the drivers is somewhat more likely though...
MadCatX
S3 licensed
Quote from kingwalter :
Building a tweak that is not covered by CPW requires to include some way not to use the tweak in wrong context/server.

1) Load the mod in IDA
2) Find the server name check and replace it with NOP
3) Profit

12 years old kids can to that, so the only responsible thing is NOT to release anything that can give its users unfair advantage.
MadCatX
S3 licensed
The exact error message might be useful, but I have a feeling this has something to do with the sound device drivers.
MadCatX
S3 licensed
He stores scores for each user in a separate file, therefore it's necessary to:
- Create a "username:score" pair, which means reading all files
- Store each pair into an array
- Sort the objects in the array by score

There are of course multiple ways how to accomplish this, but this one seems to me as the most straightforward and flexible and it also uses the existing .NET tools for sorting.

One of the alternatives could be something like

<?php 
List<stringnames;
List<
Int32scores;
foreach(
file)
{
  foreach(
line)
  {
    
names.Add(name);
    
scores.Add(Convert.Int32(line));
  }
}
Array.
Sort(scoresnames);
?>

but that's far less elegant.
MadCatX
S3 licensed
This is what a solution used by an actual programmer could look like. Please note that this serves absolutely no educational purpose unless you're already familiar with slightly more advanced OOP and C#.


<?php 
using System
;
using System.Collections.Generic;
using System.IO;

public class 
PlayersScore IComparable
{
  public 
string Name getset; }
  public 
Int32 Score getset; }

  public 
PlayersScore(string NameInt32 Score)
  {
    
this.Name Name;
    
this.Score Score;
  }

  public 
int CompareTo(Object other)
  {
    
PlayersScore otherS null;
    try
    {
      
otherS = (PlayersScore)other;
    }
    catch (
InvalidCastException ex)
    {
      throw 
ex;
    }

    if (
this.Score otherS.Score)
      return -
1;
    else if (
this.Score otherS.Score)
      return 
1;
    else
      return 
String.Compare(this.NameotherS.NameSystem.StringComparison.OrdinalIgnoreCase);
  }
}

public class 
SortScores
{
  static 
int Main()
  {
    List<
PlayersScorescores = new List<PlayersScore>();

    
string[] files Directory.GetFiles(@"./""*.txt");
    if (
files.Length 1)
    {
      
Console.WriteLine("No files.");
      return 
1;
    }

    foreach(
string f in files)
    {
      
string name f.Substring(2f.Length 6);

      
string[] lines;
      try
      {
        
lines System.IO.File.ReadAllLines(f);
      }
      catch (
Exception ex)
      {
        
Console.WriteLine("File \"" f.Substring(2) + "\" cannot be read.");
        
Console.WriteLine(ex.ToString());
        continue;
      }

      foreach(
string line in lines)
      {
        
Int32 score
        try
        {
           
score Convert.ToInt32(line);
        }
        catch (
Exception ex)
        {
          
Console.WriteLine("Line \"" line "\" cannot be converted to Int32.");
          
Console.WriteLine(ex.ToString());
          continue;
        }

        
scores.Add(new PlayersScore(namescore));
      }
    }

    
scores.Sort();

    foreach(
PlayersScore ps in scores)
    {
      
Console.WriteLine(ps.Score " (" ps.Name ")");
    }

    return 
0;
  }
}
?>

MadCatX
S3 licensed
LFS already models the CoG shifts based on the acceleration of the car just fine including the brake-induced oversteering effect. It might not feel so well on the gravel because it deforms under the tyre and the contact surface is much larger. LFS' tyre physics currently cannot model a situation when the tyre is partly submerged in the surface which obviously affects handling on the gravel...
MadCatX
S3 licensed
Quote from matijapkc :The biggest problem with the format of my HDD would be that I don't have anything to backup all my stuff.

This is the reason why keeping a separate system partition is a good idea...
FGED GREDG RDFGDR GSFDG