The online racing simulator
Searching in All forums
(986 results)
filur
S2 licensed
Quote from St4Lk3R :well... I do not find anything anywhere, so i'll ask here: how can I set up a listening port in php4? sorry for the noob question and I know that you are not an approved substitute for my brain, but I really have a blackout right now... thanks in advance again.

Look up socket_create(), socket_listen(), socket_create_listen(), fsockopen() is for connecting to a destination, not listen for incoming connections.

I do however remember a major hassle with PHP 4's sockets, major problems with not being able to run them fully non-blocking (atleast on windows), meaning a read operation won't instantly complete if there's nothing to read, it will need to wait for something to read, or wait for a timeout (atleast 1 second iirc), halting your script.

If you for some reason don't want to upgrade your 'global' php installation, why not set up a PHP 5 package for just this project? Streams are so much simpler.
filur
S2 licensed
Quote from St4Lk3R :do I have to use a separate input-server? I only have php 4 and it would be great if it would also work with this version... thanks again for your help anyway.

Yes, you need to open a server socket for LFS to respond to.

It'll all work in PHP4 as well, just not the same commands, maybe a few more lines. PHP5 has been out for quite some time now (years), maybe it's time to upgrade?
filur
S2 licensed
Quote from Dygear :.. All of them are 720p, and I think they are at 921600Bytes Per Second or 7200 Kilobits per second. I don't think that's bad for HD .

Converted FunInADryer.exe (47,6mb) to xvid, topping at 9231 kbit/s (limit at ~9700), 26,4mb.
Converting from RGB to xvid took 2m 13s, converting from RGB to Bink at 7200 kbit/s estimated time to ~25 minutes.

Strange codec, i'd say.
filur
S2 licensed
Quote from lalathegreat :1.99% of the cars arent real.

~16% of the cars are "real", you're a bit off.
filur
S2 licensed
http://www.lfsforum.net/showthread.php?p=84876#post84876

Quote from Yaamboo :I think you can't send packages using php? Or am I wrong?

You're incredibly wrong.

http://php.net/manual/en/ref.sockets.php
http://php.net/manual/en/ref.stream.php
filur
S2 licensed
Quote from samyip :The Bink videos don't seems to be compressing as the best quality as you described.

I don't think anyone (game developers etc.) is choosing bink for quality, it's probably more about it being relatively cheap, the small / fast player code and multi-platform support in the sdk.

Question is, why is dygear using it?
filur
S2 licensed
Quote from Dygear :.. That's 4608 kilobits per second.

Bink seems a bit strange, xvid at insane settings makes your latest clip 4.51mb maxing out at ~4200kbit. Since it never hits the limiter (~9700kbit) it means there's no more data to compress, where does bink find extra data to compress?
filur
S2 licensed
Quote from Dygear :The bit rate is 196608 Bytes Per Second.

4.6mb at that bitrate (1536kbit/s?) ? Your video converted to xvid at 9708 kbit/s weighs in at 1.8mb, never even being close to hitting the bitrate limit.
filur
S2 licensed
I'm getting full force feedback, steering tension, self counter-steering etc. with centering unchecked, absolutely nothing changes with centering checked.

Wingman 4.60.349, DFP rev.B
filur
S2 licensed
Quote from Tweaker :.. if you had it unchecked, your wheel would be loose all the time, and you wouldn't have any resistance from the steering wheel if you slid or anything. It would just be loose and you wouldn't feel the car's steering tension come into play.

Because, if you try and do a test with the wheel, always do a 360 in your car and let go of the wheel. Just like a car's wheel would really act, it would spin freely and try to countersteer on its own. When you have the option unchecked, it would not do this

That can't be right, centering spring has no relation to current forces, my centering spring setting is unchecked at 0% and my wheel turns (by itself) as it turns on screen, as it should, from the current forces.

Edit: difference with centering on/checked at 0%: none.
Last edited by filur, .
filur
S2 licensed
Even if you're not firewalled, you need to forward the server port from your router to your PC.

http://portforward.com/

If you're running a server on port 63392, forward that port to your PC.

http://www.lfswiki.net/index.php/LFS_S2_Manual:Hosting
filur
S2 licensed
Quote from Jakg :Heres my edit, ive learnt from Evans tho, its definately not cliche so you cant say its bad!

Amazing.
filur
S2 licensed
Oh it's explorer, not winamp. sorry

Add explorer.exe to the DEP ignore list then, probably not really a great idea though.

I guess something icky is happening when explorer tries to grab some info on the file.
filur
S2 licensed
Try another media player or add winamp to the DEP ignore list, system->advanced->performance->data execution prevention.
filur
S2 licensed
Quote from Darkone55 :When the video is finished I should import it to Premiere, and then put music under it. But then I still can't export it to 50 FPS..

Add the music in virtualdub.
filur
S2 licensed
Any laps you do in any car will add to your "skill", if you had 20,000 laps in other cars, 5 days for 1:36 on BL1/XFG would be pretty damn slow, but with 5 days total experience it's not slow at all.

Why not join OLFSL, next race is BL1/XFG and it's still a week away, and the following races will give you a few new combo's to practise.
filur
S2 licensed
Quote from Darkone55 :But if I use half the speed, at 25 FPS. How can I add music to it?

You add music when the video is finished, i.e when you've speeded it up to the fps you want it to be.
filur
S2 licensed
Quote from MonkOnHotTinRoof :If you don't have environment to build it, here is binary, so you can test your app..

Thanks, still doesn't work tho.

It's pretty strange, i can get lapper working by chaining ..

LFS <-> my proxy <-> racemanager gateway <-> lapper

.. but lapper won't 'initialize' connecting to my proxy, which behaves exactly the same in the above configuration as it would without gateway being involved.
filur
S2 licensed
My proxy should in theory support infinite clients, runs fine with both dedilink and racemanager connected, but i can't figure out how to connect back to the incoming port in php (ie. lapper), any of the ones i can sniff out seem to be wrong. Would be spiffy if lapper could send the port it's using in the packet, but i should get i working sooner or later i guess.
Last edited by filur, .
filur
S2 licensed
Quote from gwendoline :each insim application using his own specific port.

Any insim app is free to listen on any free port, there's no such thing as specific ports.

Lapper sends no port (0), meaning ..
Quote :Note : If Port is zero, LFS will send replies back to the port of the incoming packet

filur
S2 licensed
I actually made a 'system' this morning, a very simple web interface to add a ban for x amount of time together with a small reason and an mpr. The list of bans gets downloaded every so often and bans are added thru insim, /ban <username> <time>. On every request for the list, expired bans get deleted.

The web interface currently lives at http://lur.h1x.com/lfsmbl/.

Problems include the obvious "who can add a ban", and the fact that my insim daemon this runs on is still unreleased and undocumented.
filur
S2 licensed
Speaking of ^ that ^, for the sake of tidyness you should let users decide which port they want lapper to use instead of sending "0".

Sending "0" also confuses my insim proxy.
filur
S2 licensed
Quote from wheel4hummer :Another problem: If I turn my wheel one direction about 70 degrees and let go, it will start rotating from side to side and it will go faster and faster. This makes it hard to control sometimes.

Set your force strength lower.
filur
S2 licensed
I'll join, my XRT is getting dusty.
filur
S2 licensed
I've found rendering to Uncompressed RGB / Uncompressed PCM for audio/video from Premiere saves me alot of time, and lets me experiment with compression in VirtualDub instead. Sound, for example, need only be compressed once this way, using direct stream copy for any adjustments on video compression later.
FGED GREDG RDFGDR GSFDG