Help|Select The map and connect to it

Hey everybody,
I’m using on “M2H_Networking_Tutorial” Project
On the “FPS Game”.
I see that I can connect just to on map…
I made tree map’s and I want to make tree option’s of map’s and if the select map number 1 it’s will connect to map number… 1 XD… But I don’t know how to do that script…
If you need the script’s that I using Just ask And I will sending a privet massege…
TNX for helping.

UP.

UP!!
Guys Please HELP ME!?.

UP.

UP!!
Guys Please HELP ME!?.

  1. stop bumping your thread
  2. if nobody answers your question then your question is not clear enough.
  3. you will need to try to make what you want and if your stuck, post the part where you need help.

now…
if i understand you corectly you want a GUI with buttons to select which scene you want to load ?

Yes that’s what I wnat to do,
But… Because the is MultiPlayer I don’t know how to do that…
I’m using on “M2H_Networking_Tutorial” Project

Follow the logic steps in any game ( multiplayer or not ). Where do you want the players to select the scene… create a gui for the selection… code the commands.

what?
can you write a beginig code?

You can find all here : http://unity3d.com/support/documentation/ScriptReference/index.html

come on dude :.…

I suggest that if you want someone to create the script for you that you post in the Collaboration or Commercial Work sections.

I just need basic\begining script that all!
Edit:
I need to use GUI button’s right? Okay…,
And I need to use LoadLevel?

Oh and another one:
I have “Quick Play” on M2H_Networking_Tutorial" Project and when I click on it it’s write on the screen:“Searching for Master server”…
So… How I can do a buttons that every button is for another map and the proggram will searching on every button the master server?

You need to read more about networking since you don’t have a clear view how the tutorial works.
The master server is where you host a game so other clients can connect to the same game.
All players have to be in the same scene as the server instance of the network game, so all players need to load the same scene when the game starts or when they join. Connecting to the master server is done before the game scene is loaded.

For now…, I have 4 map’s.
I made that script:

Every button teleport me to the Manu sence…(the sence with the button’s script like:“Quick Play” or “Advanced”…)…
So when it’s load that sence, I click on “Quick Play” and it’s load the map’s,
but it’s load just the first map(“Inflatable”) when I click on every Btton…
How can I fix it?

Your 4 buttons do exactly the same : Application.LoadLevel (13);
and like i said before : Connecting to the master server is done before the game scene is loaded.
If you read the chapter on networking, you should get a clear view on the process of starting a server instance and how to load a scene and then send a command to all connected players to load the same scene.
You will never be able to code a networked game if you don’t read the concerned documentation.

so witch code i need to use?

Because Level 13 is the sence with the buttons of opening servers and to join servers…
So how can i script that when i click on button-map 1 it will open the level 13 and in that sence if i click on “Quick Play” i will open server on map 1 and i click on button-map 2 it will load the level 13 and then, when i click on “Quick Play” it will load the level of map 2 and too about level 3 and 4???

Since you still don’t have a clear view on the process ( read the documentation ), i’ll explain it :

  1. a user connects to the master server and decides to host a game ( server instance )
  2. upon starting the server instance he chooses what scene he wants to load.
  3. a user connects to the game hosted by user above.
  4. the user gets an rpc command telling him to load the same scene as the server.