Author Topic: 2 new emulators  (Read 12606 times)

l00k

  • *
  • Posts: 52
Re: 2 new emulators
« Reply #40 on: May 01, 2014, 09:54:35 am »
Hi

Messed around with the the bash script ,config and keymap and got it loading a game from boot

I've attached the files and an image for the ST codes

(rename gohatari.txt to gohatari)

in keymap.txt I've used the a320 codes. Dunno if they are the same

http://youtu.be/9M3iwEzfxDg


slenkar (OP)

  • *
  • Posts: 45
Re: 2 new emulators
« Reply #41 on: May 01, 2014, 05:02:04 pm »
nice video thanks

Im glad the sound is working well, wouldnt have a clue how to fix that if it wasn't

So just to clarify you can move the mouse on the Atari ST and the options menu but no mouse clicking occurs.

Im trying to find out the C++ code to detect a press of the GCW Zero button A (WITHOUT using SDL) then it might work
« Last Edit: May 01, 2014, 05:05:53 pm by slenkar »

l00k

  • *
  • Posts: 52
Re: 2 new emulators
« Reply #42 on: May 01, 2014, 05:13:37 pm »
When it boots to LGD there is no movement at all. Start brings up the hatari menu. Again the mouse doesn't move.
The only way to make the mouse move is to use the hardware toggle power up+b
would be awesome if the analogue stuck could be used as mouse

slenkar (OP)

  • *
  • Posts: 45
Re: 2 new emulators
« Reply #43 on: May 01, 2014, 06:38:19 pm »
does the mouse move on the green desktop when you press powerup+b?

here is another executable
http://www.mediafire.com/download/y3xa55apr9ypj54/hatari

the mouse might work on the menus now

could you run it, then move the mouse around and press the A and B buttons then copy and paste what messages you see on the command line?

(I made it print the mouse co-ordinates on the command line when the mouse is pressed)
« Last Edit: May 01, 2014, 06:53:54 pm by slenkar »

l00k

  • *
  • Posts: 52
Re: 2 new emulators
« Reply #44 on: May 01, 2014, 09:20:21 pm »
here you go

Code: [Select]
opendingux:/media/sdcard/apps # ./gohatari
Building CPU table for configuration: 68000
M68000 Bus Error writing at address $4.
mouse button pushed at 160-106,
mouse button pushed at 160-106,
mouse button pushed at 160-106,
Atari ST mouse button pressed at 160 - 106,
Atari ST mouse button released at 160-106,
mouse button pushed at 160-106,
mouse button pushed at 160-106,
mouse button pushed at 160-106,
mouse button pushed at 160-106,
mouse button released at 160-106,
mouse button released at 160-106,
mouse button pushed at 160-106,
mouse button released at 160-106,
mouse button pushed at 160-106,
mouse button released at 160-106,
mouse button pushed at 160-106,
mouse button pushed at 160-106,
mouse button pushed at 160-106,
mouse button released at 160-106,
mouse button released at 160-106,
mouse button pushed at 160-106,
mouse button pushed at 160-106,
Atari ST mouse button released at 160-106,
Atari ST mouse button pressed at 160 - 106,
Atari ST mouse button released at 160-106,
Atari ST mouse button pressed at 160 - 106,
Atari ST mouse button released at 160-106,
Atari ST mouse button pressed at 160 - 106,
Atari ST mouse button released at 160-106,
Atari ST mouse button pressed at 160 - 106,
Atari ST mouse button released at 160-106,
Atari ST mouse button pressed at 160 - 106,
Atari ST mouse button released at 160-106,
Atari ST mouse button pressed at 160 - 106,
Atari ST mouse button released at 160-106,
Atari ST mouse button pressed at 160 - 106,
Atari ST mouse button released at 160-106,
Atari ST mouse button pressed at 160 - 106,
Atari ST mouse button released at 160-106,
Atari ST mouse button pressed at 160 - 106,
Atari ST mouse button released at 160-106,
Atari ST mouse button pressed at 160 - 106,
Atari ST mouse button released at 160-106,
Atari ST mouse button pressed at 160 - 106,
Atari ST mouse button released at 160-106,
Atari ST mouse button pressed at 160 - 106,
Atari ST mouse button released at 160-106,
Atari ST mouse button pressed at 160 - 106,
Atari ST mouse button released at 160-106,
Atari ST mouse button pressed at 160 - 106,
Atari ST mouse button released at 160-106,
Atari ST mouse button pressed at 160 - 106,
Atari ST mouse button released at 160-106,
Atari ST mouse button pressed at 180 - 131,
Atari ST mouse button released at 190-211,
Atari ST mouse button pressed at 200 - 151,
Atari ST mouse button released at 185-101,
ALSA lib pcm.c:7339:(snd_pcm_recover) underrun occurred
ALSA lib pcm.c:7339:(snd_pcm_recover) underrun occurred

