Jump to content

Photo

Colleen: Android emulator

Android emulator Atari

73 replies to this topic

#51 w1k OFFLINE  

w1k

    Stargunner

  • 1,669 posts
  • Location:martin, slovakia

Posted Thu Jul 21, 2016 7:32 AM

lol



#52 atx4us OFFLINE  

atx4us

    Moonsweeper

  • 434 posts
  • Location:Michigan, USA

Posted Sat Jul 30, 2016 8:08 AM

Hi Y'all

 

I heard back from Tom Hudson :)

 

Fortunately, the Touchscreen interface is quite simple!  Once you activate the Touchscreen Mode in the Preferences menu of the Colleen emulator, the Paddle(0) gives the X and the Paddle(1) gives the Y values of the touched location.  In Tom's Planetary Defense program, he added extra codes to calibrate the screen for mapping the Touchscreen locations to the required cursor X,Y coordinates for his program.

 

Lastly, the paddle trigger, PTrig(0) is used for sensing when the screen is touched.

 

I just want to give everyone this quick update so that you don't have to wait for me to get my sample Simon! program working before exploring out on your own.

 

Hayden


Edited by atx4us, Sat Jul 30, 2016 8:30 AM.


#53 Creature XL OFFLINE  

Creature XL

    Dragonstomper

  • 904 posts
  • Location:Hannover.De

Posted Mon Sep 5, 2016 1:30 PM

Hi,

 

I am having trouble to get my own (WIP) game running. To exclude any memory problems maybe someone can help out.

This XEX (an older build) loads and plays well:

Segment: $a700 - $a8fc. Lenght:  1fd (   509)
Segment: $a100 - $a1a7. Lenght:   a8 (   168)
INIT at: a100
Segment: $4000 - $60ec. Lenght: 20ed (  8429)
INIT at: a11b
Segment: $8dc0 - $96ff. Lenght:  940 (  2368)
Segment: $2000 - $83c1. Lenght: 63c2 ( 25538)
RUN at:  2200
Segment: $b000 - $bfff. Lenght: 1000 (  4096)

A more recent build with the following segments gives me "Cannot boot image":

Segment: $a700 - $a8fc. Lenght:  1fd (   509)
Segment: $a300 - $a3e2. Lenght:   e3 (   227)
INIT at: a300
Segment: $4000 - $6c9e. Lenght: 2c9f ( 11423)
INIT at: a31b
Segment: $2000 - $85b9. Lenght: 65ba ( 26042)
RUN at:  2200

I am using "Package version: 3.0" on a S7 edge.

Any help appreciated. I am not a heavy user of the emu, however, when showing my mates the current state of teh game (via Slack) it would be awesome if they can check it out on there mobiles real quick.

 

 

 

 

 

 



#54 Kr0tki OFFLINE  

Kr0tki

    Stargunner

  • 1,133 posts
  • Location:Warszawa, Poland

Posted Wed Sep 7, 2016 2:28 AM

"Cannot boot image" should happen only if the XEX file is malformed (ie. it does not start with $ffff) or if the file cannot be accessed. Colleen can only access files located in the device's internal memory, not on an SD card - maybe that's the problem.

Anyway, try loading the XEX in the desktop version of Atari800 - the problem should repeat here as well, and Atari800 should write the cause of the error in its console log.

#55 S1500 OFFLINE  

S1500

    River Patroller

  • 4,744 posts
  • Location:Twin Cities

Posted Wed Sep 7, 2016 7:11 AM

"Cannot boot image" should happen only if the XEX file is malformed (ie. it does not start with $ffff) or if the file cannot be accessed. Colleen can only access files located in the device's internal memory, not on an SD card - maybe that's the problem.
 

That explains why a lot of games don't work for me. 

 

Wish more Android apps were SD-card friendly. I only have so much space in memory, but plenty of SD card space.



#56 ricortes OFFLINE  

ricortes

    Dragonstomper

  • 624 posts

Posted Wed Sep 7, 2016 1:13 PM

Has USB joystick been added to the emulator? None of my cellphones support USB host mode, but all of my tablets seem to have it native. I've hooked up various keyboards, mouse and thumb drives. Seems like it would be a natural to add a joystick.

#57 Creature XL OFFLINE  

