The Dink Network

Dink Smallwood works well on Linux with wine

January 15th 2006, 11:13 PM
anon.gif
HoKi
Ghost They/Them
 
Yesterday I wondered if Dink could save the world on a Linux workstation too. Indeed, he can, but its a little bit of a quest itself as there are no linux binaries yet. I took the windows binaries (1.08 rc4) and started them with wine (a free emulator for M$ windos). The installation program started quickly and finished without any errors. DFArc started well, too, and had no problem launching dink.exe - and then I got a white screen, as dink.exe had some problems with the colour and the mouse, as it seemed. And I had problems, too, because dink.exe had changed the desktop resolution, and i wasn't able to get rid of my white screen. I had to shut down my xserver from a console. I decided to use knoppix, as it runs from CD and makes no problems, if I had to stop the computer rudely.

ok, I'll make it quick: I got it, it's just a question of the exactly fitting flags. You have to start wine with this line:

"DESKTOP" = "640x480"

(or: "DESKTOP" = "800x600")
or: "DESKTOP" = "1024x768")
... size doesn't matter
in the file "config" in your /home/"enter-here-your-username"/.wine directory. And you have to give dink.exe the flag for truecolor and fullscreen (NOT windowed). This results in dink running in a 640*480 window, which is managed by wine. If you want, you can change the resolution of xour desktop. I suggest 800*600, but you can also use 640*480. In this case, you should arrange the dink-window exactly, though you will not be able to see the hole window (because of the window border).

If you have several programs which use wine, you could change your config, if the "DESKTOP" option bothers while using the other programs. Look in the config file which comes with wine, or create one with wineconfig and change the apps-section at the end, so it fits your needings.

Oh, there should also be a way to play dink in really fullscreen, but I didn't try it myself: you can start a second XServer without a Windowmanager and force wine to use this XServer (there's an option in config, too). Obviously there shouldn't be any borders around dink, as there would be no windowmanager to create them. Maybe this would be a fine choice on very old computers: booting in runlevel 2, starting only the xserver, no KDE or Gnome, which slow down old computers a lot. I remember the command should be xstart (or startx ??). Maybe Dink runs even faster than on an original window system, especially if you have only few RAM.

Oh, the speed of "LinDink" seems to be quite good, anyway. I didn't play much, but I noticed no difference in speed, when display resolution is set to 800*600 or 640*480. Maybe in heavy battles, I dunno. The Wave-Sounds worked well, the MIDIs should too, but I can't test this myself as on my Linux System MIDI doesn't work. I had never noticed this before, and it took me quite a time to understand that the problem is nor dink- neither wine-related. MIDI works well when booting Windows 2000, but not on Linux. I tested also with Knoppix 4.0., but it doesn't work there too. Doesn't bother me very much, I don't need MIDI. By the way, will there sometime be a support for ogg vorbis or mp3 music?

These was the system I tested on:
PentiumII 450 MHz, Debian GNU/Linux Sarge 3.1 (last System-Update in early 2005), wine 20040716, kde 3.2, kernel 2.6.
I tested also with the actual Version 4.0 (released end of 2005) of Knoppix. Works fine, too. Wine was even better, as I was able to xkill it when using wrong flags for dink.

If there is need for it, I could write a tutorial for playing Dink on linux. I like this old-fashioned, outdated Dink Smallwood very much. I think it has a certain charme, it's quite funny, and there exist really outstanding DMODs, which are even better than the original game. I'd like to contribute a little bit.
January 15th 2006, 11:21 PM
peasantm.gif
HoKi
Peasant He/Him
 
Oh, my Internet-connection broke down while writing this long post. I had to post again, and then I wasn't logged in. Now I should be.
January 17th 2006, 07:09 PM
peasantm.gif
HoKi
Peasant He/Him
 
Hello out there,

I tested a little bit more, as there was response in other topics. I think it would be better to keep the information concerning Dink 1.0x on Linux (powered by wine) concentrated in this thread. Therefor im posting my responses only here. Feel free to ask questions or to correct me if there are errors or mistakes. I learned English at school, but thats quite some years ago. Ok, now the information, written as an easy-to-follow-howto:

First of all boot your sytem and log in as normal user. You don't have to be root. Start your preferred windows-manager, i.e. KDE or Gnome and download Dink Smallwood, if not yet done. I suggest highly Version 1.08 (rc4 or higher), because it seems to be much better than 1.07 and includes DFArc2 to launch DMODs. Feel free to download the full version here.

Ok, let's say you downloaded the full install to a directory named /downloads in your home directory. Now open a terminal-emulation, i.e. xterm or konsole. Insert the following line:

wine $HOME"/downloads/dinksmallwood108_rc4.exe"

Wine should open now its well-know message window, saying that it is attempting to process this file. There will also appear some messages in your terminal. After some (several) seconds the normal installation process will start. It is exactly the same procedure as on "your-other-operation-system", and you should follow it accepting all given suggestions. Don't forget to notice where you installed Dink. Normaly this would be
c:\program files\Dink Smallwood\ but this depends on the language of your system.

Ok, did everything work? If not, don't forget to check your spelling (case-sensitive! spaces must be in braces " " and such things) before you blame me

Once you have properly installed Dink you can proceed with modifying the file config in your wine-folder. Normally this folder is named .wine and is located in your home-directory. The point at the beginning of the folder's name makes it invisible, so you shouldn't see it within konqueror or whatever filebrowser you prefer. Hmmm, what shall we do with such an invisible folder? You could change your browser's preferences to see it or simply use the terminal. I prefer the second way, because it's easier to explain
Ok, you didn't shut your terminal, so it's already open. Insert the following lines at the prompt:

cd $HOME/.wine
ls
vi config


Instead of vi in the last line you can use another editor, i.e. kwrite, emacs or whatever you prefer. In case of kwrite the last line would change to
kwrite config
and the file config should be opened in a new window. Anyway, insert the following lines:

[AppDefaults\\dink.exe\\x11drv]
"Desktop" = "640x480"

[AppDefaults\\DFArc.exe\\x11drv]
"Desktop" = "640x480"


Make sure these lines appear in the correct section (near the end of the file), which begins with the following lines:

#########################################
# Application dependent sections follow #
#########################################


an ends with this:

# [/wineconf]

Have it? Good, save the file and return to your open terminal. Remember we made an ls? Have a look at the list your terminal gave back. There should be a folder named fake_windows or drive_c or skel(depends on your system). This is the location where wine stores its user-dependend data, especially our newly installed Dink Smallwood directory.

Let's say this folder is named drive_c on your system. Check this by inserting

cd drive_c
ls


at the prompt of your terminal. You will see a windos-like directory-structure. Follow it until you are in the main Dink-directory. Normally you should get there by inserting the following line sat the prompt:

cd "program files/Dink Smallwood"
ls


Allright until now? No? You got a message?
no such file or directory
No problem! You did write down the location where you installed Dink, didn't you? You didn't?!? Oh man, I told you to do so! Why the hack am I writing until my fingers hurt and you don't even read it?

Ok, you found the directory. You are right when ls gave back a list which contains
dink.exe
DFArc.exe

and some other files. Make sure you haven't gone to deep in the subdirectory Dink whith the story folder for the main game.

Ladies and Gentleman, please fasten your seatbelts, we are ready for take-off...

There are now two possibilities to launch Dink. First way: you can launch it directly by typing:

wine dink.exe -truecolor

This works well as long as you are in the Dink Smallwood directory. Everywhere else you type in:

wine $HOME"/.wine/drive_c/program files/Dink Smallwood/dink.exe" -truecolor

or whereever you installed Dink to. Write it down or make a link on your desktop or write a script or remember it or or or ... hey man, you are free!

Second way is to launch DFArc.exe and to open Dink from within that. That's easier if you want to play different DMODs, not only the main game. Type in:

wine DFArc.exe

Choose the DMOD you want to play, check Truecolor and uncheck Windowed. Click on play, and dink.exe should open with the desired DMOD.

Ok, folks, that's it. Hope you enjoyed the journey. Now it's on you to try it out and play a little bit. And for me it's time to go to bed (i'm living in Europe, it's deepest night here).

What? Didn't work?! Before you post a flaming reply and curse the earth where my feet are walking on please please wait a minute. Tomorrow I'll answer all the lots of questions you posted (I wonder if anyone ever reads this topic)
and write a nice story about getting Dink to work in fullscreen. Yes. it's possible! No more small 640x480 windows within my big 21" display. So if you are nice boyz and girlz and kind to me i'll tell you tomorrow. Good night.

And check out the following sentences. They are notes to remember myself want I should sometimes explain better, but maybe there's a hint for you if you're stuck. If not, feel free to post your questions here.

Some questions and answers

bash says "wine: Command not found" What can I do?
Try to logout and login again into bash. That might fix it. If it doesn't, then make sure the wine binary is in your PATH.
Run as root:
find / -name "wine" -type f -perm +111
to find the path where the wine binary is in. Then check whether PATH includes it:
echo $PATH
If not, add that e.g. to /etc/profile by doing:
export PATH=$PATH:/path/to/wine/binary
That should help.

