The online racing simulator
Searching in All forums
(976 results)
MadCatX
S3 licensed
If you observe this problem only after the upgrade to 0.6G it's most likely related to video drivers. You'll want to check that the drivers and Windows is up to date. If there is no fix available, disabling hardware acceleration in Chrome (if it is enabled) might work around the problem.
MadCatX
S3 licensed
Doesn't look that bad to me. You might want to run an extended diagnostic on the drive, some SMART diagnostic values are not updated on the fly.
MadCatX
S3 licensed
Quote from Kristi :I learnt JAVA without a proper GUI, only a compiler installed and using Geany, which is kinda like Notepad++.

I sense that the OP might loose interest if there were too many obstacles between the code he writes and a running program. It's true that pretty much anything can be done "manually" from the command line, but it can be quite obnoxious, especially on Windows.

Quote from Kristi :
I don't agree with the PHP thing. That language is garbage and moreover, you have to install a php server on your PC to test your stuff, cause it just won't run by itself.

Actually you don't. PHP has a standalone interpreter that can be run from a command line. Opinions about the language will obviously vary. I'm not particularly fond of it myself but it has a C-like syntax and the interpreter provides very concrete error outputs in case something goes wrong.
[/quote]

Quote from Kristi :
Our university starts with C++ even for beginners, which I have no idea why, but it's not that bad of a choice.

This might have something to do with "inertia", I suppose it's not difficult to find university professors that are proficient in C because for a long time there wasn't a good alternative (maybe except for Pascal). C is still a brilliant language with simple syntax, but it doesn't abstract away the low-level stuff. Great for someone who wants to seriously learn how to code but too hardcore a - for the lack of better term - "casual" programmer.
MadCatX
S3 licensed
Java and C# in particular have the disadvantage that they pretty much require a complex IDE (such as NetBeans or Visual Studio respectively) to build even the simplest projects. I'm not saying that IDE is a bad thing but from an absolute beginner's perspective it might be an obstacle. Instead of having just your code to deal with you'll have to learn how to use the IDE before you can start coding. It also hides the details of how your code is translated into something the computer understands.

For this reason I'd suggest you start with a language that doesn't need any of this. With Python or PHP you can write your code in anything and then do something like "php.exe mycode.php" and your code will run. Writing code without an advanced IDE checking your syntax will force you to actually learn the language instead of blindly following the autocorrection suggestions.

And ultimately, follow Kristi's advice about learning the algorithmization basics first. Unless you do that, you'll NEVER be able to write anything even remotely useful. Don't start with GUI and stuff, text input and output will be more than fine for a long while.
MadCatX
S3 licensed
You are mixing few things together, let me help clear it up a little.

HTML is not a programming language, it's a markup language. You cannot write programs in HTML code.

VBScript and JavaScript in particular were originally designed to be used on the Web. It's not like you cannot use them for something else but it's probably not the best way to learn how to code.

There are MUCH better alternatives if you seriously want to learn to program. Python for instance is a great language to start with. You might want to replace bare notepad with something a bit more advanced such as Notepad++ or PSPad.

BTW, learning to code requires much more than copy-pasting code from various tutorials on the web. Unless you take it seriously, start from the very basics and make sure that you fully understand the subject before you move one step ahead you won't get anywhere no matter kind of language or tools you use. I don't mean to discourage you, I just want to point out that programming is not the easiest thing to learn.
MadCatX
S3 licensed
840M is not exactly a top notch card so 25 FPS at 1980x1080 with some AA sounds OK to me, especially if the GPU reports to be fully loaded.
MadCatX
S3 licensed
But CPU-Z doesn't display a frequency or P-States statistics, right? There is just one field with current CPU clock in it which refreshes one in a while? This tells you nothing about what the CPU is really doing. A proper test would be to force CPU to run at full speed all the timr and do the tests again. If there is a problem with CPU power management, I'd expect 3DMark 06 and AC to run a bit slower with PM disabled and LFS to run better.
MadCatX
S3 licensed
Quote from Specht77 :I thought that it could be a incompatibility with dx9, since assetto corsa is dx11 and is runing well...