l00k

  • *
  • Posts: 52
Re: 2 new emulators
« Reply #45 on: May 01, 2014, 09:24:07 pm »
here I booted without selecting a disk so it went straight into LGD (desktop)

The mouse moved around fine and clicking worked too

Part way down I used powerup+B to switch to GCW mouse mode

I switched back and forth a bit too

Code: [Select]
opendingux:/media/sdcard/apps # ./gohatari
Building CPU table for configuration: 68000
Atari ST mouse button pressed at 105 - 121,
Atari ST mouse button released at 105-121,
Atari ST mouse button pressed at 40 - 21,
Atari ST mouse button released at 40-21,
Atari ST mouse button pressed at 40 - 21,
Atari ST mouse button released at 40-21,
Atari ST mouse button pressed at 40 - 21,
Atari ST mouse button released at 40-21,
mouse button pushed at 40-31,
mouse button pushed at 150-56,
mouse button released at 150-56,
mouse button pushed at 150-56,
mouse button released at 150-56,
mouse button pushed at 150-56,
mouse button released at 150-56,
mouse button pushed at 150-56,
mouse button released at 150-56,
mouse button pushed at 150-56,
mouse button released at 150-56,
mouse button pushed at 150-56,
mouse button released at 150-56,
mouse button pushed at 150-56,
mouse button released at 150-56,
mouse button pushed at 150-56,
mouse button released at 150-56,
mouse button pushed at 150-56,
mouse button released at 150-56,
Atari ST mouse button pressed at 125 - 156,
Atari ST mouse button released at 125-156,
Atari ST mouse button pressed at 125 - 156,
Atari ST mouse button released at 125-156,
Atari ST mouse button pressed at 125 - 156,
Atari ST mouse button released at 125-156,
Atari ST mouse button pressed at 110 - 61,
Atari ST mouse button released at 110-61,
Atari ST mouse button pressed at 110 - 61,
Atari ST mouse button released at 110-61,
Atari ST mouse button pressed at 160 - 136,
Atari ST mouse button released at 160-136,
mouse button pushed at 85-76,
mouse button released at 85-76,
mouse button pushed at 85-76,
mouse button released at 85-76,
mouse button pushed at 85-76,
mouse button released at 85-76,
mouse button pushed at 155-76,
mouse button released at 155-76,
mouse button pushed at 160-56,
mouse button released at 160-56,
mouse button pushed at 160-56,
mouse button released at 160-56,
mouse button pushed at 160-56,
mouse button released at 160-56,
mouse button pushed at 160-56,
mouse button released at 160-56,
mouse button pushed at 160-56,
mouse button released at 160-56,
mouse button pushed at 160-56,
mouse button pushed at 160-56,
mouse button pushed at 160-56,
mouse button pushed at 160-56,
mouse button pushed at 160-56,
mouse button released at 160-56,
mouse button pushed at 160-56,
mouse button released at 160-56,
mouse button pushed at 160-56,
mouse button released at 160-56,
mouse button pushed at 160-56,
mouse button released at 160-56,
mouse button pushed at 160-56,
mouse button released at 160-56,
mouse button pushed at 160-56,
mouse button released at 160-56,
mouse button pushed at 160-56,
mouse button released at 160-56,
mouse button pushed at 160-56,
mouse button released at 160-56,
mouse button pushed at 160-56,
mouse button released at 160-56,
mouse button pushed at 160-56,
mouse button released at 160-56,
mouse button pushed at 160-56,
mouse button released at 160-56,
mouse button pushed at 160-56,
mouse button released at 105-56,
mouse button pushed at 65-56,
mouse button released at 65-56,
mouse button pushed at 65-56,
mouse button released at 65-56,
mouse button pushed at 120-56,
mouse button released at 120-56,
mouse button pushed at 120-111,
mouse button released at 120-111,

