PDA

View Full Version : LFS on Linux?


MadCatX
13th October 2005, 19:27
I heard about Cedega utility for Linux (http://transgaming.com) which somehow emulates DirectX functions and dynamically linkes Win32 code and implements Win32 API. But how about performance? Have anybody ever tested it?
On its homesite is posted LOONG list of "working" games.
(I don't believe it so much - DX emul under Linux???... strange)

the_angry_angel
13th October 2005, 22:13
Theres been a number of threads about this in the past. Most of them on RSC, but one or two here as well.

In short yes it does run (sometimes), but not with great performance. I was running a really old CVS build of wine (what cedega's based on) and it worked perfectly. Since then its been getting poor performance.

Renku
14th October 2005, 05:04
http://www.lfsforum.net/showthread.php?t=1132&
http://www.lfsforum.net/showthread.php?t=1623&
http://www.lfsforum.net/showthread.php?t=1693&
http://www.lfsforum.net/showthread.php?t=1381&

tecwizrd
10th December 2005, 03:47
I thought I would give the guys on :pillepall Linux Boxes something to cheer about.

This is RebelBase, running Ubuntu Linux 5.10 (Breezy). :thumbsup:

the_angry_angel
10th December 2005, 11:05
The question is, does LFS run well when in game, and online? Thats where the performance often comes into massive doubt.

To let us know, which version of cedaga is that? Your own CVS build, or the proper version?

tecwizrd
10th December 2005, 14:34
The question is, does LFS run well when in game, and online? Thats where the performance often comes into massive doubt.

To let us know, which version of cedaga is that? Your own CVS build, or the proper version?

The game runs very well. I get between 30 and 60 fps. I am using Cedega 5.02, with the registry from Wine 20050725. The wine install is the default Ubuntu package installed with Synaptic. LFS gets better fps using the cedega reg file but you can't unlock the game. I have been though the reg files of both, and cannot locate the difference between them that allows you to unlock. I have AF set at 4x and AA set to 4xBilinear. I think that using the cedega reg file would give better performance. LFS needs a Linux port. I know quite a few people who would pay double to get it. I would, if that is an incentive.

I've included one more screenie. I really just wanted to prove it works. :thumb: I circled the FPS counter in the LFS window, it's below 30 because the screenshot program maxes out the CPU when starting. I have the perf mon up to show the mem usage and CPU cycles. The machine is an Athlon XP 3000, 256mb ram, 200gb HD, TV card, 2 nics, ieee, usb2, dvd, cd-rw, NV Gforce 5600 FX 256mb. This OS and Machine are very stable. I could run 2 instances of LFS in window mode and still play or do other work. Linux rocks.:smileypul

the_angry_angel
10th December 2005, 15:11
The wine install is the default Ubuntu package installed with Synaptic.Have you edited your synaptic/apt sources at all (either through synaptic itself, or manually editing /etc/apt/sources.list) at all? (Just want to know as this affects what package is installed by synaptic)

Other than that, very nice work on the report dude :up: Might be time to start playing with LFS client on linux again :D

Vagner
10th December 2005, 20:59
... LFS gets better fps using the cedega reg file but you can't unlock the game. I have been though the reg files of both, and cannot locate the difference between them that allows you to unlock.
I'm using Gentoo Linux with Wine 0.9.2 and Cedega 5.0. In Cedega, to unlock the LFS, you need put in the system.reg the missing key: "ProductId"="12345-oem-0000001-54321"

[Software\\Microsoft\\Windows\\CurrentVersion] 1134101496
"CommonFilesDir"="C:\\Program Files\\Common Files"
"FirstInstallDateTime"=hex:21,81,7c,23
"ProductId"="12345-oem-0000001-54321"
"ProgramFilesDir"="C:\\Program Files"
"RegisteredOrganization"="Change preferred organization in ~/.wine/system.reg"
"RegisteredOwner"="Change preferred owner in ~/.wine/system.reg"

I'm registered in the http://appdb.winehq.org and include LFS in database to vote. More votes, more chance to the devs of wine to make more compatible.:thumb:

tecwizrd
11th December 2005, 02:16
angry_angel

I did modify /etc/apt/sources.list by rewriting the whole thing with this sources.list from ubuntulinux.org unofficial guide.
------cut here-----
#deb cdrom:[Ubuntu 5.10 _Breezy Badger_ - Release i386 (20051012)]/ breezy main restricted

## Uncomment the following two lines to fetch updated software from the network
deb http://archive.ubuntu.com/ubuntu breezy main restricted
deb-src http://archive.ubuntu.com/ubuntu breezy main restricted

## Uncomment the following two lines to fetch major bug fix updates produced
## after the final release of the distribution.
deb http://archive.ubuntu.com/ubuntu breezy-updates main restricted
deb-src http://archive.ubuntu.com/ubuntu breezy-updates main restricted

## Uncomment the following two lines to add software from the 'universe'
## repository.
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb http://archive.ubuntu.com/ubuntu breezy universe
deb-src http://archive.ubuntu.com/ubuntu breezy universe

deb http://security.ubuntu.com/ubuntu breezy-security main restricted
deb-src http://security.ubuntu.com/ubuntu breezy-security main restricted

deb http://security.ubuntu.com/ubuntu breezy-security universe
deb-src http://security.ubuntu.com/ubuntu breezy-security universe

deb http://archive.ubuntu.com/ubuntu breezy multiverse
deb-src http://archive.ubuntu.com/ubuntu breezy multiverse

deb http://archive.ubuntu.com/ubuntu breezy-backports main restricted universe multiverse
------cut here-----

other than that I found wine in synaptic and told it to install. wine will not run video but sound worked.

I downloaded the cedega-engine-5.0.2-local-update.i386.cpkg as well as the cedega_5.0.1_i386.deb file from transgaming. I believe the wineX cvs would suffice though. I can use the gui to launch LFS but prefer the CL because of the feedback.

anyway thanks for the flowers

tecwizrd
11th December 2005, 02:39
Vagner

Thank you for the code. I threw my hands in the air with glee when I saw it. I have been looking for it since I began playing LFS. I bow down before you.

I will vote for this on the winehq board, but I do wish the devs would allow us a client. I pay the monthly fee for cedega because I want to play this game. I just as gladly would pay the devs the same fee for a naitive client.

tecwizrd
11th December 2005, 04:19
I now have LFS running and unlocked using cedega reg file. fps jumped from an average of 35-40 to avg 60 I see 100 or more at times.

Vagner
11th December 2005, 06:52
I will vote for this on the winehq board, but I do wish the devs would allow us a client. I pay the monthly fee for cedega because I want to play this game. I just as gladly would pay the devs the same fee for a naitive client.
Me too. :nod:

Hey Scawen. If you read this, take a look in the http://winehq.org/site/winelib about Winelib. Winelib is a development toolkit which allows you to compile your Windows applications on Unix.

crumbut
7th February 2006, 16:21
I am now trying and using Linux most of the time. I use PCLinuxOS www.pclinuxos.com << very easy to try and/or install. Download and burn the Live Cd for trying without installing anything.

Anyway, I have been trying wine and I too can only get sound to work. no GUI for me to navagate through (just a black window) :( When the game starts I see the LFS logo but when the car starts to drive I see the Forces mode of the car for a spit second then its all black.

if someone could please write a tutorial on what is needed to install LFS on a Linux box.. and what files need to be edited It would be greatly appreciated!

For those of you who have never tried Linux or have tried it in the past but was not impressed I encourage you to go do some investigating. Linux has made some great leaps recently in making life alot easier for us non code junkies :)

"Live CD" is a term you will see alot with Linux. It means you can load a CD in your CD tray and reboot your machine. (if your BIOS is set to read CD drive before HD) Upon reboot your machine will read the CD and load Linux into your memory (not your Hard Drive) and you can try Linux without putting anything on your PC. The more memory you have the better. If you decide to install things run alot faster from the hard drive. Linux is much more efficiant than Windows.

Linux is just a kernal.. but you will find alot of diffrent distributions of that kernal packaged with tons of free software. Like I said above I use PCLinuxOS. It is geared towards Windows users wanting to try or convert to Linux. It has great FREE support. Donations are welcome but not mandatory.

if you are intrested in trying things.. do a search for "Linux Live CD" and you will find plenty of ISOs to download. Only a few of them have a price.. most are Community developed and therfore are free of cost and copyright. You are actualy encouraged to copy/share/edit/and distribute!

Vagner
7th February 2006, 17:01
I'm a little noob but...
What version of wine?
Did you installed de drivers for nvidia/ati ?
What "glxinfo | grep render" results?

I try to help you as I can.

Jakg
7th February 2006, 20:04
can you please give me an iditos gide for "my friend" who doesnt know that much about Linx to run LFS On it?

the_angry_angel
7th February 2006, 20:59
can you please give me an iditos gide for "my friend" who doesnt know that much about Linx to run LFS On it?Unfortuantely due to the nature of Free / Libre and Open Source software, there are many alternatives for almost everything at every layer of the stack - including the kernel. This means that making a 1 stop DIY guide very, very difficult.

For example, if you use anything Redhat derived you use YUM to do your package management, if you're doing things on a Debian derivative box (like you should) it probably uses APT. If you like compiling things, which I very much doubt if you're asking for a guide, then its not going to be easy. It then comes down to the fact that we dont know if you're using Wine, WineX, or Cedega for the Windows API / DirectX emulation, what distro you're using, what repositaries you have enabled, what graphics card (and whether you have any inhibitions of running non-Free binary drivers).

@ Crumbut: Are you using a LiveCD to try out Linux to run LFS? I've never used PClinux but I'm prepared to stake my (rather poor) reputation that it doesnt allow you to upgrade various packages. In the past several versions of Wine either break, kill or maim LFS totally....

crumbut
8th February 2006, 02:40
@ Crumbut: Are you using a LiveCD to try out Linux to run LFS? I've never used PClinux but I'm prepared to stake my (rather poor) reputation that it doesnt allow you to upgrade various packages. In the past several versions of Wine either break, kill or maim LFS totally....

no, as I pointed out I have PCLinuxOS installed. I understand about the diffrent distributions using different things.. but most share the common elements that allow 3d games to run (I assume so anyway). There are a few that are free and available including Duke Nukem 3d and Scorched earth 3d. Both run on my machine in Linux.

Jakg
8th February 2006, 06:21
Unfortuantely due to the nature of Free / Libre and Open Source software, there are many alternatives for almost everything at every layer of the stack - including the kernel. This means that making a 1 stop DIY guide very, very difficult.

For example, if you use anything Redhat derived you use YUM to do your package management, if you're doing things on a Debian derivative box (like you should) it probably uses APT. If you like compiling things, which I very much doubt if you're asking for a guide, then its not going to be easy. It then comes down to the fact that we dont know if you're using Wine, WineX, or Cedega for the Windows API / DirectX emulation, what distro you're using, what repositaries you have enabled, what graphics card (and whether you have any inhibitions of running non-Free binary drivers).

@ Crumbut: Are you using a LiveCD to try out Linux to run LFS? I've never used PClinux but I'm prepared to stake my (rather poor) reputation that it doesnt allow you to upgrade various packages. In the past several versions of Wine either break, kill or maim LFS totally....using either Breezy or Suse 9.3 proffesional, although i would rather be using Breezy (i love the free cd's they send out!)

the_angry_angel
8th February 2006, 07:47
no, as I pointed out I have PCLinuxOS installed. I understand about the diffrent distributions using different things.. but most share the common elements that allow 3d games to run (I assume so anyway). There are a few that are free and available including Duke Nukem 3d and Scorched earth 3d. Both run on my machine in Linux.Sorry Crumbut, I totally missed out on the fact you have PCLinux installed - must be all these late night moshing sessions. I'll dump PCLinux on a Virtual Machine later today and have a quick play, see what its all about and if I can come up with any ideas. Out of interest, does GLXGears work (dumping "glxgears" into a term should be enough to invoke it if you have the package installed)?

Jakg, I'll do a little rough tutorial for Breezy today too, if I get the time. Its all down to how many customers interrupt me at the moment... :x

crumbut
8th February 2006, 19:16
I cannot find "GLXGears" anywhere. can you direct me to it. Thanks.

the_angry_angel
8th February 2006, 19:37
I'm afraid I think in debian terms, as thats what I've primarily run over the years. And by default its usually installed with the X window system and OpenGL.

I assume you're doing this from a terminal/console (if pclinux lets you do that?)? If so are you trying it all in lowercase? Does "glxinfo" throw anything back at you either?

@Jakg and others - I'm doing a little howto on installing LFS and Wine under ubuntu tonight (as soon as qemu starts playing).

avih
8th February 2006, 22:16
I'm afraid I think in debian terms, as thats what I've primarily run over the years. And by default its usually installed with the X window system and OpenGL.

I assume you're doing this from a terminal/console (if pclinux lets you do that?)? If so are you trying it all in lowercase? Does "glxinfo" throw anything back at you either?

@Jakg and others - I'm doing a little howto on installing LFS and Wine under ubuntu tonight (as soon as qemu starts playing).

are you going to run lfs on wine on ubuntu on [k]qemu?? will u get more than 1 fps? :) great combo though :) i've been running various live cds on kqemu (win32) and it's pretty fast, for a vm, nowhere near playable for 3d games though i'd say... and last time i've checked vmware was still quite faster. i know it's not oss, but it's fast :)

the_angry_angel
8th February 2006, 22:41
are you going to run lfs on wine on ubuntu on [k]qemu?? will u get more than 1 fps? :) great combo though :) i've been running various live cds on kqemu (win32) and it's pretty fast, for a vm, nowhere near playable for 3d games though i'd say... and last time i've checked vmware was still quite faster. i know it's not oss, but it's fast :)I use qEmu for a lot of my testing. I've not got a full working distro on my main desktop at the moment (thats what I get for playing with Arch Linux this month), and my headless debian server isnt exactly ideal for testing WINE and LFS ;)

