Map Making Tutorial II
#1
Map Making Tutorial
The old tutorial by [MM]IKKE has served us well, however he is no longer active and a lot of his thread is either cumbersome or plain out of date now. So I have made this one to replace it. I try to keep things more direct, to the point, and shorter too. If you get stuck with the harder stuff after making the objects, read the bottom to see how we can still get your map published and on server! You can also view the old tutorial here. Be warned that it is quite long and partly out of date though. This condenses it into easier to read ways.

Getting Started
First of all, decide what you want to do. Do you want to make the map using San Andreas: Multiplayer (SA:MP), or using Multi Theft Auto (MTA). Some people prefer to use the built in map editor provided by MTA. Either way will work fine for a map for Sumo. If you're using SA:MP, keep reading, if not scroll down to 'Using MTA'.

Using SA:MP - Skip down to see using MTA
Using SA:MP for mapping requires you to download the SA:MP server.
Go here and download the 'Windows Server' (linux if you use it).
Install the server and note where you put it.
Download rdlMap & VehCreator - The first is what we will use to spawn and save objects, the second is the vehicle generator.
Place the above files into the /filterscripts/ folder of where you installed the server.
Go to the root directory of where you installed the server, and open server.cfg. Find where it says 'filterscripts' and change it so it says 'filterscripts rdlMap VehCreator'.
Also in server.cfg change the 'gamemode0' line, it should look like 'gamemode0 bare 1' when you're done, also set announce to 1 instead of 0.
Finally for this file, change 'rcon_password changeme' to 'rcon_password ANYPASSWORDYOUWANT' - The server will not launch if you don't change the 'changeme' default password to anything else.
Launch samp-server.exe, now you need to add this server to your client. Add localhost:7777 to your favorites list. Your server should now show up, if it doesn't check you typed it right and then announce is set to 1 and not 0 in server.cfg - if it is set to 0, you can still join the server, it just won't appear as online.
Now we can start mapping! Join the server, and type /help. You can use the commands to place and move objects. The best tool for finding object IDs in this map editor, once installed you simply click an object and it gives you the ID. You can also use object catalogues and this object finder to find objects and search for them.
It'll take a while to get used to using /x /y /z accurately and figuring out why it goes in that direction, remember you can specify amounts on those commands to make them go further or lesser, just typing x/y/z makes it move by +1, so /y -50 takes it to current position -50 on the Y axis.
rdlMap will constantly autosave incase something crashes, use /savemap YOURMAPNAME to perform a manual save when you're finished!. Your save, plus the automatic ones are in the /scriptfiles/ folder of the SA:MP server root folder.

Using MTA
Unfortunately, I have no experience using MTA. However I assume you do if you chose this option. You can download MTA from their website. MTA have some instructions for their editor here.
MTA does not include the added SA:MP objects, so if you need them, using MTA won't work!

Once your happy with your map, export the object code. You will need to convert the code from MTA format to SA:MP format. There is a website dedicated to doing this, for free, without any downloads called convertFFS. Make sure you are converting from MTA format, to SA:MP CreateObject format in the settings box.
Got your objects and happy with the outcome? Scroll down to 'Vehicles'

