Atari 5200: New version of Atari800 (Beta): two triggers (Moon Patrol!!!), hat start and exit buttons
-
@Used2BeRX
My button mapping is like this (ps3 controller):SDL_JOY_0_DIGIT_1=0 // triangle SDL_JOY_0_TRIGGER1=1 // circle SDL_JOY_0_TRIGGER2=2 // cross SDL_JOY_0_ASTERISK=3 // square SDL_JOY_0_HASH=4 // left shoulder SDL_JOY_0_OPTION=5 // right shoulder SDL_JOY_0_DIGIT_2=6 // left trigger SDL_JOY_0_DIGIT_3=7 // right trigger SDL_JOY_0_SELECT=8 // select SDL_JOY_0_START=9 // start
I did just now make a new version because the hash and option buttons no longer functioned correctly.
Installation procedure is the same as described above.
Maybe this will also fix a few of your issues as well. -
@future.child This build still has the robotron problem. You just automatically fire to the NW in both robotron and space dungeon, and the 2nd player just moves to the NW on ballblazer. Your old build the other day did not have this problem.
I'm going to test the 2 player stuff on the other games and see if that's fixed. I'll edit this post with that testing if you haven't responded yet.
-
@Used2BeRX I just found out numerical input 1 and 2 is not working in space dungeon atari 5200 mode.
I'll see what's going on because in atari 400/800 mode they work correctly, as does 3 in both modes.As for robotron, controller input is working correct for me, are you sure your analog stick is center calibrated ?
I remember having issues with my previous old controller not keeping it's center calibration while functioning correct on the ps3.
I don't know if there's a calibration utility available for retropie ?And afaik for robotron joystick1 is for movement and joystick2 is directional fire, even in 2 player mode.
-
@future.child Yep. That makes perfect sense. I'm using 5200 carts in 5200 mode. 2 doesn't work at all. For whatever reason, the left trigger does work for number 1, but that's not what you intended. Number 3 does work on all games with the right trigger though.
Nevermind about the Robotron controls not working. User error. I somehow reverted to an old controller config that didn't even have the "HAT" line in it. I don't know if just missing that line created the problems or if it was something else, but it's working as designed again.
-
@Used2BeRX Great, I'll see if i can have the numerical buttons sorted.
I think i found the cause (i mapped the numerical buttons to the atari keyboard ....which the 5200 doesn't have).
A new version will be available sometime tomorrow. -
@future.child Sweet man. Looking forward to it. I'll have time to test it out and let you know how it works after you post it. I'll keep a lookout. :)
-
@Used2BeRX I just uploaded the new version with fixed numerical buttons 1-3.
They should now function correctly on both the 400/800 and 5200 (they at least do so for me).
Installation procedure is the same as described previous. -
Perfecto!
2nd player joystick hijacked with just one controller plugged in for Robotron 2084 and Space Dungeon (and also Ballblazer). It splits perfect when you have the 2nd player joystick plugged in. (I didn't test plugging it in mid game, but for sure when you start with both plugged in it works).
1, 2 and 3 are now working as designed and were tested in Beamrider, Congo Bongo and Space Dungeon.
All of my testing was for the Atari 5200 emulator. I'm not personally using the Atari800.
Thanks so much man!
EDIT: I don't know how you guys go about these things in here, but my vote is that your update as it is now should be part of the official updates for the emulators. I don't see any downside to it, and it's so much better with these additions.
-
@future.child Well...... care to try one more?
Are we able to program controls to pressing the sticks down?
I'm going through testing games now and already noticed that in order to play Defender you need at lest 4 mapped. 1=1 player easy, 2=1 player normal, 3=1 player hard, 4=2 player easy, 5=2 players normal, 6=2 players hard. Damn lazy programming... ;)
I was thinking about Miner 2049er too. I'll have to play it again, but I think there is a level where you need 4 and 5 for the elevators. Even more of a bummer, I think you need 1-9 and 0 for the last level, so there would be no way to play that game without a keyboard :(
Was just wondering if we could at least map 4 and 5 to the joystick presses. That should cover just about every game except for Miner 2049er and weird ones like Space Shuttle that nobody would probably ever play anyways.
-
@Used2BeRX Thanks for testing and your upvote.
I doubt plugging 2nd controller mid emulation will work as detection only takes place at startup.
Removing controllers mid emulation is a bad idea as the emulation crashes (taking out emulationstation with it).As for buttons for numerical input 0 and 4-9, i can add them but there are limits to how many physical buttons are present on the controller (for now i have two (thumb)buttons left on my controller).
I think it would we easier to have a (numerical)keyboard connected to the pi and use that for those few titles that need them.And configuring the controls by pressing sticks (buttons ?) down is out of the question as i would have to add a lot of code and incorporate it into the menu, it is far easier to edit the config file or use something like the python script jfroco wrote.
-
@future.child No problem man. And I'm serious, if it's possible, your updates should be part of the official package. I'm all the way up through Meteorites on the official 5200 library testing and everything is working great. Everybody who goes through the trouble of adding this emulator to their setup should benefit from your upgrades.
I still think it might be nice to put 4 and 5 on the thumb buttons that we're not using, but other than that I can't see any other things.
I'm assuming that there is no way that anybody could fix the controller sensitivity on this emulator, right? I don't see any options for it in the emulator. Here's a list of games that there are problems with that: Castle Crisis, Centepede, Galaxian, Kaboom!, Missile Command, Pole Position, RealSports Tennis, Super Breakout.
There are also some issues with Pengo and Quest for Quintana Roo. I'll have to go back to them and let you know what they were. I can't remember and I didn't put it in the notes. I'll update this post if you haven't replied.
EDIT1: Yeah... I'd LOVE to see 4 and 5 added. I just played to level 3 of Miner 2049er and there are 4 elevators and you use numpad 1-4 for them. I believe that this is the highest the numbers in that game go until the 10th level. I only ever got there a few times when I was a kid, so I don't think a lot of people would get that far. I'd just have to mention to my brother that if he gets to the last level he better have a keyboard.
EDIT 2: Pengo, Pole Position, Galaxian.... Somebody I know who worked on the XBox fixed these but had this to say about the Atari800 emu: This is due to the games incorrectly detecting the presence of a trackball and switching into trackball mode. Galaxian has the same problem I t hink, but it's not as noticeable. It is a problem with the atari800 core. (The problem with Galaxian is that sometimes when you start a new game the controls are all messed up until you die once. You have to reboot and keep your fingers crossed, or just wait till you die 3 times and start a new game).
EDIT3: Nevermind about Quest for Quintana Roo. Any game programmed lousy enough to need 6 buttons to do basic functions is just going into my list of non-working games in that category along with RealSports Football and Space Shuttle.
-
@Used2BeRX I'll add numerical 4 and 5 and map them to left and right thumb.
As for the controller sensitivity, the analog sticks have a range from -32767 to 32767, where 0 is center position.
The emulator is written so that dead zone is -10000 to 10000 (or about 1 third) and ignored.If your center is off more than 10000 your controller requires calibration or is defective.
can you post the results of : jstest /dev/input/js0If any axis is above or below 10000 it will register as movement in the emulator, i have not found a way to calibrate controllers within retropie (but then again haven't been looking very hard either).
-
@future.child Thanks for adding 4 and 5. (You don't think anything would change where I should re-test all the games, do you? I'm just about done re-testing all the 5200 games now).
You're talking over my dumb head now with the sensitivity stuff. I can actually control all of the games, as in things move the direction I want them to move and nothing automatically pulls in any direction, so my controller should be fine. It's just way too sensitive, so none of the games I listed are actually playable.
Any ideas about the trackball issue thing for Pengo, Pole Position and Galaxian?
-
@Used2BeRX when you say too sensitive, you mean you want a larger dead zone ?
I think i can add a config parameter which allows for a dead zone of 2 thirds instead of the default 1 third. -
@future.child It's hard to explain.... let me give a few examples by game.
Missile Command - Pretty much any direction you press the cursor is immediately at the edge of the screen in that direction. You are unable to slowly move the cursor anywhere in the middle of the screen.
Super Breakout/Kaboom! - Same thing pretty much, except it's only on the horizontal axis. You're almost immediately left or right whichever way you press the joystick.
Centipede - The only game in the whole bunch that could be considered barely semi-playable. You can go all directions like Missile command, but at least it's a little slower so you can see the movement instead of the immediate cursor to the end of the screen movement like in Missile Command.
EDITED TO ADD: Just FYI, I've completed testing on the official 5200 games and there are no issues other than the ones we had before that I've already mentioned. So good news is you didn't break anything.... at least on the 5200 :)
EDIT2: BTW... did you notice this thread I made? https://retropie.org.uk/forum/topic/10406/making-premade-gamelist-xml-with-xtra-media-collections/5
I put a release for the 7800 with a preconfigured XML and tons of artwork and videos and other Xtras. I'm going to put one together for the 5200 as well when we're done here and I'm finished testing games. (No Roms/bios included). I'll have datfiles in them to build a romlist that will work with the setup, although for the 5200 you'd need to rename them by hand likely because all of my roms were headered to automatically run with Allitra.
Not sure if you know anything about scripting XML stuff, but you seem handy with code. If you could help automate the process for me I could start working on larger systems like the NES and SNES. (Read the thread if you're interested)
-
@Used2BeRX The new version has been uploaded with numerical 4 and 5 support.
Same installation procedure, new config parameters:SDL_JOY_0_DIGIT_4=10 SDL_JOY_0_DIGIT_5=11
As for testing: if it works in one rom it will work for other roms as well, so no need to test them all, just pick a few at random.
For the sensitivity problem, I get your point, the cursor movement is way too fast for gameplay.
I have no real experience with the 5200 (i was a 800xl kid back then).
Was missile command playable with digital joystick or did it need analog input (trackball, mouse, analog joystick) ?
I think the 5200 had a digital joystick, but am not sure.
On the 800xl missile command is well playable with digital controller.I do not think this is easily fixed, i will dig deeper in the code and see what i can do.
In the meantime you can map a mouse input to joystick1 to have it playable.Edit: I just found out the 5200 had analog joysticks, this emulator uses a mouse as input for this.
I think it will be quite difficult to have native analog controls.
I'll keep digging in the code too see if it can be done, don't hold your breath as it may take a while (if ever). -
@future.child The 5200 was actually an analog controller. I think it might have been one of the first. It was horribly designed, and I remember when they stopped selling them my dad had to buy an entire new system when our controllers broke. Then those broke as well and we never got to play it again.
You had to ask about the one game of the list that I didn't have though, huh? :) I never played Missile Command on the 5200. All of the others I had though, and they all played fine with the standard controller. I'm assuming that it did work though, since you asked about an analog controller and the 5200 controllers were analog.
I appreciate you looking into it. :)
EDIT: Beautiful add again. 4 and 5 work. Just breezed through the 3rd level of Miner 2049er with it. :)
I was going to say that either I've gotten a lot better at games or playing this without the 5200 controllers is just so much easier, but then I took the radioactive drink right above where you start in the 5th level and felt like an idiot.
-
@Used2BeRX So far i have been unsuccessful implementing analog controls, as far as i can tell the original version was built on the idea of using the mouse as analog input, i think i am on the right track though.
For the time being i created another version with the possibility to adjust the joystick speed.
Same installation procedure, new configuration parameter:JOY_SPEED_ADJUST=8
Accepted values are 0 to 9 (the higher the number the slower the movement will be), to disable this option just remove the parameter or place any other value.
As far as the radioactive drink in Miner:2049er: i think the manual said Bounty Bob was allergic to martini's ;-)
I cant even count how many times i made that same mistake. -
@future.child Awesome. I can't get to it right now, but I should be able to check it out by this weekend. I think you're on the right track. I can't find the message I got from somebody on another forum who knows a bit about Atari emulation and he mentioned something about using the mouse for analog too.
-
@Used2BeRX I'd guess he'd have the same conclusion, that mouse input is used for analog input.
In the source code there is a bit of code mapping mouse movement to the atari's input ports (POKEY_POT_input).
These ports (2 per controller 1 for x, 1 for y) have an input range from 0 to 228 where 114 is centre position.
My attempts to map the analog joysticks axis-es to these ports result in very erratic movements, probably because there exists some passing on of the original joystick data.Meanwhile I have also begun testing other emulators (kat5200 and atari++, unfortunately altirra is windows only) but so far analog input is not what i expect.
Kat5200 has analog controller support but when it is enabled the cursor returns to the center of the screen when joystick is centered (very annoying during gameplay) and atari++ also uses mouse as analog input.
Maybe mess will allow for analog input, ill try that one when i get arround.
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.