News:

Printed Amstrad Addict magazine announced, check it out here!

Main Menu

Recent posts

#1
avatar_MoteroV4
Programming / Re: Saving BASIC text file to ...
Last post by MoteroV4 - Today at 04:19
In case it helps you, this is an example of "maketape.sh" with "2cdt" tool that I used a while ago to create the "cdt" that I presented to CPCRetrodev:

#!/bin/bash
# Los nombres de los archivos, son sensibles a Mayúsculas
# NOTA: los ficheros BAS hechos con editor no llevan cabecera AMSDOS. Crear el diskete normalmente,
# cargarlos en Winape y grabarlos con save "nombre.BAS", para convertirlos de ASCII a binario (BAS).
# Aparte ocupan la mitad. Y en ASCII tardaban mucho en cargarse, antes de convertirlos en BAS.
# Finalmente extraerlos del diskete con CPCDiskXP. Usar estos para empaquetarlos en la distribución
# final en disco y en cinta. Se distinguen porque van en letras mayúsculas.
# Para compilar Proyecto en Cinta: ./maketape.sh

ICDT=$CPCT_PATH/tools/2cdt/bin/2cdt
TARGET=memtrainer.cdt

# Crear un nuevo fichero CDT con el nombre de mi "target"
$ICDT -n . $TARGET > /dev/null

# Fuentes de ficheros a insertar en el CDT
#cargador
SOURCE1=MEMTRAIN.BAS
#pantalla
SOURCE2=MEMTRAIN.SCR
#basic ppal.
SOURCE3=SIMON.BAS
#fuentes
SOURCE4=SPACEAGE.FNT
#sprites y ASM
SOURCE5=SIMONBIN.BIN
#musica
SOURCE6=SIMBUFER.BIN


$ICDT -r Memtrainer $SOURCE1 $TARGET
$ICDT -r memtrain.scr -L 0xC000 $SOURCE2 $TARGET > /dev/null
$ICDT -r simon.bas $SOURCE3 $TARGET > /dev/null

$ICDT -r spaceage.fnt -L 0xA074 -X 0xA074 $SOURCE4 $TARGET > /dev/null

$ICDT -r simonbin.bin -L 0x6000 -X 0x9452 $SOURCE5 $TARGET > /dev/null

#$ICDT -r simbufer.bin -L 0x5000 -X 0x05786 $SOURCE6 $TARGET > /dev/null
$ICDT -r simbufer.bin -L 0xC000 $SOURCE6 $TARGET > /dev/null
#2
avatar_m_dr_m
News & Events / Re: 25 years ago...
Last post by m_dr_m - Today at 03:29
Happy birthday! Thanks for your site, which has often been the right tool to discover or find back the most obscure stuff!
Your voice is important, especially for vanity (everybody's favorite sin, not the CPC jazz band).
I mean, spreading news has always been an essential part of the "scene", and I trust your site made some people discover the CPC world was still active (like a volcano, with lots of dust).

Thank you for this little history note, always appreciated.

Oh! And at next meeting let us hear your falsetto singing, together with a saxo solo.

Plus, what Prodatron said.
#3
Thanks again! I'll give this emulator a try too! 

But actually, I just figured it out using 2cdt! Finally!! What I was missing is to save the block in "cpctxt" format! Thanks a lot for the help though, I've discovered a couple of new emulators I didn't know! (I'm relatively new to the CPC world, as I do most of my development for MSX, and I am not very familiar with the CPC tools!)
#4
avatar_Jean-Marie
Programming / Re: Saving BASIC text file to ...
Last post by Jean-Marie - Today at 02:16
I managed to have it working with ACE/DL emulator, which has a Linux version.
You must first save your Basic file in a text format with a BAS extension. Give it a short name, and no spaces nor special characters.
Press F12 to display the menu, then select Floppy & Drives, then Create new floppy in Drive A.
Press F12 again, click again on Floppy & Drives, then on Manage Floppy in Drive A.
From there, you can drag & drop your file in the window, and it will be written directly on the disk.
Finally, press F4 to save the DSK file.
Important: you must tick on the ASCII Import checkbox before dragging the file.
#5
avatar_Jean-Marie
Programming / Re: Saving BASIC text file to ...
Last post by Jean-Marie - Today at 01:44
If you have a Memory full error displayed, that could mean the file header is incorrect and was created for a binary content rather than a Basic one. A basic file must have a flag set up accordingly, and a start address equal to 170h.
You can test your luck with WinAPE which is said to work correctly with WINE.
#6
avatar_ervin
Games / Re: Adapting loading screens t...
Last post by ervin - Today at 00:25
Quote from: Shaun M. Neary on Yesterday at 15:23
Quote from: ervin on Yesterday at 02:46I always really liked the original CPC loading screen, even if Trantor looks like David Lee Roth!  :laugh:
Your new version looks great.
Oh thanks. Now anytime I load that up, all I'll hear is "This... must... be... just... like... living in par-a-dise!", and that was overplayed enough in 1988  :laugh: :laugh:

My job here is done.
:P
#7
Is the problem that the basic file to load into the .cdt has to be tokenized BASIC, rather than a text file? (surprising, since I can save a text file to a .dsk and load it fine though).
#8
S
Programming / Re: Saving BASIC text file to ...
Last post by santi.ontanon - Yesterday at 23:57
Thanks for the suggestion!! This would be definitively enough for my use case for now. Unfortunately "Caprice Forever" is a Windows-only application, and I do not have access to any Windows machine. All my machines at home and at work are Linux/Mac. I tried running it with wine, but it does not seem to work either... hmm... I can run caprice32 no problem (I compiled it from source and it runs, but it does not seem to have that feature).
#9
avatar_Jean-Marie
Programming / Re: Saving BASIC text file to ...
Last post by Jean-Marie - Yesterday at 23:04
Generally, I use the Autotype from clipboard feature on Caprice Forever emulator. It can be painfully slow if the Basic listing is long, but that's a "no-brainer" method.
For some reason, you'll have to check on the Expert Mode from the Help menu first, or the feature won't show up.
You can then create a tape file from the menu, and save your basic listing onto it.
You have the equivalent method on WinApe, but it doesn't seem to work any longer on Windows 11; in my case, it displays some garbled characters. 
#10
avatar_Prodatron
Games / Re: Bubble Quest - GX4000/CPC...
Last post by Prodatron - Yesterday at 22:45
Anyway that's usual today:
People start new great impressive stuff. The scene freaks out, and so the developers want to release the coolest thing ever. Or let's say at least: The product should be as perfect as possible.
But as every developer knows, the first 90% of the development are hard but doable, while the last 10% require 10x more time than expected :laugh:

I guess we already have countless of such projects, cwpab only mentioned the most famouse ones (e.g. you forgot Bombjack :D )
Powered by SMFPacks Menu Editor Mod