The online racing simulator
Searching in All forums
(130 results)
-wes-
S2 licensed
To store dirction and heading i'm using the 'unsigned short' data type but the value should be intact if cast to an int.

Must be a bug in your program somewhere, happy hunting!
-wes-
S2 licensed
Direction goes a bit funny if the car is stopped. It jumps around for me, dont know why.

But dont forget that the values are from 0 to 65536
You have to convert them into degrees.

so 1 deg = 65536/360

= 182 units per degree


a car angle of 25 deg will = 25*182

=4550 units

do : 4550/182 = 25
to get back to degrees.

I dont know if your getting the values correctly, we would need to see some code.
-wes-
S2 licensed
You could do this now with an insim app. but I hate servers doing this.
You connect loadup the map/track just to get kicked. :banghead:

Better to prevent people connecting at all to reserved slots, but you cant do that with insim.
-wes-
S2 licensed
DId anyone get the replay before it was pulled?
would like to see it.
-wes-
S2 licensed
I know of an exploit from nr2002 that could be in use here.

There were loads that could be used on the superspeedways.

the ride height trick (highnose)

max tire psi

perfect gear

max left side trackbar

full positive wedge


I know the last two cannot be used in lfs (yet) but they prevented the car from slowing down as much when turning.

The idea of max tire psi was to reduce rolling resistance and give a higher stright line speed. Also warming your tires would help this as tire psi increases with heat. This could be the new exploit in lfs. I think the dev's said the rr was fixed though.

I also thought about over cambering the tires, to reduce the contact patch and lower rolling resistance.

The perfect gear is just what you think it is, giving max power for as long as possible.

what else can you do in lfs? raise the ride height and go for a very soft springs?
-wes-
S2 licensed
Quote from Nitemare :you dont need to zerofill the byte array, because it is filled with zeros by default...

(snip)

true for java but not for c++ structures. You do need to zero fill them.


InSimPack data,data2;
memset(&data, 0, sizeof(data));


If you use the new keyword I think it zero's them.


InSimPack* data= new InSimPack();

If you havn't done networking before you might want to write a basic client server system first. Just to get used to the idea.
-wes-
S2 licensed
Ok I can see your logic but your not quite there yet.

Lfs is expecting a packet of data that is 24 bytes long.
so you need an array of 24 bytes.

How about a class for each of the packets you can send to lfs?

setup the members ie port flags etc with correct types. Then convert each one in to bytes and stick them into your byte array.
Then you send the whole 24 bytes to lfs and hope it does something..
lfs will say uknown packet if it has any thing at all or will flash up the connecting port number.

I would like to help further but I went for a c++ winsock app, my code cant help you.

You need a java expert.
Frankmd beet me too it!
-wes-
S2 licensed
hmmm what about the camera packet?
You could keep switching the camera from car to car and get the angle data from the camera.

If the view is from in car or bumper it should match angles with the car.

It depends on how fast you need the data, dont think the method would be fast but you could try it.
-wes-
S2 licensed
you can get the data you want via outsim. See the lfs readme for specs.
-wes-
S2 licensed
We are not having a go , we just want the masses to be informed of the truth.
Anyway general rules when buying g cards;

More pipes are better
higher core speed is better
higher memory speed is...

sometimes old cards are still faster than new budgit cards.

given the same series (eg ati 9xxxx) more pipes are better than faster core speed. 9800 has 8 pipes but has a slower core than the 9600 which has 4 pipes.

for budgit cards stick to 128mb versions, more memory wont help you.

never buy a card that ends in LE or SE. ever. mmmk?

just looked at ati's x1300 card. yuck. Please dont buy it. Perfect example of a 'new' but bad card.

good luck!
-wes-
S2 licensed
I think this is to do with anti aliasing. lfs does not use it but I think you can force it on via your graphics card's control panel.

But it could slow down video capture.
-wes-
S2 licensed
welcome to s2!
Now get racing!
-wes-
S2 licensed
Quote from L(Oo)ney :With his hacksaw!?

What if he "accidently" slip's? Scawen will end up like the bunny.

Well we would end up with TWO Scawen's right?:kenny:
Now THAT can only be a good thing!
-wes-
S2 licensed
Ah thought it was raf files but that only works for single player replay.

His program is an insim app, it gets the data from lfs(lap times for example)
And store's then saves the data.
You dont need to crack the mpr format unless you want to

go into the doc's folder and open the insim text file. Now write your app!


struct IS_LAP // LAP time
{
char LAP [4];

char UName [24]; // username
char PName [24]; // nickname
char CName [32]; // car name

MSHT Time; // lap time

byte PlyNum; // player's number
byte UniqueId; // player's assigned unique id
word VerifyId;
};
-wes-
S2 licensed
ok now you must think I'm a right noob.
For some reason my thread options were set to show last month only.
So I could only see 1 page of october threads. And I assumed that there wern't any more..