Vehicles
There are two methods of spawning vehicles. You can do it either whilst you're on the mapping phase (works better in SA:MP), or you can have the map generator generate them for you. This only works if you place the Sumo Ring object (obj id 13607), as the generator will use this as its base to spawn on, as it knows the objects size.
Placing Vehicles Yourself
Load your objects onto the server, if you're still mapping then they're already loaded still. To load objects from another method, or after closing the initial making session, copy and paste the objects you got earlier into 'blank.pwn', find 'OnGameModeInit' and put it within the { & } of that function. Press F5 to compile. Now restart the gameserver (or type 'gmx' into the console if its already running). Your objects are now there. You can use the /v command to spawn a car of helicopter/plane to go to where the objects are
Type /vehicles to see the list of commands available for making spawns. If this command doesn't work, you didn't load VehCreator earlier on, go back to 'Using SA:MP' and make sure you made the right server.cfg edits.
/savesumo saves a single spawn - you need to be a car for this to work. The spawn is where you are at time of typing.
/csave - Create a small circle of five vehicles - suitable for smaller loadouts (FAST,NO_BIG,LOWRIDER etc).
/bcsave - Create a larger circle of five vehicles - suitable for larger loadouts (NORMAL,BIG,INDUSTRIAL, etc)
Creating spawns too close together, using /savesumo or /(b)csave will cause vehicles to spawn on top of each other!
Automated Generation
This only works if you have sumo rings that are not obstructed by other objects! - Simply use the map generator (described below) as normal, but remember to tick the 'Auto Generate Spawns' box. It'll automatically be added to the output files.
A good tip is, if you have a large piece of flat land, create a sumo ring and sink it just SLIGHTLY below the surface of the other objects, and let the generator use that as the spawn point. Then you can't see the ring, but it can still generate the spawns on it

Final Steps
The next step is fairly simple, as all you're doing is copy pasting your objects into our Map Generator and ticking a few boxes, which will then spit everything back out as a completed and 100% working map file.
So to begin with, go to the Map Generator. It will ask you to login, use the same username and password you use on the server.
Carefully read each setting and select the best, on the right of each one is a description. After the first set of tick boxes, dropdowns and number entering are the main boxes.
If you don't understand SetPlayerSpawn,SetPlayerCameraPos,SetPlayerCameraLookAt, then pick a random object and copy the X,Y,Z co-ords from that and it'll be good enough.
The first one you will need to copy your objects into, make sure if you used MTA you have converted them before pasting in there.
The second one you will need to place your vehicle spawns into. If you are using automatic generation then ignore this box and leave it as it is.
The third box is where you put any code to remove default objects, if you are not doing any of that, ignore that box and leave it as it is too.
Finally at the bottom are more options, these are important ones though.
Leave random spawns ticked.
If you are going to add custom coding to your map, then tick 'advance settings'
If you're automatically generating spawns, tick the next one, DO NOT TICK IF VEHICLES ARE ALREADY PROVIDED.
If you plan on adding NPCs, tick the next box. Else don't do.
Now click on 'Create My Map'. It may take a few seconds to generate, but once done it'll bring back some stuff.

SUCCESS! - assuming it didn't throw out any errors, you're done. Now contact Redirect Left (or reply to this thread) saying what the map is called, so he knows there is a new map and he can put it on the server and on the cycle for everyone to enjoy!
FAILURE! - alright there's a problem. Lets see why, the errors are usually self explanatory, but if you get stuck with an error, let us know on this thread.

STOP - It got too complex!
Alright, don't worry. If you're sure you can't do anything beyond creating the map objects which are the most important stuff. What you can do is reply to THIS thread with your objects. Pick a name for your map, and one of the current users or map makers can finish it off for you. The map will still be credited to you and not whoever finished / generated it.
If you're only comfortable with doing the objects (MTA is probably easier for those who are really unsure of object mapping) then just do the above, and you'll still get your map on server, it might just take time until someone has time to do it, if I see it, i'll try to do it as fast as possible though.
[Image: sEUTTDLR.png]
[17:42:17] <@SugarMommy> *aaah daddy~ .. spank me.. HArd~*
Reply
#2
(02-05-2016, 07:45 PM)Redirect Left Wrote: Map Making Tutorial
The old tutorial by [MM]IKKE has served us well, however he is no longer active and a lot of his thread is either cumbersome or plain out of date now. So I have made this one to replace it. I try to keep things more direct, to the point, and shorter too. If you get stuck with the harder stuff after making the objects, read the bottom to see how we can still get your map published and on server! You can also view the old tutorial here. Be warned that it is quite long and partly out of date though. This condenses it into easier to read ways.