So I downloaded 3dmark06 to use the dx9 benchmark, and it seems that it's just fine, the nvidia inspector says that the gpu was using 100%, not like LFS...

http://www.3dmark.com/3dm06/17698756

LFS won't push your GPU to the limit, ~60 % load on the GPU is in fact more than I'd expect. There are lots of possibilities but I'd first try to check that your CPU is not clocking down too aggressively when you're playing LFS.
Some http links are broken when pasted into posts
MadCatX
S3 licensed
I came across this just now. I tried to post this link:

http://isboxer.com/wiki/HOWTO:Disable_CPU_Throttling_in_Windows

and this was the result: isable_CPU_Throttling_in_Windows" target="_blank">http://isboxer.com/wiki/HOWTOi ... CPU_Throttling_in_Windows
MadCatX
S3 licensed
The charts you posted show the GPU clocking up and down though... You can try the same thing with the CPU (http://isboxer.com/wiki/HOWTOisable_CPU_Throttling_in_Windows). Don't forget to switch it back afterwards, otherwise the laptop will draw a lot more power and run quite hot.
MadCatX
S3 licensed
If you're getting same performance regardless of the AI drivers on the track it looks like it's the rendering performance that's the bottleneck, not the CPU. I believe that at least on nVidia GPUs you can force "Maximum Performace" mode instead of "Adaptive Mode" which will prevent the GPU from clocking down under light load. It might be interesting to check if that makes any difference.
MadCatX
S3 licensed
Is there a performance difference if you force the AA settings in the graphics drivers instead of LFS? Do you get the same FPS if you add a full pack of AI drivers in single player mode?
MadCatX
S3 licensed
Quote from vinibali :
Quote from MadCatX :Does it work is you click off Gallium Nine support in winecfg? This looks like a Gallium Nine problem to me


it works without any problems, if i turn off the d3d9 state tracker.

Is there any change if you remove d3d9_43.dll and D3DCompiler_43.dll? If there isn't, then I guess it's pretty clear that this is either Gallium Nine problem or a problem with the glue that allows WINE to use Gallium Nine. You should file a bug report.
MadCatX
S3 licensed
Quote from dawesdust_12 :Doing some quick research as well, it looks like only recently (< 1 week) has there been sizeable work done to Gallium to support DX9 more thoroughly.

http://cgit.freedesktop.org/mesa/mesa/commit/?id=fdd96578ef2dfe9c4ad5aab5858036298d444a64

This looks like the commit that just merged Gallium Nine with mainline Mesa.
MadCatX
S3 licensed
Does it work is you click off Gallium Nine support in winecfg? This looks like a Gallium Nine problem to me


nine:update_ps: FIXME: unbound sampler should return alpha=1
nine:update_textures_and_samplers: FIXME: unbound sampler should return alpha=1

MadCatX
S3 licensed
This works for me. Apparently the "out" qualified variables must be assigned to in the function no matter what.


public static void Main (string[] args)
{
string to_print;
if (!MakeSomeString("radicality", out to_print))
return;

Console.WriteLine(to_print);
Console.ReadKey(false);
}

private static bool MakeSomeString(string source, out string result)
{
result = "";

if (source.Length == 0)
return false;


result = source + " mangled";
return true;
}

MadCatX
S3 licensed
What are your settings in the Logitech Profiler? To get any useful FFB in LFS you should disable the canned effects such as centering spring. Also, 200 % of FFB strength is way too high; it will rip your arms off once you get it working. I used about 30 % on my DFP.
MadCatX
S3 licensed
You should probably do a clean Windows install because might have messed things up a bit by trying to install various incorrect GPU drivers. Then you should look up the hardware specifications of your laptop and download the appropriate drivers. They should be available on the laptop manufacturer's website.
MadCatX
S3 licensed
There is no "const" qualifier for function parameters in C#, "out" qualifier is needed in this case.
MadCatX
S3 licensed
Brilliant! Looks like it's time for me to get my wheel from under the bed again. The new scenery looks pretty amazing...
MadCatX
S3 licensed
To be honest I'm not really clear about what you mean, but in any case, your code should probably look more like this.


static public bool GetUserIPAddress(string Username, out string OutputString) {
const string Path = UserInfo + "\\IP.txt";
StreamReader Sr;
string Line;

if (!File.Exists(Path)) {
return false;
}

try {
Sr = new StreamReader(Path);
} catch (Exception Ex) {
Console.WriteLine("Unable to open IP.txt for reading: " + Ex.ToString());
return false;
}

try {
while ((Line = Sr.ReadLine()) != null) {
int FromIdx, ToIdx;
string UsernameRead;

FromIdx = Line.IndexOf(" (") + " (".Length;
if (FromIdx < 0) {
return false;
}
ToIdx = Line.LastIndexOf(")");
if (ToIdx < 0) {
return false;
}
if (ToIdx < FromIdx) {
return false;
}
UsernameRead = Line.Substring(FromIdx, ToIdx - FromIdx);

if (UsernameRead.Equals(Username)) {
string IPStr;

FromIdx = Line.IndexOf(": ") + ": ".Length;
if (FromIdx < 0) {
return false;
}
ToIdx = Line.IndexOf(" (");
if (ToIdx < 0) {
return false;
}
if (ToIdx < FromIdx) {
return false;
}
IPStr = Line.Substring(FromIdx, ToIdx - FromIdx);
OutputString = IPStr + " " + Username;
return true;
}
}
} catch (OutOfMemoryException Ex) {
Console.WriteLine("Not enough memory to allocate input buffer.");
return false;
} catch (IOException Ex) {
Console.WriteLine("I/O error while reading IP.txt");
return false;
}

return false;
}

This is definitely not the best solution to this problem but at least it shouldn't explode when it tries to read a malformed line in that file.
Last edited by MadCatX, . Reason : C# doesn't know "const" qualifier for function parameters
MadCatX
S3 licensed
All you should need is D3DCompiler_36.dll and d3d9_36.dll or newer to get LFS working again. Mine works perfectly with rev. 43 versions of these libraries.
MadCatX
S3 licensed
Your code doesn't do a lot of things it should. It doesn't check if the file you're trying to open exists and that it's readable. It assumes that the characters you're searching for are always there. It also uses something called "UserInfo" which seems to be a global variable - that's usually a bad practice. There are many reasons why a code like this would break. Also, comparing string contents with "==" operator doesn't do what you want in C#. Use String.Equals() instead.
Last edited by MadCatX, .
MadCatX
S3 licensed
Quote from HonzaQ4 :Hello,
I have met another problem,

I have added those codes to my FileInfo.cs Folder.

static public string GetUserIPAddress(string Username)
{
StreamReader Sr = new StreamReader(UserInfo + "\\IP.txt");
string line = null;

int pFromUsername = line.IndexOf(" (") + " (".Length;
int pToUsername = line.LastIndexOf(")");
string UsernameResult = line.Substring(pFromUsername, pToUsername - pFromUsername);

while ((line = Sr.ReadLine()) != null)
{
if (UsernameResult == Username)
{
int pFrom = line.IndexOf(": ") + ": ".Length;
int pTo = line.LastIndexOf(" (");

string IP = line.Substring(pFrom, pTo - pFrom);
return IP + " " + UsernameResult;
}
}
Sr.Close();
return "";
}

and i have added this code to Form1.cs Folder inside IS_NCN Packet.

var Conn = Connections[GetConnIdx(NCN.UCID)];
Conn.IPAddress = FileInfo.GetUserIPAddress(Conn.Username);
MsgAll("^1" + Conn.IPAddress);

When i added that code to NCN Packet, it bugs the whole Packet, it doesnt send Welcome messages and everything inside that packet.

I tried to replace that code to another Packet, it also bugged it, and NCN worked perfectly when i removed that code from it, any idea please?

I'm currently using my editted 1.1.1.7 lfs external library, but i tried the original one, happened same :/

Aren't the lines 3 - 5 supposed to go inside the while loop?
MadCatX
S3 licensed
Modifications of the shape of the car (so called VOB modding) is not allowed because it causes trouble with multiplayer. The mod itself seems OK though. You can adjust car performance with LFS Tweak; I'm not sure if it's been updated to work with LFS 0.6G yet though...
FGED GREDG RDFGDR GSFDG