Dink Smallwood SDL Port Screenshot SDL port of the game 'Dink Smallwood'

Imagine a cross between such classics as Zelda, Diablo, and Monkey Island (with a tiny dash of South Park) and you'll have a good idea of what to expect from this game.

It is freeware, so you can download the whole game for free. If that weren't enough, some people have made new adventures for the game, called D-Mods. There are tools to create your own adventure, as well as other user-created tools. You can find them at the Dink Network.

Replaced by FreeDink

This game was listed as missing in action: it was no longer available when the site closed.

License: free
Requirements:
  • SDL Library (>= 1.2.5)
  • SDL Mixer Library (>=1.2.5)
  • SDL TTF Library (>=2.0.6.0)

Sound:Play in X:Play in Console:Multiplayer:Network Play:3D Acceleration:Source Available:
yesyesnononoyesyes
Suggest an update

Comments

Has anyone gotten this to compile? I tried the cvs and release, both seem to suffer from multipul problems.
Re: Compiling? posted by anonymous on Sep 16 2003 2:59 PM
Nope, I can't get it to compile either. Makefile problems. And when I moved the makefil.in to the /compile dir I got more problems.
Re: Compiling? posted by anonymous on Sep 16 2003 3:56 PM
Create an empty Makefile.in on compiler directory, and remove the reference to doc in SUBDIRS on the top level Makefile...

And don't forget to unzip the data file with -L option.

Hope it helps!

Re: Compiling? posted by Tru_Playaz on Sep 16 2003 4:57 PM
Still no good for me..........:( Shame.......

It does look nice in the screenshots tho.
Re: Compiling? posted by anonymous on Sep 16 2003 5:18 PM
after much futzing, I got it to compile, BUT it won't run. It'll start to load up, but it'll get as far as "dink:dinkvar.cpp:3203: Loading tiles\s..." and then, nothing. What's up here?
Re: Compiling? posted by anonymous on Sep 17 2003 6:45 AM
There's a problem in the ini file in /dink/. replace all occurences of "\" with "/", and it should load. On my sys it will get to "Loading Midi" and segfault... oh well
Re: Compiling? posted by straver on Sep 17 2003 7:57 AM
ink:dinkvar.cpp:9932: playmidi - cd play command detected.
dink:dinkvar.cpp:4497: Yo, sprite 4 has a bad pic. (Map 1) Seq 194, Frame 1
dink:dinkvar.cpp:4497: Yo, sprite 5 has a bad pic. (Map 1) Seq 195, Frame 1
dink:dinkvar.cpp:4497: Yo, sprite 3 has a bad pic. (Map 1) Seq 196, Frame 1
dink:dinkvar.cpp:4497: Yo, sprite 6 has a bad pic. (Map 1) Seq 193, Frame 1
Fatal signal: Segmentation Fault (SDL Parachute Deployed)

Same here I think.
Re: Compiling? posted by anonymous on Sep 17 2003 11:15 AM
I got to the menu!

I copied arial.ttf font to the dink directory, and updated SDL_ttf to the lastest version (2.0.6)
The problem now, is that if I start a new game, it crashes...

Re: Compiling? posted by suamor on Sep 17 2003 12:28 PM
Hi!

As I've just seen the homepage of the dink project has a nice forum to post these type of questions. It would be good to collect the tips and post them there so others can profit from them as well.

Regards,

Reinhard
Re: Compiling? posted by anonymous on Sep 17 2003 1:23 PM
It'd be better if they released a less half assed version actually.

They must notice that nobody can actually run their game sooner or later, and re-release accordingly.

Re: Compiling? posted by anonymous on Sep 17 2003 7:36 PM
managed to get it to load the selection screen ( with above sugesstions ) and found it had problems with the CASE of some files , this fixed sound in the selection screen but starting a game fails, it hangs on creating a game - bummer guess well have to wait :)
Re: Compiling? posted by anonymous on Sep 18 2003 8:47 AM
Yeah... I guess it would be possible to wine it... ;-)
Re: Compiling? posted by anonymous on Sep 20 2003 11:49 PM
Wohoo! Got it working.. I'll sum it up. Most of this is what you gyus did anyway:

To compile make sure you have SDL and SDL-devel packages.
Also create an empty Makefile.in (and Makefile.am?) in the compiler catalog.
Also remove the reference to doc in the top-level Makefile. The docs won't compile.

