Nope - this is an example script - its saved as a file - say script.txt. You then just call my SDCreator using this command 'SDCreator script.txt' The program parses the text file you pass in and executes each command in turn.
;Give the disk a name DiskName f:\SAMDisks\TestDiskImage.SAD ;Load disk image LoadDisk ;Erase the files we are about to copy EraseFile "blocks.dat" EraseFile "blocks.pal" EraseFile "Font.dat" EraseFile "Logo.dat" EraseFile "Front.pal" ;Load the bitmap LoadBMP "f:\SAMDisks\DEFBlocks.bmp" ;Open the blocks file OpenFile "blocks.dat" ;Grab the blocks (x, y, width, height) ; MIRRORS GrabImage 0 0 16 16 GrabImage 16 0 16 16 GrabImage 32 0 16 16 GrabImage 48 0 16 16 GrabImage 64 0 16 16 GrabImage 80 0 16 16 GrabImage 96 0 16 16 GrabImage 112 0 16 16 GrabImage 0 16 16 16 GrabImage 16 16 16 16 GrabImage 32 16 16 16 GrabImage 48 16 16 16 GrabImage 64 16 16 16 GrabImage 80 16 16 16 GrabImage 96 16 16 16 GrabImage 112 16 16 16 ; BLUE BLOCKS GrabImage 0 32 16 16 GrabImage 16 32 16 16 GrabImage 32 32 16 16 GrabImage 48 32 16 16 GrabImage 64 32 16 16 GrabImage 80 32 16 16 GrabImage 96 32 16 16 GrabImage 112 32 16 16 GrabImage 0 48 16 16 ; GREEN BLOCKS GrabImage 0 64 16 16 GrabImage 16 64 16 16 GrabImage 32 64 16 16 GrabImage 48 64 16 16 GrabImage 64 64 16 16 GrabImage 80 64 16 16 GrabImage 96 64 16 16 GrabImage 112 64 16 16 GrabImage 0 80 16 16 ;Close that file CloseFile ;Now grab the palette OpenFile "blocks.pal" GrabPalette CloseFile ;Load the frontend bitmap LoadBMP "f:\SAMDisks\Frontend.bmp" ;Open the Font file OpenFile "Font.dat" ; Grab all the font characters GrabImage 0 0 8 8 GrabImage 8 0 8 8 GrabImage 16 0 8 8 GrabImage 24 0 8 8 GrabImage 32 0 8 8 GrabImage 40 0 8 8 GrabImage 48 0 8 8 GrabImage 56 0 8 8 GrabImage 64 0 8 8 GrabImage 72 0 8 8 GrabImage 80 0 8 8 GrabImage 88 0 8 8 GrabImage 96 0 8 8 GrabImage 104 0 8 8 GrabImage 112 0 8 8 GrabImage 120 0 8 8 GrabImage 128 0 8 8 GrabImage 136 0 8 8 GrabImage 144 0 8 8 GrabImage 152 0 8 8 GrabImage 160 0 8 8 GrabImage 168 0 8 8 GrabImage 176 0 8 8 GrabImage 184 0 8 8 GrabImage 192 0 8 8 GrabImage 200 0 8 8 GrabImage 208 0 8 8 GrabImage 216 0 8 8 GrabImage 224 0 8 8 GrabImage 232 0 8 8 GrabImage 240 0 8 8 GrabImage 248 0 8 8 GrabImage 0 8 8 8 GrabImage 8 8 8 8 GrabImage 16 8 8 8 GrabImage 24 8 8 8 GrabImage 32 8 8 8 GrabImage 40 8 8 8 GrabImage 48 8 8 8 GrabImage 56 8 8 8 GrabImage 64 8 8 8 GrabImage 72 8 8 8 GrabImage 80 8 8 8 GrabImage 88 8 8 8 GrabImage 96 8 8 8 GrabImage 104 8 8 8 GrabImage 112 8 8 8 GrabImage 120 8 8 8 GrabImage 128 8 8 8 GrabImage 136 8 8 8 GrabImage 144 8 8 8 GrabImage 152 8 8 8 GrabImage 160 8 8 8 GrabImage 168 8 8 8 GrabImage 176 8 8 8 GrabImage 184 8 8 8 GrabImage 192 8 8 8 GrabImage 200 8 8 8 GrabImage 208 8 8 8 GrabImage 216 8 8 8 GrabImage 224 8 8 8 GrabImage 232 8 8 8 GrabImage 240 8 8 8 GrabImage 248 8 8 8 GrabImage 0 16 8 8 ;Close that file CloseFile ;Open the Logo file OpenFile "Logo.dat" GrabImage 0 24 214 23 ;Close that file CloseFile ;Open the Frontend Palette file OpenFile "Front.pal" GrabPalette CloseFile ;Save the disk image SaveDisk ; Now extract the files to a pc image ExtractFile "Blocks.dat" "f:\SAMDisks\PCFiles\Blocks.dat" ExtractFile "Blocks.pal" "f:\SAMDisks\PCFiles\Blocks.pal" ExtractFile "Font.dat" "f:\SAMDisks\PCFiles\Font.dat" ExtractFile "Logo.dat" "f:\SAMDisks\PCFiles\Logo.dat" ExtractFile "Front.pal" "f:\SAMDisks\PCFiles\Front.pal" -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Frans van Egmond Sent: 10 April 2002 10:39 To: [email protected] Subject: Re: Pictures from PC to Sam... How? Sounds useful, but how do I use such a script? Does it require all kinds of external programs to be present ? Frans Adrian Brown wrote: >Ive got an unreleased program that will automatically convert images to sam >format etc from BMP. It will also grab sections of images, palettes , copy >files to and from .SAD images. If its of any use let me know and ill mail >it to you off the list. Here is a brief description of hte commands the >program can handle (its script based) > >Adrian > >Usage: >SDCreator.exe <scriptname> > >COMMANDS >anyline starting with a ; is a comment line and is ignored. >DISKNAME <PC-filename> - Sets the name of the SAD disk image >LOADDISK - Loads the disk image name >CREATEDISK - Creates a blank image using name >FORMATDISK - Formats the disk >MAKEBOOTABLE - Copies samdos onto the disk (must be >fist) >ERASEFILE <SAM-filename> - Erases the given file >SAVEDISK - Saves the changes made to the >disk image >LOADBMP <PC-filename> - Loads a bitmap into memory (must be 16 >colour) >OPENFILE <SAM-filename> - Opens a file on the SAM disk >CLOSEFILE - Closes the sam file and writes >all data to the disk image >WRITEBYTE <value> - Writes a single byte to the >open sam file >WRITEHEXBYTE - As WRITEBYTE but the value is specified >in hex >GRABIMAGE <x y width height> - Grabs a section of the current bitmap >as a >block of data, written to the open file >GRABPALETTE - Converts the bitmap palette to >a sam palette and writes the >16 bytes of data to the open file >COPYFILE <PC-filename> <SAM-filename> - Copies a file from the pc to the sam >image >COPYBMP <PC-filename> <SAM-filename> - Copies a bitmap from the pc to >a sam >screen$ file >EXTRACTFILE <SAM-filename> <PC-filename> - Extracts a file from a >SAM image >to a PC image > > >-----Original Message----- >From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] >Behalf Of Frans van Egmond >Sent: 09 April 2002 23:16 >To: [email protected] >Subject: Pictures from PC to Sam... How? > > >Hi, can anyone help? >What program can I use to convert (digitized)pictures to Sam screen$ ? >What specifications (dimensions, number of colours) should that picture >on the pc have before conversion? > >Frans > > > > >

