LoginLogin
Nintendo shutting down 3DS + Wii U online services, see our post

Basics of Multiplayer #1

Root / Submissions / [.]

16bitcoderCreated:
Hello. I just wanted to help people with multiplayer on smilebasic if they only have one 3ds or need help!Like if this helped MPSTART Starts a local connection
MPSTART (MAX PLAYERS),"(LOCAL NAME)"
  • Example
MPSTART 4,"ANYSTR"
(^What does that do?^) That example is allows 4-players connect to each other. They Can also only connect if all of their local names are anystr. MPEND Ends a local game.
MPEND
MPCOUNT Number of users in local game
PRINT MPCOUNT
(^What does this do^) It displays the amount of players. What the numbers mean: 1- 1 player 2- 2 player 3- 3 player 4- 4 player MPSEND Sends data to all users in local game
MPSEND "(Character String to send)"
Example:
MPSEND " HI"
(^What does this do?^) The example sends all players the message "hi" if they are all receiving. MPRECV OUT Receives data from MPSEND
MPRECV OUT SID,RCV$
Example:
MPRECV OUT SID,RCV$
PRINT SID;":";RCV$
(^WHAT DOES THIS EXAMPLE DO?^) Shows you the number of the device that Sent the data and what they sent. Example (Local Chat 4-player max):
MPSTART 4,"CHAT"
@loop
CLS
MPRECV OUT SID,RCV$
PRINT RCV$
PRINT"X:TYPE"
IF BUTTON()==#X THEN WAIT 10:GOTO @SEND
WAIT 1:GOTO @LOOP
@SEND
ME$=DIALOG("","")
MPSEND ME$
GOTO @LOOP
Want more? Like and I may make another!

Check out the basics of multiplayer!

I started implementing wireless muliplayer in a game I'm making, so proper tutorials on these features would be really great. The more I know, the more I can future proof until I have an actual testing partner T_T.

Replying to:JustGreat
I started implementing wireless muliplayer in a game I'm making, so proper tutorials on these features would be really great. The more I know, the more I can future proof until I have an actual testing partner T_T.
Well I hope this helped!

Very useful

Need help with multiplayer? CLICK HERE^?☝

My questions: -How do you figure out your terminal ID -What does MPNAME$ do? (how do you set the name)

Replying to:12Me21
My questions: -How do you figure out your terminal ID -What does MPNAME$ do? (how do you set the name)
Well 1) here are the terminal ids
Host = terminal id (0)
first connecter= terminal id (1)
2nd connector= terminal id (2)
3rd connector= terminal id (3)
And 2)MPNAME$ is your device name you set.

Thanks for the support! I'm glad to help for multilayer purposes!

Replying to:12Me21
My questions: -How do you figure out your terminal ID -What does MPNAME$ do? (how do you set the name)
How do you set MPNAME$ though? How do you figure out your terminal id? (you didn't really answer my questions...)

Replying to:12Me21
My questions: -How do you figure out your terminal ID -What does MPNAME$ do? (how do you set the name)
Well I FOUND OUT the terminal ids from THE MANUAL and you SET MPNAME$ when you set the setting the FIRST time you start your 3DS! Or you can set MPNAME$ with NAME$=MPNAME$(0)

Replying to:12Me21
My questions: -How do you figure out your terminal ID -What does MPNAME$ do? (how do you set the name)
MPNAME$ is actually just the name of the 3DS console. You can change it in the system settings.

Replying to:12Me21
My questions: -How do you figure out your terminal ID -What does MPNAME$ do? (how do you set the name)
MPLOCAL is the ID of your system, and MPHOST is the ID of the host system. Thus, MPNAME$(MPHOST) is the host's name and MPNAME$(MPLOCAL) is yours.

lol i need two 3ds's with smilebasic on them for my projects

I am trying to send x but it says type mismatch

Replying to:Joshuaham123
I am trying to send x but it says type mismatch
X needs to be a string.

Replying to:Joshuaham123
I am trying to send x but it says type mismatch
It is 64

Replying to:Joshuaham123
I am trying to send x but it says type mismatch
Then convert it to a string with STR$() and convert it back with VAL().

The thing I'm interested in is how to do multiplayer games lol

wait why did this dude get banned

Replying to:Xenoslyce
wait why did this dude get banned
I don't know, but I just realized that I was around when the ban message said "Chat and Site banned for 10 years". Time is passing and that's terrifying