To download wine packages, use http://rpmseek.com/ or the Download section of winehq.org.

And make sure you wrote everything correct. Linux is case-sensitive, you remember. Don't forget braces if you have spaces in file- or foldernames.

If this message window doesn't open, make sure that wine is correctly installed on your system as described above. It also might be that you have once chosen that wine should start without this message window? Wait some seconds and look at the errormessages wine returns to te terminal.

For our purpose it's better you use the full install of Dink Smallwood. But after having installed the full version there should be no problem patching it with newer versions, as provided by the windows-installer which comes with Dink.
January 17th 2006, 10:18 PM
wizard.gif
Chrispy
Peasant He/Him Canada
I'm a man, but I can change, if I have to.I guess. 
My dear bike, I think that's the longest, non-source-code post ever, if not the longest.
January 17th 2006, 11:13 PM
wizardb.gif
merlin
Peasant He/Him
 
Actually, if I remember correctly, I wrote on the history of the English language. THAT was long.
January 18th 2006, 03:00 AM
wizard.gif
Chrispy
Peasant He/Him Canada
I'm a man, but I can change, if I have to.I guess. 
Your right, I forgot about blogs...
January 18th 2006, 10:51 PM
anon.gif
HoKi
Ghost They/Them
 
Hello Dinkers,

did you sleep well? I did so, but I have the strong feeling, that someone has cursed me. I wrote wrong things yesterday, but it was late at night when I did so...

Ok, let's make it short now. In my first post here I wrote, that Dink works well on the newest Version of Knoppix (4.0), which uses wine 20050627. This is wrong, I tested it again.

On this System its possible to install Dink and to run DFArc.exe, even to run Dink.exe, but it stops and seeks unsuccessfully the mouse. You have to xkill the window, it freezes.

The reason is that wine has changed its configuration utilities since version 20050627. You no longer write options into config as described above, you have to use winecfg. I didn't unterstand or test yet all new features, but i'm not able to bring Dink.exe to running with this version of wine. Maybe later? Let's see. Until you here more, please use versions of wine older than june 2005. For these versions everything I wrote yesterday about configuring and so on is still correct.

The promised solution for playing Dink in Fullscreen comes later in full sentences. In short for the pros of you: open a new X-Server with Dink as program. By pressing CTRL-ALT-+ you can change the screen's resolution to 640x480. That's it.