slenkar (OP)

  • *
  • Posts: 45
Re: 2 new emulators
« Reply #46 on: May 01, 2014, 09:33:35 pm »
Thanks thats quite helpful
Im glad it works in the ST now.

does the mouse work in the grey menus too?

(the emulated Atari ST mouse and mouse in the menus are 2 seperate things in the code so I have to make sure the mouse works in both)

l00k

  • *
  • Posts: 52
Re: 2 new emulators
« Reply #47 on: May 01, 2014, 09:35:34 pm »
No I can't click in the grey menus. Maybe that's PC mouse control or something

slenkar (OP)

  • *
  • Posts: 45
Re: 2 new emulators
« Reply #48 on: May 01, 2014, 09:37:01 pm »
If you click in the bottom right does it say
clicked at 320-240? (or close numbers)

(Just making sure I have the x coord first and y coord last)

l00k

  • *
  • Posts: 52
Re: 2 new emulators
« Reply #49 on: May 01, 2014, 09:42:32 pm »
close

The status bar takes up part of the screen too

Code: [Select]
mouse button pushed at 0-0,
mouse button released at 0-0,
mouse button pushed at 0-211,
mouse button released at 0-211,
mouse button pushed at 319-0,
mouse button released at 319-0,
mouse button pushed at 319-211,
mouse button released at 319-211,

l00k

  • *
  • Posts: 52
Re: 2 new emulators
« Reply #50 on: May 01, 2014, 09:46:25 pm »
Just noticed this new stuff in the Hatari log too

Code: [Select]
Hatari v1.7.0, compiled on:  May  1 2014, 13:28:49
Printer output file directory inaccessible. Printing disabled.
Support for Hatari window reparenting not built in
1874 CPU functions
Building CPU function table (0 0 1).
Loaded TOS version 1.02, starting at $fc0000, country code = 3, PAL
Applying TOS patch 'boot from DMA bus'.
Applying TOS patch 'big resolutions mouse driver'.
Applied 2 TOS patches, 0 patches failed.
NVRAM loaded from '/usr/local/home/.hatari/hatari.nvram'
Joystick 0: linkdev device (Analog 2-axis 8-button 2-hat)
Joystick 0 maps axis 0 and 1 (*DEFAULT*)
Host system has accurate delays. (4)

slenkar (OP)

  • *
  • Posts: 45
Re: 2 new emulators
« Reply #51 on: May 01, 2014, 09:49:55 pm »
I think I may have fixed the mouse in the grey menus
http://www.mediafire.com/download/y3xa55apr9ypj54/hatari

l00k

  • *
  • Posts: 52
Re: 2 new emulators
« Reply #52 on: May 01, 2014, 09:53:28 pm »
I think I may have fixed the mouse in the grey menus
http://www.mediafire.com/download/y3xa55apr9ypj54/hatari

Sorry still not working different codes though