I've had LFS running "ok-ish" under Ubuntu before, but I cant remember the exact steps I went about, so running a quick install of ubuntu on a VM should help me get the steps right for those who arent familiar with linux :) Yes VMware is faster, but its not Free and I dont happen to have a copy at the moment ;) That said I do have access to MS Virtual Server 2005 at work:) Which is very very fast :D But I wouldnt bother running anything serious X wise on it.

crumbut
8th February 2006, 23:07
I assume you're doing this from a terminal/console (if pclinux lets you do that?)? If so are you trying it all in lowercase? Does "glxinfo" throw anything back at you either?


Yes terminal.

name of display: :0.0
display: :0 screen: 0
direct rendering: Yes
server glx vendor string: NVIDIA Corporation
server glx version string: 1.3
server glx extensions:
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_SGIX_fbconfig,
GLX_SGIX_pbuffer, GLX_SGI_video_sync, GLX_SGI_swap_control,
GLX_ARB_multisample
client glx vendor string: NVIDIA Corporation
client glx version string: 1.3
client glx extensions:
GLX_ARB_get_proc_address, GLX_ARB_multisample, GLX_EXT_visual_info,
GLX_EXT_visual_rating, GLX_EXT_import_context, GLX_SGI_video_sync,
GLX_NV_swap_group, GLX_NV_video_out, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer,
GLX_SGI_swap_control, GLX_NV_float_buffer, GLX_ARB_fbconfig_float
GLX extensions:
GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_SGIX_fbconfig,
GLX_SGIX_pbuffer, GLX_SGI_video_sync, GLX_SGI_swap_control,
GLX_ARB_multisample, GLX_ARB_get_proc_address
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: GeForce4 Ti 4600/AGP/SSE/3DNOW!
OpenGL version string: 1.5.5 NVIDIA 81.78
OpenGL extensions:
GL_ARB_depth_texture, GL_ARB_imaging, GL_ARB_multisample,
GL_ARB_multitexture, GL_ARB_occlusion_query, GL_ARB_pixel_buffer_object,
GL_ARB_point_parameters, GL_ARB_point_sprite, GL_ARB_shadow,
GL_ARB_shader_objects, GL_ARB_shading_language_100,
GL_ARB_texture_border_clamp, GL_ARB_texture_compression,
GL_ARB_texture_cube_map, GL_ARB_texture_env_add,
GL_ARB_texture_env_combine, GL_ARB_texture_env_dot3,
GL_ARB_texture_mirrored_repeat, GL_ARB_texture_rectangle,
GL_ARB_transpose_matrix, GL_ARB_vertex_buffer_object,
GL_ARB_vertex_program, GL_ARB_vertex_shader, GL_ARB_window_pos,
GL_S3_s3tc, GL_EXT_texture_env_add, GL_EXT_abgr, GL_EXT_bgra,
GL_EXT_blend_color, GL_EXT_blend_minmax, GL_EXT_blend_subtract,
GL_EXT_compiled_vertex_array, GL_EXT_Cg_shader,
GL_EXT_draw_range_elements, GL_EXT_fog_coord, GL_EXT_multi_draw_arrays,
GL_EXT_packed_pixels, GL_EXT_paletted_texture, GL_EXT_pixel_buffer_object,
GL_EXT_point_parameters, GL_EXT_rescale_normal, GL_EXT_secondary_color,
GL_EXT_separate_specular_color, GL_EXT_shadow_funcs,
GL_EXT_shared_texture_palette, GL_EXT_stencil_wrap, GL_EXT_texture3D,
GL_EXT_texture_compression_s3tc, GL_EXT_texture_cube_map,
GL_EXT_texture_edge_clamp, GL_EXT_texture_env_combine,
GL_EXT_texture_env_dot3, GL_EXT_texture_filter_anisotropic,
GL_EXT_texture_lod, GL_EXT_texture_lod_bias, GL_EXT_texture_object,
GL_EXT_timer_query, GL_EXT_vertex_array, GL_HP_occlusion_test,
GL_IBM_rasterpos_clip, GL_IBM_texture_mirrored_repeat,
GL_KTX_buffer_region, GL_NV_blend_square, GL_NV_copy_depth_to_color,
GL_NV_depth_clamp, GL_NV_fence, GL_NV_fog_distance,
GL_NV_light_max_exponent, GL_NV_multisample_filter_hint,
GL_NV_occlusion_query, GL_NV_packed_depth_stencil, GL_NV_pixel_data_range,
GL_NV_point_sprite, GL_NV_register_combiners, GL_NV_register_combiners2,
GL_NV_texgen_reflection, GL_NV_texture_compression_vtc,
GL_NV_texture_env_combine4, GL_NV_texture_rectangle, GL_NV_texture_shader,
GL_NV_texture_shader2, GL_NV_texture_shader3, GL_NV_vertex_array_range,
GL_NV_vertex_array_range2, GL_NV_vertex_program, GL_NV_vertex_program1_1,
GL_SGIS_generate_mipmap, GL_SGIS_multitexture, GL_SGIS_texture_lod,
GL_SGIX_depth_texture, GL_SGIX_shadow, GL_SUN_slice_accum
glu version: 1.3
glu extensions:
GLU_EXT_nurbs_tessellator, GLU_EXT_object_space_tess