startx -e wine "/_YOUR_PATH_TO_DINK/dink.exe -truecolor" -- -depth 24
(Thats for Debian 3.1, maybe for you it's without the -e)

Good night.
January 18th 2006, 10:58 PM
peasantm.gif
HoKi
Peasant He/Him
 
My f*#&ing ADSL-line breaks every 10 minutes!
January 18th 2006, 11:00 PM
wizard.gif
Chrispy
Peasant He/Him Canada
I'm a man, but I can change, if I have to.I guess. 
Ouch, that sucks. Is the router maybe getting to warm? Or is it a backwoods problem?
January 18th 2006, 11:16 PM
peasantm.gif
HoKi
Peasant He/Him
 
No, not the router. It seams to be a problem of the ISP, but I'll have to look a little bit, tomorrow or so ...
January 24th 2006, 08:02 AM
sob_scorpb.gif
ikkejw
Peasant They/Them
 
/home/"enter-here-your-username"/.wine == $HOME/.wine == ~/.wine

IIRC
January 30th 2006, 10:45 AM
wizardb.gif
Phoenix
Peasant He/Him Norway
Back from the ashes 
The two last ones are equivalent. However, it's no rule in Linux/Unix that the home directories must reside in /home/. So that one is not necessarily correct.
January 30th 2006, 11:25 AM
slimeb.gif
DaVince
Peasant He/Him Netherlands
Olde Time Dinkere 
I finally installed the latest Wine and tried to run this (after a lot of configuration, even loaded my original windows registry in Wine ).

But alas, it doesn't work. Lots of other windowed apps work fine though. Including DFArc2 and a few other Dink editors.
January 30th 2006, 08:59 PM
wizardb.gif
merlin
Peasant He/Him
 
Heh, DFArc2 actually has a Linux port. Well, actually a Windows port. It was written for Linux and then ported to Windows.
February 6th 2006, 06:47 PM
peasantm.gif
HoKi
Peasant He/Him
 
Hey, and where can I download DFArc/Linux from?
February 6th 2006, 06:48 PM
peasantm.gif
HoKi
Peasant He/Him
 
Latest wine doesn't work, I wrote this somewhere above, didn't I? Let's have a look *searchsearch*
Yep, I did on January 18th, 10:51 PM, see above. Reading my lengthy posts could have saved you some time, seems to me

OK, the problem seems to appear with the change from the configuration with the file "config" to the registry-configuration. Maybe it's only a problem of configuring, I was too lazy to check it out to the end, because on my Debian Sarge System wine does work fine. I have Wine 20050310, but all versions prior to july 2005 may perhaps work. I tested with Knoppix 4.0, which has a newer wine which doesn't work, see above.

And, by the way, there is another way to play the game in fullscreen, using KDE. Start it normal as described above, press ALT-F3, choose the first entry in the menu ("Advanced" or something like this, I have a german language environment) and then "Fullscreen" or "No border". Don't forget to change your Display size to 640*480 before. Maybe this works with other windowmanagers too.
April 29th 2006, 05:15 PM
anon.gif
kdjfnbglkjbn
Ghost They/Them
 
(tested on current dapper drake)
with wine you should have gotten an app "winecfg". Run that.
Under "applications" "add application" dink.exe, select dink.exe and select "windows version" windows 98
Under "graphics" check "emulate a virtual desktop"
Under "audio" uncheck the oss driver and select the alsa driver.
exit "winecfg" with ok.
start dink from dfarc AS FULLSCREEN. (it will appear in a window)

To have midi you need timidity up and running. There are howtos on the web for that.
Dink is be slower than in win but absolutely playable. I have also had one freeze up to now. The window sometimes has to be "xkill"ed after exit.

May 1st 2006, 06:23 AM
slimeb.gif
DaVince
Peasant He/Him Netherlands
Olde Time Dinkere 
Hey, thanks for this, even if you ARE reviving an older topic. This'll come in useful.
May 1st 2006, 08:13 AM
duck.gif
Tal
Noble He/Him United States
Super Sexy Tal Pal 
"Hey, thanks for this, even if you ARE reviving an older topic. This'll come in useful."

Which is exactly why I've been trying to tell you for a while now that thread revivals are not necessarily a bad thing.

Helpful information = good no matter how old the thread is

"I watered my flowers" and then "I fed my dog" in the same thread two years later = lame
May 1st 2006, 03:33 PM
slimeb.gif
DaVince
Peasant He/Him Netherlands
Olde Time Dinkere 
Yeah yeah, I get the point. There are just SOME forums I am a member of where those people are really strict with stuff like this. So it took some time getting used here.

Uh, I have the feeling I'm putting down an useless post here... Or at least off-topic.
May 2nd 2006, 05:33 PM
wizardb.gif
Phoenix
Peasant He/Him Norway
Back from the ashes 
And let me go meta-off-topic by telling you that the only way you could reply to Tal's post was to reply to it here, so, as his post is (apparently) legitimate, so should yours be.
May 6th 2006, 09:58 AM
fairy.gif
It doens't work so well for me.

Well, it works, but all sprites have white squares around them instead of transparent pixels. It's playable, but so ugly that it isn't worth it. All I can do is reboot to Windows (eek!) if I want to play Dink.
May 6th 2006, 05:45 PM
wizardb.gif
Phoenix
Peasant He/Him Norway
Back from the ashes 
Eek indeed.

Only reason I have Windows on this box is to use my GPS with it. It may actually work in Linux too, but then again, its software only works in Windows (danged developers) -- so I have no choice.
September 25th 2010, 01:06 PM
anon.gif
HK
Ghost They/Them
 
WINE = Wine Is Not An Emulator!
September 25th 2010, 04:27 PM
spike.gif
After 4 years of grueling wait, Phoenix can finally use his ancient GPS on Linux.
September 26th 2010, 11:36 AM
death.gif
EvilEarl
Peasant He/Him United States
In memory of Skull. 
Wait, you went through all of the trouble to install regular Dink on Wine because you weren't aware of FreeDink?
September 26th 2010, 11:43 AM
custom_skull.gif
Skull
Peasant He/Him Finland bloop
A Disembodied Sod 
FreeDink wasn't even around at the time this thread was created.
September 26th 2010, 03:31 PM
custom_magicman.gif
magicman
Peasant They/Them Netherlands duck
Mmmm, pizza. 
Funnily enough, I got my own GPS device (a Garmin Etrex H) working on Linux yesterday >_>

QLandkartegt is an awesome program indeed.
September 27th 2010, 01:06 PM
farmer.gif
Beuc
Peasant He/Him France
 
> FreeDink wasn't even around at the time this thread was created.

It was (I started it in 2003), but certainly not half as functional as it is now

The current (2nd) codebase started in 2005, I found the first commit.