:doh:

I can see all the threads now.

Thanks Victor.
example insim source code written by Scawen. Where did it go?
-wes-
S2 licensed
I was snooping around the rsc programmer section, there was a 5 month old post with a link that goes to lfs website. Where this source was ment to be held.But it's not there anymore.

It might have been forgotten when the site was updated, could we have it back please?

I'm brand new to winsock but I've got lfs to respond to the isi command, then promptly crash after I send a ver request( go me!)

I think I might spend a few weeks working with winsock before coming back to lfs comms.
-wes-
S2 licensed
Quote from ajp71 :As Al said common sense is the most important thing to use, unfortunatley in LFS there are no side effects to crashing.

How on earth people can race with a spotter I have no clue. I can cope with it (just) for oval racing in N2003 (although I normally turn it off and use common sense), but with circuit racing? It'd be easier racing with music than it is with someone shouting in your ear.

I always set it too text only. It was very helpfull when I started out but it made mistakes sometimes, and in the end I built up a sixth sense for the position of cars around me.

That sim had 43 cars on track, 3 and 4 wide for minutes at a time so a spotter was needed. anyone with less that a year driving it would make lots of mistakes even with the spotter so..

just have to pay attention and practice.
-wes-
S2 licensed
Naa. it not boring; its relaxing...

I know its content light and a bit slow. Its partly because of the sensitivity of the colour effects.

Have a look in the fox's mirrors. And behind the fox at the wall after the 180 hairpin.
You could spend a lifetime trying to correct all those errors. I just got lucky with the blue car,
it rarely overlaps other cars and apart from the sky there wasn't much blue on the track.

However red fox/ red rumble strips/red walls/red in signs arghhhhh!!



Was fun to do though.
live in sin
-wes-
S2 licensed
I thought I'd have a go at doing the sin city colour effects in lfs. And here's the result.



live in sin

4.27 minutes

67mb

It's ment to work as an intro for lfs,what do you think?
-wes-
S2 licensed
bump up the weight; that would make it more stable?

how about 2000kg(ah a bit too heavey,1600kg)? But then you need more power say 650bhp?
illepall

No downforce on that either, should be fun and slower than the gtr's.
-wes-
S2 licensed
I like the server side setup fixing idea, but maybe not the whole setup just bits of it.
completely fixed setups might not work well in lfs as its very easy to create a radical setup that takes more than a few laps to get used to.
But being able to fix the wing angle or ride height at the oval would be helpfull. It would give all the drivers more control help avoid some of thouse silly crashes

How about giving servers the ability to send a setup to players? That way you have the option of getting a good setup for a track.
-wes-
S2 licensed
Lapping the same track and set endlessley can lead to bad habbits(as well as good).

Try a very different track and car that forces you to drive differently, I find it can help with defining setup problems.
the fox at one of the long south city tracks requires lots of throttle control(for me at least) at the apex for many of the bends. This feels very different to an xrr and might give you some setup ideas.
-wes-
S2 licensed
I was thinking last night about the damage showing up before you hit a wall.
And I think I've got it!
When you watch an online replay, your watching events from the SERVERS
prespective.

This means that your car(in the replay) is lagging behind your live(when you were racing) possion.
When you hit a wall your pc sends the impact info to the server, which then puts it on it's version of your car immediately.
So from the servers view the damage can show up on the car before the impact, as the damage info can be sent before a true position packet is sent.


impact
1.7mb

see how the car gets moved in the air? Didnt happen when I was driving live.
but this is the servers view so it snaped the car's position when it received new positon data from my pc.
-wes-
S2 licensed
Pridection relates to online games. It's the client pc (your pc) guessing where your new positon will be.

Its always the server that decides where everything is, you can not move untill the server says ok.
All fps games use this because it prevents cheating, and keeps everyone in sync.

You can see this in counterstrike if you switch off client prediction ( cl_pridect=0)
Go to a server where you have high ping 200ms say; notice the delay before you can move?

Prediction covers up that delay.

In driving games this would be very bad. So your car is not subjected to server control in the same way. I'm not sure how a driving game would do it but I guess it would just check that your car is not doing the impossible and that its around the area the server thinks it shoud be.

You still get pridiction for the other players, so sometimes a car will drive stright on in a corner because your pc is not recieving data for it.
-wes-
S2 licensed
Quote from Hyperactive :So setting the framelimit can prevent these too? I ask this because I've just bought a new computer but haven't set framelimit...would around 30fps be enough?

And if two car's collide, the player with slower PC or slower connection (not talking about megabytes) gets the aero-effect?

I was just wondering how the collision detection actually works

Well only if lfs is cpu bound on your system. It Just prevents the pc from doing screen related things.Put up the framerate on the screen. See if it changes after reducing the screen detail/res. If you have just bought a new pc a low framerate is more likely being caused by the graphics card.




programing link

source code
FGED GREDG RDFGDR GSFDG