Unzip the data files. Rename alle the files in all the Dink-catalogs (make sure you do
NOT rename any of your systemfiles) to lower case with: `find | perl -ne 'chomp;rename($_,lc)';
Then make all wav files uppercase:`find *.wav| perl -ne 'chomp;rename($_,uc)';
Make sure the file gold.wav is in lower case.. (mv GOLD.WAV gold.wav)
Then open dink.ini in your favorite editor and replace all the '\' (backslashes)
in all lines starting with load_sequence. Some files are still reported missing:
tiles/s14.bmp
graphics/inter/arrow/arowl-XX.bmp
graphics/inter/arrow/arowr-XX.bmp
graphics/inter/level#/ln-XX.bmp
(where XX is the number in the filename +1 i.e. they'll always miss??)

Copy arial.ttf (from a windows installation?) into the game directory.

This should get you to the menu (as described above in the other comments.
When you enter the menu and click start, the game hangs searching for files
in the graphics/dink/walk catalog. This is due to an error when loading the dir.ff
package file in the catalog.

Open dinkvar.cpp in your favourite editor and replace lines 3196 - 3213 with this:

/*Start of modified code insert at dinkvar.cpp:3196 replacing upto 3213*/
int strl;
// PALETTEENTRY holdpal[256];
char crap[200], hold[5];

if (no_running_main)
draw_wait ();

Msg (("Loading %s...", org));

char crap2[200];
strcpy (crap2, org);

strl = strlen (crap2);
while (crap2[strl] != '/') //unsafe.. if there is no '/' it will crash..
{
crap2[strl] = 0;
strl--;
}

if(strl <= 0){ Msg (("Error occured when emptiying crap2. Data left: %s", crap2)); }
crap2[strlen (crap2) - 1] = 0;
sprintf (crap, "%s/dir.ff", crap2);
Msg(("Checking for %s..", crap));

/***************** end of modified code ******************************/

Re: Compiling? posted by anonymous on Sep 21 2003 2:26 AM
Umm.. use this code instead.. it works better (but it's not even from the same planet as perfect
and it'll probably break windoze-version, I think there should be #ifdef LINUX somewhere...)

/*Start of modified code insert after dinkvar.cpp:3196 replacing to 3213 inclusive*/

int strl;
// PALETTEENTRY holdpal[256];
char crap[200], hold[5];

if (no_running_main)
draw_wait ();

Msg (("Loading %s...", org));

//converting '\' to '/' for Linux....
strl = strlen (org);
for( int i = 0; i < strl; i++ ){ if( org[i] == '\\' )org[i] = '/'; }
//Msg (("Done conerting for Linux: %s...", org));

char crap2[200];
strcpy (crap2, org);
strl = strlen (crap2);
while (crap2[strl] != '/' && strl >= 0)
{
crap2[strl] = 0;
strl--;
}
crap2[strlen (crap2) - 1] = 0;

sprintf (crap, "%s/dir.ff", crap2);
Msg(("Checking for %s..", crap));

/***************** end of modified code ******************************/

Recompile and run.
Re: Compiling? posted by anonymous on Sep 21 2003 5:00 AM
Great! It finally works! Thanks!!
By the way, you can unzip with -L or -LL, with that, you convert all the files to lowercase while unzipping...
Re: Compiling? posted by anonymous on Sep 21 2003 5:21 AM
So now we need full screen mode. Be aware that this code is largely untested.
It has caused my X-server to restart several times but it seems to work (suse 8.2).

In util.ccp in the init_video function either replace line# 382 with this line:
lpDDSPrimary = SDL_SetVideoMode (xsize, ysize, 8, SDL_HWSURFACE | SDL_DOUBLEBUF | SDL_FULLSCREEN);

Or to be more sophisticated replace lines #381-#383 with this (obvious) code:
if(windowed){ lpDDSPrimary = SDL_SetVideoMode (640, 480, 8, SDL_HWSURFACE | SDL_DOUBLEBUF); }
else{ lpDDSPrimary = SDL_SetVideoMode (640, 480, 8, SDL_HWSURFACE | SDL_DOUBLEBUF | SDL_FULLSCREEN); }

The game should now go into full screen mode unless you specify the "-window" partameter on the command line.
I also tried changing the resolution from 640x480 but I guess the bitmaps and stuff can't handle that so it's little use in it.
According to the SDL homepage fullscreen is only available to X11.
Re: Compiling? posted by anonymous on Sep 21 2003 6:03 AM
And to slow down the game to a more normal rate, change the commented lines starting in line 76 in update_frame.cpp to:
while(SDL_GetTicks() < (lastTickCount + 20));
This is not the best solution, but it works...
Re: Compiling? posted by anonymous on Sep 21 2003 6:08 AM
I saw the unzip -L command after I wrote the first comment.
Do you have all the files in lowercase? Even the .wavs?

Currently I'm running the game on a dual celeron-533 and I don't think it's threaded
so it dosn't run to fast to be playable..
Does the game rely upon the cpu-speed to simulate gametime?
-eljar
Re: Compiling? posted by anonymous on Sep 21 2003 6:25 AM
I have all the files in lowercase except for the waves...

No, I don't think the game relies on cpu speed, but the main character walks really fast on my machine (athlon 1.5), the rest of the animations are all normal...

Re: Compiling? posted by taxtropel on Sep 21 2003 11:32 AM
There should be error checking for Setting the video mode to fullscreen

EXAMPLE: if((lpDDSPrimary = SDL_SetVideoMode(xsize, ysize, 8, SDL_HWSURFACE | SDL_DOUBLEBUF | SDL_FULLSCREEN)) == NULL) { fprintf(stderr,"Unable to grab surface: %s\n",SDL_GetError()); Quit(1); }

Re: Compiling? posted by taxtropel on Sep 21 2003 11:36 AM
Ugly Formatting
if((lpDDSPrimary = SDL_SetVideoMode(xsize, ysize, 8, SDL_HWSURFACE |
SDL_DOUBLEBUF | SDL_FULLSCREEN)) == NULL)
{
fprintf(stderr,"Unable to grab surface: %s\n",SDL_GetError());
Quit(1);
}

Re: Compiling? posted by eljar on Sep 21 2003 12:28 PM
There would be if I were developing it (or rather if I knew anything about SDL, which I don't).
Much of the code needs to be reworked anyway. There's probably a far better way to handle
the file+path names, but I don't know the Dink code very well.

I see on the Dink homepage that there is a release called beta 8, but there seem to be
no configure scripts or makefiles in the packages so I don't see howto compile it.
Anyone got any ideas?
Re: Compiling? posted by anonymous on Sep 21 2003 12:54 PM
That beta 8 release is the directx version...
I remember playing this game on Windows a few years ago, it was great fun and had some good humor, as I remember it. I haven't tried this version yet, but I hope it succeeds.
Re: Awesome posted by anonymous on Sep 18 2003 12:35 AM
that's exactly what i thought. i remember being able to smash chickens into bloody messes :-). however, from the comments posted here it looks like i'm going to pass on this for now.
Hi guys,

I'm really sorry for the awful build. I take full responsibility for it...a new release should be out by the time you read this (0.0.3) which fixes these things.

good luck

Re: awful build... posted by anonymous on Sep 22 2003 3:14 AM
I still have a problem with dink, he's really too fast, all the rest in the game is normal, I had to put "while(SDL_GetTicks() < (lastTickCount+ 20));" in update_frame.cpp...
But despite that, this game is great!

afonsocsc

I built 0.0.3 and the newest cvs-checkout. With boths I have the problem, that "enter/return" isn't working, except for the first time, in the screen where I can choose between "start", "continue" and "quit". I suspect this to be a problem with getkey (not flushing it or something), but I can't see right now where this happens. I'd be glad if someone has a fix, since the game really looks interesting.
dink:dinkvar.cpp:3210: Loading graphics/inter/arrow/arowr-... dink:util.cpp:180: Cannot load graphics/inter/arrow/arowr-09.bmp:Couldn't open graphics/inter/arrow/arowr-09.bmp dink:dinkvar.cpp:3210: Loading graphics/inside/details/sign-... dink:dink.cpp:6011: done loading batch Fatal signal: Segmentation Fault (SDL Parachute Deployed)

Seems to go wrong when it tries to run load_hard.

Latest dink, dink data, SDL, SDL_mixer and SDL_ttf.

I REALLY LIKE THIS GAME, IS THE BETTER FREEWARE ON THE WORLD!!!! BUT I DIDNT FIND ANY NEW MAP ON THE WEB BECAUSE THE HOMESITE OF THE GAME IS CLOSED, BUT DOWNLOAD IT!!! ITS GREAT!!!!
I've downloaded the package form site and I only see windoze executables there. You people say you have source of that game but I can't find it anywhere on their site. Any links?
Re: Windoze version only? posted by pawn on Jul 14 2005 1:08 AM
i see dfrac sources, guess its what youre looking for. But theres no Makefile in... This game should be in one 'port pending' category

Log in or register to rate this game or post a comment.