Multiplayer Map Editing in MTA

Discussion in 'Tutorials' started by Chonlel, Jul 29, 2014.

  1. Chonlel

    Chonlel Active Member

    Messages:
    101
    Likes Received:
    79
    Trophy Points:
    28
    Gender:
    Male
    Hi everyone, I've got another tutorial on MTA. This time, it's on how to set up a MTA server to allow for multiplayer mapping. If you're not familiar with mapping in MTA, take some time to play around with the editor to familiarize yourself with it.

    1. Set up your Port Forwarding now.
    I won't go too far into detail on how to do this. portforward.com explains how to do it much better than I could, and thinking about it makes my head hurt. I will say that setting up the static IP (local to your PC on your network) is a must before getting things to work. Finally, the ports listed for MTA in portforwarding are incorrect. They're as follows:
    22003: Allows players to join your server
    22005: Web interface for administrating
    22126: Lists server publicly in the master MTA serverlist​
    So really, the only port you need to open is 22003. Once your port forwarding is set up, continue.​

    2. Set up your MTA server.
    We'll work off the default directory for the sake of this tutorial. So when you open up C:\Program Files (x86)\MTA San Andreas 1.3\server you'll notice a .exe file called MTA Server.exe. Fire that bad boy up. When everything's done loading, you'll get something like the image below. Don't pay any mind to the warnings, it still works fine with them.
    [​IMG]

    Now open up MTA. Make sure you enter a memorable nickname (easy to just do your samp name!) into the nick box. After that, go to Quick Connect and type 127.0.0.1:22003 into the box. This is your local host, and will connect you to your server regardless of port forwarding working or not. Hit the connect button

    Now you're in your own MTA server! The first thing you want to do is register your account. This is so you can add it to the acl.xml file later. I'll explain where it is momentarily. Once you register your account, leave the server and type shutdown into your mta server.exe cmd prompt.
    [​IMG]

    Next is to add yourself to the admin group in your server's acl.xml. On a default installation path, this can be found at C:\Program Files (x86)\MTA San Andreas 1.3\server\mods\deathmatch. Open up acl.xml in notepad, notepad++, etc. I perfer notepad++ for this. You're going to have to find the line that says <group name="Admin">. Inside the group tag, add: <object name="user.<The nick you registered>"></object>. Save and exit. Sound confusing? Well here's a screenshot of mine.
    [​IMG]

    Now start MTA server.exe again. Before you do anything else, it's best to check and make sure your port forwarding worked correctly. To do this, just type "openports" (no quotes) into the mta server cmd prompt. It'll tell you what works and what doesn't. Again, the most important port is 22003.
    [​IMG]

    You should be finished setting up your MTA server at this point. If I forgot something, please post it in this thread so I can fix my tutorial.
    3. Starting/stopping resources
    The default resource loaded on a default MTA server is the "play" resource, which amounts to freeroam. To start editing, you have to stop this resource, and start the "editor" resource. There's two ways to do this.

    Method 1: From ingame.
    Load MTA, connect to your server. Open the console (using your tilde key, or other keys that I might not know), and type "login <the password you've chosen>" (no quotes). You should now be logged in.
    [​IMG]

    In the console, type "stop play" and "start editor" shortly thereafter. Starting the editor might take a while. Just stick it out. If it black screens after taking a while, then there's a problem with your install and you should save the acl.xml file and reinstall MTA.
    [​IMG]

    [​IMG]

    The map editor is now loaded, and you can collaborate on maps!
    Method 2: From the cmd prompt
    After making sure your ports are open, type "stop play" and "start editor" thereafter in your command prompt. By the time you open MTA and connect, the editor resource should've loaded properly. You might get warnings in the window. Just ignore them.
    [​IMG]

    The map editor is now loaded, and you can collaborate on maps! You might be wondering why I had you go through registering the account, editing acl.xml, etc. It's best to have all bases covered.
    Step 4: Let people connect
    For people to connect, you need to give them your outbound IP. There's over 9000 ways to find out your IP, the laziest of which is typing "What's my IP" into google. I'll make it even lazier for you. Tell them to connect to your IP:22003. Then people can connect and you can edit maps together!​
    ______________________________________________________________________

    Notes:
    • MTA can be a bit fickle at times. Try to stick with what you know to avoid a complete mess.
    • Multiple people can't control the same element. The element position isn't updated until the current controller deselects it.
    • Maps will be saved to the host's PC (duh)
    • If anyone chooses to go to freeroam mode (F5), everyone goes to freeroam mode. The inverse is true, as well. Make sure you and your buddies all agree on freeroam before going into it to avoid surprises.
    Hopefully everything goes well and you guys have fun making maps for i99 together!
     
  2. TrizerFury

    TrizerFury Player

    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Gender:
    Male
    Thnx for telling
     

Share This Page