News:

Printed Amstrad Addict magazine announced, check it out here!

Main Menu
avatar_Devilmarkus

JavaCPC Desktop 1.0 official release

Started by Devilmarkus, 11:05, 14 August 11

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Devilmarkus

Implementing joystick support into JavaCPC was/is a pain in the a....

If you want to play games with proper joystick support, you should try a different emulator ;)

I'm sure the java joystick library only supports analog joysticks/pads.

(I don't even know what a d-pad is ;) )

When you put your ear on a hot stove, you can smell how stupid you are ...

Amstrad CPC games in your webbrowser

JavaCPC Desktop Full Release

Carnivius

d-pad means directional pad.   The cross shaped bit with the up/down/left/right that all joypads have had since they were first made.  The bit you're SUPPOSED to play retro games with, not the analog stick...

And joypad support is kinda broken in WinApe too (character's keep going to the left automatically for some reason) so what, I now need a thiiird emulator just to use a joypad properly? 
Favorite CPC games: Count Duckula 3, Oh Mummy Returns, RoboCop Resurrection, Tankbusters Afterlife

TFM

Maybe even a fourth or fifth...  :-X
TFM of FutureSoft
Also visit the CPC and Plus users favorite OS: FutureOS - The Revolution on CPC6128 and 6128Plus

Executioner

Quote from: Carnivac on 23:01, 03 October 14
And joypad support is kinda broken in WinApe too (character's keep going to the left automatically for some reason) so what, I now need a thiiird emulator just to use a joypad properly?

Isn't there a calibration routine somewhere in Windows? WinAPE uses the following code to provide analogue to digital conversion:


        JoyMidX := (wxMax - wxMin) div 2;
        JoyMidY := (wyMax - wyMin) div 2;
        JoyDeadX := (wxMax - wxMin) div 4;
        JoyDeadY := (wyMax - wyMin) div 4;
        JoyLeftX := IMax(JoyMidX - JoyDeadX, wxMin);
        JoyRightX := IMin(JoyMidX + JoyDeadX, wxMax);
        JoyUpY := IMax(JoyMidY - JoyDeadY, wyMin);
        JoyDownY := IMin(JoyMidY + JoyDeadY, wyMax);


then the following to set the keyboard bits:


      if wXpos < JoyLeftX then JoyMask := JoyMask and $fb
      else if wXpos > JoyRightX then JoyMask := JoyMask and $f7;

      if wYpos < JoyUpY then JoyMask := JoyMask and $fe
      else if wYpos > JoyDownY then JoyMask := JoyMask and $fd;
      if (wButtons and JOY_BUTTON1) <> 0 then JoyMask := JoyMask and $ef;
      if (wButtons and JOY_BUTTON2) <> 0 then JoyMask := JoyMask and $df;


Carnivius

#204
Quote from: Executioner on 01:53, 07 October 14
Isn't there a calibration routine somewhere in Windows? WinAPE uses the following code to provide analogue to digital conversion:


I'm using a Dual Shock 3 pad off my PS3, with a driver that makes the laptop think it's an Xbox 360 pad and I've looked in the device settings and for some reason it never asks anything about the sticks in the calibration bit.   Which isn't usually an issue since most emulators I use ignore the sticks anyways (altough I've noticed MAME doesn't register any oddities when you try to reassign a button in-game, that control doesn't get automatically taken over by the analog stick as if it were registering being stuck in a direction like Winape is).  I'd rather Winape ignored the analog sticks completely and just used the d-pad (in this case the POV functions).   It's just a bit frustrating my joypad works on everything but my Amstrad emulators.  :/

EDI|T: managed to fix the left stick calibration but it's still not ideal.  Analog sticks are just too clumsy to mimic digital control.
Favorite CPC games: Count Duckula 3, Oh Mummy Returns, RoboCop Resurrection, Tankbusters Afterlife

ssr86

I used a program like JoyToKey (JoyToKey - Basic Features) to map keyboard keys to the joypad and it worked...

Executioner

Quote from: Carnivac on 07:13, 07 October 14
I'm using a Dual Shock 3 pad off my PS3, with a driver that makes the laptop think it's an Xbox 360 pad

What is the driver? I'll try installing it and using one of my DS3s?

Devilmarkus

IMPORTANT!!!
JavaCPC update version 2.5 fixes a major bug, which appeared since version 2.3 or 2.4!!!!
These versions ALWAYS stored screenshots into C:\\javacpc_temp\ !!!!!
Please check your version by doing an internal update!!!
(menu: Help, Check for update)
Or download the latest version here:
CPC-Live.com - Schneider / Amstrad CPC Webseite

Happy new year to all CPC-friends!
And sorry, for this annoying bug, which also kept the performance very low :(
When you put your ear on a hot stove, you can smell how stupid you are ...

Amstrad CPC games in your webbrowser

JavaCPC Desktop Full Release

TFM

Thanks for the Update! Great way to start the new year!!!  8) :)
TFM of FutureSoft
Also visit the CPC and Plus users favorite OS: FutureOS - The Revolution on CPC6128 and 6128Plus

Gryzor

Ok, I wouldn't call that a "major bug" :)

Devilmarkus

Well it was a major bug!
When you find 5fps instead of 50 and your harddrive is full of gigabytes of screenshots...
When you put your ear on a hot stove, you can smell how stupid you are ...

Amstrad CPC games in your webbrowser

JavaCPC Desktop Full Release

TFM

I know exactly what you're talking about!  :P
TFM of FutureSoft
Also visit the CPC and Plus users favorite OS: FutureOS - The Revolution on CPC6128 and 6128Plus

Devilmarkus

JavaCPC update 2.6 is out!
Now features Dual-YM emulation (As seen on TotO's PlayCity boards)
How to enable:
Configuration -> Misc. -> PlayCity (Where you can enable Digiblaster and Amdrum emulation, too)
Download here:
http://cpc-live.com/download.php?view.2
Or let JavaCPC check for updates....
When you put your ear on a hot stove, you can smell how stupid you are ...

Amstrad CPC games in your webbrowser

JavaCPC Desktop Full Release

Devilmarkus

JavaCPC internal update 2.6b is out!
(Please let JavaCPC check for updates)

Changes and fixes:
- --SNA command line parameter added
- Bugfix in BASIC debugger (TRACE and STEP through BASIC lines should work proper now (in theory))
- EX HL,DE opcode added to integrated Z80 assembler (Before only EX DE,HL worked)
- some GUI fixes

As info:
All command line parameters here for you:
JavaCPC Desktop 2.6b ©2015 by Markus Hohmann
Commands: |    value:   |    info:
--cpctype      <CPC type*>         Sets emulated CPC model*
--df0/--drivea <path to DSK file>  loads a DSK into DF0
--df1/--driveb <path to DSK file>  loads a DSK into DF1
--tape         <path to CDT file>  loads a tape image
--sna          <path to SNA file>  loads a snapshot
--bootdrive    <df0/df1/tape>      Boot choosen drive
--amsdos       <yes/no>            Put AMSDOS rom?
--crtc         <0/1>               Sets CRTC type
--autotype     <content>           1 line for autotype
--desktop      <on/off>            Start as desktop or app.
--wallpaper    <path to wallpaper> Choose wallpaper
--stretch      <on/off>            Stretch or center wallpaper
--memory       <64/128/256/512>    Defines emulated RAM
--monitor      <color/green/grey/cpce>
--polarity     <on/off>            Toggles tape polarity
--help                             this info
--------------------------------------------------------------
*Possible CPC-models:
CPC464,CPC464T,CPC664,CPC6128,KCCOMPACT
CPC464PARA,PARADOS,FUTUREOS,SYMBOS

When you put your ear on a hot stove, you can smell how stupid you are ...

Amstrad CPC games in your webbrowser

JavaCPC Desktop Full Release

Devilmarkus

Internal JavaCPC update to v2.7al (alpha)
Changelog:
- Register JavaCPC completely removed, because it made too much trouble
- Partial translation included (French, Spanish, German) !!!Still in heavy progress!!!
- Some GUI fixed
- When you check for updates, it now also includes "Alpha" versions, which don't need new version numbers. So you can manually check from time to time for new updates, even if the version number did not change. (Automatic update will ignore Alpha versions in the future)
- Bugfix in Gamebrowser and BASIC autotype This alpha version doesn't cause any known stability problems, because nothing has changed in emulation core, so you can check for updates.
When you put your ear on a hot stove, you can smell how stupid you are ...

Amstrad CPC games in your webbrowser

JavaCPC Desktop Full Release

Devilmarkus

JavaCPC update to v2.8

Download here: https://sourceforge.net/projects/javacpc/
Or here: http://cpc-live.com/download.php?view.2

Update from v2.7 to v2.8 changelog:
- Amstrad.eu BDD added (Play games directly from Amstrad CPC for ever : Amstrad.eu database)
- Bugfix in BASIC autotype and autoboot
- Some GUI changes
- Some parts are partially translated into German, French or Spanish (Translation is still in progress)
When you put your ear on a hot stove, you can smell how stupid you are ...

Amstrad CPC games in your webbrowser

JavaCPC Desktop Full Release

Devilmarkus

JavaCPC update to v2.9 is available!

Update from v2.8 to v2.9 changelog:
- BDD CPC file databases added: JavaCPC Games and JavaCPC Demos
- Z80 turbo mode integrated (Accessible in System configuration)
- Internal ROM font editor improved (Access: ALT + F11)

Download:
https://sourceforge.net/projects/javacpc/
Or
http://cpc-live.com/download.php?view.2
Or let JavaCPC check for updates...
When you put your ear on a hot stove, you can smell how stupid you are ...

Amstrad CPC games in your webbrowser

JavaCPC Desktop Full Release

Phi2x

#217
.

Devilmarkus

#218
Who is interested in adding a gamebase:

Gamebases are read through an api.php file on the server.
It should feature 3 usages:

api.php?action=detailist -> prints all available files as xml file
api.php?action=detail&id=xxx -> prints info for a selected file as xml file
api.php?action=get&id=xxx -> lets you download file with ID xxx

detailist: a list like this:

[attachimg=1]

detail: a list like this:

[attachimg=2]

get: deliver the file found in media and given ID as binary

JavaCPC doesnt care if you use ID numbers or filenames instead.

Example here:

http://cpc.devilmarkus.de/games/api.php?action=detail&id=cauldron
When you put your ear on a hot stove, you can smell how stupid you are ...

Amstrad CPC games in your webbrowser

JavaCPC Desktop Full Release

Phi2x

#219
.

Devilmarkus

When you put your ear on a hot stove, you can smell how stupid you are ...

Amstrad CPC games in your webbrowser

JavaCPC Desktop Full Release

Phi2x

#221
.

greatxerox

#222
Quote from: phi2x on 20:53, 07 March 15

Why don't you work with CPC-POWER, sauvegarde du patrimoine de l'Amstrad CPC ? They have the best CPC database ever.

Or even a better solution: creating a collaborative database on CPC-Wiki? That would be awesome.


this database is already ultimate, it's really no use to create another one. however, all people can already contribute to this one, contacting the team ;)

greatxerox

#223
Devilmarkus, Kukulcan is a little cold to add CPC power in Java CPC, because he thinks nobody will come on the site and they won't collaborate (to warn about errors in the datasheet for example). However he agrees to try a Beta.


Kukulcan said me than Java CPC should send connection informations to cpc power, in order it will be identified precisely


I think you should add a column in the database GUI in order each game could target the concerned game (datasheet) in cpc power. is it possible ?

Devilmarkus

Quote from: greatxerox on 11:13, 08 March 15
Devilmarkus, Kukulcan is a little cold to add CPC power in Java CPC, because he thinks nobody will come on the site and they won't collaborate (to warn about errors in the datasheet for example). However he agrees to try a Beta.


Kukulcan said me than Java CPC should send connection informations to cpc power, in order it will be identified precisely


I think you should add a column in the database GUI in order each game could target the concerned game (datasheet) in cpc power. is it possible ?

JavaCPC doesn't send Informations. (Perhaps the fact, that a Java application wants to read files) But we could use a key for api.php e.g. api.php?action=detail&id=512&key=123456 (where key can be a secret key)

Sure, it's no problem to add a link, too.. (Name, Publisher, Year, Genre, Link)
When you put your ear on a hot stove, you can smell how stupid you are ...

Amstrad CPC games in your webbrowser

JavaCPC Desktop Full Release

Powered by SMFPacks Menu Editor Mod