CPCWiki forum

General Category => Emulators => Topic started by: Emu on 22:45, 07 January 21

Title: CPCemu 2.0 released
Post by: Emu on 22:45, 07 January 21
I'm proud to present CPCemu 2.0 having the following new features: Download it at https://cpc-emu.org/download.html (https://cpc-emu.org/download.html)!

Thanks to Marco Vieth for testing!

(https://cpc-emu.org/Voyage93.png) (https://cpc-emu.org/Madness.png) (https://cpc-emu.org/FromScratchx.png)


Title: Re: CPCemu 2.0 released
Post by: roudoudou on 08:12, 08 January 21
the emulator is very fast, great job!
Title: Re: CPCemu 2.0 released
Post by: Gryzor on 09:56, 08 January 21
Interface takes a bit to get used to, but everything seems to be ok :)
Title: Re: CPCemu 2.0 released
Post by: robcfg on 13:38, 08 January 21
Hi @Emu (https://www.cpcwiki.eu/forum/index.php?action=profile;u=4040) , I cannot start it on MacOS 10.15.7 Catalina because a problem with dependency hidapi:


QuoteCPCemuMacOS.app/Contents/MacOS/CPCemuMacOS
dyld: Library not loaded: @rpath/hidapi.framework/Versions/A/hidapi
  Referenced from: /Users/robcfg/Downloads/CPCemuMacOS.app/Contents/Frameworks/SDL2.framework/Versions/A/SDL2
  Reason: no suitable image found.  Did find:
   /Users/robcfg/Downloads/CPCemuMacOS.app/Contents/Frameworks/SDL2.framework/Versions/A/Frameworks/hidapi.framework/Versions/A/hidapi: code signature in (/Users/robcfg/Downloads/CPCemuMacOS.app/Contents/Frameworks/SDL2.framework/Versions/A/Frameworks/hidapi.framework/Versions/A/hidapi) not valid for use in process using Library Validation: mapping process and mapped file (non-platform) have different Team IDs



Title: Re: CPCemu 2.0 released
Post by: Emu on 14:41, 08 January 21
Ouch. Thank you, robcfg. I found the reason. I activated the "hardened runtime" and have not tested after that. It needs an exception for loading dependencies signed by someone else. I'm sorry.

Please download again.

Title: Re: CPCemu 2.0 released
Post by: robcfg on 15:14, 08 January 21
It now works!


Thanks a lot!
Title: Re: CPCemu 2.0 released
Post by: Targhan on 15:18, 08 January 21
Looks very interesting. I just noticed the Close button didn't work when the debugger was opened (on Windows).
Do you have plan to improve the UI of the debugger to have for example, floating windows that can be moved, edited in a more user friendly manner? Many of us are still looking for the successor of Winape's venerable debugger :). Especially on Linux!!
Title: Re: CPCemu 2.0 released
Post by: norecess464 on 15:43, 08 January 21
Wow, the venerable CPCemu is back  ;)
On a side note I'm super happy of all those emulators coming out in the last 5 years.

2 questions:
- I see you distribute your program as freeware (good !), but it remains closed-source. Is there a chance in the future you make it open-source ? (not open in the sense "everyone can contribute", but open in the sense "I can fetch the source-code from a git repo and compile it on my Linux machine").
- Do you have plans for AmstradPlus / GX-4000 support ?