Code: [Select]
opendingux:/media/sdcard/apps # ./gohatari
Building CPU table for configuration: 68000
mouse button pushed at 165-56,
found gui element under mouseretbutton is 0mouse button released at 165-56,
it was the left buttonfound gui element under mouse releasemouse button pushed at 165-56,
found gui element under mouseretbutton is 0mouse button released at 165-56,
it was the left buttonfound gui element under mouse releasemouse button pushed at 165-56,
found gui element under mouseretbutton is 0mouse button released at 165-56,
found gui element under mouse releasemouse button pushed at 165-56,
found gui element under mouseretbutton is 0mouse button released at 165-56,
found gui element under mouse releasemouse button pushed at 120-56,
found gui element under mouseretbutton is 0mouse button released at 120-56,
found gui element under mouse releasemouse button pushed at 155-56,
found gui element under mouseretbutton is 0mouse button released at 155-56,
found gui element under mouse releasemouse button pushed at 155-56,
found gui element under mouseretbutton is 0mouse button released at 155-56,
found gui element under mouse releasemouse button pushed at 155-56,
found gui element under mouseretbutton is 0mouse button released at 155-56,
it was the left buttonfound gui element under mouse releasemouse button pushed at 155-56,
found gui element under mouseretbutton is 0mouse button released at 155-56,
found gui element under mouse releasemouse button pushed at 155-76,
found gui element under mouseretbutton is 0mouse button released at 155-76,
found gui element under mouse releasemouse button pushed at 155-76,
found gui element under mouseretbutton is 0mouse button released at 155-76,
it was the left buttonfound gui element under mouse releasemouse button pushed at 155-56,
found gui element under mouseretbutton is 0mouse button released at 155-56,
it was the left buttonfound gui element under mouse releasemouse button pushed at 155-56,
found gui element under mouseretbutton is 0mouse button pushed at 155-56,
found gui element under mouseretbutton is 0mouse button pushed at 155-56,
found gui element under mouseretbutton is 0mouse button pushed at 155-56,
found gui element under mouseretbutton is 0mouse button pushed at 155-56,
found gui element under mouseretbutton is 0mouse button pushed at 155-56,
found gui element under mouseretbutton is 0mouse button pushed at 155-56,
found gui element under mouseretbutton is 0mouse button pushed at 155-56,
found gui element under mouseretbutton is 0mouse button pushed at 195-56,
found gui element under mouseretbutton is 0mouse button released at 195-56,
it was the left buttonfound gui element under mouse releasemouse button pushed at 160-56,
found gui element under mouseretbutton is 0mouse button released at 160-56,
it was the left buttonfound gui element under mouse releasemouse button pushed at 160-56,
found gui element under mouseretbutton is 0mouse button released at 160-56,
found gui element under mouse releasemouse button pushed at 160-56,
found gui element under mouseretbutton is 0Atari ST mouse button pressed at 35 - 46,


I didnt mention that the GUI buttons seem to press down but nothing happens

So the initial button effect works but not the action
« Last Edit: May 01, 2014, 09:56:12 pm by l00k »

l00k

  • *
  • Posts: 52
Re: 2 new emulators
« Reply #53 on: May 01, 2014, 09:57:59 pm »
Code: [Select]
Hatari v1.7.0, compiled on:  May  1 2014, 13:28:49
Printer output file directory inaccessible. Printing disabled.
Support for Hatari window reparenting not built in
1874 CPU functions
Building CPU function table (0 0 1).
Loaded TOS version 1.02, starting at $fc0000, country code = 3, PAL
Applying TOS patch 'boot from DMA bus'.
Applying TOS patch 'big resolutions mouse driver'.
Applied 2 TOS patches, 0 patches failed.
NVRAM loaded from '/usr/local/home/.hatari/hatari.nvram'
Joystick 0: linkdev device (Analog 2-axis 8-button 2-hat)
Joystick 0 maps axis 0 and 1 (*DEFAULT*)
Host system has accurate delays. (4)
Support for Hatari window reparenting not built in
Support for Hatari window reparenting not built in
Support for Hatari window reparenting not built in
Support for Hatari window reparenting not built in

also this Support for Hatari window reparenting not built in

slenkar (OP)

  • *
  • Posts: 45
Re: 2 new emulators
« Reply #54 on: May 01, 2014, 10:11:50 pm »

l00k

  • *
  • Posts: 52
Re: 2 new emulators
« Reply #55 on: May 01, 2014, 10:26:06 pm »
ok try this one :)
http://www.mediafire.com/download/y3xa55apr9ypj54/hatari

 ;D

WORKING!

One slight issue

I can get into all the menus but when I go to select a floppy disk. I can pick a file but then when I click OKAY it does nothing


slenkar (OP)

  • *
  • Posts: 45
Re: 2 new emulators
« Reply #56 on: May 01, 2014, 10:34:01 pm »
yay!

WHen you select the file, is it supposed to insert the disc into drive A?
A youtube video of the problem might help

l00k

  • *
  • Posts: 52
Re: 2 new emulators
« Reply #57 on: May 01, 2014, 10:36:18 pm »
OK will do it tomorrow morning. DayZ now :)

slenkar (OP)

  • *
  • Posts: 45
Re: 2 new emulators
« Reply #58 on: May 01, 2014, 10:44:11 pm »
« Last Edit: May 01, 2014, 10:47:28 pm by slenkar »

l00k

  • *
  • Posts: 52
Re: 2 new emulators
« Reply #59 on: May 02, 2014, 12:21:12 am »
Is there a sperate grey menu system for selecting files? It's like the last change you did hasn't been applied. It's on floppy disk selection and rom selection. Also save and load config. All file selection works just not the OKAY button

 

Post a new topic
Post a new topic