Quantcast
Channel: stardot.org.uk
Viewing all articles
Browse latest Browse all 2528

programming • Re: How can I create disk images with my homebrew games for the Acorn Electron?

$
0
0
For tape images, I haven’t found a script that works on Mac (there may be something for Windows). I use Disc Image Manager (see link in other post) and manually create a UEF file and add the relevant files. That works really well. I’m not sure if this bit can be scripted.
Disc Image Manager can be opened as a text console. On a Mac, you'll need to locate the binary (inside the Disc Image Manager.app folder) and run it from Terminal:

Code:

DiscImageManager --console
Commands can be put into a text file then recalled:

Code:

DiscImageManager --console=file.txt
Of course, it's much easier on Windows or Linux as you don't need to find your way into the app bundle.

Can't remember how up to date this list is:

Code:

Entering The Console----------------------console or -c enters the console.--console=<filename> or -c=<filename> enters the console and executes the commands in the file <filename>.Console Commands----------------Command parameters are separated by spaces and are separated from the command by a space. Use quotes (") to enclose parameters containing a space. Forexample:add "This File.txt" ThatFile.txtwill add a file called 'This File.txt' and another called 'ThatFile.txt' to theimage.Square brackets [] indicate optional parameters.Ellipses ... indicate multiples of the same parameter.access <file> [<attributes>]Changes the file's access rights, or attributes, to those given.Anything invalid is ignored.add <file> [[<file>] ...]Adds the files/directories listed. Can contain wildcards.cat [<option>]Displays a catalogue listing. If <option> is not given, then the currentdirectory is shown. <option> can be one of the following:all  : Displays a catalogue listing for the entire image.dir  : Lists all the directories in the image.root : Lists all the roots in the image.chdir <dirname>Changes the host OS directory.config <setting> <option>Sets a configuration setting. Note that not all configuration settings are usedby the console and could result in unpredicable behaviour.<option> can be:Boolean : True or False.Integer : Decimal number, unless preceded by 0x, $ or & for Hex number.String  : Anything.create [<dirname>]Creates a new directory. If no name given, 'NewDir' is used instead.delete <file> [[<file>] ...]Deletes the files/directories listed. Wildcards not allowed.dir <dirname>Changes to directory <dirname>. Use '^' to specify the parent directory.dirtitle <title>Changes the currect directory title.exitQuits console and application.exittoguiQuits the console and opens the GUI application.exec <filename> <address>Updates the execution address for <filename> to be <address>, which must be avalid hex number.extract <file> [[<file] ...]Extracts all files/directories listed to the local OS folder.Filenames can contain wildcards.filetocsv <file> [[<file>] ...]Outputs a CSV format of the specified files. Can contain wildcards.freeDisplays the free space on the partition/side.insert <filename>Loads image specified by <filename>.interleave <option>Changes the current interleave method and re-organises the data.<option> can be 0, 1, 2, or 3 or auto, seq, int, or mux.Only valid for Acorn ADFS L or FS.load <filename> <address>Updates the load address for <filename> to be <address>, which must be a validhex number.list <filename>Displays the file specified (BBC BASIC listing/text output/hex dump).new <format> [<option>] [<option2>]Creates a new image:<format> <option> <option2>  ResultDFS      S80                 Acorn DFS single sided 80 trackDFS      S40                 Acorn DFS single sided 40 trackDFS      D80                 Acorn DFS double sided 80 trackDFS      D40                 Acorn DFS double sided 40 trackWDFS     S80                 Watford DFS single sided 80 trackWDFS     S40                 Watford DFS single sided 40 trackWDFS     D80                 Watford DFS double sided 80 trackWDFS     D40                 Watford DFS double sided 40 trackADFS     S                   Acorn ADFS SADFS     M                   Acorn ADFS MADFS     L                   Acorn ADFS LADFS     D                   Acorn ADFS DADFS     E                   Acorn ADFS EADFS     E+                  Acorn ADFS E+ADFS     F                   Acorn ADFS FADFS     F+                  Acorn ADFS F+ADFS     HDD                 Old map, Old directory 20MBADFS     HDD      OO<cap>[M] Old map, Old directory <cap> sizeADFS     HDD      ON<cap>[M] Old map, New directory <cap> sizeADFS     HDD      NN<cap>[M] New map, New directory <cap> sizeADFS     HDD      NB<cap>[M] New map, Big directory <cap> sizeAFS      <level>  <cap>[M]   Acorn FS Level <level> of <cap> sizeCFS                          Acorn Cassette Filing SystemC1541                        Commodore 1541C1571                        Commodore 1571C1581                        Commodore 1581AMIGA    DD                  Commodore Amiga DDAMIGA    HD                  Commodore Amiga HDAMIGA    HDD      <cap>[M]   Commodore Amiga hard drive of <cap> sizeDOS+     640                 DOS+ 640KDOS+     800                 DOS+ 800KDOS      360                 DOS 360KDOS      720                 DOS 720KDOS      1440                DOS 1.44MBDOS      2880                DOS 2.88MBDOS      HDD      <cap>[M]   DOS hard drive of <cap> size<cap> is specified in KB, or MB if M is included.opt <option> [<side>]Sets the boot option for the current side, or <side> if specified.<option> can be 0, 1, 2, or 3, or can be none, load, run, or exec.rename <file1> <file2>Renames <file1> to <file2>.reportDisplays the image report.save [<filename>] [<compressed>]Saves the current loaded image to the host OS.If a UEF is required to be compressed, pass 'TRUE' as the second parameter.savecsv [<filename>]Outputs the contents of the currently loaded image in CSV format.statusDisplays the current configuration settings.title <title> [<side>]Sets the disc title for the current side, or <side> if specified.

Statistics: Posted by geraldholdsworth — Sat Nov 09, 2024 9:44 am



Viewing all articles
Browse latest Browse all 2528

Trending Articles