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: freeRequirements:
- 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: |
|---|---|---|---|---|---|---|
| yes | yes | no | no | no | yes | yes |
Submitted by aerea on 2003-09-12.

And don't forget to unzip the data file with -L option.
Hope it helps!
It does look nice in the screenshots tho.
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.
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...
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
They must notice that nobody can actually run their game sooner or later, and re-release accordingly.
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 ******************************/
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.
By the way, you can unzip with -L or -LL, with that, you convert all the files to lowercase while unzipping...
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.
while(SDL_GetTicks() < (lastTickCount + 20));
This is not the best solution, but it works...
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
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...
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); }
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);
}
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?
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
But despite that, this game is great!
afonsocsc
Seems to go wrong when it tries to run load_hard.
Latest dink, dink data, SDL, SDL_mixer and SDL_ttf.