Getting Started
First of all, decide what you want to do. Do you want to make the map using San Andreas: Multiplayer (SA:MP), or using Multi Theft Auto (MTA). Some people prefer to use the built in map editor provided by MTA. Either way will work fine for a map for Sumo. If you're using SA:MP, keep reading, if not scroll down to 'Using MTA'.

Using SA:MP - Skip down to see using MTA
Using SA:MP for mapping requires you to download the SA:MP server.
Go here and download the 'Windows Server' (linux if you use it).
Install the server and note where you put it.
Download rdlMap & VehCreator - The first is what we will use to spawn and save objects, the second is the vehicle generator.
Place the above files into the /filterscripts/ folder of where you installed the server.
Go to the root directory of where you installed the server, and open server.cfg. Find where it says 'filterscripts' and change it so it says 'filterscripts rdlMap VehCreator'.
Also in server.cfg change the 'gamemode0' line, it should look like 'gamemode0 blank 1' when you're done, also set announce to 1 instead of 0.
Finally for this file, change 'rcon_password changeme' to 'rcon_password ANYPASSWORDYOUWANT' - The server will not launch if you don't change the 'changeme' default password to anything else.
Launch samp-server.exe, now you need to add this server to your client. Add localhost:7777 to your favorites list. Your server should now show up, if it doesn't check you typed it right and then announce is set to 1 and not 0.
Now we can start mapping! Join the server, and type /help. You can use the commands to place and move objects. The best tool for finding object IDs in this map editor, once installed you simply click an object and it gives you the ID. You can also use object catalogues and the SA:MP wiki to find object ids.
It'll take a while to get used to using /x /y /z accurately and figuring out why it goes in that direction, remember you can specify amounts on those commands to make them go further or lesser, just typing x/y/z makes it move by +1, so /y -50 takes it to current position -50 on the Y axis.
rdlMap will constantly autosave incase something crashes, use /savemap YOURMAPNAME to perform a manual save when you're finished!. Your save, plus the automatic ones are in the /scriptfiles/ folder of the SA:MP server root folder.

Using MTA
Unfortunately, I have no experience using MTA. However I assume you do if you chose this option. You can download MTA from their website. MTA have some instructions for their editor here.

Once your happy with your map, export the object code. You will need to convert the code from MTA format to SA:MP format. There is a website dedicated to doing this, for free, without any downloads called convertFFS. Make sure you are converting from MTA format, to SA:MP CreateObject format in the settings box.
Got your objects and happy with the outcome? Scroll down to 'Vehicles'

Vehicles
There are two methods of spawning vehicles. You can do it either whilst you're on the mapping phase (works better in SA:MP), or you can have the map generator generate them for you. This only works if you place the Sumo Ring object (obj id 13607), as the generator will use this as its base to spawn on, as it knows the objects size.
Placing Vehicles Yourself
Load your objects onto the server, if you're still mapping then they're already loaded still. To load objects from another method, or after closing the initial making session, copy and paste the objects you got earlier into 'blank.pwn', find 'OnGameModeInit' and put it within the { & } of that function. Press F5 to compile. Now restart the gameserver (or type 'gmx' into the console if its already running). Your objects are now there. You can use the /v command to spawnd a car of helicopter/plane to go to where the objects are.
Type /vehicles to see the list of commands available for making spawns. If this command doesn't work, you didn't load VehCreator earlier on, go back to 'Using SA:MP' and make sure you made the right server.cfg edits.
/savesumo saves a single spawn - you need to be a car for this to work. The spawn is where you are at time of typing.
/csave - Create a small circle of five vehicles - suitable for smaller loadouts (FAST,NO_BIG,LOWRIDER etc).
/bcsave - Create a larger circle of five vehicles - suitable for larger loadouts (NORMAL,BIG,INDUSTRIAL, etc)
Creating spawns too close together, using /savesumo or /(b)csave will cause vehicles to spawn on top of each other!
Automated Generation
This only works if you have sumo rings that are not obstructed by other objects! - Simply use the map generator (described below) as normal, but remember to tick the 'Auto Generate Spawns' box. It'll automatically be added to the output files.
A good tip is, if you have a large piece of flat land, create a sumo ring and sink it just SLIGHTLY below the surface of the other objects, and let the generator use that as the spawn point. Then you can't see the ring, but it can still generate the spawns on it

