Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - onerobot

Pages: [1]
1
DF General Discussion / I made a Wine script
« on: August 23, 2007, 06:28:00 pm »
... to make things a bit easier for us Linux crazies. In short, it fixes a lot of things that had me booting in to Windows to play, such as stuttering sound, having to run it via terminal and the weirdness that occurs when running the fullscreen mode with Compiz Fusion. The script is pretty well commented, so take a look if you want all the gory details.

To use it, grab the script from
here, download it to your home directory and install it with the command "chmod 755 winefix && sudo cp winefix /usr/bin/" - minus the quotes. Use just like you would wine, ie winefix drive_c/Program Files/dwarfort.exe or winefix "C:\Program Files\dwarfort.exe". If using Gnome you can also just right click on an executable, choose "Properties" and add the script to the list of programs allowed to run it. It will work exactly the same.

This script also lets you use regular links with wine, so launch scripts like the one in the DF wiki are no longer required. It also works with any Wine app - I posted this here because DF was the reason I made this script in the first place.

Limitations - the script doesn't allow passing command line parameters, and the fullscreen Compiz workaround only works if using the gconf backend. This is the first shell script I've written, so if anyone can figure out how to fix these working  - the command line part in particular - I'd be grateful.

edit: this has nothing to do with the above, but what kind of performance are people getting using Wine with DF? Personally, for the intro movie I get about ~60fps using Windows (without vsync) and ~55 using Wine.

[ August 23, 2007: Message edited by: onerobot ]


2
DF General Discussion / Re: Tales from the Linux
« on: August 20, 2006, 10:58:00 pm »
quote:
I'm sure that the issue is the use of a /-based Unix file system, versus a \-based win32 system.
It is, but can be avoided by running wine through a terminal.

Navigate to the folder the game is in and use:

code:
WINEDEBUG="-all" wine dwarfort.exe


to run the thing, or create an empty document and enter:
code:
#!/bin/sh
cd /path/to/.wine/c/dwafort
WINEDEBUG="-all" wine dwarfort.exe


then CHMOD it and start it that way.

Hope that works!


Pages: [1]