Creature XL

    Dragonstomper

  • 904 posts
  • Location:Hannover.De

Posted Wed Sep 7, 2016 1:23 PM

"Cannot boot image" should happen only if the XEX file is malformed (ie. it does not start with $ffff) or if the file cannot be accessed. Colleen can only access files located in the device's internal memory, not on an SD card - maybe that's the problem.

Anyway, try loading the XEX in the desktop version of Atari800 - the problem should repeat here as well, and Atari800 should write the cause of the error in its console log.

 

atari800 (on Linux) is my test emulator while developing. So it runs there fo' sure ;)

 

It is (most probably) not malformed. The listing above was generated by my own (simple) COM-file analyser / segment extractor.

I read the documentation of the ATARI OS file format to hack it together. However, I will take a closer look at this in the next days.

 

To be sure, I will send you exactly the same link I sent my mates (maybe Dropbox does something fancy?). All other versions I distributed via my OwnCloud which is down till I find the motivation to get it up and running again.



#58 atx4us OFFLINE  

atx4us

    Moonsweeper

  • 434 posts
  • Location:Michigan, USA

Posted Wed Sep 7, 2016 8:34 PM

That explains why a lot of games don't work for me. 

 

Wish more Android apps were SD-card friendly. I only have so much space in memory, but plenty of SD card space.

I'm using Android Kitkat and have no problems with .atr files located on the external microSD card.  The caveat is that the Atari programs cannot write to the .atr files that are located on the external microSD card (such as updating the high scores data to the .atr file) due to Android's well documented file write restrictions.  As a compromise, I store the .atr files that must update the disk images on the internal memory and most of the other .atr files on the external microSD card.



#59 Jess Ragan OFFLINE  

Jess Ragan

    Phanto of the Opera

  • 10,091 posts
  • Keys and Thank You
  • Location:The Arid Zone

Posted Sat Mar 4, 2017 5:03 AM

This emulator is a colossal pain in the patoot to run on an Android TV. Tried to sideload it, but accessing the menu after choosing a BIOS folder is impossible. For some annoying reason Android emulator designers force you to access the settings after a game loads, not before, and that doesn't always work with Android TVs.

#60 toddtmw OFFLINE  

toddtmw

    Moonsweeper

  • 470 posts
  • Location:Cincinnati, Ohio

Posted Sun Mar 5, 2017 11:12 AM

So, what are the minimum specs to run this effectively?

 

Thanks.



#61 Poison OFFLINE  

Poison

    Moonsweeper

  • 351 posts
  • Location:Czech Republic

Posted Sun Mar 5, 2017 1:52 PM

support stereo emulation ?



#62 ClausB OFFLINE  

ClausB

    Stargunner

  • 1,525 posts
  • Location:Michigan

Posted Sun Mar 5, 2017 3:01 PM

FWIW I'm running v2.0 on an old Android 2.2 tablet.



#63 mimo OFFLINE  

mimo

    Preppie!

  • 6,816 posts
  • It's easy living in a bubble

Posted Thu Mar 30, 2017 9:17 AM

any way to map the start/help/reset buttons to a gamepad?



#64 Justin Payne OFFLINE  

Justin Payne

    Dragonstomper

  • 820 posts
  • Busy updating XEGS Podcast website to Angular6
  • Location:Kent, Washington, USA

Posted Fri May 5, 2017 7:58 AM

No copy/paste? So I have to type in programs? Also, what's the answer to the start, select, option keys?

#65 Kr0tki OFFLINE  

Kr0tki

    Stargunner

  • 1,133 posts
  • Location:Warszawa, Poland

Posted Fri May 5, 2017 6:07 PM

So, what are the minimum specs to run this effectively?

Dunno, but I had it running on an HTC Desire Z at 100% speed.

support stereo emulation ?

Nope.

any way to map the start/help/reset buttons to a gamepad?

Nope.

No copy/paste? So I have to type in programs?

Yup.

Edited by Kr0tki, Fri May 5, 2017 6:11 PM.


#66 gozar ONLINE  

gozar

    Dragonstomper

  • 904 posts
  • Location:Ohio

Posted Fri May 5, 2017 6:09 PM

Also, what's the answer to the start, select, option keys?

 

 