Final Steps
The next step is fairly simple, as all you're doing is copy pasting your objects into our Map Generator and ticking a few boxes, which will then spit everything back out as a completed and 100% working map file.
So to begin with, go to the Map Generator. It will ask you to login, use the same username and password you use on the server.
Carefully read each setting and select the best, on the right of each one is a description. After the first set of tick boxes, dropdowns and number entering are the main boxes.
If you don't understand SetPlayerSpawn,SetPlayerCameraPos,SetPlayerCameraLookAt, then pick a random object and copy the X,Y,Z co-ords from that and it'll be good enough.
The first one you will need to copy your objects into, make sure if you used MTA you have converted them before pasting in there.
The second one you will need to place your vehicle spawns into. If you are using automatic generation then ignore this box and leave it as it is.
The third box is where you put any code to remove default objects, if you are not doing any of that, ignore that box and leave it as it is too.
Finally at the bottom are more options, these are important ones though.
Leave random spawns ticked.
If you are going to add custom coding to your map, then tick 'advance settings'
If you're automatically generating spawns, tick the next one, DO NOT TICK IF VEHICLES ARE ALREADY PROVIDED.
If you plan on adding NPCs, tick the next box. Else don't do.
Now click on 'Create My Map'. It may take a few seconds to generate, but once done it'll bring back some stuff.

SUCCESS! - assuming it didn't throw out any errors, you're done. Now contact Redirect Left (or reply to this thread) saying what the map is called, so he knows there is a new map and he can put it on the server and on the cycle for everyone to enjoy!
FAILURE! - alright there's a problem. Lets see why, the errors are usually self explanatory, but if you get stuck with an error, let us know on this thread.

STOP - It got too complex!
Alright, don't worry. If you're sure you can't do anything beyond creating the map objects which are the most important stuff. What you can do is reply to THIS thread with your objects. Pick a name for your map, and one of the current users or map makers can finish it off for you. The map will still be credited to you and not whoever finished / generated it.
If you're only comfortable with doing the objects (MTA is probably easier for those who are really unsure of object mapping) then just do the above, and you'll still get your map on server, it might just take time until someone has time to do it, if I see it, i'll try to do it as fast as possible though.


I made a new map it's called Susimap
Reply
#3
The map has been added to the server, and will begin appearing randomly as part of the cycle.
[Image: sEUTTDLR.png]
[17:42:17] <@SugarMommy> *aaah daddy~ .. spank me.. HArd~*
Reply
#4
(02-05-2016, 07:45 PM)Redirect Left Wrote: Map Making Tutorial
The old tutorial by [MM]IKKE has served us well, however he is no longer active and a lot of his thread is either cumbersome or plain out of date now. So I have made this one to replace it. I try to keep things more direct, to the point, and shorter too. If you get stuck with the harder stuff after making the objects, read the bottom to see how we can still get your map published and on server! You can also view the old tutorial here. Be warned that it is quite long and partly out of date though. This condenses it into easier to read ways.

Getting Started
First of all, decide what you want to do. Do you want to make the map using San Andreas: Multiplayer (SA:MP), or using Multi Theft Auto (MTA). Some people prefer to use the built in map editor provided by MTA. Either way will work fine for a map for Sumo. If you're using SA:MP, keep reading, if not scroll down to 'Using MTA'.

Using SA:MP - Skip down to see using MTA
Using SA:MP for mapping requires you to download the SA:MP server.
Go here and download the 'Windows Server' (linux if you use it).
Install the server and note where you put it.
Download rdlMap & VehCreator - The first is what we will use to spawn and save objects, the second is the vehicle generator.
Place the above files into the /filterscripts/ folder of where you installed the server.
Go to the root directory of where you installed the server, and open server.cfg. Find where it says 'filterscripts' and change it so it says 'filterscripts rdlMap VehCreator'.
Also in server.cfg change the 'gamemode0' line, it should look like 'gamemode0 blank 1' when you're done, also set announce to 1 instead of 0.
Finally for this file, change 'rcon_password changeme' to 'rcon_password ANYPASSWORDYOUWANT' - The server will not launch if you don't change the 'changeme' default password to anything else.
Launch samp-server.exe, now you need to add this server to your client. Add localhost:7777 to your favorites list. Your server should now show up, if it doesn't check you typed it right and then announce is set to 1 and not 0.
Now we can start mapping! Join the server, and type /help. You can use the commands to place and move objects. The best tool for finding object IDs in this map editor, once installed you simply click an object and it gives you the ID. You can also use object catalogues and the SA:MP wiki to find object ids.
It'll take a while to get used to using /x /y /z accurately and figuring out why it goes in that direction, remember you can specify amounts on those commands to make them go further or lesser, just typing x/y/z makes it move by +1, so /y -50 takes it to current position -50 on the Y axis.
rdlMap will constantly autosave incase something crashes, use /savemap YOURMAPNAME to perform a manual save when you're finished!. Your save, plus the automatic ones are in the /scriptfiles/ folder of the SA:MP server root folder.

Using MTA
Unfortunately, I have no experience using MTA. However I assume you do if you chose this option. You can download MTA from their website. MTA have some instructions for their editor here.

Once your happy with your map, export the object code. You will need to convert the code from MTA format to SA:MP format. There is a website dedicated to doing this, for free, without any downloads called convertFFS. Make sure you are converting from MTA format, to SA:MP CreateObject format in the settings box.
Got your objects and happy with the outcome? Scroll down to 'Vehicles'

Vehicles
There are two methods of spawning vehicles. You can do it either whilst you're on the mapping phase (works better in SA:MP), or you can have the map generator generate them for you. This only works if you place the Sumo Ring object (obj id 13607), as the generator will use this as its base to spawn on, as it knows the objects size.
Placing Vehicles Yourself
Load your objects onto the server, if you're still mapping then they're already loaded still. To load objects from another method, or after closing the initial making session, copy and paste the objects you got earlier into 'blank.pwn', find 'OnGameModeInit' and put it within the { & } of that function. Press F5 to compile. Now restart the gameserver (or type 'gmx' into the console if its already running). Your objects are now there. You can use the /v command to spawnd a car of helicopter/plane to go to where the objects are.
Type /vehicles to see the list of commands available for making spawns. If this command doesn't work, you didn't load VehCreator earlier on, go back to 'Using SA:MP' and make sure you made the right server.cfg edits.
/savesumo saves a single spawn - you need to be a car for this to work. The spawn is where you are at time of typing.
/csave - Create a small circle of five vehicles - suitable for smaller loadouts (FAST,NO_BIG,LOWRIDER etc).
/bcsave - Create a larger circle of five vehicles - suitable for larger loadouts (NORMAL,BIG,INDUSTRIAL, etc)
Creating spawns too close together, using /savesumo or /(b)csave will cause vehicles to spawn on top of each other!
Automated Generation
This only works if you have sumo rings that are not obstructed by other objects! - Simply use the map generator (described below) as normal, but remember to tick the 'Auto Generate Spawns' box. It'll automatically be added to the output files.
A good tip is, if you have a large piece of flat land, create a sumo ring and sink it just SLIGHTLY below the surface of the other objects, and let the generator use that as the spawn point. Then you can't see the ring, but it can still generate the spawns on it