Congrats, and welcome back into the emulator arena :)
Title: Re: CPCemu 2.0 released
Post by: Emu on 00:39, 12 January 21
@roudoudou (https://www.cpcwiki.eu/forum/index.php?action=profile;u=1714): Thank you! If you have enough speed you can switch the "Video" setting to "1" to get a more realistic (more analogue :) ) display. You have to get used to it, because it is darker than the default, but I prefer it over the clumsy default display.

@Targhan (https://www.cpcwiki.eu/forum/index.php?action=profile;u=110): The debugger definitely needs improvement in terms of bugs of already present features. On the other hand, I'm not sure that using the mouse is more comfortable than typing short commands (but, I see that window size matters). Unfortunately, I have never seen WinApe. Which separate windows would be needed? What entities would need to be edited in there? I'm working on the close button...

@norecess (https://www.cpcwiki.eu/forum/index.php?action=profile;u=2409): I think CPCemu is going to be open source in the long run. Currently, the code is more than untidy in many places. I need to clean this up first. Besides, I have the ambition to make perfect CRTC emulation before opening the source code. I don't have a clue of the Plus CPCs and the GX-4000. I won't be able to accurately emulate the CRTCs and the rest if I cannot examine their real behaviour. I have been looking into eBay for one, but the prices are ridiculous. So, chances are very low.

Speaking of CRTC emulation accuracy, this has been my primary objective while working on the current release for the last five years. I was hoping for some comments on that, to be honest. I'm really proud that certain demos (e. g., From Scratch, Madness by Gozeur and the Futurs and Vanity parts of the 30 Years Megademo on CRTC type 1, and S&KOH, DemoIzArt, Face Hugger Megademo and Voyage 93 on CRTC type 0) work very well (if not even perfect, at least some of them). I'm still working on the remaining flaws. I would be happy about any reports on demos (or other software) not working correctly. I know that dynamic HSYNCs result in damaged screens sometimes (e. g., in two parts of Dream End, in Scroll Factory and in one part of The Demo). This is really annoying to cope with. Not even my real CPC monitor is able to display these parts of Dream End, for example.

Ah, just in this minute I found the long-wanted reason why the scroller of the Benediction part of the 30YMD is deformed. So, no need to report this any more.
Title: Re: CPCemu 2.0 released
Post by: Emu on 00:43, 12 January 21
Ah, reading my latest post again, I found an ambiguous statement. I should have written "So, chances are very low for Plus or GX support."
This is not a statement about the chances of opening the sources.
Title: Re: CPCemu 2.0 released
Post by: Targhan on 23:33, 12 January 21
Quote from: Emu on 00:39, 12 January 21The debugger definitely needs improvement in terms of bugs of already present features. On the other hand, I'm not sure that using the mouse is more comfortable than typing short commands (but, I see that window size matters). Unfortunately, I have never seen WinApe. Which separate windows would be needed? What entities would need to be edited in there? I'm working on the close button.

You could separate the monitor in a window, the disassembler in another, etc. Both mouse and shortcut should be usable, I personally use both. On my 21" screen, the debugger appears "beyond" the limits of my screen, I have to resize the whole to see the debugger. Most of the times, when debugging, you don't really need to see the CPC screen, but this can still be useful. Hence the floating windows, you can move them. UI is such a hard work, I won't argue with that :).
Title: Re: CPCemu 2.0 released
Post by: CPCBEGIN on 01:10, 16 January 21
Now works in new GNU/Linux distros in PC as Ubuntu Mate 20.04 and Android.But I can't run in raspberry pi 400 with 64 bit Raspberry Pi OS I get this error:./cpcemu: error while loading shared libraries: libSDL2-2.0.so.0: cannot open shared object file: No such file or directory[code]./cpcemu: error while loading shared libraries: libSDL2-2.0.so.0: cannot open shared object file: No such file or directory

The system have installed these packages:libsdl2-2.0-0:arm64
libsdl2-dev


The command "uname -a" show this information:
Linux raspberrypi400 5.10.5-v8+ #1391 SMP PREEMPT Thu Jan 7 17:55:54 GMT 2021 aarch64 GNU/Linux
Title: Re: CPCemu 2.0 released
Post by: Emu on 17:42, 17 January 21
CPCemu for the Raspberry is 32-bit-only to keep maximum compatibility (yes, I can hear norecess clearing his throat). You need to install the 32-bit libraries.

I have not tried 64 bit Raspberry Pi OS, yet, but the following should help:

sudo dpkg --add-architecture armhf

Have you actually tried the Android version? Does it work for you? Unfortunately, I have only one Android device to test...
Title: Re: CPCemu 2.0 released
Post by: CPCBEGIN on 22:56, 17 January 21
Android version runs very fine, only keyboard hide a small part of the botton of the screen and you need a real gamepad to use joystick games.
(https://i.ibb.co/pX7zQfN/Screenshot-2021-01-17-23-06-47-016-com-loritznet-softwarecreations-cpcemu.jpg)
I try in Lineage OS in Raspberry Pi 400 and in a Xiaomi Red Mi Note 7 with success.
Title: Re: CPCemu 2.0 released
Post by: Emu on 22:55, 19 January 21
Thanks for the screenshot, that's helpful. Actually, CPCemu ought to be in landscape orientation all the time. It's an interesting side effect of portrait orientation that there is enough space left for the keyboard. Now I have to figure out how I can move the CPC screen up (as I requested a full screen display and got only a part of it). I cannot promise that this is possible, but I'm going to think it over.

Regarding the joystick, there is one in the bottom right corner of the screen. You just have to hide the keyboard before, e g. by tapping in the upper half of the screen (twice to hide the main menu buttons again). Then, if you tap in the corner a joystick icon should appear in the CPC screen and you should be able to move your joystick and tap the fire button (in the bottom left corner of the screen).
Title: Re: CPCemu 2.0 released
Post by: Emu on 22:56, 19 January 21
I forgot to ask: Have you managed to run CPCemu on the Raspberry?
Title: Re: CPCemu 2.0 released
Post by: Emu on 00:36, 20 January 21
Only a few seconds ago I saw the last line of your post below the screenshot. So, CPCemu runs on your Raspberry Pi 400 64 Bit? Or has Lineage OS been an alternative try because Rasberry Pi OS didn't work?
Title: Re: CPCemu 2.0 released
Post by: robcfg on 07:40, 20 January 21
I tried it on a Raspberry Pi 1 model B+ and it worked albeit incredibly slow.
Title: Re: CPCemu 2.0 released
Post by: CPCBEGIN on 18:12, 20 January 21
Quote from: Emu on 22:56, 19 January 21
I forgot to ask: Have you managed to run CPCemu on the Raspberry?
I try to run added the armhf architecture and the libraries the emulator ask to me with the comands:
sudo dpkg --add-architecture armhf
sudo apt -y install libsdl2-2.0-0:armhf libstdc++6:armhf

But I get this error and I don't know whitch library is the next to install.
/cpcemu: error while loading shared libraries: libbcm_host.so: cannot open shared object file: No such file or directory

If I get to run I made an instalation script.


I also try in an older raspberry pi 2 with raspbian 32 bits and runs... but slow.
Title: Re: CPCemu 2.0 released
Post by: CPCBEGIN on 18:17, 20 January 21
I have a big problem to load another dsk with Android version, I don't know where I must put the files.
Title: Re: CPCemu 2.0 released
Post by: VincentGR on 17:03, 21 January 21
Tried this on my S8+, works like a charm.
Stupid question, how do I rotate the screen?
Title: Re: CPCemu 2.0 released
Post by: CPCBEGIN on 10:05, 23 January 21
Now, I finally try with Raspberry Pi OS 32 bits in my raspberry pi 400 and runs OK and with a decent speed.
Title: Re: CPCemu 2.0 released
Post by: SkulleateR on 10:55, 16 February 21
Quote from: CPCBEGIN on 10:05, 23 January 21
Now, I finally try with Raspberry Pi OS 32 bits in my raspberry pi 400 and runs OK and with a decent speed.
Does the sound work for you ? I also tried on RPI OS 32Bit on my Pi400 and the sound is distorted :(


Seems to kill my boxes but they are ok (check after testing) ...
Title: Re: CPCemu 2.0 released
Post by: Emu on 02:40, 23 February 21
There is a new release 2.1 of CPCemu. You can find it here: https://cpc-emu.org/download.html (https://cpc-emu.org/download.html)

I have fixed many of the problems mentioned above and some more. There are also new features:
Thanks to Sven B. for impressively pointing me towards the wrong colours. Looking at the new colours, I fell in love with CPCemu, again.

Title: Re: CPCemu 2.0 released
Post by: Gryzor on 08:50, 23 February 21
Ah thanks for the update :)

On my phone key repetition is pretty quick to kick in, I always end up typing "caatt" :D
Title: Re: CPCemu 2.0 released
Post by: CPCBEGIN on 16:22, 23 February 21
CPCEmu 2.1 doesn't work in lastest Ubuntu LTS  :(
cpcbegin@i7:/opt/linuxemus/cpcemu-2.1$ ./cpcemu
./cpcemu: /lib/x86_64-linux-gnu/libSDL2-2.0.so.0: no version information available (required by ./cpcemu)
./cpcemu: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by ./cpcemu)


And no idea to load an external dsk in new android version.  :( 
Title: Re: CPCemu 2.0 released
Post by: Emu on 09:16, 24 February 21
@Gryzor (https://www.cpcwiki.eu/forum/index.php?action=profile;u=1): Are you really using realtime emulation? Are you using the on-screen keyboard?

@CPCBEGIN (https://www.cpcwiki.eu/forum/index.php?action=profile;u=1472): I still have to look into the Ubunto problem. Have you tried version 2.0 on Ubuntu? Did it work? Regarding DSK on Android: You have to press the third icon (disk symbol) in the main menu and then the first item in the next window. If by "external" you mean other DSK files than those included with CPCemu then please look at the path below the DSK selection window (inside the red border). You have to copy the DSKs to this directory. Easier than copying DSK files manually is to download them in the Android browser and share them with CPCemu. This works also with ZIP files, but then there will be no autostart.
Title: Re: CPCemu 2.0 released
Post by: Gryzor on 09:18, 24 February 21
Quote from: Emu on 09:16, 24 February 21@Gryzor: Are you really using realtime emulation? Are you using the on-screen keyboard?

Not sure what "realtime emulation" and "on-screen keyboard" are. I tap on the screen, the default Android keyboard comes up, I type.
Title: Re: CPCemu 2.0 released
Post by: CPCBEGIN on 17:41, 24 February 21
Ubuntu Mate 20.04

CPCEmu 2.0 runs OK (https://www.youtube.com/watch?v=7ujqvVJGquY) but 2.1 falls, I check that I have the required library and the file exists in the right path:
/lib/x86_64-linux-gnu/libSDL2-2.0.so.0



Android

Do I need to be root to use the emulator? Do I need special privileges?

I try with my mobile, a Xiaomi Red Mi Note 7, a raspberry pi 400 with Lineage and an Android TV.
Title: Re: CPCemu 2.0 released
Post by: Emu on 09:43, 25 February 21
Ok:

@Gryzor (https://www.cpcwiki.eu/forum/index.php?action=profile;u=1): So, you are using the on-screen keyboard, yes. It's strange that there are multiple keystrokes possible from it at all. I have to try it with other devices myself. What's your Android version? Anyway, you can switch CPCemu between realtime mode and turbo mode by the second button of the main menu (or F2 on desktop systems). Chances are high that you press it by accident on your small display when trying to press the third one (intending to open a DSK). I'm still working on a modified main menu with larger icons arranged differently. Besides, I've found that the initial language selection is still not zoomed, this I will be correct.


@CPCBEGIN (https://www.cpcwiki.eu/forum/index.php?action=profile;u=1472): The reason for the Ubuntu errors is that you need to update your system. Your libraries are too old. But, I admit, it would be better to compile CPCemu on an older system to avoid such problems. I will do so next time. Regarding Android: No, no root privileges required, of course. Actually, you should be able to exit the emulator path. Which Android version are you using? Can you post a screen shot of the open-file window (the one with the red bordered window at the bottom) and a screen shot of the error message when sharing a DSK file from the explorer?
Title: Re: CPCemu 2.0 released
Post by: PaddyC13 on 20:12, 25 February 21
Hi Folks,


Just downloaded 2.1 to try on my Windows 10 64bit PC.


cpcemu_setup-win32-x86-2.1.exe   3.2 MB   Software and manuals all-in-one


The program installs OK but when I try to run the 464, 664 or 6128 the CPCemu window comes up blank and then closes after a few seconds.


Any ideas?


Many thanks


Paddy
UK

Title: Re: CPCemu 2.0 released
Post by: CPCBEGIN on 22:41, 25 February 21
Quote from: Emu on 09:43, 25 February 21
I will do so next time. Regarding Android: No, no root privileges required, of course. Actually, you should be able to exit the emulator path. Which Android version are you using? Can you post a screen shot of the open-file window (the one with the red bordered window at the bottom) and a screen shot of the error message when sharing a DSK file from the explorer?

I'm using Android 10.QKQ1.190910.002, you can see in this video (https://www.youtube.com/watch?v=2_B9oxOQM_E) than it can't exit to emulator path, when in clic in deepest .. i return to CPCEmu's DSK folder.

In this other video you can see what happends if I try to load a dsk with the emulator (https://www.youtube.com/watch?v=ZkzFXxOYTYg).
Title: Re: CPCemu 2.0 released
Post by: CPCBEGIN on 22:59, 25 February 21
Quote from: Emu on 09:43, 25 February 21
@CPCBEGIN (https://www.cpcwiki.eu/forum/index.php?action=profile;u=1472): The reason for the Ubuntu errors is that you need to update your system. Your libraries are too old. But, I admit, it would be better to compile CPCemu on an older system to avoid such problems.
I have Ubuntu 20.04 Mate, this is the LASTEST LTS avalaible, this is not old, newer versions are experimental.
Do you consider to compile incluiding the libraries in the binary (like RetroVirtualMachine (https://www.retrovirtualmachine.org/) by example)?
You might save a lot of problems with too old or too new Ubuntu versions and CPCEmu will run is a lot of more GNU/Linux distros.
Thanks for your work!
Title: Re: CPCemu 2.0 released
Post by: Emu on 01:11, 26 February 21
@CPCBEGIN (https://www.cpcwiki.eu/forum/index.php?action=profile;u=1472):
Ubuntu: Yes, your Ubuntu system is the latest version, but nevertheless there are updates with newer versions of the applications and the libraries. In particular, GLIBC version 2.33 has been released recently and is not yet in your system. So, please try an update as described by https://itsfoss.com/update-ubuntu/ (https://itsfoss.com/update-ubuntu/), e. g., by:
sudo apt update && sudo apt upgrade -y
Compiling with statically linking libraries is a bad idea from a security point of view (among others). As I already mentioned, I will intentionally compile with older dynamic libraries in the next release. This is the only reasonable way.
Android: Thank you for the videos. Looks like a security issue. Are you installing apps to an SD card or to the internal flash memory?

@PaddyC13 (https://www.cpcwiki.eu/forum/index.php?action=profile;u=2859):
Please open a command line window ("CMD", aka DOS window), browse to the CPCemu installation folder and execute
cpcemu > %TEMP%\cpcemu.txt
to redirect the text output into the given file. Then please post the content of this file.

Do you have an opportunity to test version 2.0?
Title: Re: CPCemu 2.0 released
Post by: CPCBEGIN on 07:09, 26 February 21
Quote from: Emu on 01:11, 26 February 21
@CPCBEGIN (https://www.cpcwiki.eu/forum/index.php?action=profile;u=1472):
Android: Thank you for the videos. Looks like a security issue. Are you installing apps to an SD card or to the internal flash memory?
I download the apk  install like any apk, of course, I need to allow install from others.
The DSK are also un the internal memory.
Title: Re: CPCemu 2.0 released
Post by: PaddyC13 on 11:28, 26 February 21
Quote from: Emu on 01:11, 26 February 21
@PaddyC13 (https://www.cpcwiki.eu/forum/index.php?action=profile;u=2859):
Please open a command line window ("CMD", aka DOS window), browse to the CPCemu installation folder and execute
cpcemu > %TEMP%\cpcemu.txt
to redirect the text output into the given file. Then please post the content of this file.

Do you have an opportunity to test version 2.0?


Hi @Emu (https://www.cpcwiki.eu/forum/index.php?action=profile;u=4040)

Just tried the above and all the text file contains is as follows:

CPCEMU (v2.1)  -  The CPC Emulator
  (c) Marco Vieth & Rainer Loritz
             2002-2021
      -- all rights reserved --

I will now try 2.0 and report back.

Kind regards

Paddy
UK
Title: Re: CPCemu 2.0 released
Post by: PaddyC13 on 11:31, 26 February 21
Quote from: Emu on 01:11, 26 February 21
@PaddyC13 (https://www.cpcwiki.eu/forum/index.php?action=profile;u=2859):
Please open a command line window ("CMD", aka DOS window), browse to the CPCemu installation folder and execute
cpcemu > %TEMP%\cpcemu.txt
to redirect the text output into the given file. Then please post the content of this file.

Do you have an opportunity to test version 2.0?


Hi @Emu (https://www.cpcwiki.eu/forum/index.php?action=profile;u=4040)

I tried the same thing with version 2.0 and this time the text file is completely blank.

Hope this helps.

Kind regards

Paddy
UK


Title: Re: CPCemu 2.0 released
Post by: Emu on 01:18, 27 February 21
@CPCBEGIN (https://www.cpcwiki.eu/forum/index.php?action=profile;u=1472): I found the behaviour you documented (default folder "./DISC", no browsing more than one level above) only immediately after installation of CPCemu during the very first run. Please try to stop CPCemu completely by removing it from Android's open app list. I assume that when you run it again the folders will work. Can you check this? If this turns out to be the case I will try to fix it in the next release.

@PaddyC13 (https://www.cpcwiki.eu/forum/index.php?action=profile;u=2859): Unfortunately, I have not had any luck with your problem, yet. The output log is particular strange without any errors. Can you please try to delete or at least rename %APPDATA%\CPCemu and run CPCemu again? Is there any noticable difference?

@SkulleateR (https://www.cpcwiki.eu/forum/index.php?action=profile;u=3124): Today, I tried CPCemu on a Pi 400 and found a disgusting noise instead of CPC sound. Apparently, the audio sample rate must be 48 kHz on the Pi 400. This will be implemented in the next release. By the way, if anyone suffers from delayed sound on a Pi, try to change your screen resolution (!) to the default values of your monitor.
Title: Re: CPCemu 2.0 released
Post by: Livingstone on 14:53, 27 February 21

Android version cpcemu 2.1
Quote from: Emu on 01:18, 27 February 21
@CPCBEGIN (https://www.cpcwiki.eu/forum/index.php?action=profile;u=1472): I found the behaviour you documented (default folder "./DISC", no browsing more than one level above) only immediately after installation of CPCemu during the very first run. Please try to stop CPCemu completely by removing it from Android's open app list. I assume that when you run it again the folders will work. Can you check this? If this turns out to be the case I will try to fix it in the next release.



Hi, it doesn't work.
The path begins in "/data/data/com.loritznet.softwarecreations.cpcemu/files/DISC" and when the levels are raised to the root / it only indicates "/ ../".
Title: Re: CPCemu 2.0 released
Post by: CPCBEGIN on 16:05, 27 February 21
Quote from: Emu on 01:18, 27 February 21
@CPCBEGIN (https://www.cpcwiki.eu/forum/index.php?action=profile;u=1472): I found the behaviour you documented (default folder "./DISC", no browsing more than one level above) only immediately after installation of CPCemu during the very first run. Please try to stop CPCemu completely by removing it from Android's open app list. I assume that when you run it again the folders will work. Can you check this? If this turns out to be the case I will try to fix it in the next release.
I always close CPCEmu before run again, if I don't do and I launch this I can not open the top icons, sometimes the emulator hangs.

By the way, here you are a screenshot with the permissions for CPCEmu.
Title: Re: CPCemu 2.0 released
Post by: PaddyC13 on 15:11, 28 February 21
Quote from: Emu on 01:18, 27 February 21
@PaddyC13 (https://www.cpcwiki.eu/forum/index.php?action=profile;u=2859): Unfortunately, I have not had any luck with your problem, yet. The output log is particular strange without any errors. Can you please try to delete or at least rename %APPDATA%\CPCemu and run CPCemu again? Is there any noticable difference?


Hi @Emu (https://www.cpcwiki.eu/forum/index.php?action=profile;u=4040)

Thank you for your response.  I tried to rename the %APPDATA%\CPCemu folder but the OS states it is in use by another program.  The full expanded path is:

Users\Paddy\AppData\Roaming\CPCemu

I did try to do this from an Administrator command prompt as well.

Does this help?

Kind regards

Paddy
UK
Title: Re: CPCemu 2.0 released
Post by: Emu on 23:58, 28 February 21
@Livingstone (https://www.cpcwiki.eu/forum/index.php?action=profile;u=121) , @CPCBEGIN (https://www.cpcwiki.eu/forum/index.php?action=profile;u=1472) : I think I now understand what the two of you are trying to do. You want to browse to the folder of some other app to open a DSK file from there. Unfortunately, such operation is not allowed by Android. You will need either to share DSK files with CPCemu from those other apps (which will copy them to the DISC folder of CPCemu) or to copy the DSK files to the DISC folder of CPCemu yourself somehow.

@PaddyC13 (https://www.cpcwiki.eu/forum/index.php?action=profile;u=2859) : Thank you for testing. I think the reason for the crash is exactly that some process locks one or more files in this CPCemu folder. I assume that if you find the culprit (maybe a CPCemu zombie process?), kill it and then delete the folder then the next start of CPCemu will work. Can you delete the folder directly after a reboot?

Title: Re: CPCemu 2.0 released
Post by: CPCBEGIN on 10:46, 01 March 21
Quote from: Emu on 23:58, 28 February 21
@Livingstone (https://www.cpcwiki.eu/forum/index.php?action=profile;u=121) , @CPCBEGIN (https://www.cpcwiki.eu/forum/index.php?action=profile;u=1472) : I think I now understand what the two of you are trying to do. You want to browse to the folder of some other app to open a DSK file from there. Unfortunately, such operation is not allowed by Android. You will need either to share DSK files with CPCemu from those other apps (which will copy them to the DISC folder of CPCemu) or to copy the DSK files to the DISC folder of CPCemu yourself somehow.

NO, this was the Plan C, I try first to load from CPCEmu and try to find the path where I must to copy the DSK without success.

Can you make a video how to load dsk in the emulator? There is a lot of people can't load them.

You can use an app to capture video on Android or ScreenScream than show phone screen on PC and save with OBS Studio or Vokoscreen by example.
Title: Re: CPCemu 2.0 released
Post by: SkulleateR on 12:34, 01 March 21
Got the same problem here, seems the path is /DATA/DATA/COM.LORITZNET.SOFTWARECREATIONS.CPCEMU/FILES/DISC/ but I cannot find this path on my entire phone, there isn't even a DATA Folder in Root, only DATA Folder is in ANDROID, but thats it


Even tried to search for hidden files/folders, no joy .....
Title: Re: CPCemu 2.0 released
Post by: PaddyC13 on 18:20, 01 March 21
Quote from: Emu on 23:58, 28 February 21
@PaddyC13 (https://www.cpcwiki.eu/forum/index.php?action=profile;u=2859) : Thank you for testing. I think the reason for the crash is exactly that some process locks one or more files in this CPCemu folder. I assume that if you find the culprit (maybe a CPCemu zombie process?), kill it and then delete the folder then the next start of CPCemu will work. Can you delete the folder directly after a reboot?

Hi @Emu (https://www.cpcwiki.eu/forum/index.php?action=profile;u=4040)

Rebooted and renamed the folder.  I tried starting CPCemu from the command line with redirection to a text file and got the same as before with 2.1:

CPCEMU (v2.0)  -  The CPC Emulator
(c) Marco Vieth & Rainer Loritz
             2002-2021
      -- all rights reserved --

If I delete the folder, then CPCemu recreates the folder but still crashes.

Does this help?

Kind regards

Paddy
UK
Title: Re: CPCemu 2.0 released
Post by: Livingstone on 20:58, 02 March 21
Quote from: Emu on 23:58, 28 February 21
@Livingstone (https://www.cpcwiki.eu/forum/index.php?action=profile;u=121) , @CPCBEGIN (https://www.cpcwiki.eu/forum/index.php?action=profile;u=1472) : I think I now understand what the two of you are trying to do. You want to browse to the folder of some other app to open a DSK file from there. Unfortunately, such operation is not allowed by Android. You will need either to share DSK files with CPCemu from those other apps (which will copy them to the DISC folder of CPCemu) or to copy the DSK files to the DISC folder of CPCemu yourself somehow.



Indeed, but in order to copy dsk's to the DISC directory, root permissions are required because the program is installed in a protected directory.
Is it not possible that the program allows to choose the dsk's files from the "sdcard" folder?
Title: Re: CPCemu 2.0 released
Post by: Emu on 09:19, 03 March 21
@Livingstone (https://www.cpcwiki.eu/forum/index.php?action=profile;u=121) , @CPCBEGIN (https://www.cpcwiki.eu/forum/index.php?action=profile;u=1472) : Thank you for not giving up! You are right, this is indeed a security issue of Android. I've been working on it for a few days and came to a similar conclusion as Livingstone. The files need to be stored in what Android calls "external storage" (not necessarily an SD card, there is also "primary external storage" in the integrated flash memory). I'm sorry that I didn't find this problem myself. The modified version is already working. I hope to release it soon.

But still one question: Have you tried to share a DSK file with CPCemu from your file explorer or your browser? This has always worked for me, yet.

@PaddyC13 (https://www.cpcwiki.eu/forum/index.php?action=profile;u=2859): I'm sorry, but I don't have any improvements in your case. I will create a special cpcemu.exe file that reports after each of the first commands. So you will be able to tell me where it stops. It's a strange thing as normally CPCemu outputs reasonable error messages.
Title: Re: CPCemu 2.0 released
Post by: PaddyC13 on 12:34, 03 March 21
Quote from: Emu on 09:19, 03 March 21
@PaddyC13 (https://www.cpcwiki.eu/forum/index.php?action=profile;u=2859): I'm sorry, but I don't have any improvements in your case. I will create a special cpcemu.exe file that reports after each of the first commands. So you will be able to tell me where it stops. It's a strange thing as normally CPCemu outputs reasonable error messages.


Hi @Emu (https://www.cpcwiki.eu/forum/index.php?action=profile;u=4040)

I would be happy to help in testing.  To my knowledge, this PC is not unusual in any way (famous last words!)...

ThinkPad E460 Laptop
Intel(R) Core(TM) i7-6500U CPU @ 2.50GHz
16.0 GB RAM
512GB Samsung 860 PRO SSD
Windows 10 Home, 20H2, 19042.844

It does have an AMD Radeon R7 M360 dedicated graphics card onboard - should that make any difference?

Kind regards

Paddy
UK
Title: Re: CPCemu 2.0 released
Post by: SkulleateR on 12:37, 03 March 21
Quote from: Emu on 09:19, 03 March 21
But still one question: Have you tried to share a DSK file with CPCemu from your file explorer or your browser? This has always worked for me, yet.


Silly question : How should I do that ? If I "share" a DSK file it can only be send by whatsapp or bluetooth or something like that, no way to share it with CPCEmu ?!?
Title: Re: CPCemu 2.0 released
Post by: CPCBEGIN on 06:03, 05 March 21
Quote from: Emu on 09:19, 03 March 21
But still one question: Have you tried to share a DSK file with CPCemu from your file explorer or your browser? This has always worked for me, yet.
Yes, but when I share a DSK from my file explorer my phone doesn't offer me CPCEmu, only Telegram, Whatsapp, etc...
How can you get to share this files with CPCEmu?

Don't care about this, we try your new version, this is the process to fix software with betatesters  ;)
Title: Re: CPCemu 2.0 released
Post by: Emu on 15:32, 13 March 21
@PaddyC13 (https://www.cpcwiki.eu/forum/index.php?action=profile;u=2859) : Here are some questions that I should have asked you two weeks ago:
Title: Re: CPCemu 2.2 released
Post by: Emu on 23:42, 14 March 21
I've just released version 2.2 with the following features:Download available at: https://cpc-emu.org/download.html

@CPCBEGIN (https://www.cpcwiki.eu/forum/index.php?action=profile;u=1472) , @SkulleateR (https://www.cpcwiki.eu/forum/index.php?action=profile;u=3124) : Please check the folder sharing on Android, again. Unfortunately, there is a similar problem on iOS, which I have not been able to solve, yet.

Title: Re: CPCemu 2.0 released
Post by: megachur on 09:15, 15 March 21
Hello,

Juste something about the 3 dsks you provide in the archive :
Batman Forever (Disk 1 side A).dsk , etC.

It seems to have been generated with "Arnold".

The track number (after "Track-Info") seems not good...
for track 00 it is ok but
for track 01 it is not good :
see at #1400
at #1410 the track number is wrong = #02
it should be #01 !
then for others tracks, the track number are real track number * 2 = #04, #06, ..., #52 !!!

compare also with the C (cylinder number of the sector id) which is good in this files !
but in fact, it could be different (for some rares disk protections), so we can not take the C from the sector id and correct the track number.. the file is wrong !
compare with the correct dsk on cpc-power.com if you need an example of good dsk !

Also, congratulations for the improvement of your emulator !
Title: Re: CPCemu 2.0 released
Post by: Emu on 22:12, 15 March 21
I don't have a clue where I got these DSKs from. I will use the correct ones in the next release.

How did you notice?
Title: Re: CPCemu 2.0 released
Post by: megachur on 06:51, 16 March 21
this was luck !

I just tried the dsk in my own cpc emulator and found something wrong when I started the demo !

Then I found where was the error...
Title: Re: CPCemu 2.0 released
Post by: PaddyC13 on 14:45, 16 March 21
Quote from: Emu on 15:32, 13 March 21
@PaddyC13 (https://www.cpcwiki.eu/forum/index.php?action=profile;u=2859) : Here are some questions that I should have asked you two weeks ago:

       
  • To which folder have you installed CPCemu? Is it %PROGRAMFILES(X86)%\CPCEMU-2.1?
  • When starting CPCemu, are you asked for a language?
  • What is the content of %APPDATA%\CPCemu after you started CPCemu? Is it empty?
  • After you start CPCemu from CMD with "cpcemu > log.txt 2>&1" (the last part is important, there are no spaces between 2 and 1), what's in "log.txt"?


Hi @Emu (https://www.cpcwiki.eu/forum/index.php?action=profile;u=4040)

Thank you for your reply.  I just installed 2.2 and tried it (just in case) but alas I get the same result.

The answers to your questions:

To which folder have you installed CPCemu? Is it %PROGRAMFILES(X86)%\CPCEMU-2.1?

"C:\Program Files (x86)\CPCEMU-2.1\"

When starting CPCemu, are you asked for a language?

No

What is the content of %APPDATA%\CPCemu after you started CPCemu? Is it empty?

It is empty

After you start CPCemu from CMD with "cpcemu > log.txt 2>&1" (the last part is important, there are no spaces between 2 and 1), what's in "log.txt"?

CPCEMU (v2.2)  -  The CPC Emulator

   (c) Marco Vieth & Rainer Loritz
             2002-2021
      -- all rights reserved --

Does this help?

Many thanks

Paddy
UK
Title: Re: CPCemu 2.2 released
Post by: CPCBEGIN on 18:04, 16 March 21
I try new CPCEmu 2.2 and all linux versions runs very fine in:
But I still can't load external dsk in android version, now I see the complete path but when I try to switch to a external folder I can't see anything in it.
Also, if I close and open the emulator in android, sometimes hangs or doesn't show the action icons.
Title: Re: CPCemu 2.0 released
Post by: Livingstone on 16:15, 17 March 21
Now version 2.2 for android does not install, :'(
what is the minimum version of Android?
Title: Re: CPCemu 2.0 released
Post by: Emu on 22:30, 18 March 21
@CPCBEGIN (https://www.cpcwiki.eu/forum/index.php?action=profile;u=1472) : Can you browse to the files of CPCemu with your file explorer app? Can you share DSK files from your browser?

@PaddyC13 (https://www.cpcwiki.eu/forum/index.php?action=profile;u=2859) : There is now a test version available for download: https://cpc-emu.org/Release/2021-03-14/cpcemu_setup_checkpoints_v1-win32-x86-2.2.exe (https://cpc-emu.org/Release/2021-03-14/cpcemu_setup_checkpoints_v1-win32-x86-2.2.exe). Please install it as usual and start CPCemu. It should display checkpoints. Please report the maximum checkpoint reached. We will do the same thing for the subroutine following this checkpoint with sub-checkpoints.

@Livingstone (https://www.cpcwiki.eu/forum/index.php?action=profile;u=121) : Please try to uninstall CPCemu before installing the new one (drag it into the trash can). Does this help? Up to which point does it work? Not at all? Are you asked for a language at least?
Title: Re: CPCemu 2.0 released
Post by: Emu on 22:58, 18 March 21
@CPCBEGIN (https://www.cpcwiki.eu/forum/index.php?action=profile;u=1472) : I just tested browsing on an Android 5.0 tablet - it works. Then, I looked into the Android documentation and found that there is a special privilege required for browsing starting from a certain Android version (apparently, 6 or 7). However, this special privilege should be used only if the core function of the app is file handling, which is not the case for CPCemu.

As I am going to publish CPCemu in the play store, I won't be able to require this special privilege. My only option would be to require it only for the APK downloaded from my website, so I would have to build two different versions. The question is if the browsing feature is that important.

I assume that both sharing and using a file explorer would be enough for most users. What is your opinion?
Title: Re: CPCemu 2.0 released
Post by: PaddyC13 on 09:58, 19 March 21
Quote from: Emu on 22:30, 18 March 21
@PaddyC13 (https://www.cpcwiki.eu/forum/index.php?action=profile;u=2859) : There is now a test version available for download: https://cpc-emu.org/Release/2021-03-14/cpcemu_setup_checkpoints_v1-win32-x86-2.2.exe (https://cpc-emu.org/Release/2021-03-14/cpcemu_setup_checkpoints_v1-win32-x86-2.2.exe). Please install it as usual and start CPCemu. It should display checkpoints. Please report the maximum checkpoint reached. We will do the same thing for the subroutine following this checkpoint with sub-checkpoints.

Hi @Emu (https://www.cpcwiki.eu/forum/index.php?action=profile;u=4040)

Thank you for this.  I have installed your debug version and when I select the CPC128 option, it gets to checkpoint 8.  I also tried the CPC464 option and it gets to the same check point also.

Hope this helps.

Paddy
UK
Title: Re: CPCemu 2.0 released
Post by: Livingstone on 18:15, 19 March 21
Quote from: Emu on 22:30, 18 March 21


@Livingstone (https://www.cpcwiki.eu/forum/index.php?action=profile;u=121) : Please try to uninstall CPCemu before installing the new one (drag it into the trash can). Does this help? Up to which point does it work? Not at all? Are you asked for a language at least?

I have not been able to install version 2.2 with your instructions.
I have a table with Android version 5.1.1.
The only version of cpcemu that I can install is up to 2.1.
:(
:( :( :( :( :( :(
Title: Re: CPCemu 2.0 released
Post by: SkulleateR on 18:47, 19 March 21

@Emu (https://www.cpcwiki.eu/forum/index.php?action=profile;u=4040)


New Version installs fine on Android 10 Phone and now I can go to file browser and do an "Open with" and then CPC-EMU is present in the list, that works so far ... but I really think it would be better (like other emulators) to let you define a "Roms" folder (or disk maybe) where you can put all your DSK files and open it from disc menu inside the emulator, this would be less confusing ...


P.S : does the Arm Version now run on 64 Bit (just a quick question before I test) ?
Title: Re: CPCemu 2.0 released
Post by: CPCBEGIN on 21:33, 19 March 21
Quote from: Emu on 22:58, 18 March 21
@CPCBEGIN (https://www.cpcwiki.eu/forum/index.php?action=profile;u=1472) : I just tested browsing on an Android 5.0 tablet - it works. Then, I looked into the Android documentation and found that there is a special privilege required for browsing starting from a certain Android version (apparently, 6 or 7). However, this special privilege should be used only if the core function of the app is file handling, which is not the case for CPCemu.

As I am going to publish CPCemu in the play store, I won't be able to require this special privilege. My only option would be to require it only for the APK downloaded from my website, so I would have to build two different versions. The question is if the browsing feature is that important.

I assume that both sharing and using a file explorer would be enough for most users. What is your opinion?
I think that most new devices use around Android 10 and we can load dsk friendly is essential.
You can ask to other authors of emulator how they solve this problem.
I'd wait to solve this problem and the hangs when you open the emulator again before publish in Play Store.
Title: Re: CPCemu 2.0 released
Post by: Emu on 22:00, 19 March 21
@PaddyC13 (https://www.cpcwiki.eu/forum/index.php?action=profile;u=2859) : Thank you for testing. Apparently, the issue is connected to the window creation. Are you sure you entered "2>&1" when creating the log file? Anyway, please find the next iteration here and report the result: https://cpc-emu.org/Release/2021-03-14/cpcemu_checkpoints_v2-win32-x86-2.2.zip (https://cpc-emu.org/Release/2021-03-14/cpcemu_checkpoints_v2-win32-x86-2.2.zip)

@SkulleateR (https://www.cpcwiki.eu/forum/index.php?action=profile;u=3124) : There is a folder "DISC" where you can put your DSK files (or ZIPs). You should see its location below the "Insert Disc" window in the red border. Ah, perhaps it's out of the visible area if you have a small screen, I will check that. But I agree, it would be nice to have a menu item that opens some kind of file explorer. I have to check if there is some kind of "default application" for file browsing on Android. I've never heard of such a thing.

@Livingstone (https://www.cpcwiki.eu/forum/index.php?action=profile;u=121) : I found the problem, but not the exact reason. It has to do with the CRT emulation (video mode=1) if you have a screen with less than about 1000 pixels in the vertical direction, but I don't understand why it happens at the very first start where "video mode" is 0 by default. So, I've added a check for the screen resolution. I hope this will work for you: https://cpc-emu.org/Release/2021-03-14/cpcemu-android-multicpu-2.2.1.apk (https://cpc-emu.org/Release/2021-03-14/cpcemu-android-multicpu-2.2.1.apk)

@CPCBEGIN (https://www.cpcwiki.eu/forum/index.php?action=profile;u=1472) : I think I won't be able to request the file browsing privilege. But perhaps the idea of SkulleateR is the next best thing (make the file explorer pop up from CPCemu with the DISC folder). If this is not possible on Android, we need to fall back to browsing to the DISC folder manually. I think one can set a bookmark there to find it again faster. But, of course, CPCemu must display the location of the folder. I will check this. Regarding the hangs: How can I reproduce them? Is CPCemu in a certain state when they occur, e. g. in the main menu or in an open window?


Title: Re: CPCemu 2.0 released
Post by: PaddyC13 on 09:17, 20 March 21
Quote from: Emu on 22:00, 19 March 21
@PaddyC13 (https://www.cpcwiki.eu/forum/index.php?action=profile;u=2859) : Thank you for testing. Apparently, the issue is connected to the window creation. Are you sure you entered "2>&1" when creating the log file? Anyway, please find the next iteration here and report the result: https://cpc-emu.org/Release/2021-03-14/cpcemu_checkpoints_v2-win32-x86-2.2.zip (https://cpc-emu.org/Release/2021-03-14/cpcemu_checkpoints_v2-win32-x86-2.2.zip)

Hi @Emu (https://www.cpcwiki.eu/forum/index.php?action=profile;u=4040)

Thank you for your reply.  I have just run the above EXE and get a dialog box stating...

cpcemu.exe - System Error

The code execution cannot proceed because SDL2.DLL was
not found.  Reinstalling the program may fix this problem.

Hope this helps.

Kind regards

Paddy
UK
Title: Re: CPCemu 2.0 released
Post by: Livingstone on 12:11, 20 March 21
Quote from: Emu on 22:00, 19 March 21
@Livingstone (https://www.cpcwiki.eu/forum/index.php?action=profile;u=121) : I found the problem, but not the exact reason. It has to do with the CRT emulation (video mode=1) if you have a screen with less than about 1000 pixels in the vertical direction, but I don't understand why it happens at the very first start where "video mode" is 0 by default. So, I've added a check for the screen resolution. I hope this will work for you: https://cpc-emu.org/Release/2021-03-14/cpcemu-android-multicpu-2.2.1.apk (https://cpc-emu.org/Release/2021-03-14/cpcemu-android-multicpu-2.2.1.apk)




Hi first, thank you for fighting to find a solution.


I think because of the compilation I can't run the APK installation package


With version 2.1 there is no problem, but with 2.2 and 2.2.1 the message that my tablet with Android 5.1.1 gives me is this:
"AN ERROR OCCURRED WHEN ANALYZING THE ANDROID PACKAGE "


Title: Re: CPCemu 2.0 released
Post by: Emu on 17:17, 20 March 21
Argh, it was too late for me last night.

@PaddyC13 (https://www.cpcwiki.eu/forum/index.php?action=profile;u=2859) : I'm sorry. I forgot to mention that the zip archive contains cpcemu.exe only and that you have to copy this file to the installation folder (overwriting the previous cpcemu.exe).

@CPCBEGIN (https://www.cpcwiki.eu/forum/index.php?action=profile;u=1472) : Thanks, this message will help to find the primary problem. In the meantime, I also found that there are ways to open a file explorer if there is one installed, but they are not reliable for different explorers. I also noticed that the Android 5 browser does not hand over a file to CPCemu when downloading a file, but a URL. So I still have to add a download routine.
Title: Re: CPCemu 2.0 released
Post by: Emu on 23:17, 20 March 21
@SkulleateR (https://www.cpcwiki.eu/forum/index.php?action=profile;u=3124) : Meanwhile, I have created and uploaded the 64-bit ARM version for the Raspberry Pi: https://cpc-emu.org/download.html (https://cpc-emu.org/download.html).
Title: Re: CPCemu 2.0 released
Post by: SkulleateR on 23:19, 20 March 21
Quote from: Emu on 23:17, 20 March 21
@SkulleateR (https://www.cpcwiki.eu/forum/index.php?action=profile;u=3124) : Meanwhile, I have created and uploaded the 64-bit ARM version for the Raspberry Pi: https://cpc-emu.org/download.html (https://cpc-emu.org/download.html).
Nice, I'll try tomorrow :)
Title: Re: CPCemu 2.0 released
Post by: PaddyC13 on 11:09, 21 March 21
Quote from: Emu on 17:17, 20 March 21
@PaddyC13 (https://www.cpcwiki.eu/forum/index.php?action=profile;u=2859) : I'm sorry. I forgot to mention that the zip archive contains cpcemu.exe only and that you have to copy this file to the installation folder (overwriting the previous cpcemu.exe).

Hi @Emu (https://www.cpcwiki.eu/forum/index.php?action=profile;u=4040)

No problem.  I have copied the EXE to the installation folder and re-tested.  This time, the latest dialog box states Screen 8.

Kind regards

Paddy
UK
Title: Re: CPCemu 2.0 released
Post by: Emu on 16:34, 21 March 21
@Livingstone (https://www.cpcwiki.eu/forum/index.php?action=profile;u=121) : It appears to be a naming problem of the APK, but I don't understand why this does not occur in version 2.1, and why this does not happen to everybody. Version 2.1 does work on the same device?!?

@PaddyC13 (https://www.cpcwiki.eu/forum/index.php?action=profile;u=2859) : Thank you for the report. Probably, I found the reason. I requested hardware-accelerated graphics, assuming everybody has one, today. In the following version, I removed this condition but left in the remaining check points, please test: https://cpc-emu.org/Release/2021-03-14/cpcemu_checkpoints_v2-win32-x86-2.2.zip (https://cpc-emu.org/Release/2021-03-14/cpcemu_checkpoints_v2-win32-x86-2.2.zip)
Title: Re: CPCemu 2.0 released
Post by: PaddyC13 on 18:39, 21 March 21
Quote from: Emu on 16:34, 21 March 21
@PaddyC13 (https://www.cpcwiki.eu/forum/index.php?action=profile;u=2859) : Thank you for the report. Probably, I found the reason. I requested hardware-accelerated graphics, assuming everybody has one, today. In the following version, I removed this condition but left in the remaining check points, please test: https://cpc-emu.org/Release/2021-03-14/cpcemu_checkpoints_v2-win32-x86-2.2.zip (https://cpc-emu.org/Release/2021-03-14/cpcemu_checkpoints_v2-win32-x86-2.2.zip)

Hi @Emu (https://www.cpcwiki.eu/forum/index.php?action=profile;u=4040)

Thank you for your reply.  I have tested with the new EXE and I get exactly the same result as before i.e. it gets to the Screen 8 dialog box.

Just to clarify, my PC in a ThinkPad E460 laptop with an Intel Core i7 6600U processor (Intel HD Graphics 520).  In addition, the laptop has dedicated graphics in the form of an AMD Radeon R7 M360 with 2GB RAM.

Hope this helps.

Paddy
UK
Title: Re: CPCemu 2.0 released
Post by: SkulleateR on 20:02, 21 March 21
@Emu (https://www.cpcwiki.eu/forum/index.php?action=profile;u=4040)


Thx for this ARM 64 Bit Version, works fine here, tested some gaes on it so far ....


BUT !!!! Can you implement an Option to turn the sound down ? I got my System sound at minimum but CPCEmu is still VERY loud ....
Title: Re: CPCemu 2.0 released
Post by: Emu on 20:11, 21 March 21

@PaddyC13 (https://www.cpcwiki.eu/forum/index.php?action=profile;u=2859) : I'm sorry, again, I pasted the wrong link. I'm afraid I'm getting old. "v2" was the previous test version, of course we're at "v3" now: https://cpc-emu.org/Release/2021-03-14/cpcemu_checkpoints_v3-win32-x86-2.2.zip (https://cpc-emu.org/Release/2021-03-14/cpcemu_checkpoints_v3-win32-x86-2.2.zip)

@SkulleateR (https://www.cpcwiki.eu/forum/index.php?action=profile;u=3124) : I've also noticed that CPCemu is quite loud under some conditions. Actually, I would have supposed that it still is governed by the system's audio settings (setting a maximum output level). I have to look if I need to explicitly set a flag for this behaviour (which would be strange in my opinion).


Title: Re: CPCemu 2.0 released
Post by: PaddyC13 on 10:43, 22 March 21
Quote from: Emu on 20:11, 21 March 21
@PaddyC13 (https://www.cpcwiki.eu/forum/index.php?action=profile;u=2859) : I'm sorry, again, I pasted the wrong link. I'm afraid I'm getting old. "v2" was the previous test version, of course we're at "v3" now: https://cpc-emu.org/Release/2021-03-14/cpcemu_checkpoints_v3-win32-x86-2.2.zip (https://cpc-emu.org/Release/2021-03-14/cpcemu_checkpoints_v3-win32-x86-2.2.zip)

Hi @Emu (https://www.cpcwiki.eu/forum/index.php?action=profile;u=4040)

Extracted the new EXE and copied it to "C:\Program Files (x86)\CPCEMU-2.1\cpcemu.exe".

When I select CPC6128, I get a dialog box stating "Screen" followed by a blank window.  After a few seconds the blank window closes and then nothing.

Just to clarify, my PC in a ThinkPad E460 laptop with an Intel Core i7 6600U processor (Intel HD Graphics 520).  In addition, the laptop has dedicated graphics in the form of an AMD Radeon R7 M360 with 2GB RAM.

Kind regards

Paddy
UK
Title: Re: CPCemu 2.0 released
Post by: Emu on 21:55, 23 March 21
@PaddyC13 (https://www.cpcwiki.eu/forum/index.php?action=profile;u=2859) : Please try it from CMD again, including the redirection, and tell me the error message in log.txt:

cpcemu.exe > log.txt 2>&1

However, I expect: "Couldn't find matching render driver", which wouldn't help my any further.

Have you installed the latest graphics drivers? Are you perhaps trying this on Linux with Wine or something similar?
Title: Re: CPCemu 2.0 released
Post by: Livingstone on 11:50, 27 March 21
Quote from: Emu on 16:34, 21 March 21
@Livingstone (https://www.cpcwiki.eu/forum/index.php?action=profile;u=121) : It appears to be a naming problem of the APK, but I don't understand why this does not occur in version 2.1, and why this does not happen to everybody. Version 2.1 does work on the same device?!?



Sorry, I have not been able to answer before.
Indeed, all the tests have been done on the same device.
Now I have version 2.1 installed, but it has the problem that I can't get out of the apk installation directory, to search for more DSK's. :-[
Title: Re: CPCemu 2.0 released
Post by: Emu on 12:30, 27 March 21
@Livingstone (https://www.cpcwiki.eu/forum/index.php?action=profile;u=121) : Thank you. I think I found a possible reason for the installation problem of v2.2 - I might have checked only one of the two signature options when creating the APK. On the other hand, a deinstallation should help to avoid this problem, which was not the case for your device. So, let's see if it works again if I use both signatures in the next release.

I'm already working on it, because I was told that the keyboard support for French (and, obviously, any other language, even German) is broken. I clearly remember me typing all keys in every selectable keyboard language to record the key codes at the correct places one day in the past - and typing on the German keyboard in CPCemu sometimes. I must have overwritten the .dat file with these key bindings later. I wonder why I cannot find the correct version among all the old versions. I'll continue to look for it and will have to redo this work if I cannot find it.

To make you and @CPCBEGIN (https://www.cpcwiki.eu/forum/index.php?action=profile;u=1472) happy I included the privilege to browse directories. Unfortunately, this works only in my Android 5 emulator, not in later emulated Android versions. I have not tested in on our real Android 5 device, yet.

Title: Re: CPCemu 2.0 released
Post by: PaddyC13 on 14:49, 27 March 21
Quote from: Emu on 21:55, 23 March 21
@PaddyC13 (https://www.cpcwiki.eu/forum/index.php?action=profile;u=2859) : Please try it from CMD again, including the redirection, and tell me the error message in log.txt:

cpcemu.exe > log.txt 2>&1

However, I expect: "Couldn't find matching render driver", which wouldn't help my any further.

Have you installed the latest graphics drivers? Are you perhaps trying this on Linux with Wine or something similar?

Hi @Emu (https://www.cpcwiki.eu/forum/index.php?action=profile;u=4040)

Thank you for your reply.  I ran the test from the command line again and this is what the log file contains:

CPCEMU (v2.2)  -  The CPC Emulator
  (c) Marco Vieth & Rainer Loritz
             2002-2021
      -- all rights reserved --

Both Intel integrated and AMD discrete graphics are fully updated (as is the OS).

Versions are:

OS - Windows 10 Home 20H2 19042.870
Intel HD 520 Driver - 27.20.100.9316, 18/02/2021
AMD Radeon R7 M360 Driver - 27.20.15003.1004, 10/03/2021

Hope this helps.

Kind regards

Paddy
UK
Title: Re: CPCemu 2.0 released
Post by: Livingstone on 15:35, 27 March 21
Quote from: Emu on 12:30, 27 March 21
@Livingstone (https://www.cpcwiki.eu/forum/index.php?action=profile;u=121) : Thank you. I think I found a possible reason for the installation problem of v2.2 - I might have checked only one of the two signature options when creating the APK. On the other hand, a deinstallation should help to avoid this problem, which was not the case for your device. So, let's see if it works again if I use both signatures in the next release.

I'm already working on it, because I was told that the keyboard support for French (and, obviously, any other language, even German) is broken. I clearly remember me typing all keys in every selectable keyboard language to record the key codes at the correct places one day in the past - and typing on the German keyboard in CPCemu sometimes. I must have overwritten the .dat file with these key bindings later. I wonder why I cannot find the correct version among all the old versions. I'll continue to look for it and will have to redo this work if I cannot find it.

To make you and @CPCBEGIN (https://www.cpcwiki.eu/forum/index.php?action=profile;u=1472) happy I included the privilege to browse directories. Unfortunately, this works only in my Android 5 emulator, not in later emulated Android versions. I have not tested in on our real Android 5 device, yet.



Thank you
Then we will wait for that new version with the new signatures.
:)
Title: Re: CPCemu 2.0 released
Post by: sb1903 on 22:42, 04 April 21
Congrats @Emu (https://www.cpcwiki.eu/forum/index.php?action=profile;u=4040) to the new version of cpcemu. Actually cpcemu was the first CPC emulator that I ever used, years ago already on DOS. I even built the parallel port cable to transfer the ROMs and other data from my CPC to the PC  :) What I still like very much with this emulator - and what I think is a quite distinctive feature compared to the "competition" - is the feature to use |TAPE to read files directly from a directory on the hard disk (rather than having to have them in .DSK files). Unfortunately, on Linux this feature is not working as reliable anymore as previously on DOS. Because suddenly this is case sensitive although ideally it shouldn't be. Normally on the CPC it shouldn't make a difference if I say run"disc" or run "DISC", but at the moment this makes a difference. It would be great if this could be fixed.  ;)
Title: Re: CPCemu 2.0 released
Post by: Livingstone on 17:23, 01 May 21
Is there any progress for the Android version?
Title: Re: CPCemu 2.0 released
Post by: Livingstone on 15:46, 01 July 21
Has anyone with Android 5.0 been able to load dsk's without root?
Title: Re: CPCemu 2.0 released
Post by: Gryzor on 09:08, 02 July 21
5??!!
Title: Re: CPCemu 2.0 released
Post by: zhulien on 10:22, 24 July 21
Hi, does anyone know where | (bar) is mapped in the new versions of CPCEmu?
Title: Re: CPCemu 2.0 released
Post by: HAL6128 on 11:39, 24 July 21
You have to change to keyboard 5 in the cfg.
Title: Re: CPCemu 2.0 released
Post by: zhulien on 17:09, 24 July 21
Are there some CPCs without a | ?
Title: Re: CPCemu 2.0 released
Post by: zhulien on 18:39, 24 July 21
Attempting to assemble something in protext+maxam1.5 with the new sdcard emulation, I often get file corruption and/or .$$$ files, is that likely an emulation issue or an incompatibility between maxam 1.5 and m4?
Title: Re: CPCemu 2.0 released
Post by: Emu on 10:11, 26 July 21
@zhulien (https://www.cpcwiki.eu/forum/index.php?action=profile;u=58) :
Hi, I have never used Protext nor Maxam. Can you describe the steps you do more explicitly (and the expected result on the step where CPCemu fails)? Which version and which host system (Windows, Ubuntu, Raspberry, 64/32 bit, ...) are you using?
Title: Re: CPCemu 2.0 released
Post by: Emu on 10:12, 26 July 21
@zhulien (https://www.cpcwiki.eu/forum/index.php?action=profile;u=58) : Only now I've seen your | problem. Are you using the French keyboard layout of CPCemu (I think it's no. 2)? Are you using a French host keyboard layout?
Title: Re: CPCemu 2.0 released
Post by: zhulien on 16:33, 26 July 21
Quote from: Emu on 10:11, 26 July 21
@zhulien (https://www.cpcwiki.eu/forum/index.php?action=profile;u=58) :
Hi, I have never used Protext nor Maxam. Can you describe the steps you do more explicitly (and the expected result on the step where CPCemu fails)? Which version and which host system (Windows, Ubuntu, Raspberry, 64/32 bit, ...) are you using?


Using Windows 10 - i switched to keyboard language 5 so I can type a | (although the keys physically are a standard USA PC keyboard).  I haven't yet figured out using a USA PC keyboard how to type a | and a \ on the same keyboard.


Using protext.rom and maxam15.rom (from CPC Wiki), setup the emulator to use the SDCARD folder and M4.  Make a folder in the SDCARD such as DEV.


From CPC side now...


|cd,"dev"  (ok)
|cd,".."     (doesn't revert to parent folder)
|cd,"\"      (I cannot type a \, where is it?)


when within dev, i.e. |cd,"dev"


|p             (to bring protext)
prog          (from within the protext commandline to turn it into program mode)
esc            (lets you swap between program mode and protext commandline)
type something at the top
esc            (protext commandline)
save (enter)
<enter filename> test.asm
load (enter)

<enter filename> test.asm




save (enter)
<enter filename> test.asm (test.bak is created)
load (enter)
<enter filename> test.asm



save (enter)
<enter filename> test.asm (test.$$$ is created, but $$$ is actually the latest, not the oldest)





Title: Re: CPCemu 2.0 released
Post by: Emu on 22:12, 27 July 21
Regarding the backslash (I have not been able to try Protext, yet): You don't need it for |CD. The M4 board accepts regular slashes as well (if not even as the primary path separator, I can't tell). So, |CD,"/" will bring you to the top folder.

At the moment I'm not sure where the backslash is in keyboard layout 0. I think I had to omit it, because the CPC's key for it does not exist on today's keyboards.
Title: Re: CPCemu 2.0 released
Post by: zhulien on 00:41, 29 July 21
Quote from: Emu on 22:12, 27 July 21
Regarding the backslash (I have not been able to try Protext, yet): You don't need it for |CD. The M4 board accepts regular slashes as well (if not even as the primary path separator, I can't tell). So, |CD,"/" will bring you to the top folder.

At the moment I'm not sure where the backslash is in keyboard layout 0. I think I had to omit it, because the CPC's key for it does not exist on today's keyboards.


For some reason I haven't been able to get back to the top folder within the emulator - but i can on a real CPC+m4.


For my, |cd,"/" gives an error Unknown directory.
Title: Re: CPCemu 2.0 released
Post by: Emu on 21:14, 30 July 21
Please try v2.3.3 (https://cpc-emu.org/download.html). It should resolve your $$$ issue.

Unfortunately, I'm not yet able to reproduce the issue with |CD,"/".
Title: Re: CPCemu 2.0 released
Post by: zhulien on 08:53, 04 August 21
2.3.3 fixes the following:


constant saving of files -> test.asm over the top with correct .bak behaviour and no more .$$$


Seems Utopia_v1_25b.ROM has issues, |era,"*.bak" always has file not found, and even a specific filename doesn't work too - but removing the utopia ROM fixes things.


I still cannot change up a folder, |cd,"/" gives "Unknown directory"


My Config file as follows, note I have moved the disc, tape and sdcard folders to another drive than the installation location of EmuCPC.


; Configuration File created by CPCEMU (v1.5) on 7/24/2021
AMSDOS_DISABLED = 0
AMSDOS_SPEEDUP = 1
BREAK_MASK = 3
COLOUR_SCREEN = 1
COMPANY_NAME = 7
CPC_TYPE = 2
CRTC_TYPE = 1
DATA_FILE = "./cpcemu.dat"
DRIVE_A = "e:\emulator\CPCemu\DISC/"
DRIVE_A_AUTOSTART = 1
DRIVE_A_SIDE = 0
DRIVE_A_WRITEPROT = 0
DRIVE_B = "e:\emulator\CPCemu\DISC/"
DRIVE_B_AUTOSTART = 0
DRIVE_B_SIDE = 0
DRIVE_B_WRITEPROT = 0
EMS_ENABLED = 0
EMULATION_DELAY = 0
EMULATION_SPEED = 0
HELP_FILE = "./cpcemu.hlp"
INTERRUPT_FREQUENCY = 300
INTERRUPT_RESUME = 1
JOY0_CALIBRATE = 1702324,4476838,1702152,4617824
JOY1_CALIBRATE = 1702324,4207704,1702140,1702340
JOY0_CURSOR_KEYS = 0
KBD_LANGUAGE = 5
LANGUAGE = 0
M4_ENABLED = 1
MOUSE_ENABLED = 1
MULTIMODE_UPDATE = 2
PALETTE_CHANGE = 1
POKE_DATABASE = "./cpcemu.dbf"
PPI_50HZ = 1
PPI_EXP_SIGNAL = 1
PRINTER = "PRN"
RAM_SIZE = 576
REALTIME = 1
ROM_BLOCK = 0,"CPC6128.ROM",1
; ROM_BLOCK = 1,"Utopia_v1_25b.ROM",0
ROM_BLOCK = 3,"MAXAM15.ROM",0
ROM_BLOCK = 4,"PROTEXT.ROM",0
ROM_BLOCK = 6,"M4.ROM",0
ROM_BLOCK = 7,"CPCADOS.ROM",0
ROM_BLOCK = 8,"SUPER.ROM",0
ROM_BLOCK = 9,"DOLOGY6.ROM",0
; ROM_BLOCK = 10,"CC.ROM",0
; ROM_BLOCK = 255,"FW315EN.ROM",0
ROM_BLOCK = 255,"CPC6128.ROM",0
ROM_PATH = "e:\emulator\CPCemu\ROM/\"
SB_DELAY = 0
SB_DELAY0 = 0
SB_DMA_BUF = 0
SB_SAMPLE_RATE = 1
SB_STEREO = 1
SCREEN_OFFSET = 0
M4_SDCARD_MODE = 1
SHOW_CONFIG = 1
SNAPSHOT = "e:\emulator\CPCemu\SNAP/"
SOUND_DEVICE = 0
SOUND_ENABLED = 1
TAPE_BYPASS = 1
TAPE_PATH = "e:\emulator\CPCemu\TAPE/\"
TMP_PATH = ""
VIDEO_MODE = 0
VSYNC_POSITION = 0
M4_SD_PATH = "e:\emulator\CPCemu\SDCARD/\"
; end


Title: Re: CPCemu 2.0 released
Post by: Emu on 22:26, 04 August 21
I've never used Utopia. Anyway, it is well possible that there are bugs with wildcards. I'm going to look after this one.

Regarding the slash: What happens if you remove the final backslash or the last slash in M4_SD_PATH?
Title: Re: CPCemu 2.0 released
Post by: zhulien on 09:08, 06 August 21
Quote from: Emu on 22:26, 04 August 21
I've never used Utopia. Anyway, it is well possible that there are bugs with wildcards. I'm going to look after this one.

Regarding the slash: What happens if you remove the final backslash or the last slash in M4_SD_PATH?


This doesn't work


M4_SD_PATH = "e:\emulator\CPCemu\SDCARD/"

but this does work

M4_SD_PATH = "e:\emulator\CPCemu\SDCARD"

Thanks, that was the cause of not being able to go up a folder.

I did still get a couple of $$$ files from maxam, but it is definitely less frequent that before.  I am in the process of trying an alternate assembler that i am not very familiar with (orgams).
Title: Re: CPCemu 2.0 released
Post by: Livingstone on 18:25, 08 August 21

From Google Play there is no problem with the installation (Android 5.0)
It works and you can choose the .DSK from any folder.  ;D :P
What is still not working well is the response of the keyboard. I will continue testing. :-[
Title: Re: CPCemu 2.0 released
Post by: Emu on 19:37, 08 August 21
@zhulien (https://www.cpcwiki.eu/forum/index.php?action=profile;u=58) : What astonishes me is that you still have problems with $$$ files. I really want to solve this problem, because I'm afraid it might be more wide-spread than you think. Can you describe in which situations it still happens?

@Livingstone (https://www.cpcwiki.eu/forum/index.php?action=profile;u=121) : I know, the keyboard support is rather poor in Android. I'm thinking of adding my own virtual keyboard for CPC input (e. g. translucent above the CPC screen). However, I think there will always be the problem of too little room for all keys on small displays. This means: many thoughts, much work and many more bugs with - possibly - little success. And I'm not sure yet if I want to enter into this adventure, seeing that this will only improve the Android version.

Title: Re: CPCemu 2.0 released
Post by: Livingstone on 15:39, 06 January 22

With version 2.4, the keyboard runs fine. :D
Perfect emulation. :D
The scanline of the screen is very cool. :D
My tablet is old and it's hard to move the emulator  :( , but in general it works fine. ;D


Great work Emu.


Note: Now for the x64 version of windows. ;)
Title: Re: CPCemu 2.0 released
Post by: CraigsBar on 19:06, 08 May 23
Hi @Emu any chance of hardware keyboard support in the android version? I ask as my AYN Odin is crying out for a hardware keyboard to be able to play pinball dreams....

https://photos.app.goo.gl/P3cXp5Yi7LWBERhU6

Thanks

Craig.
Title: Re: CPCemu 2.0 released
Post by: zhulien on 15:29, 13 January 24
i just tried the android version and couldn't use the BAR commands either, oddly shift and control don't seem to work for me.  I am using the android version on a chromebook with physical keyboard. Also i get a repeated \ without pushing any keys - i'd think it was a hardware fault but it only happens with CPCEmu.
Title: Re: CPCemu 2.0 released
Post by: abalore on 20:43, 14 March 24
@Emu Hello, does the |ROMUP command from the M4 work in the emulator? I've tried it with no success. If not, how can I upload a ROM to a given slot?

Best regards,
Abalore
Title: Re: CPCemu 2.0 released
Post by: HAL6128 on 21:14, 14 March 24
Deleted 
Title: Re: CPCemu 2.0 released
Post by: abalore on 23:03, 14 March 24
Quote from: abalore on 20:43, 14 March 24@Emu Hello, does the |ROMUP command from the M4 work in the emulator? I've tried it with no success. If not, how can I upload a ROM to a given slot?

Best regards,
Abalore

Ok, I was able to do it by editing the cpcemu.cfg file, not ideal but works fine.
Powered by SMFPacks Menu Editor Mod