The online racing simulator
Searching in All forums
(50 results)
1
StuntCarRacer
S2 licensed
Quote from xfirestorm :
When build finishes(go grab a beer or two):
run:
make install AS ROOT!!!!

You can run Wine directly from the source tree, no need to install, and no need for root access.
StuntCarRacer
S2 licensed
If your drive can also burn disks, you can try UDF formatted media.

If your drive supports writing DVD-RAM disks, it may be even better, as these disks are very reliable. I bought a DVD-RAM disk in 2004, used it frequently for backups, and it works perfectly to this day. It outlived several normal +/-RW DVD disks, and even my DVD drive
StuntCarRacer
S2 licensed
Quote from the_angry_angel :OT:
Please don't introduce this lot to codegolf

I can't introduce Perl without golf, these things are unseparable
Quote from filur :Here's my non-enterprise design:

<?php 
php
    
for($i=1;$i<101;++$i){echo
    (!(
$i%15))?'FizzBuzz':((!(
    
$i%3)||!($i%5))?((!($i%3))
    ?
'Fizz':'Buzz'):$i),"\n";}
?>


You can get rid of "not" operators by changing expression order in the ternary operator. Separate path for "FizzBuzz" is not needed, you can make it by joining "Fizz" and "Buzz". Loop variable initialization is not needed (PHP will complain in server logs but I don't care :razz, and loop variable incrementing can be stuffed into the main expression. After all these changes and getting rid of unneeded parentheses it will look like this:

<?php 
php
for(;$i<100;)echo++$i%3?"":"Fizz",$i%5?$i%3?$i:"":"Buzz","\n"

?>

I'm really sorry, I couldn't resist
StuntCarRacer
S2 licensed
Quote from Dygear :There is nothing quite like hello world to get you into the mood . Or my fav, fizzbuzz.

In Perl it would look like this:

print+(Fizz)[$_%3].(Buzz)[$_%5]||$_,$/for 1..100

Already "golfed" to get into the mood . One char can be saved by replacing print with warn, provided that printing to STDERR is not against the rules
StuntCarRacer
S2 licensed
Quote from ajp71 :I really can't see who would want to play LFS slower for the slight advantage of not having to load Windows

It's a matter of personal priorities. I'd rather stop playing LFS than go through the hassle of buying and installing Windows, and restarting the computer just to play a game.
StuntCarRacer
S2 licensed
Quote from Kostek :MU constantly says all the slots are busy and wants to install some s*** I dont want to :P

Instead of installing the toolbar you can just change your browser identification string to:

Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; FDM; MEGAUPLOAD 1.0)
StuntCarRacer
S2 licensed
Quote from Tweaker :Cool skin, and I bet you'll be wearing it online in the servers we play on

Thanks, but I think crash test skin fits me better
StuntCarRacer
S2 licensed
Quote from Bean0 :Love it

Any chance of a UFR version? or does it just fit?

Thanks It didn't fit well, mostly due to big tyre fenders on UFR. Anything placed on the fenders gets heavily distorted, so I moved/scaled stuff to avoid it where possible. Unfortunately I couldn't do it with the car illustration, and it looked really weird at most angles, so I decided to just smudge the areas overlapping fenders.
Last edited by StuntCarRacer, .
StuntCarRacer
S2 licensed
A skin about my favourite Amiga game

Low resolution, as the original artwork scans were low quality. I spent most time reconstructing damaged lettering and trying to improve quality and readability. As I didn't wanted to spend more than 1 evening on it, I opted for a simple cut and recombine with minimum overlap. If I had more time, I would probably try to completely separate logos from background and draw missing parts of the illustration.
StuntCarRacer
S2 licensed
Quote from [RCG]Boosted :see attached screens for my settings.

I set the graphics settings same as yours, and my fps dropped a little. I found out it was caused by the high res shadow. Car shadow is broken for me anyway, turning it off gains around 5 fps for me.

