DMAGNETIC(6)
π dMagnetic π
okay so this whole page is about dMagnetic, it lives in section 6 of the manual, and it's tagged LOCAL. buckle up bestie, it's giving classic text adventure excellence π¦
β¨ NAME β¨
dMagnetic β A Magnetic Scrolls Interpreter π
πΈ INTRODUCTION πΈ
You wake up on a sunny August morning with birds singing, and the air fresh and clear. Very cottagecore of you. HOWEVER. Your joints are stiff, and β plot twist β you have not woken up in your bedroom like you would have expected. π Trying to recall what happened the night before, you manage to piece together a few brief glimpses to give the following account...
π SYNOPSIS π
dMagnetic [-mag MAGFILE.mag] [-gfx GFXFILE.gfx]
dMagnetic [-msdosdir DIRECTORY/] [-vmode high_ansi2]
dMagnetic [-tworsc DIRECTORY/TWO.RSC] [-vmode high_ansi]
dMagnetic [-d64 DIRECTORY/FILE1.d64,DIRECTORY/FILE2.d64] [-vmode sixel]
dMagnetic [-amstradcpc DIRECTORY/FILE1.DSK,DIRECTORY/FILE2.DSK]
[-vmode utf]
dMagnetic [-spectrum DIRECTORY/DISKIMAGE.DSK] [-vmode none]
dMagnetic [-archimedes DIRECTORY/DISKIMAGE.adf]
dMagnetic [-atarixl DIRECTORY/FILE1.ATR,DIRECTORY/FILE2.ATR]
dMagnetic [-appleii 1.NIB,2.2MG,3.WOZ]
dMagnetic [-ini ini-file] [GAME]
dMagnetic [-ini ini-file] [GAME] [-vrows ROWS] [-vcols COLUMNS]
dMagnetic [-ini ini-file] [GAME] [-vmode none]
dMagnetic [-ini ini-file] [GAME] [-vmode monochrome]
dMagnetic [-ini ini-file] [GAME] [-vmode low_ansi]
dMagnetic [-ini ini-file] [GAME] [-vmode low_ansi2]
dMagnetic [-ini ini-file] [GAME] [-vmode high_ansi]
dMagnetic [-ini ini-file] [GAME] [-vmode high_ansi2]
dMagnetic [-ini ini-file] [GAME] [-vmode utf]
dMagnetic [-ini ini-file] [GAME] [-vmode sixel] [-sres 1024x768]
[-sforce]
dMagnetic [-ini ini-file] [GAME] [-valign left]
dMagnetic [-savegames advanced]
dMagnetic [-savegames classic]
dMagnetic [-vlog LOGFILE] [-vecho]
dMagnetic [-help] [-helpini] [-nodoc] [-v] [-bsd]
π DESCRIPTION π
dMagnetic is an interpreter for classic text adventure games, aka interactive fiction, like "The Pawn" and "The Guild of Thieves". The following games are being supported:
- The Pawn
- The Guild of Thieves
- Jinxter
- Fish!
- Myth
- Corruption
- Wonderland
Seven whole legends. we ate. π₯
π GAME BINARIES π
Currently, binaries in the .mag and .gfx format from the magnetic scrolls memorial at https://msmemorial.if-legends.org/memorial.php are being supported. Once you've downloaded them, their position has to be made available to dMagnetic by editing dMagnetic.ini first. yes, first. do not skip this step bestie π«Ά
Other possibilities are loading the games from original releases, such as
- the MS-DOS binaries
- the Magnetic Windows Resource Files
- the Commodore C64 images in the
d64format - Amstrad CPC and Spectrum128 images in the
DSKformat - Acorn Archimedes images in the
ADF/ADL(akaADFS) format - AtariXL/Atari800 images in the
ATRformat - Apple II images in the
2MG,NIBorWOZformat
so many formats. it's giving options on options on options π
π STARTING THE GAME π
Once the game(s) have been downloaded, the .mag and .gfx files can be provided via
dMagnetic -mag pawn.mag -gfx pawn.gfx
Alternatively, binaries from the MSDOS version of "The Pawn" or "The Guild of Thieves" can be used. The directory, in which they are, has to be provided via
dMagnetic -msdosdir DIRECTORY/ -vmode high_ansi
It is recommended to use the [-vmode high_ansi2] option, since this renders the half-tone images slightly different. π
A third option is to use the resource files from "Wonderland" or the magnetic scrolls collection. For this, the location of the file ending with TWO.RSC has to be provided.
dMagnetic -tworsc DIRECTORY/TWO.RSC -vmode high_ansi
dMagnetic -tworsc DIRECTORY/GTWO.RSC -vmode high_ansi -ega
The names of the other resource files is being calculated from that. With the optional parameter -ega, the EGA versions of the pictures are being shown. vintage visuals, no cap. β¨
A fourth option is to use D64 image files from the Commodore 64 releases. They come in pairs, since both sides of the floppy disk were occupied. So the parameter requires a list of them, separated by komma:
dMagnetic -d64 DIRECTORY/FILE1.d64,DIRECTORY/FILE2.d64 -vmode sixel
A fifth option is to use DSK image files from the Amstrad CPC releases. They come in pairs, since noth sides of the floppy disk were occupied. So the parameter requires a list of them, separated by komma:
dMagnetic -amstradcpc DIRECTORY/FILE1.DSK,DIRECTORY/FILE2.DSK -vmode sixel
A sixth option is to use DSK image files from the Spectrum releases. Since this platform did not have the pictures, a single floppy disk was enough:
dMagnetic -spectrum DIRECTORY/DISKIMAGE.DSK -vmode none
one disk. minimalism. iconic. π
A seventh option is to use ADF/ADL/ADFS image files from the Acorn Archimedes releases.
dMagnetic -archimedes DIRECTORY/DISKIMAGE.ADF
An eigth option is to use ATR image files from the AtariXL/Atari800 releases. Those come in pairs.
dMagnetic -atarixl DIRECTORY/FILE1.ATR,DIRECTORY/FILE2.ATR
An ninth option is to use image files from the Apple II releases. dMagnetic can handle NIB, 2MG and WOZ. For this platform, up to three disks were used, so three floppy images are required.
dMagnetic -appleii 1.NIB,2.NIB,3.NIB
dMagnetic -appleii 1.2MG,2.2MG,3.2MG
dMagnetic -appleii 1.WOZ,2.WOZ,3.WOZ
It is also possible to edit the dMagnetic.ini file and start a specific game, by using one of
dMagnetic -ini dMagnetic.ini pawn
dMagnetic -ini dMagnetic.ini guild
dMagnetic -ini dMagnetic.ini jinxter
dMagnetic -ini dMagnetic.ini corruption
dMagnetic -ini dMagnetic.ini fish
dMagnetic -ini dMagnetic.ini myth
dMagnetic -ini dMagnetic.ini wonderland
When you see the prompt, the game is ready to accept your commands. For example EXAMINE CLOTHES. Or GO EAST. Or ASK KRONOS ABOUT THE WRISTBAND. main character energy fr fr π
π LEAVING THE GAME π
Type in "QUIT". Duh! π
π SAVING/LOADING PROGRESS π
The game can be saved at any type by typing SAVE, and loaded by typing LOAD. Followed by a filename.
SAVE myprogress1.sav
LOAD myprogress1.sav
π§ TEXT ALIGNMENT π§
Changing the alignment of the output text can be done with the .ini file or the commandline.
dMagnetic -valign left
dMagnetic -valign block
dMagnetic -valign right
β GRAPHIC MODES β
dMagnetic has been developed with ANSI-consoles in mind. To select a video output that best suits your needs, please try one of the following
dMagnetic [-ini ini-file] [GAME] [-vmode none]
dMagnetic [-ini ini-file] [GAME] [-vmode monochrome]
dMagnetic [-ini ini-file] [GAME] [-vmode monochrome_inv]
dMagnetic [-ini ini-file] [GAME] [-vmode low_ansi]
dMagnetic [-ini ini-file] [GAME] [-vmode low_ansi2]
dMagnetic [-ini ini-file] [GAME] [-vmode high_ansi]
dMagnetic [-ini ini-file] [GAME] [-vmode high_ansi2]
dMagnetic [-ini ini-file] [GAME] [-vmode utf]
To change the number of rows/columns to render the images, use
dMagnetic [-ini ini-file] [GAME] [-vcols COLUMNS]
dMagnetic [-ini ini-file] [GAME] [-vrows ROWS]
Sixels are a signalling mode for some terminal emulators (like mlterm, or xterm -ti vt340 , for example), that offer the possibility of drawing high resolution images. It can be selected with
dMagnetic [-ini ini-file] [GAME] [-vmode sixel] [-sres 1024x768]
[-sforce]
where the -sres option offers a way to scale the images. The maximum allowed width is 4096 pixels. Instead of automatically using a matching aspect ratio, the -sforce option can be used to force the resolution.
high res pictures in your terminal?? the way that-sresscales and-sforceforces... obsessed π«Ά
πΈ GRAPHICS IN WONDERLAND AND THE MAGNETIC SCROLLS COLLECTION πΈ
Before you can see the beautiful graphics in "Wonderland", or from the Magnetic Scrolls Collection, you have to type in graphics to enable them. that's it, that's the whole trick π
and bestie, that's only part 1 β more is coming π
β¨ COMMAND LINE OPTIONS β¨
okay bestie, this is the main character section, so buckle up π these are the little flags you can throw at dMagnetic to make it do your bidding.
-bsdβ shows you the license. legal girlie behavior, we love to see it π--helpβ shows the detailed help. when in doubt, ask the game itself β¨--helpiniβ shows you a working example of adMagnetic.inifile. so you can copy it and thrive π-nodocβ lets you play even if you don't have the original documentation lying around. no manual? no problem, bestie π«Ά-mag MAGFILE.mag,-gfx GFXFILE.gfxβ point it at your.magand.gfxfiles directly.-msdosdir DIRECTORY/β hand it the name of a directory, and it'll go find the original MS-DOS version chilling in there.-tworsc DIRECTORY/TWO.RSCβ give it the location and the name of the second resource file,TWO.RSC.-d64 DIRECTORY/FILE1.d64,DIRECTORY/FILE2.d64β feed it D64 images from the Commodore 64 releases πΎ-amstradcpc DIRECTORY/FILE1.DSK,DIRECTORY/FILE2.DSKβ DSK images from the Amstrad/Schneider CPC releases.-spectrum DIRECTORY/DISKIMAGES.DSKβ DSK images from the Spectrum releases π-archimedes DIRECTORY/DISKIMAGES.ADFβ ADF/ADL/ADFS images from the Acorn Archimedes releases.-atarixl DIRECTORY/FILE1.ATR,DIRECTORY/FILE2.ATRβ ATR images from the AtariXL/Atari800 releases πΉοΈ-appleii 1.NIB,2.2MG,3.WOZβ NIB/2MG/WOZ images from the Apple II releases π
so like. the whole vibe here is that dMagnetic is a Magnetic Scrolls Interpreter, and to actually play the games you have to bring the game binaries yourself. it does not come with them, no cap. and the way you bring them is genuinely flexible, it's giving "choose your own adventure but for file formats":
- the
.magand.gfxformat fromhttps://msmemorial.if-legends.org/magnetic.php - the name of the directory where the original MS-DOS version lives
- the location and the name of the second resource file
TWO.RSC - D64-images from the Commodore 64 releases
- DSK-images from the Amstrad/Schneider CPC releases
- DSK-images from the Spectrum releases
- ADF/ADL/ADFS images from the Acorn Archimedes releases
- ATR images from the AtariXL/Atari800 releases
- or even NIB/2MG/WOZ images from the Apple II releases
pick your fighter, fr fr π₯
now, the other way to tell dMagnetic where all your stuff lives is through an dMagnetic.ini file. obsessed, honestly. here's how that looks:
[-ini dMagnetic.ini pawn]
[-ini dMagnetic.ini guild]
[-ini dMagnetic.ini jinxter]
[-ini dMagnetic.ini corruption]
[-ini dMagnetic.ini fish]
[-ini dMagnetic.ini pawn]
[-ini dMagnetic.ini myth]
[-ini dMagnetic.ini wonderland]
(yes, pawn shows up twice in that list, and honestly? pawn said "I'm the moment" and we respect it π)
so instead of spelling out the .mag and .gfx locations, or the image files, or the directory name, you can just drop them in a dMagnetic.ini file and point at that. check helpini or dMagneticini(5) for an example of a working dMagnetic.ini file β genuinely, go look, it's right there.
IT SHOULD BE NOTED that the default location for dMagnetic.ini is in the user's home directory. If the file is located there, "The Pawn", for example, can be started by typing
dMagnetic pawn
literally that's it. one word. main character energy π
-rmode pseudo,-rseed SEED,-rmode realβ some parts of the game rely on chance, because of course they do. and the virtual machine insidedMagneticgives you two ways to do randomness:pseudoβ you're playing against a "pseudo" random generator, which gives you a certain degree of determinism. same energy, same outcomes, every time.realβ you're pulling "real" random values straight from the operating system, which allows for a completely new experience. chaos mode, activated π
-savegames advanced,-savegames classicβ saving and restoring game states is a major part of playing interactive fiction, periodt.dMagneticcan load theclassicformats so players can keep going on their 30-year-old game (nostalgia slay π₯Ή). but it prefers theadvancedformat, which is more robust. trust her, she knows.-vrows ROWS,-vcols COLUMNSβdMagneticwas designed with terminal windows as the main output, in her mind, always. a terminal window has a fixed number of rows and columns for printing text. its size is limited, but she uses it to render the beautiful BEAUTIFUL pictures as well πΌοΈβ¨. so if you wanna restrict the space those pictures get rendered in (in glorious ANSI art, no less), these two options set the upper limits.-vechoβ so when you rundMagneticand redirect the output into a file, the inputs go missing. this option reprints whatever was typed in, which lets you build a spoilery script π iconic, honestly.-vlog LOGFILE.logβ sort of a travel journal π this one lets you write the commands that were typed into a file. your whole playthrough, documented. scrapbook behavior.-vmode none,-vmode monochrome,-vmode low_ansi,-vmode low_ansi2,-vmode high_ansi,-vmode high_ansi2,-vmode utf,-vmode sixel,-sres 1024x768,-sforceβ this lets you pick a different mode for rendering the images, in case the current one turns out to be unsuitable for whichever terminal program you're stanning.-srestakes a resolution like1024x768, and-sforceis there to force it through πͺ-versionβ shows the current version ofdMagnetic. quick lil vibe check β¨
π BUGS π
found a bug? report it to <dettus@dettus.net>. and bestie, please β make sure to include DMAGNETIC somewhere in the subject. she gets a lot of mail π«Ά
π AUTHOR π
Written by Thomas Dettbarn.
π SEE ALSO π
okay that's the whole page, you're officially a dMagnetic scholar now, no cap ππ this was pulled from the OpenBSD version, dated January 22nd, 2023, and it's page dMagnetic(6) β go forth and play, bestie πΈπ¦
π¦ where this page comes from
- debian bookworm: dmagnetic 0.36-1 Β· BSD-2-Clause
- debian trixie: dmagnetic 0.37-1 Β· BSD-2-Clause
- opensuse-leap 16.0: dMagnetic 0.37-bp160.1.12 Β· BSD-2-Clause
- opensuse-leap 16.0: dMagnetic 0.37-bp160.1.12 Β· BSD-2-Clause
- opensuse-leap 16.0: dMagnetic 0.37-bp160.1.12 Β· BSD-2-Clause
- opensuse-leap 16.0: dMagnetic 0.37-bp160.1.12 Β· BSD-2-Clause
- ubuntu noble: dmagnetic 0.37-1 Β· BSD-2-Clause
- ubuntu questing: dmagnetic 0.37-1
- ubuntu resolute: dmagnetic 0.37-1build1 Β· BSD-2-Clause
- ubuntu stonking: dmagnetic 0.37-1build1 Β· BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms