(Request) Multiplayer Individual Camera Swap
#1
I have been working on an offline version of hide and seek for a while and someone suggested to me (as a solution for screencheating) to use a button activator that swaps P2's camera to P1's if P1 is seeker. 
SO:
Before code is activated:

(This is onscreen BTW)
______________________
|                    |                 |
|           1        |       2        | 
|                    |                 |
|___________|__________|
|                    |                 |
|        3          |        4/H    | 
|                    |                 |
|___________|__________| 
P2 activates code:
______________________
|                    |                 |
|           1        |       1        | 
|                    |                 |
|___________|__________|
|                    |                 |
|        3          |        4/H    |
|                    |                 |  
|___________|__________| 

P2 deactivates code:
______________________
|                    |                 |
|           1        |       2        | 
|                    |                 |
|___________|__________|
|                    |                 |
|        3          |        4/H    | 
|                    |                 |
|___________|__________| 

So I need a code with addresses for p2, p3, p4, the highlight reel (for 3 player), that are switched to P1's camera. So after everyone has activated their codes:

______________________
|                    |                 |
|           1        |       1        | 
|                    |                 |
|___________|__________|
|                    |                 |
|          1         |       1        | 
|                    |                 |
|___________|__________| 

(I went with the text pictures because it was just easier to explain with)
He is kinda fluffy tho
Reply
#2
Tell me the button and controllers for each players and I'll see what I can do
Reply
#3
(02-16-2025, 09:39 PM)_Ro Wrote: Tell me the button and controllers for each players and I'll see what I can do

All wiimotes and - (minus)

And thanks  Smile
He is kinda fluffy tho
Reply
#4
I've made the code! I don't know if I can improve it and shorten it by at least two instructions or one line, but it works great enough and does the job!

C25971F8 00000011
889D009C 48000015
199A0001 1ED20002
240A0003 00000000
7D8802A6 894C0003
2C0A0000 41820050
7C0A2000 40820020
3D608034 A14C0000
7D6B522E 716B1000
40820014 39600000
997D03D0 398C0004
4BFFFFCC 897D03D0
2C0B0000 40820018
899D03D1 698C0001
999D03D1 39600001
997D03D0 899D03D1
718C0001 41820008
38800000 00000000

Source:
lbz r4, 0x9C(r29)

bl controllerAddr_playerID
.long 0x199A0001
.long 0x1ED20002
.long 0x240A0003
.long 0
controllerAddr_playerID:
mflr r12

isEndOfTable:
lbz r10, 3 (r12)
cmpwi r10, 0
beq isTargetP1Cam

isTargettedPlayerID:
cmpw r10, r4
bne nextTableAddr

isThatPlayerPressingMinus:
lis r11, 0x8034
lhz r10, 0 (r12)
lhzx r11, r11, r10
andi. r11, r11, 0x1000
bne isPressing

setNotPressing:
li r11, 0
stb r11, 0x3D0 (r29)

nextTableAddr:
addi r12, r12, 0x4
b isEndOfTable

isPressing:
lbz r11, 0x3D0 (r29)
cmpwi r11, 0
bne isTargetP1Cam

toggleTargetP1Cam:
lbz r12, 0x3D1 (r29)
xori r12, r12, 1
stb r12, 0x3D1 (r29)

setPressing:
li r11, 1
stb r11, 0x3D0 (r29)

isTargetP1Cam:
lbz r12, 0x3D1 (r29)
andi. r12, r12, 1
beq end

setP1Cam:
li r4, 0

end:
Reply
#5
Also, not really relevant but I had a Smart TV that had glasses where you could only see your screen in splitscreen. It was so damn cool!
Reply
#6
WOW.
This is ABSOLUTELY HUGE!!!! And it works so well!!!
Thank you so so so so much!!! Get + rated or whatever we call it!
He is kinda fluffy tho
Reply
#7
If at all possible, this would be great in standard form (all regions, with XXXX YYYY ZZZZ etc. ) so I can put it on the offline hide and seek thread.

P.S. Also, the smart TV thing is cool Smile
He is kinda fluffy tho
Reply
#8
Heheheh... so I realized I forgot something.
The way this version of hide and seek works, I need this to be able to work for player 1, and actually all cameras... 
So: to continue in the theme of text pictures:

No codes are activated.
______________________
|                    |                 |
|           1        |       2        | 
|                    |                 |
|___________|__________|
|                    |                 |
|        3          |        4/H    | 
|                    |                 |
|___________|__________| 

If P1 tags P2, P1 has nowhere to hide, and their screen is now visible to everyone. Unless there is a designated "it" remote, this isn't enough. What's more, the problem with the "it" remote is having to switch controllers which not only delays gameplay but also can make me have to use motion controls, and my friend or whatever who doesn't play Mariokart a lot, has to use a nunchuk. So, if possible, can all cameras be transferred to using:
"up" and - , "left" and - , and "right" and - ? This would make it more accessible and functional. 
He is kinda fluffy tho
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)