Final Steps
The next step is fairly simple, as all you're doing is copy pasting your objects into our Map Generator and ticking a few boxes, which will then spit everything back out as a completed and 100% working map file.
So to begin with, go to the Map Generator. It will ask you to login, use the same username and password you use on the server.
Carefully read each setting and select the best, on the right of each one is a description. After the first set of tick boxes, dropdowns and number entering are the main boxes.
If you don't understand SetPlayerSpawn,SetPlayerCameraPos,SetPlayerCameraLookAt, then pick a random object and copy the X,Y,Z co-ords from that and it'll be good enough.
The first one you will need to copy your objects into, make sure if you used MTA you have converted them before pasting in there.
The second one you will need to place your vehicle spawns into. If you are using automatic generation then ignore this box and leave it as it is.
The third box is where you put any code to remove default objects, if you are not doing any of that, ignore that box and leave it as it is too.
Finally at the bottom are more options, these are important ones though.
Leave random spawns ticked.
If you are going to add custom coding to your map, then tick 'advance settings'
If you're automatically generating spawns, tick the next one, DO NOT TICK IF VEHICLES ARE ALREADY PROVIDED.
If you plan on adding NPCs, tick the next box. Else don't do.
Now click on 'Create My Map'. It may take a few seconds to generate, but once done it'll bring back some stuff.

SUCCESS! - assuming it didn't throw out any errors, you're done. Now contact Redirect Left (or reply to this thread) saying what the map is called, so he knows there is a new map and he can put it on the server and on the cycle for everyone to enjoy!
FAILURE! - alright there's a problem. Lets see why, the errors are usually self explanatory, but if you get stuck with an error, let us know on this thread.

STOP - It got too complex!
Alright, don't worry. If you're sure you can't do anything beyond creating the map objects which are the most important stuff. What you can do is reply to THIS thread with your objects. Pick a name for your map, and one of the current users or map makers can finish it off for you. The map will still be credited to you and not whoever finished / generated it.
If you're only comfortable with doing the objects (MTA is probably easier for those who are really unsure of object mapping) then just do the above, and you'll still get your map on server, it might just take time until someone has time to do it, if I see it, i'll try to do it as fast as possible though.


New map called Sky Route
Reply
#5
There's no need to quote the entire message (its a bit long).

The map will be placed on server, and once verified it works, premium credited within a few days.
[Image: sEUTTDLR.png]
[17:42:17] <@SugarMommy> *aaah daddy~ .. spank me.. HArd~*
Reply
#6
(04-16-2016, 06:35 PM)Redirect Left Wrote: There's no need to quote the entire message (its a bit long).

The map will be placed on server, and once verified it works, premium credited within a few days.

Okay and yes no need to quote entire message idk why I did that
Reply
#7
New maps: Baboon Map, Bekar Disco, Flood Road 2, Deserted Island
Reply
#8
All four are now in server, and if they play unaffected. You'll be credited for 7 days premium each (7 days x 4 maps = 28 days)
[Image: sEUTTDLR.png]
[17:42:17] <@SugarMommy> *aaah daddy~ .. spank me.. HArd~*
Reply
#9
New map "Skyways"
Reply
#10
New map "High Level"
Reply
#11
New map: Bekar Road 2
Reply
#12
New map - High Level 2
Reply
#13
There is no need to post these things anymore, the IRC bot notifies us of when a new map is submitted or a map is editted.

Quote:[18:26:05] <@rdlBOT> New Map Created: 'High Level 2' by 'susilak'. See: http://sumoserv.com/map/adminedit.php?mid=538
[Image: sEUTTDLR.png]
[17:42:17] <@SugarMommy> *aaah daddy~ .. spank me.. HArd~*
Reply
#14
Just wondering, can I just use SA-MP: Map Construction program (the map editor you provided in your tutorial) to make the map instead? If so, how do I export it?
Reply
#15
If you mean JerneJLs editor, then show code in the top bar.
[Image: sEUTTDLR.png]
[17:42:17] <@SugarMommy> *aaah daddy~ .. spank me.. HArd~*
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)