The online racing simulator
Searching in All forums
(648 results)
hotmail
S2 licensed
Ey i hope you dont mind me ask ,but after google-ing for the last couple of days, i see some people using :

return name.substr(-4) == ".set"

and others:
return name.substr(-4) == '.set'

is there a difference in javascript ? between " " or ' ' ?
hotmail
S2 licensed
Quote from DarkTimes :

<?php 
function getfiletype(name) {
    return 
name.substr(-4) == ".set";
}
?>

substr(-4)

Although to actually get the file extension in JavaScript, have a look at this Stack Overflow question.

many thanks looks way more clean then my code.
Javascript Help
hotmail
S2 licensed
Ey,

Last day(s) i m starting to code a bit with javascript, but i keep on getting the same problem. so i hope somebody can help me with this:

where i am looking for : a fuction that returns true when the filename ends with ".set". ( its for a (team) setup database).

my try:

function getfiletype(Name){
var Typestring='';
var Lastdot =0;
for(i=0; i<Name.length;i++){
if(Name[i] =='.'){
Lastdot = i;
}
}

for(i=Lastdot; i<Name.length; i++){
Typestring += Name[i];
}

if(Typestring == '.set'){
return true;
}
else{
return false;
}
}

when i debug my function its working until the if(Typestring == '.set')
he just totally skips that part. (i cant find out why).

hope somebody can help me with the basics of javascript.
because its kinda new for me
hotmail
S2 licensed
Quote from Kat0san :Been away for a month what a nice surprise when I came back! Question for anyone since I upgraded I no longer see my mouse cursor in full screen mode. I need to SHIFT + F4 back to a window to make changes to settings for example anyone got a clue how to fix this?

oh dear, scawen changed some stuff in the mouse steering region, but im not having the same problem, are you using a steering wheel or a mouse to steer?
hotmail
S2 licensed
Quote from troy :Airio got updated in the meantime slow dutch man!

Oh dear, now see what a weekend off can do
hotmail
S2 licensed
Quote from Scawen : Z28 hosts should all upgrade - I can't think of any reason to stay with Z28.

Well cargame.nl is running Airio. and some packets are not updated in airio yet. so i guess thats why he asked it
hotmail
S2 licensed
every nice post , i think the most inportant information in that post is:
Quote :// L = Latin 1
// G = Greek
// C = Cyrillic
// E = Central Europe
// T = Turkish
// B = Baltic
// J = Japanese
// S = Simplified Chinese
// K = Korean
// H = Traditional Chinese

$sets = array ('L' => 'CP1252',
'G' => 'ISO-8859-7',
'C' => 'CP1251',
'E' => 'ISO-8859-2',
'T' => 'ISO-8859-9',
'B' => 'ISO-8859-13',
'J' => 'SJIS-win',
'S' => 'CP936',
'K' => 'CP949',
'H' => 'CP950');

p.s. go with the list in the next post
Last edited by hotmail, .
hotmail
S2 licensed
Quote from Scawen :Don't do this Audi. Please try to understand what I am saying. I do not want off topic requests posted here. I am not doing them. There is a limit to this patch, and we have reached that limit. I am only fixing the bugs.

+1, i totally agree, but make sure that everybody will read this post! to stop the semi-request bugs
Last edited by hotmail, .
hotmail
S2 licensed
Quote from Specht77 :I was with 10 or 12 packets per second when recorded this MPR, don't remember exacly... I remember it was the maximun that Z28 allow on local server

And what I mean is, it's too spiky, I could be smoother...

http://www.youtube.com/watch?v=-jMEek58Nl8

I recorded this video too, I was playing with some friends from other cities and you can see that no car are 'teleporting' like the video from LFS on lan, and the 'spiky teleporting' is even worse on online servers...

edit: and you can see the ping from the cars on the side of their names, on lan is like 1ms, in this video, one is almost 120ms... and looks less laggy

to me it looks like that in your youtube movie from in your previous post. that you are sitting on-board at the non-local car. this means that you will see this car moving every frame with the speed / steering from the last packed.
Every second there will be 10 ~ 12 (Packets / second) corrections on this position movement.

if you will send more packets this will make the car move better.

@ Scawen, hope im correct , but to me it looks like:P


Quote from mutt107 :Their netcode is still far better than LFS, you don't see cars flashing back and forth every second.

Lets not start that Discussion here. about witch netcode is better. because most lfs'ers wont agree!
hotmail
S2 licensed
its funny but i was talking with troy about this earlier today.

Last year i was having the same question at that time i would have said. its over kill.

but since 3 months i got a new Sony Vaio 16" Laptop. its having a premium HD screen. (i7 and more) this screen opent my eyes. if i watch an 720p it looks good but a proper blue ray 1080p is just Soo sharp its very very good. you can really see it. even at a longer distance*

So to go with your though bob: a good screen will show the difference. at my 22" samsung LCD screen i wont see the difference!



*sofa distance 3 / 5 meter
hotmail
S2 licensed
Quote from Scawen :Hello Racers,


Hotlapping support :

Tyres section in garage - settings for tyre warmer temperatures