visual x bf lv rg d st colorbuffer ax dp st accumbuffer ms cav
id dep cl sp sz l ci b ro r g b a bf th cl r g b a ns b eat
----------------------------------------------------------------------
0x21 24 tc 0 32 0 r y . 8 8 8 0 4 24 8 16 16 16 16 0 0 None
0x22 24 dc 0 32 0 r y . 8 8 8 0 4 24 8 16 16 16 16 0 0 None
0x23 24 tc 0 32 0 r y . 8 8 8 8 4 24 8 16 16 16 16 0 0 None
0x24 24 tc 0 32 0 r . . 8 8 8 0 4 24 8 16 16 16 16 0 0 None
0x25 24 tc 0 32 0 r . . 8 8 8 8 4 24 8 16 16 16 16 0 0 None
0x26 24 tc 0 32 0 r y . 8 8 8 0 4 24 0 16 16 16 16 0 0 None
0x27 24 tc 0 32 0 r y . 8 8 8 8 4 24 0 16 16 16 16 0 0 None
0x28 24 tc 0 32 0 r . . 8 8 8 0 4 24 0 16 16 16 16 0 0 None
0x29 24 tc 0 32 0 r . . 8 8 8 8 4 24 0 16 16 16 16 0 0 None
0x2a 24 tc 0 32 0 r y . 8 8 8 0 4 16 0 16 16 16 16 0 0 None
0x2b 24 tc 0 32 0 r y . 8 8 8 8 4 16 0 16 16 16 16 0 0 None
0x2c 24 tc 0 32 0 r . . 8 8 8 0 4 16 0 16 16 16 16 0 0 None
0x2d 24 tc 0 32 0 r . . 8 8 8 8 4 16 0 16 16 16 16 0 0 None
0x2e 24 tc 0 32 0 r y . 8 8 8 0 4 0 0 16 16 16 16 0 0 None
0x2f 24 tc 0 32 0 r y . 8 8 8 8 4 0 0 16 16 16 16 0 0 None
0x30 24 tc 0 32 0 r . . 8 8 8 0 4 0 0 16 16 16 16 0 0 None
0x31 24 tc 0 32 0 r . . 8 8 8 8 4 0 0 16 16 16 16 0 0 None
0x32 24 tc 0 32 0 r y . 8 8 8 0 4 24 0 16 16 16 16 2 1 Ncon
0x33 24 tc 0 32 0 r y . 8 8 8 8 4 24 0 16 16 16 16 2 1 Ncon
0x34 24 tc 0 32 0 r y . 8 8 8 0 4 24 0 16 16 16 16 4 1 Ncon
0x35 24 tc 0 32 0 r y . 8 8 8 8 4 24 0 16 16 16 16 4 1 Ncon
0x36 24 tc 0 32 0 r . . 8 8 8 0 4 24 0 16 16 16 16 2 1 Ncon
0x37 24 tc 0 32 0 r . . 8 8 8 8 4 24 0 16 16 16 16 2 1 Ncon
0x38 24 tc 0 32 0 r . . 8 8 8 0 4 24 0 16 16 16 16 4 1 Ncon
0x39 24 tc 0 32 0 r . . 8 8 8 8 4 24 0 16 16 16 16 4 1 Ncon
0x3a 24 tc 0 32 0 r y . 8 8 8 0 4 24 8 16 16 16 16 2 1 Ncon
0x3b 24 tc 0 32 0 r y . 8 8 8 8 4 24 8 16 16 16 16 2 1 Ncon
0x3c 24 tc 0 32 0 r y . 8 8 8 0 4 24 8 16 16 16 16 4 1 Ncon
0x3d 24 tc 0 32 0 r y . 8 8 8 8 4 24 8 16 16 16 16 4 1 Ncon
0x3e 24 tc 0 32 0 r . . 8 8 8 0 4 24 8 16 16 16 16 2 1 Ncon
0x3f 24 tc 0 32 0 r . . 8 8 8 8 4 24 8 16 16 16 16 2 1 Ncon
0x40 24 tc 0 32 0 r . . 8 8 8 0 4 24 8 16 16 16 16 4 1 Ncon
0x41 24 tc 0 32 0 r . . 8 8 8 8 4 24 8 16 16 16 16 4 1 Ncon
0x42 24 tc 0 32 0 r y . 8 8 8 0 4 16 0 16 16 16 16 2 1 Ncon
0x43 24 tc 0 32 0 r y . 8 8 8 8 4 16 0 16 16 16 16 2 1 Ncon
0x44 24 tc 0 32 0 r y . 8 8 8 0 4 16 0 16 16 16 16 4 1 Ncon
0x45 24 tc 0 32 0 r y . 8 8 8 8 4 16 0 16 16 16 16 4 1 Ncon
0x46 24 tc 0 32 0 r . . 8 8 8 0 4 16 0 16 16 16 16 2 1 Ncon
0x47 24 tc 0 32 0 r . . 8 8 8 8 4 16 0 16 16 16 16 2 1 Ncon
0x48 24 tc 0 32 0 r . . 8 8 8 0 4 16 0 16 16 16 16 4 1 Ncon
0x49 24 tc 0 32 0 r . . 8 8 8 8 4 16 0 16 16 16 16 4 1 Ncon
0x4a 24 dc 0 32 0 r y . 8 8 8 8 4 24 8 16 16 16 16 0 0 None
0x4b 24 dc 0 32 0 r . . 8 8 8 0 4 24 8 16 16 16 16 0 0 None
0x4c 24 dc 0 32 0 r . . 8 8 8 8 4 24 8 16 16 16 16 0 0 None
0x4d 24 dc 0 32 0 r y . 8 8 8 0 4 24 0 16 16 16 16 0 0 None
0x4e 24 dc 0 32 0 r y . 8 8 8 8 4 24 0 16 16 16 16 0 0 None
0x4f 24 dc 0 32 0 r . . 8 8 8 0 4 24 0 16 16 16 16 0 0 None
0x50 24 dc 0 32 0 r . . 8 8 8 8 4 24 0 16 16 16 16 0 0 None
0x51 24 dc 0 32 0 r y . 8 8 8 0 4 16 0 16 16 16 16 0 0 None
0x52 24 dc 0 32 0 r y . 8 8 8 8 4 16 0 16 16 16 16 0 0 None
0x53 24 dc 0 32 0 r . . 8 8 8 0 4 16 0 16 16 16 16 0 0 None
0x54 24 dc 0 32 0 r . . 8 8 8 8 4 16 0 16 16 16 16 0 0 None
0x55 24 dc 0 32 0 r y . 8 8 8 0 4 0 0 16 16 16 16 0 0 None
0x56 24 dc 0 32 0 r y . 8 8 8 8 4 0 0 16 16 16 16 0 0 None
0x57 24 dc 0 32 0 r . . 8 8 8 0 4 0 0 16 16 16 16 0 0 None
0x58 24 dc 0 32 0 r . . 8 8 8 8 4 0 0 16 16 16 16 0 0 None
0x59 24 dc 0 32 0 r y . 8 8 8 0 4 24 0 16 16 16 16 2 1 Ncon
0x5a 24 dc 0 32 0 r y . 8 8 8 8 4 24 0 16 16 16 16 2 1 Ncon
0x5b 24 dc 0 32 0 r y . 8 8 8 0 4 24 0 16 16 16 16 4 1 Ncon
0x5c 24 dc 0 32 0 r y . 8 8 8 8 4 24 0 16 16 16 16 4 1 Ncon
0x5d 24 dc 0 32 0 r . . 8 8 8 0 4 24 0 16 16 16 16 2 1 Ncon
0x5e 24 dc 0 32 0 r . . 8 8 8 8 4 24 0 16 16 16 16 2 1 Ncon
0x5f 24 dc 0 32 0 r . . 8 8 8 0 4 24 0 16 16 16 16 4 1 Ncon
0x60 24 dc 0 32 0 r . . 8 8 8 8 4 24 0 16 16 16 16 4 1 Ncon
0x61 24 dc 0 32 0 r y . 8 8 8 0 4 24 8 16 16 16 16 2 1 Ncon
0x62 24 dc 0 32 0 r y . 8 8 8 8 4 24 8 16 16 16 16 2 1 Ncon
0x63 24 dc 0 32 0 r y . 8 8 8 0 4 24 8 16 16 16 16 4 1 Ncon
0x64 24 dc 0 32 0 r y . 8 8 8 8 4 24 8 16 16 16 16 4 1 Ncon
0x65 24 dc 0 32 0 r . . 8 8 8 0 4 24 8 16 16 16 16 2 1 Ncon
0x66 24 dc 0 32 0 r . . 8 8 8 8 4 24 8 16 16 16 16 2 1 Ncon
0x67 24 dc 0 32 0 r . . 8 8 8 0 4 24 8 16 16 16 16 4 1 Ncon
0x68 24 dc 0 32 0 r . . 8 8 8 8 4 24 8 16 16 16 16 4 1 Ncon
0x69 24 dc 0 32 0 r y . 8 8 8 0 4 16 0 16 16 16 16 2 1 Ncon
0x6a 24 dc 0 32 0 r y . 8 8 8 8 4 16 0 16 16 16 16 2 1 Ncon
0x6b 24 dc 0 32 0 r y . 8 8 8 0 4 16 0 16 16 16 16 4 1 Ncon
0x6c 24 dc 0 32 0 r y . 8 8 8 8 4 16 0 16 16 16 16 4 1 Ncon
0x6d 24 dc 0 32 0 r . . 8 8 8 0 4 16 0 16 16 16 16 2 1 Ncon
0x6e 24 dc 0 32 0 r . . 8 8 8 8 4 16 0 16 16 16 16 2 1 Ncon
0x6f 24 dc 0 32 0 r . . 8 8 8 0 4 16 0 16 16 16 16 4 1 Ncon
0x70 24 dc 0 32 0 r . . 8 8 8 8 4 16 0 16 16 16 16 4 1 Ncon
[crumbut@localhost ~]$