I couldn't set screen refresh rate as high as yours, because my LCD monitor when connected by DVI cable has very limited refresh rate settings. Shouldn't be a problem though, few months ago I've been playing LFS on Wine at 85Hz on my old CRT monitor and it wasn't any slower.

It seems you are getting a lot of errors from wine. Strange, as I get only a couple (screenshot attached). I wonder what is the cause for these errors.
StuntCarRacer
S2 licensed
Quote from [RCG]Boosted :ah...i was running 32 bit colors...that may be a reason.

Only Z-buffer is 16-bit (must have been like this by default as I don't remember changing it). The color depth is 32-bit, so I think the bottleneck may be somewhere else...
StuntCarRacer
S2 licensed
Quote from [RCG]Boosted :well ive got lfs to run.
but 2 problems.
only get like 8-15 fps (70-120 on win)

Seems too low for GF7600. I usually get 20-30, unless it's a full grid or lots of objects on track, then it may sometimes go a bit lower.

Hardware for comparision:

00:00.0 Host bridge: VIA Technologies, Inc. VT8378 [KM400/A] Chipset Host Bridge
00:09.0 Multimedia audio controller: C-Media Electronics Inc CM8738 (rev 10)
01:00.0 VGA compatible controller: nVidia Corporation NV44A [GeForce 6200] (rev a1)
[...]
CPU: AthlonXP 2000+

Software:

Kernel 2.6.17.13, NVidia drivers 1.0.9746, wine 0.9.32
Related Wine and LFS settings attached as screenshots.

Quote from [RCG]Boosted :i also have crackling sound, so wierd

I think it's normal with too low fps, however I noticed sound in LFS was working better on Wine with U version. When LFS changed the sound code to DirectSound, it got much worse, more laggy and crackling more often.
StuntCarRacer
S2 licensed
Quote from JTbo :DCOM, Internet Explorer etc. are installed as well all other additional stuff? Easy to install with wine tools.

LFS doesn't need anything installed beforehand.
StuntCarRacer
S2 licensed
Quote from [RCG]Boosted : wine: Call from 0xb2c2f3 to unimplemented function DDRAW.dll.DdEntry1, aborting

Looks like a messed up Wine installation. If you're building Wine from source, make sure the configure script finds OpenGL and builds all DirectX dlls properly. If you're installing from binary packages, make sure your installation is complete. It's not unusual for binary distributions to move non-essential parts of Wine, like DirectX dlls, into separate sub-packages.

Start with a clean ~/.wine directory, or use a different WINEPREFIX dedicated for LFS. I prefer the second option, so I can be sure that whatever I install in my default profile won't mess up my LFS installation. It's like having 2 separate Windowses, each with its own directories, registry etc.
StuntCarRacer
S2 licensed
I prefer XRT. Not faster, but more bouncy fun
Fast forward to around 2:20.
StuntCarRacer
S2 licensed
Quote from kamo2000 :Here's my replay from stcc race(tbo)

Wow, fantastic race!

My driving isn't good enough to have any racing replays like this, but I have something funny. Have you ever seen a shocked wrecker? I mean, these guys have seen everything, the worst crashes. Is there anything that can amaze them?

Watch the driver aptly named "SmAsH", as he smashes into another car in lap 2, and then sits on a backstraight corner waiting for his prey...
StuntCarRacer
S2 licensed
Quote from kosmooo :i have already your setup, but i don't know how to do this. please help me

No one taught me how to do it, so I have no idea how to teach other people

All I can do is to observe what am I doing, and try to explain it. So can you, as there are replays available to watch.

This is how I see it:

I start at around 40-50km/h in 2nd gear. I turn the steering wheel left a bit, aiming for a wide circle (can be right as well, the set is symmetric, but I prefer left). Then I press throttle, start accelerating and tightening the turn. When I feel my rear starts to go sideways, I unwind the wheel a bit to keep the rear from drifting. If you are successful at preventing the rear from drifting, and you still accelerate, you will reach a point at which the grip budget of both outer wheels deplete. Release the throttle. The outer wheels will start to alternate between slipping and regaining grip, while the inner wheels will start bouncing up and down due to all the weight shifting and suspension resonating.

This is the time to use the "rapid steer" technique I described in an earlier post. You have to do it when inner wheels are bouncing as high as possible, but if you wait too long the outer wheels will start bouncing too. It will transition from "slide-bounce" to "just bounce", and when all wheels are bouncing it's just like riding on a wild horse, without control.

The technique, in a nutshell, is: wheels go up, you move the steering full-lock to the other side; wheels go down, you move the steering wheel back to normal.

Here is a movie from one of the replays (sorry for poor quality, I have an old and slow computer at home, and I have no Windows here so it is recorded running on Linux/Wine).

After you lift the wheels up, just steer to keep it upright. Acceleration and braking is tricky, so try without it at first. Train driving XFG on 2 wheels, so when you finally succeed lifting XRG wheels up you don't waste it

This description may be incomplete or inaccurate, so take it with a grain of salt.

Good luck!
Last edited by StuntCarRacer, . Reason : spelling error
StuntCarRacer
S2 licensed
Pitspotter works fine on Linux/Wine, so there is a high chance it will work on darwine too.
StuntCarRacer
S2 licensed
My 2 wheels xrg sets and a replay. One set is softer, the other one harder. Softer set is easier to lift the wheels up, but more difficult to drive in a straight line, because with softer tyres it is easier to accidentally scratch the tarmac with wheel rims.
StuntCarRacer
S2 licensed
Quote from AlfaLover :The sloooooowly development of opengl

What do you mean? OpenGL offers everything DX10 offers, with extensions like EXT_geometry_shader4, EXT_gpu_shader4, EXT_bindable_uniform, EXT_draw_instanced, and few more, which are adopted by all major vendors, and available now on all platforms, not only Vista. There are also many vendor specific extensions if you need some specific hardware feature.
StuntCarRacer
S2 licensed
Quote from Scawen :I'm also trying something with the sound bug.

I started a project to translate winmm calls used by LFS to directsound. The idea was to make a DLL than implements these calls, and then just modify LFS binary to import this DLL instead of winmm. Unfortunately the project stalled due to several reasons. I have too much other work recently, and I no longer have any Vista machine, thus I no longer have much motivation to work on it. There's not much done, only the patching utility, and all the needed calls stubbed out, so the patched LFS runs but without sound. I realize the usefuleness of it is near zero, anyway, here it is:

https://lampka.siedziba.pl/Web ... ting.php?path=/lfsdsound/
StuntCarRacer
S2 licensed
In my work I tried many VPN solutions, and IMO anything is better than the built-in Windows VPN. The VPN is built on PPP tunnelled over TCP connection, which maybe was a nice 5-minute hack 10 years ago when you had no other tools, but a really bad idea for anything requiring either low latency or high bandwith.

Applications using UDP will not work well in case of any packet loss, because the underlying TCP transport layer will retransmit lost packets, and block any other packets from reaching the application until the lost packets arrive. They may not even work well in case of no packet loss, because of the underlying TCP protocol's Nagle algorithm.

Applications requiring bandwitch will choke in case of any network congestion, because TCP flow control algorithms have terrible properties when layered on top of another TCP connection. Basically, any lost packets in the lower layer will cause build-up of retransmission packets in upper layer, wasting the bandwith, and causing the upper layer to either back-off to a crawl, or loose connection.

For me, trying Windows VPN was a wasted time, because it turned out to be unusable for anything other than checking email (provided there were no big messages in my mailbox ).

I am currently using OpenVPN. It supports, among other things, compression, encryption, tunnelling over UDP, tunnelling ethernet frames (ethernet bridging), and works well for me even in poor network conditions.

If you suppy your clients with ready to use configuration files, setting it up is a breeze. Basically just click through the installer, then click on the *.ovpn configuration file, and that's it.
StuntCarRacer
S2 licensed
Quote from Guber-X :
- Warning: the specified Windows directory L"c:\\windows" is not accessible.
- Warning: the specified System directory L"c:\\windows\\system32" is not accessible.
- Warning: could not find DOS drive for current working directory '/home/guberx/lfs', starting in the Windows directory.
- wine: could not load L"c:\\windows\\system32\\lfs.exe": Module not found

Clearly you either do not have a proper directory structure in ~/.wine, or the files/directories there are not accessible. You can try to:
  • Remove ~/.wine directory and try to run wine again. It will create a new directory automatically.
  • If ~/.wine directory does not exists and wine can't create it, you probably do not have "wineprefixcreate" utility installed. It usually comes with wine, but maybe for some reason it is in a different package, so search for a package named like wine-programs, or wine-utils, or wine-tools, something like that.
  • If it still does not work, try running wineprefixcreate manually and see what it says. Also check your WINEPREFIX environment variable, maybe it is set to something stupid.
Properly created ~/.wine directory should look like this:

.wine
|-- cachedmetrics.:0.0
|-- dosdevices
| |-- c: -> ../drive_c
| `-- z: -> /
|-- drive_c
| |-- Program Files
| | `-- Common Files
| `-- windows
| |-- command
| | `-- start.exe
| |-- fonts
| |-- inf
| | `-- wine.inf
| |-- notepad.exe
| |-- profiles
| | |-- All Users
| | | |-- Application Data
| | | |-- Documents
| | | |-- Pulpit
| | | |-- Start Menu
| | | | `-- Programs
| | | | `-- StartUp
| | | `-- Templates
| | `-- root
| | |-- Application Data
| | |-- Cookies
| | |-- Desktop
| | |-- Local Settings
| | | |-- Application Data
| | | |-- History
| | | `-- Temporary Internet Files
| | |-- My Music
| | |-- My Pictures
| | |-- My Video
| | |-- NetHood
| | |-- PrintHood
| | |-- Recent
| | |-- SendTo
| | |-- Start Menu
| | | `-- Programs
| | | `-- StartUp
| | `-- Templates
| |-- regedit.exe
| |-- rundll32.exe
| |-- system
| |-- system.ini
| |-- system32
| | |-- advapi32.dll
| | |-- comdlg32.dll
| | |-- control.exe
| | |-- crypt32.dll
| | |-- ddraw.dll
| | |-- drivers
| | |-- gdi32.dll
| | |-- help.exe
| | |-- kernel32.dll
| | |-- msiexec.exe
| | |-- msvcrt.dll
| | |-- notepad.exe
| | |-- ntdll.dll
| | |-- opengl32.dll
| | |-- progman.exe
| | |-- regsvr32.exe
| | |-- rpcrt4.dll
| | |-- shdocvw.dll
| | |-- shell32.dll
| | |-- shfolder.dll
| | |-- shlwapi.dll
| | |-- user32.dll
| | |-- version.dll
| | |-- wcmd.exe
| | |-- winmm.dll
| | |-- winver.exe
| | |-- ws2_32.dll
| | `-- wsock32.dll
| |-- temp
| |-- win.ini
| |-- winebrowser.exe
| |-- winhelp.exe
| `-- winhlp32.exe
|-- system.reg
|-- user.reg
`-- userdef.reg
StuntCarRacer
S2 licensed
Quote from AndroidXP :Cheating on S2 is pretty stupid though, as people are very attentive, and if there's a replay of you cheating out there, good luck finding quality servers where you're not banned.

Wishful thinking. This case was easy, as the cheater wasn't hiding the fact that he is cheating. The car clearly had a lot more power and grip than other cars. However, there is a possibility that a smart cheater could improve his car only marginally, just enough to win. How would you distinguish someone who is cheating from someone who has a better setup and skills then?
StuntCarRacer
S2 licensed
Quote from joen :jpg uses lossy compression, PNG uses lossless compression
png supports transparency, jpg does not

There is also JNG, which is lossy, and supports transparency.
1
FGED GREDG RDFGDR GSFDG