Author Topic: Printing from an emulator  (Read 4422 times)

0 Members and 1 Guest are viewing this topic.

Offline CPC_Fan

  • 464 Plus
  • *****
  • Posts: 333
  • Country: gb
  • Liked: 61
  • Likes Given: 128
Printing from an emulator
« on: 18:04, 02 November 14 »
Hi all. I'm looking for some advice about printing from emulators. First of all can it even be done? If so, which emulator would you reccomend? I am mainly looking to produce print outs from Protext, Advanced Art Studio and Stop Press, if that's any help. Also, if you can print from one, would you be able to do it using a modern printer, connected to the PC with a USB lead?

Sorry for all the questions. I just thought that I would ask, as I thought that it might be easier to do it this way, rarther than having to fork out for a second hand printer and trying to find a printer lead for my actual CPC 6128.

Mark

Offline TFM

  • Visit the mysteries of the CPC at www.futureos.de
  • Supporter
  • 6128 Plus
  • *
  • Posts: 9.899
  • Country: aq
  • Space Chicken for FutureOS is free!
    • index.php?action=treasury
    • FutureOS - The revolution on CPC!
  • Liked: 1985
  • Likes Given: 4650
Re: Printing from an emulator
« Reply #1 on: 21:39, 02 November 14 »
Hi Mark,


Never tried  bitmaps... but I often use the 'Printer capture' feature of Caprice to print text in a file. This file can be printed on any printer like a regular text.


Best thing is to try out couple of emulators. Epson compatible printers may be an advantage. I wouldn't wonder if JavaCPC has a special feature for printing.  ;)
TFM of FutureSoft
Also visit the CPC and Plus users favorite OS: FutureOS - The Revolution on CPC6128 and 6128Plus

Offline CPC_Fan

  • 464 Plus
  • *****
  • Posts: 333
  • Country: gb
  • Liked: 61
  • Likes Given: 128
Re: Printing from an emulator
« Reply #2 on: 22:41, 02 November 14 »
Thanks for taking the time to reply TFM.

I will download Caprice and try a few things to see how I get on with it. I did download JavaCPC on my main windows 7 computer, but I couldn't get it to install for some strange reason. Maybe I should try it on my computer which runs windows xp pro and see if it works on there instead?

My printer is actually an Epson one, so hopefully that should give me full compatibility.

Offline TFM

  • Visit the mysteries of the CPC at www.futureos.de
  • Supporter
  • 6128 Plus
  • *
  • Posts: 9.899
  • Country: aq
  • Space Chicken for FutureOS is free!
    • index.php?action=treasury
    • FutureOS - The revolution on CPC!
  • Liked: 1985
  • Likes Given: 4650
Re: Printing from an emulator
« Reply #3 on: 22:44, 03 November 14 »
Hi! Well, I got Win7 too, and JavaCPC works. Devilmarkus can surely help you with installation.  :)
TFM of FutureSoft
Also visit the CPC and Plus users favorite OS: FutureOS - The Revolution on CPC6128 and 6128Plus

Offline CPC_Fan

  • 464 Plus
  • *****
  • Posts: 333
  • Country: gb
  • Liked: 61
  • Likes Given: 128
Re: Printing from an emulator
« Reply #4 on: 22:29, 04 November 14 »
Hmm... I wonder if JavaCPC won't install on my main computer, as it's running 64 bit windows 7, rather than 32 bit windows 7?

Offline TFM

  • Visit the mysteries of the CPC at www.futureos.de
  • Supporter
  • 6128 Plus
  • *
  • Posts: 9.899
  • Country: aq
  • Space Chicken for FutureOS is free!
    • index.php?action=treasury
    • FutureOS - The revolution on CPC!
  • Liked: 1985
  • Likes Given: 4650
Re: Printing from an emulator
« Reply #5 on: 23:01, 04 November 14 »
Got Win7 64 bit too. It's a bit slow, but my Laptop is nearly 6 years old. There are other emulators to check.


Does anybody here know the answer to the printing problem?

TFM of FutureSoft
Also visit the CPC and Plus users favorite OS: FutureOS - The Revolution on CPC6128 and 6128Plus

Offline cpcitor

  • The user previously known as FindYWay
  • 464 Plus
  • *****
  • Posts: 356
  • Country: fr
  • My heart still runs on traditional CPC.
    • My code for the CPC.
  • Liked: 197
  • Likes Given: 452