Sorry if i missed it in here, but i didn't see a mention about it in this or they other thread. Is this also enable in multilayer sessions because this will be a great add-on to the Enduro community.

if so , can you also change the tyre temp from the tyres you will get in a pitstop.

P.s. i normally dont ask questions but this might be a point that was missed.
hotmail
S2 licensed
Quote from coolfille100 :when will the full with the new car get out?

I think there is a mis understand here.

When the "Test Patch" period is over, it will go "public" this means that everybody gets an update when they go multilayer.

But This Final (Full) Patch isn't getting the new car. Like scawen said before : he is working on new Tyre physics and he would like to get that finished before we get the "New Car".

So The current test patches wont get a new car when the test patches are over
hotmail
S2 licensed
Quote from PMD9409 :It was lag.

Yea , it was lag

but it was a very nice race , getting trough the field
hotmail
S2 licensed
Some little clip from last night : (only kyoto)
http://www.youtube.com/watch?v=eF8cVQ-lV-g
hotmail
S2 licensed
Ehh Dustin , that qoute is not very accurate
hotmail
S2 licensed
A little bug at Layouts (every track)

For example in BL1X normaly you are starting at the blackwood starting straid. once you made a starting point some where ( in de editor) the normal grid is not working anymore.

Even when you delete the start point again , then it still starts at the starting point. and not at the normal blackwood grid.

in-short Startings points cant be deleted on open configs
hotmail
S2 licensed
Team name: Concept Racing
Starting Number (0-999): 31
Drivers (real name, LFSWorld, Nation):
- Reint Jan Hoiting, hotmail, male, NED
hotmail
S2 licensed
Quote from DeadZzz :z30 => z31 => z32
we will never see the end of that?

Thats called software development. now shuzzz....

/***** Sliding ******/

I have the feeling that this is a very hard thing to compare, because there is just that little chance that you can do 2 identical laps in z28 and z31.

Last night i was doing some AS4X (open config) with a few guys. i noticed that in the FZ50 and the RAC i was having a very very hard time in the Eau Rouge (AS Caded / Historic). it felt like that i couldn't go as tight. it was almost like i was falling off the track.

Can this be related to the issue the other people are having?

p.s : my teammate made this comment after seeing me go off : " Scawen already made some little water lakes in lfs."

P.S2: at some point i made a where my car was touching the ground in that corner. it helped me getting more grip at the exit.
Last edited by hotmail, .
hotmail
S2 licensed
Quote from raftor :I think that this is a bug...

I've noticed that in a long run (38 laps) with refueling, LFS kept refueling my car despite (F12) I selected a 0% refueling at next pit-stop. LFS did it two times in the same run:

1st pit stop: F12: 20% fuel ------ 21.9% refueled <-- 1.9 difference
2nd pit-stop: F12: 0% fuel ----- 11.9 % refueled <--- 11.9 difference
3rd pit-stop: F12 0% fuel ----- 5.9 % refueled <--- 5.9 difference

Data:
patch Z31
track SO4r
Car: FBM

also cant reproduce it.
it looks like that it works normal.
this 20% fuel means that 20% is added to the tank. so at pitstop one you had 1.9% in you tank entering the pits.

its stop 2: you most likely had 11.9% fuel in the tank.
adding 0% fuel will make you leave the pits with 11.9%.

Hope you can confirm this ?
hotmail
S2 licensed
Quote from =Wolf=[NO] :.....

i got the feeling that your pc is sighly outdated cpu: Q3'06
is about 5 year old. but i still think that i should run with about 20~30 fps on 1 screen.

About the low FPS, using 3 screens means that you are rendering 3 screens in lfs?

an openconfig is a bit harder on fps then normal tracks. with 3 renders you will feel this more then with only 1 render.

P.s: We just need for info: OS , #screen used in lfs and more...
hotmail
S2 licensed
Quote from Scawen :That was reported and I've been looking at the fix over the weekend. I understand the problem and the fix will be in the next test patch.

Do you want us to point out more places where we find this same error , or is it something auto generated ?

Just making sure, because i found a couple more places. (most of them are around the starting grid / pit wall)
hotmail
S2 licensed
YEahhh, This was indeed a very nice battle, since the bathust1000 this year i started to watch V8 Supercars, and its just lovely again.

Edit: Like the top Comment on the clib: "the person who did not like the video is ALONSO FAN hahahahaha"
hotmail
S2 licensed
Quote from ChrisColeman :LX6 please!!

logic is telling me the lx6 is highly impossible with the method
hotmail
S2 licensed
Quote from bunder9999 :i don't know if it'll help, just throwing it out there...

how about merging the "splits" table and the "laps" table together...

something like... (see attached)

that table is part of a DB that holds info acquired from the airio STA files, which i had tied into a website. it was working pretty good, last i checked.

yea so that means that you have to update the record when it passes a split and insert a row when he drove past split one.

otherwise you wont get the tracker updated after every split.

but it sounds like a very good idea
hotmail
S2 licensed
so if i understand it correct, you want it to list the team order, by sorting at Total time or Lap time ?

and are you sure that its pushing the data correct in the database ( or is that the problem)
Last edited by hotmail, .
FGED GREDG RDFGDR GSFDG