make any sense? LOL

crumbut
8th February 2006, 23:10
and heres what happens on glxgears (now it works)

the_angry_angel
8th February 2006, 23:19
Thats good, at least you have everything you should need, including the correct drivers by the look of it. What version of WINE are you using? I presume you installed it via Synaptic and didnt install an RPM manually (which it seems PClinux uses since its based on Mandriva...urgh)? You might want to try upgrading if possible. Now this is where things get tricky as I have only about 2 hours experience with RPM based systems. You could *try* this (http://sourceforge.net/project/showfiles.php?group_id=6241&package_id=80066) RPM designed for Mandriva, but I cant seem to find any reasonable amount of docs for PCLinux so I really couldnt tell you how well it would work, if at all :(

Edit: Hows glxgears? Nice a high FPS's hopefully :)

Vain
9th February 2006, 10:29
Does anyone have an idea on how well force-feedback works on wine?
And in linux in general. I did try to make get a gameport-joystick working on linux for about 10 minutes, but then I figured I wouldn't use it anyway and stopped any work on this topic.
So, does anyone have experience with FF-hardware under linux and especially wine?

Vain

the_angry_angel
9th February 2006, 15:53
Ok guys, here my steps to running on Ubuntu Breezy:
Open a terminal.
Type "sudo pico /etc/apt/sources.list" and press enter (Attached as a ZIP file, if you wish to just copy/paste up until the saving).
Remove the CD deb archive at the top, and uncomment backports and multiverse repositories.
Add the WineHQ repositories:
deb http://wine.sourceforge.net/apt/ binary/
deb-src http://wine.sourceforge.net/apt/ source/
Save (using CNTRL+O).
Type "sudo apt-get update" and press enter. Let it do its stuff. It should finish without errors.
Type "sudo apt-get upgrade" and press enter. Now depending on your versions of programs and last time you do an update, it may take sometime to do this.
If you had to install a new Kernel, reboot now. If you're unsure, reboot.
Type "sudo apt-get install wine" and press enter. This should download WINE from the WineHQ repositories we added earlier (i.e. from wine.sourceforge.net). This could take some time as sf is slow. Go and make yourself a cup of tea.
Download and unzip LFS to your home directory. ("wget http://www.liveforspeed.net/file_s2.php?id=7" and press enter, followed by "unzip LFS_S2_ALPHA_Q.zip" and press enter.
Type "wine LFS.exe". For the first time this could take a whilst as it needs to create your wine registry.
LFS might startup with a black screen. Pressing escape should clear it.


A few things to note;

I'm assuming a certain level of Linux knowledge. If you find that when you type "sudo command here" and its asking you for a password, I expect you to understand that its a password of a user with sudo rights - which is the default user setup during the Ubuntu installer.
I did this with a clean install, of Ubuntu RC2, as its the only iso I had around at work. I dont expect you to do the same, but I do expect a reasonably clean copy of ubuntu, which is upto date.
I've tested this on 2 Virtual Machines to the point of loading and very briefly testing LFS. Both work using the latest version of WINE (0.9.7).
I didnt try to unlock. I'll give that ago when I've got a reasonable copy of Linux running at home on my desktop.
This isnt a way to get LFS running at full speed, nor is it how to get your favourite controllers working. Thats trickier. I'll post how I got mine working later, if I do.
If you find that LFS is slow, then try running "glxgears" in a terminal. If that runs poorly also then you need the binary or Free drivers for Linux, for your gfx card. Either download from ATi/nVidia or download from your favourite package manager. Bear in mind that the binary drivers will give better performance, but they are non-Free (http://www.gnu.org/philosophy/categories.html).
I think in debian terms, particularly in terminal / headless / non-X-server terms, which is why I didnt use synaptic.
This isnt the be-all and end-all of things, this is how I got LFS "working". If you know a better way, want to correct me, tell me I'm a total twat, want more help, or whatever, let us know.
I'll attach the complete sources.list if anyone wants a pure copy/paste tutorial later. EDIT: sources.list is attached as a zip.
Why didnt I use APT pinning to make sure it comes from the WineHQ repositories? Because its should always be more upto date from WineHQ.


If enough people find this useful, I'll dump a more detailed copy on the LFSWiki, which might cover installation from a dual boot point of view, and possibly how to setup your controllers.

avih
9th February 2006, 17:09
cheers for the effort mate :)

I think i'll try it on qemu just for the fun of it. but do u get 3d acceleration on a vm? (qemu/vmware)?

Barroso
9th February 2006, 17:37
i installed ubuntu the other day and yep lfs works fine with latest wine 0.9.7 i think, installed it off sinaptic, and it works fine, if you dont forget to sudo wine, my question is if there is any chance my msff wheel will work in ubuntu? i know the FF is pretty much out of the question, but recognizing the device and making it available would be enuff for me :D

Vain
9th February 2006, 17:48
Wine added basic FF-support some 6 months back. So there is hope.

Vain

Barroso
9th February 2006, 18:08
yeah but i have a microsoft wheel so i'd be pretty lucky if it works even without the FF :P anyway i dont understand much about linux and its ways but google hasnt helped, neither do the ubuntu forums.

mr_spoon
9th February 2006, 19:15
That wheel should work under Linux; common devices get drivers (even if they are made by MS) and that wheel must be pretty common. This says it does have drivers:
http://atrey.karlin.mff.cuni.cz/~vojtech/input/hardware.html

And this suggests it should work also:
http://www.linuxquestions.org/hcl/showproduct.php/product/1138/sort/2/cat/443/page/1

I have yet to get LFS to work on newer veresions of WINE, but I did play LFS on the pre-beta wine versions (without force-feedback), but I may try again from source as I was using Slackware .tgz packages for the betas thus far. I also have toasted my Win98se system after upgrading as it can't handle my new hardware, so may give Wine a bash, otherwise I may 'need' to buy WinXP. :(

However unlikely, I still wish the devs would make a Linux client :thumbsup:
I asked devs from netkar pro and they aren't going to do it.

Vain
9th February 2006, 19:18
LFS won't get linux-available anytime soon too. Beside wine there is no DX-supprt for linux, and the devs won't rewrite their gfx-engine for openGL with DX10 coming.

Vain

Barroso
9th February 2006, 19:23
yes the first link ive been there, it also mention it works with kernel 2.4 when im using 2.6, another thing is how to install and configure it proper as im not that keen in linux.im surprised ive got it to work :D

Vagner
9th February 2006, 19:25
Wine added basic FF-support some 6 months back. So there is hope. I think the only FF suported by kernel is I-Force compatible.

yeah but i have a microsoft wheel so i'd be pretty lucky if it works even without the FF
Me too. But if your distro do not link /dev/js0 automaticaly, you need put yourself:

enter a terminal in superuser and type:
ln -s /dev/input/js0 /dev/js0
In my Gentoo I need this. Now it's work, but without FF:shrug:

Barroso
9th February 2006, 19:57
i did so but nothing changed, lfs doesnt see the wheel and i have no way of checking if its working, maybe im missing some modules(like if i would know what to do with them :P) i forgot to mention my msff is gameport, i tried to load gameport and sidewinder modules but i see no changes, im such a noob with this i wouldnt see it until lfs does hehe.

Vagner
9th February 2006, 20:16
I think: If LFS dont see, then Linux not see too. I'm right?
You tried "modprobe joydev" or joystick and then "modprobe sidewinder" or joy-sidewinder or analog?
I had a joystick gameport too, it never worked on Linux. By the way, it was a old old old Thrustmaster Formula T2.

Barroso
9th February 2006, 20:28
yes i have no js in /dev/input, i installed joystick from sinaptic, rebooted but still nothing, also those 2 modprobes didnt work, they say module not found :(
also tried modprobe gameport, sidewinder, and they appear in lsmod but they dont work, i believe i first must have a js in /dev/input but cant seem to do so.

Vagner
9th February 2006, 20:46
Yes the system creates /dev/input/js0 and/or /dev/js0 when found a joystick.
I dont know where Ubuntu store the modules, may be in /lib/modules/"kernel version"/kernel/input/ ... or something else. Or you can try run "locate joydev".

Barroso
9th February 2006, 20:54
yeah locate fine in /lib/modules/2.6.12-10-686/kernel/drivers/input/joydev.ko
now i really dunno what to do more ive loaded as much modules as i could that have anything to do with joysticks;joydev,gameport,ns558,sidewinder,analog.
when i installed joystick it asked me when to detect devices and i put in at boot but no go. im out of ideas and searching the web for this kind of info isnt easy, i guess itll never work :(

Vagner
9th February 2006, 21:02
I told you. MS or any gameport joystick......SUCKs
Try www.ubuntu.com/community/forums (http://www.ubuntu.com/community/forums)

I hope you find some help

the_angry_angel
9th February 2006, 21:13
but do u get 3d acceleration on a vm? (qemu/vmware)?Surprisingly I got a reasonable amount. Enough to get into a track. I did get a lot more acceleration off the MS Virtual Server (2005 Enterprise edition, if anyones interested). Although X does refuse to run with a depth greater than 16.

I think the only FF suported by kernel is I-Force compatible.Last I heard was that even i-Force devices arent really being supported as the driver author had moved onto other projects :(

Vain
9th February 2006, 21:51
Small note:
Before gameport-joysticks are put into the dev.tree the module of the soundcard has to be aware that it should do so. At least this was so for my soundcard (ens-1371). You should try to get your hands on a tutorial, depending on your distribution.

Vain

Vagner
10th February 2006, 00:16
Last I heard was that even i-Force devices arent really being supported as the driver author had moved onto other projects :(

:wtf2: S*** :x:banghead::arge:

I hope someone take ahead this project.:worried:

Barroso
10th February 2006, 02:26
it works :D thx vain for that tip, some googling found me the answer, i had to edit asound.state and paste some code to activate gameport.
well it runs alot better than i hoped to, trick is to enable simple track :thumb:
too bad that the wheel has some sort of input lag and of course no FF but i had it running from around 30 to 40 fps in the cockpit and 40-100 in the bumper cam, mirrors working fine, multiplayer also no prob, only noticeable thing is the blueish textures in some places :scratchch

JTbo
8th February 2007, 23:15
This thread will do fine, is not very old either ;)

So I have spend now good day to get LFS running under my Linux box and there is no change of success it seems. All I get is stupid error message.

I have installed Two different Wine versions (0.9.9 & 0.9.30) quite few times, doing all installation procedures as instructed, but that bloody thing just says that there is problem writing to data folder as seen in attachment.

Now I did change rights so that anyone can write to LFS data folder, but no, same story keeps going. LFS versions from 0.1M to 0.5V were tested and result is same.

This is running Ubuntu based Kubuntu distribution. So has anyone got this kind of error message?

the_angry_angel
8th February 2007, 23:25
Are you absolutely 100% sure that the entire data directory, all the sub directories, etc are writeable?

Since its only local this should suffice (recursively set the read and write permissions for the entire data directory):
chmod -R a+rw ./data

Barroso
8th February 2007, 23:30
that one is easy :D just copy your lfs folder to your home folder and run it from there, you probably have it in a ntfs partition or something, ive also seen that when you try to run it when your not in lfs folder, in sum few words:
cd to the right dir, something like: cd ~/lfs
then: wine lfs.exe
if you try to double-click it in graphic mode konqueror/nautilus i think that error appears, so use a terminal it will also spit out alot of info if it errors out, later on if you get it to work you can make a little bash script that cd's to the right directory then executes wine lfs.exe, like:
#!/bin/bash
cd /path/to/lfs/
wine lfs.exe

JTbo
8th February 2007, 23:45
Are you absolutely 100% sure that the entire data directory, all the sub directories, etc are writeable?

Since its only local this should suffice (recursively set the read and write permissions for the entire data directory):
chmod -R a+rw ./data

Yes, I'm very sure, it has been set right as I did make many double checks :P


LFS is put into /home/myusername/.wine/drive_c/lfs/ I have run it from dir, with root permissions and without, from other dir, from graphical mode double clicking and I even made shortcut that should run it, but result are similar to hitting head to brick wall in different angles, very frustrating, lol.

Patch V is .exe package, this worked fine and installed LFS files to where I wanted to very well. So I think Wine itself works.

Edit: Interesting, now I had machine turned off for 30mins and as I tested now it surely started, however not running very well and I'm not getting anything else than blue background after first Live for speed text, maybe some drivers then, but I guess that have to wait for tomorrow. Soon I pull plug from wall if that won't proceed from that state :D


Day2 then:
I'm not getting d3d acceleration to work as it cries that XFree86-DRI extension is missing, searching for 5 hours and nothing has helped to get it to work, now is Dapper, if this would be bleeding edge version sure I would just put composite to false but that damn trick is not working for this version and every damn thread ends up with such suggestion.
I just hate these issues with this OS, even I have application where I should be able to just choose my desired option it just does not work without any reason that would have anything to do with common sense.

Best advice I found was to remove and install those damn drivers so many times that it starts to work, 34223434 times is perhaps enough.

Day2 turning to evening:
Yes, I got rid of that error message by installing new drivers from ati.com and got into next error, isn't it great?

Error is this kind, there is even more text to it, but there is really a lot so I don't like to put it all here:

wine: Unhandled page fault on read access to 0x00000000 at address (nil) (thread 0009), starting debugger...
Unhandled exception: page fault on read access to 0x00000000 in 32-bit code (0x00000000).
Register dump:
CS:0073 SS:007b DS:007b ES:007b FS:0033 GS:003b
EIP:00000000 ESP:0034f304 EBP:0034f380 EFLAGS:00210206( - 00 - RIP1)
EAX:001666a0 EBX:7e8c509c ECX:7e8b20a0 EDX:00000028
ESI:00000024 EDI:00000000

JTbo
9th February 2007, 17:00
Just quick question, how wine should perform with 1300Mhz duron?
It is now so that if I install some game demo it takes something between 60-90 seconds when I click next button to that it regonizes click, also installing 12MB demo seem to take rather long time, but LFS patch V did install very quickly so could this indicate that I need to reinstall Wine once more?

Problem with LFS crashing still unchanged. Live for speed text does come and go very slowly at start (like there would be less than 1fps) too and it takes quite long time to load to point where it crashes.
Should I except more performance from Radeon 9550 and Duron 1,3Ghz with Wine?

JTbo
12th February 2007, 23:23
Can anyone give even educated guess about that LFS crashing issue, please? :shy:

Barroso
12th February 2007, 23:47
im sorry to hear that its being so hard to get it on, the bigger problem i think is your ati card, im no expert but people always say ati has crappy linux drivers, personaly i have a nvidia card and wine worked pretty well, just install the deb and run it from the command line, getting the wheel to work was another story :P
make sure gl acelleration is working proper, use glxinfo to see if direct rendering is on or if its mesa thats working the opengl, i assume your using fglrx instead of radeon driver?

JTbo
13th February 2007, 00:18
It seems to be that DRI was not really on even it looked to be so. Also noticed that I get few errors when installing ati drivers:

loki_setup: Can't create //usr/X11R6/lib/modules/dri/atiogl_a_dri.so: File exists
loki_setup: Can't create //usr/X11R6/lib/modules/dri/fglrx_dri.so: File exists


I seem to get that even I switched back to standard Ati driver, maybe I try Vesa driver next, if it then unloads those drivers and installation can be completed.

fglrxinfo does display everything being working ok, but glxinfo says direct rendering: no, after some playing around I noticed from install error log that fglrx kernel module is not compatible with this kernel version. Those earlier error messages come because installer tries to copy files again because kernel module installation fails.

So much easier it would be with Nvidia card. Maybe I try then some open source drivers I heard rumors about.

Another day:
Oh boy, now it runs, I did got envy from http://www.albertomilone.com/ and then removed old drivers using removal function of that, then tried to install new drivers from ati.com without X running and it did work really well, now I have 3d acceleration available.

Also I did install g++ 4.0 and 3.4 versions earlier, which may have something to do with it I did read.

Lfs runs 15-25 fps with Radeon 9550 and Duron 1300 when alone on track, I guess that is quite right?

Barroso
14th February 2007, 00:49
yea i get a bit less fps on linux then on windows, and you might wanna turn off shadows and other stuff like mirrors to get fps up.

Vagner
15th November 2007, 17:43
You want more fps in linux? Try this:

With sudo account, go to /usr/share/xsessions and create a file named lfs.desktop. Put this contents and save:

[Desktop Entry]
Encoding=UTF-8
Type=XSession
Exec=/usr/bin/lfs
TryExec=/usr/bin/lfs
Name=Live For Speed S2
Comment=Launch Live For Speed S2 0.5X10
Go to /usr/bin and create a file named lfs. Put this contents and save:

#!/bin/bash
#
# Launch Live For Speed
#
cd ~/.wine/drive_c/LFS_S2/ # <--- path to your LFS
wine LFS.exe
Change permissions of lfs:

chmod +x lfs
Then Logout of KDE session. login in a new session named Live for Speed S2 in the login screen.

Post what you think:scratchch

PS: Only tested in KDE / kdm. I don't know if this work on Gnome / gdm, maybe yes (Gnome 2.20).