Tap the top right of the screen and they'll appear.



#67 Bill Lange OFFLINE  

Bill Lange

    Dragonstomper

  • 906 posts
  • Location:Somerset, NJ

Posted Fri Feb 23, 2018 8:51 PM

I've been using Colleen on my Google Nexus 7 Android device for the last few days.  It doesn't seem like any of the ATARI 8-bit CTRL keys work from my Arteck Bluetooth Keyboard

 

I'm going to take a look at the Java source and see if I can figure out if the CTRL keys are implemented.


Edited by Bill Lange, Fri Feb 23, 2018 9:02 PM.


#68 gozar ONLINE  

gozar

    Dragonstomper

  • 904 posts
  • Location:Ohio

Posted Fri Feb 23, 2018 10:48 PM

I've been using Colleen on my Google Nexus 7 Android device for the last few days.  It doesn't seem like any of the ATARI 8-bit CTRL keys work from my Arteck Bluetooth Keyboard

 

I'm going to take a look at the Java source and see if I can figure out if the CTRL keys are implemented.

 

I haven't had good luck with Colleen with hardware keyboards. I was hoping it would work on my Chromebook, but the keyboard doesn't. :-(



#69 slaker OFFLINE  

slaker

    Combat Commando

  • 9 posts

Posted Thu Aug 9, 2018 11:05 AM

I've been using Colleen on my Google Nexus 7 Android device for the last few days.  It doesn't seem like any of the ATARI 8-bit CTRL keys work from my Arteck Bluetooth Keyboard

 

I'm going to take a look at the Java source and see if I can figure out if the CTRL keys are implemented.

 

The right shift key is mapped to Ctrl.



#70 slaker OFFLINE  

slaker

    Combat Commando

  • 9 posts

Posted Thu Aug 9, 2018 12:36 PM

I figured out just enough about Android development to add support for the missing key mappings in Colleen, finally making it useful for on-the-go 8-bit development.  Only tested against the Hacker's Keyboard app, but hopefully it will also work with the AnyKey Keyboard app and physical keyboards.  Here are the new Android to Atari key mappings:

Left Ctrl - Ctrl
Ins - Insert character (Ctrl+>)
Shift+Ins - Insert line (Shift+>)
Del - Delete character (Ctrl+Back S)
Shift+Del - Delete line (Shift+Back S)
Home - Clear (Ctrl+< or Shift+<)
Esc - Esc
Brk - Break
NumL - Caps (added because the Hacker's Keyboard won't recognize Shift+` so there was no way to re-engage uppercase mode)

I also added preferences to shift the screen down in portrait mode (so the screen and console keys don't end up behind the status/action bars when the keyboard is up) and to control how quickly (if at all) the console key overlay disappears.  Oh, and made the labels on the console keys a bit more readable and fixed a crash when backing out of the file selector without selecting anything.

Patches have been posted on the Atari800 Visual SourceHub for Business 365 Cloud Services Edition (née GitHub) page, but in the meantime, here's an apk.  It's built against the new 4.0 core and includes my patches. I'm not a real Android developer, so it's not signed and all the usual caveats about sideloading random apks apply.  (And don't ask about stereo POKEY support...)

 

colleen1-small.jpg colleen2-small.jpg

 

Attached File  colleen-hack1-debug.apk.zip   2.16MB   20 downloads
 



#71 gozar ONLINE  

gozar

    Dragonstomper

  • 904 posts
  • Location:Ohio

Posted Thu Aug 9, 2018 1:41 PM

I figured out just enough about Android development to add support for the missing key mappings in Colleen, finally making it useful for on-the-go 8-bit development.  Only tested against the Hacker's Keyboard app, but hopefully it will also work with the AnyKey Keyboard app and physical keyboards.  Here are the new Android to Atari key mappings:

Left Ctrl - Ctrl
Ins - Insert character (Ctrl+>)
Shift+Ins - Insert line (Shift+>)
Del - Delete character (Ctrl+Back S)
Shift+Del - Delete line (Shift+Back S)
Home - Clear (Ctrl+< or Shift+<)
Esc - Esc
Brk - Break
NumL - Caps (added because the Hacker's Keyboard won't recognize Shift+` so there was no way to re-engage uppercase mode)

I also added preferences to shift the screen down in portrait mode (so the screen and console keys don't end up behind the status/action bars when the keyboard is up) and to control how quickly (if at all) the console key overlay disappears.  Oh, and made the labels on the console keys a bit more readable and fixed a crash when backing out of the file selector without selecting anything.

Patches have been posted on the Atari800 Visual SourceHub for Business 365 Cloud Services Edition (née GitHub) page, but in the meantime, here's an apk.  It's built against the new 4.0 core and includes my patches. I'm not a real Android developer, so it's not signed and all the usual caveats about sideloading random apks apply.  (And don't ask about stereo POKEY support...)

 

attachicon.gifcolleen1-small.jpg attachicon.gifcolleen2-small.jpg

 

attachicon.gifcolleen-hack1-debug.apk.zip
 

 

I can't wait to test it on my Chromebook!



#72 slaker OFFLINE  

slaker

    Combat Commando

  • 9 posts

Posted Thu Aug 9, 2018 2:09 PM

(And don't ask about stereo POKEY support...)

 

I noticed that I had made an extra copy of the console overlay fade-out setting under the Sound preferences, so while I was in there fixing that I figured I might as well add stereo (dual POKEY) support.  Patch has been sent upstream and here's another (still unsigned!) apk.

 

stereo-small.png stereo2-small.jpg

 

Attached File  colleen-hack2-debug.apk.zip   2.16MB   21 downloads


Edited by slaker, Thu Aug 9, 2018 2:25 PM.


#73 Kyle22 OFFLINE  

Kyle22

    River Patroller

  • 3,600 posts
  • Call my BBS! telnet://broadway1.lorexddns.net
  • Location:McKees Rocks (Pittsburgh), PA

Posted Fri Aug 10, 2018 8:36 PM

I hate to admit, but I do not get; Android programming. All I want do do is to make an app that can download a .zip from my FIXED LOCATION on Dropbox and unzip it to a specific folder.

 

I simply want the user to be able to click an app of my fililinked page and be able to get my custom build of Kodi installed.

 

Please PM me if you can help with this simple project. Thanx.

 

SHIT: Edit: Typo.


Edited by Kyle22, Fri Aug 10, 2018 8:44 PM.


#74 slaker OFFLINE  

slaker

    Combat Commando

  • 9 posts

Posted Fri Sep 7, 2018 10:46 PM

I realized there were still several key combinations needed for the Action! editor that couldn't be typed on the Hacker's Keyboard, so I added these additional Android to Atari mappings (Action! editor functions in parentheses):

Ctrl+Shift+Del - Ctrl+Shift+Back_S (join to previous line)
Shift+Left - Ctrl+Shift+< (move to beginning of line)
Shift+Right - Ctrl+Shift+> (move to end of line)
F11 - Ctrl+Shift+1 (change to window 1)
F12 - Ctrl+Shift+2 (create/change to window 2)

I believe all the Action! editor commands are now usable on Colleen.

After picking up a small Bluetooth keyboard, I decided to add mappings for its function keys, similar to the PC port of Atari800.  But because I could never remember Atari800's console key mappings ("Which key is Start?  F4?  F2?"), I used the same ordering that the XE keyboard and Colleen's overlay uses by default:

F1 - Help
F2 - Start
F3 - Select
F4 - Option
F5 - Reset (warmstart)
Shift-F5 - Reset (coldstart)
F7 - Break

I added a preference to switch to the Atari800 ordering in case your fingers are already used to it.  Note that while the Start/Select/Option function keys work fine on a Bluetooth keyboard (mine, anyway), they aren't usable on the Hacker's Keyboard because it sends key press/release events in quick succession after a key is touched, so the corresponding bit in the CTIA/GTIA CONSOL register toggles so fast the emulated program usually doesn't see it.  (The Help key is usable because it's latched in HELPFG.)  Not a big deal because the console key overlay can be used instead.

I sent the patch upstream and built this new (still unsigned) apk.  Enjoy.

 

Attached File  colleen-hack3-debug.apk.zip   2.16MB   6 downloads







Also tagged with one or more of these keywords: Android, emulator, Atari

0 user(s) are browsing this forum

0 members, 0 guests, 0 anonymous users