#61822 - Crs - Thu Nov 24, 2005 12:57 am
Hi folks,
Just wondering if anyone can suggest or help regarding some multiplayer functionality I have going on.
Using the NO-CASH-GBA emulator I have multiplayer working to how I would like, its not perfect but its acceptable for my game :)
The methods I am using are actually by other forum members methods I have found recently which has been a really BIG help.
I am limited to testing as far as hardware goes, I have 2*GBA's and 1*flash cartridge. So trying various things I am wanting to see "Player 2" listed (detected) as the current player.
I have tried powering on both GBA's with my game installed and the slave cable end in one gba. This will not show as player 2 which is my concern.
I would like to assume that what I see on NO-CASH-GBA will be the final result when I have my game put on cartridges, but to me it doesnt seem like the code I have requires both GBA's to have the same gamepack installed.
Some detection code I have, with permission, as follows:
The function is repeatedly called if -1 is returned, should that work? Seems to in the emulator, I'm not sure, but just how does the GBA know what end of the cable is in?
Well if you know what I'm talking about I would really like to hear from you :) I appreciate your reading!
Chris.
Just wondering if anyone can suggest or help regarding some multiplayer functionality I have going on.
Using the NO-CASH-GBA emulator I have multiplayer working to how I would like, its not perfect but its acceptable for my game :)
The methods I am using are actually by other forum members methods I have found recently which has been a really BIG help.
I am limited to testing as far as hardware goes, I have 2*GBA's and 1*flash cartridge. So trying various things I am wanting to see "Player 2" listed (detected) as the current player.
I have tried powering on both GBA's with my game installed and the slave cable end in one gba. This will not show as player 2 which is my concern.
I would like to assume that what I see on NO-CASH-GBA will be the final result when I have my game put on cartridges, but to me it doesnt seem like the code I have requires both GBA's to have the same gamepack installed.
Some detection code I have, with permission, as follows:
Code: |
SIOCNT = 0; // enable multiplayer SIOCNT |= (1 << 13); // set mode multiplayer mode REG_RCNT = 0; REG_RCNT |= (1 << 14); // search for GBA ready signal.. int ready = 0; // ready detected if (SIOCNT & (1<<3)) ready = 1; if (ready == 0) return -1; // get *this* player id PID = (SIOCNT >> 4) & 3; return 0; |
The function is repeatedly called if -1 is returned, should that work? Seems to in the emulator, I'm not sure, but just how does the GBA know what end of the cable is in?
Well if you know what I'm talking about I would really like to hear from you :) I appreciate your reading!
Chris.