CPCWiki forum

General Category => Programming => Topic started by: EgoTrip on 18:16, 27 March 13

Title: Creating tape image from files on disk
Post by: EgoTrip on 18:16, 27 March 13
So, I managed to squeeze everything into memory. How do I go about creating a tape image from the files currently on disk?
Title: Re: Creating tape image from files on disk
Post by: arnoldemu on 18:32, 27 March 13
Quote from: EgoTrip on 18:16, 27 March 13
So, I managed to squeeze everything into memory. How do I go about creating a tape image from the files currently on disk?
extract them from the dsk so you have the files on your pc.
EDIT: I believe winape allows you to do this, if not use cpcxfs or some other tool.

then use 2cdt command-line tool (or the gui version Markus made) to put the files onto the tape.

Don't forget to use ! before the filenames if you want to turn off the messages.

2cdt can be downloaded from Unofficial Amstrad WWW Resource (http://www.cpctech.org.uk)
Title: Re: Creating tape image from files on disk
Post by: arnoldemu on 18:40, 27 March 13
what am I babbling about?

I'm building all my code on pc, using pasmo etc so my game files are on the pc.

loader is a binary file with amsdos header for the loader.
scr is a binary file with amsdos header with the screen.
code is a binary file with amsdos header with the code.

disk:

cpcxfs -f -nD game.dsk
cpcxfs game.dsk -f -b -p discloader game.bin
cpcxfs game.dsk -f -b -p scr game.bi1
cpcxfs game.dsk -f -b -p code game.bi2


tape:

2cdt -n tapeloader -r "! GAME !" game.cdt
2cdt scr game.cdt
2cdt code game.cdt


For you, get your dsk open cpcxfs and put this to extract your files:


open game.dsk
dir
bin
mget *.*
close

Title: Re: Creating tape image from files on disk
Post by: EgoTrip on 19:06, 27 March 13
Thanks for the reply. Is that the only tool, cos I cant seem to get it to work. Is there a graphical tool available?


I have uploaded the disk on the main topic here New Game: Pix (http://www.cpcwiki.eu/forum/games/new-game-pix/msg60340/#msg60340), if anyone wants to create the cdt for me, the order of files is:


PIX.BAS
LOADER1.SCR
PIX2.BAS
01.BIN
02.BIN


The filenames will need to be the same on tape as they are on disk.

Title: Re: Creating tape image from files on disk
Post by: McKlain on 22:30, 27 March 13
In Markus' JavaCPC you have an option to create a tape from files in the loaded dsk using a GUI. It's on Edit > Copy files from DF0 as CDT.
Powered by SMFPacks Menu Editor Mod