English Amiga Board    


Go Back   English Amiga Board > » Coders > Coders. General

Reply
 
Thread Tools
Old 07 August 2008, 11:11   #1
Graham Humphrey
Moderator
 
Graham Humphrey's Avatar
 
Join Date: Jul 2004
Location: Norwich, Norfolk, UK
Age: 26
Posts: 9,675
Blitz Basic 2.1 problem with reading a CD32 joypad

I've been working on a game recently and it's not that far off being finished but I've hit a bit of a stumbling block. It's a multiplayer game and as well as being able to use a joystick adaptor, there is also a padshare option allowing two players to use one pad - it has to be a CD32 pad though so there is enough buttons available.

Anyway Blitz has a command to read buttons on a CD32 pad called Gameb. You use it thus: Gameb (Port#) where of course port is 0 (mouse port) or 1. When I check the pad in port 1 it works fine and reads all the buttons without a problem. But when I try it in port 0, with the exact same code only I've changed the 'Port' number, it won't read the buttons at all except for the left shoulder button, curiously.

Is this a bug with Blitz I wonder? It isn't my pad because it works fine in port 1 with my game, and it isn't my mouse port as I tested it with Base Jumpers CD32 and the padshare option worked perfectly in port 0. And it's not my code because as I said, it works fine in port 1 but as soon as I change all the 1s to 0s it goes bonkers.

Any ideas? Does the latest Amiblitz do the same thing?
Graham Humphrey is offline   Reply With Quote
Old 08 August 2008, 02:00   #2
Cammy
Registered User
 
Cammy's Avatar
 
Join Date: Aug 2007
Location: Gold Coast, Australia
Age: 28
Posts: 1,098
It's not Graham's hardware, because the game acts the exact same way on my A1200 too. I hope someone can help!
Cammy is offline   Reply With Quote
Old 08 August 2008, 10:56   #3
Graham Humphrey
Moderator
 
Graham Humphrey's Avatar
 
Join Date: Jul 2004
Location: Norwich, Norfolk, UK
Age: 26
Posts: 9,675
I'll have to give AmiBlitz a whirl I think... that is unless somebody can conjure up a solution
Graham Humphrey is offline   Reply With Quote
Old 08 August 2008, 11:34   #4
bippym
Global Moderator
 
bippym's Avatar
 
Join Date: Nov 2001
Location: Derby, UK
Age: 37
Posts: 8,139
You could do it directly using asm or even the system includes!
bippym is online now   Reply With Quote
Old 08 August 2008, 13:06   #5
Graham Humphrey
Moderator
 
Graham Humphrey's Avatar
 
Join Date: Jul 2004
Location: Norwich, Norfolk, UK
Age: 26
Posts: 9,675
I could do but my ASM knowledge is nil, likewise for the system includes. Looks like more stuff to get my head around
Graham Humphrey is offline   Reply With Quote
Old 08 August 2008, 16:40   #6
Heavy Stylus
CD32 Fanboi
 
Join Date: Nov 2006
Location: Exeter, UK
Age: 34
Posts: 520
Hey this is interesting Graham - a new amiga game?
Heavy Stylus is offline   Reply With Quote
Old 08 August 2008, 17:01   #7
Graham Humphrey
Moderator
 
Graham Humphrey's Avatar
 
Join Date: Jul 2004
Location: Norwich, Norfolk, UK
Age: 26
Posts: 9,675
Yes

More details to follow soon
Graham Humphrey is offline   Reply With Quote
Old 08 August 2008, 23:25   #8
Graham Humphrey
Moderator
 
Graham Humphrey's Avatar
 
Join Date: Jul 2004
Location: Norwich, Norfolk, UK
Age: 26
Posts: 9,675
Just tried it on (the gargantually appalling) AmiBlitz 3 (when it didn't crash) and exactly the same thing happened so it looks like I'm stuck for the time being
Graham Humphrey is offline   Reply With Quote
Old 09 August 2008, 01:24   #9
Doobrey
Hamster tamer
 
Join Date: Apr 2007
Location: Out in the woods
Posts: 122
Have a look at the RI Blitzlibs (part of the old Blitz support suite), IIRC there was a command lib in them for querying joysticks & joypads.

If your version of Blitz is so old that they're not included, aminet has them http://aminet.net/package/dev/basic/RIBlitzLibs
Doobrey is offline   Reply With Quote
Old 09 August 2008, 07:01   #10
mrodfr
Registered User
 
mrodfr's Avatar
 
Join Date: Jan 2005
Location: 62-France
Age: 45
Posts: 415
hello,

you can post your question on the amiforce.de forum on the amiblitz3 english part:

http://www.amiforce.de/main.php

the author and others users maybe will help you for the problem and you could post your request/greetings for amiblitz3.1.

amiblitz3.1 is located here:

http://amiblitz3.amiforce.de/index.php?action=3

there are some german users active on the german part of amiblitz3 on amiforce. Maybe one of them will help you for the problem.

you can post on amiforce as anonymous for a try or be registered, like me.
__________________
A1200+Mediator+VooDoo3+060/50+96mo+IIYAMA 17"+CD,CDRW,ZIP SCSI-KIT
SAM440EP on Mapower 3000+AOS4.1
mrodfr is offline   Reply With Quote
Old 09 August 2008, 09:24   #11
Graham Humphrey
Moderator
 
Graham Humphrey's Avatar
 
Join Date: Jul 2004
Location: Norwich, Norfolk, UK
Age: 26
Posts: 9,675
Thanks guys!
Graham Humphrey is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
blitz basic petza request.Apps 11 08 April 2007 01:49
Blitz Basic 2 anyone? jobro request.Apps 12 28 November 2005 18:15
Free Blitz Basic! Amigaboy Amiga scene 0 13 November 2001 18:36
Blitz Basic 2 Version 1.7 ! RetroMan request.Apps 12 06 November 2001 21:10
Blitz Basic 2 LaundroMat Retrogaming General Discussion 5 24 July 2001 08:10


All times are GMT +2. The time now is 01:52.

-->

Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Page generated in 0.20460 seconds with 9 queries