Re: Printing from an emulator
« Reply #6 on: 10:28, 28 December 17 »
Never tried  bitmaps... but I often use the 'Printer capture' feature of Caprice to print text in a file. This file can be printed on any printer like a regular text.

Current version of caprice32 ( https://github.com/ColinPitrat/caprice32 ) indeed redirects printer output to a file, if enabled.

Code: [Select]
[file]
printer_file=./printer.dat
[system]
printer=1

@Arnoldemu I cannot get a similar behavior using current arnoldemu emulator. It is interesting because I need scripted behavior (autotype + automatically exit on next CPC reset ).
Had a CPC since 1985, currently software dev professional, including embedded systems.

I made in 2013 the first CPC cross-dev environment that auto-installs C compiler and tools: cpc-dev-tool-chain: a portable toolchain for C/ASM development targetting CPC, later forked into CPCTelera.

Offline arnoldemu

  • Supporter
  • 6128 Plus
  • *
  • Posts: 5.336
  • Country: gb
    • Unofficial Amstrad WWW Resource
  • Liked: 2280
  • Likes Given: 3478
Re: Printing from an emulator
« Reply #7 on: 14:19, 29 December 17 »
@Arnoldemu I cannot get a similar behavior using current arnoldemu emulator. It is interesting because I need scripted behavior (autotype + automatically exit on next CPC reset ).
For printing:

Tools->Devices->Printer Port Devices...

Right click to show "Untested" (it should be marked as working that is my bug).

Select "to file" to enable it.

Settings->Devices->Printer->Set File...

enter a filename and ok to create a new file or pick an existing file.





My games. My Games
My website with coding examples: Unofficial Amstrad WWW Resource

Offline cpcitor

  • The user previously known as FindYWay
  • 464 Plus
  • *****
  • Posts: 356
  • Country: fr
  • My heart still runs on traditional CPC.
    • My code for the CPC.
  • Liked: 197
  • Likes Given: 452
Re: Printing from an emulator
« Reply #8 on: 15:52, 29 December 17 »
For printing:

Tools->Devices->Printer Port Devices...

Right click to show "Untested" (it should be marked as working that is my bug).

Select "to file" to enable it.

Settings->Devices->Printer->Set File...

enter a filename and ok to create a new file or pick an existing file.

It works (print #8,"hello"). I understand why I could not find it without help.
After closing and reopening, the file has to be selected again manually (Settings->Devices->Printer->Set File...)
It seems I have to to this at every start? This would not be scalable, my goal is unattended unit testing (a script runs the emulator, autotype runs a program, programs resets CPC on exit which exits the emulator, caller script checks if output is correct -- caprice32 author does this with travis on github).
Had a CPC since 1985, currently software dev professional, including embedded systems.

I made in 2013 the first CPC cross-dev environment that auto-installs C compiler and tools: cpc-dev-tool-chain: a portable toolchain for C/ASM development targetting CPC, later forked into CPCTelera.

Offline scruss

  • CPC664
  • ***
  • Posts: 103
  • Country: ca
    • index.php?action=treasury
    • We Saw a Chicken ...
  • Liked: 80
  • Likes Given: 33
Re: Printing from an emulator
« Reply #9 on: 18:49, 16 June 18 »
I've had minor success converting Epson 9-pin output to PDF using RWAP/PrinterToPDF, but not with Advanced Art Studio output. PrinterToPDF is a bit of a bear to build and use. I think it's intended to be part of a product, the Retro-Printer.

Offline RWAP

  • CPC464
  • **
  • Posts: 44
    • RWAP Software - supporting retro computers
  • Liked: 19
  • Likes Given: 4
Re: Printing from an emulator
« Reply #10 on: 22:18, 11 June 20 »
I've had minor success converting Epson 9-pin output to PDF using RWAP/PrinterToPDF, but not with Advanced Art Studio output. PrinterToPDF is a bit of a bear to build and use. I think it's intended to be part of a product, the Retro-Printer.

Did you ever get any further with this - am interested to know what problems you have compiling the program as others have managed and it is now used with an odd on project for the TI99/4a computer

Offline scruss

  • CPC664
  • ***
  • Posts: 103
  • Country: ca
    • index.php?action=treasury
    • We Saw a Chicken ...
  • Liked: 80
  • Likes Given: 33
Re: Printing from an emulator
« Reply #11 on: 17:34, 18 June 20 »
I haven't tried it for a couple of years. I see you've added some additional features, so I need to try it again.

I bet you had lots of "aargh! why did they do that?" moments in debugging random printer driver output. ESC/P seems to have many different ways of doing the same things.