SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Tutorials

Reply
 
Thread Tools Display Modes
Old 28/12/2012, 04:44 PM   #1
Tamer
High-roller
 
Tamer's Avatar
 
Join Date: Nov 2011
Location: Turkey
Posts: 1,127
Reputation: 172
Default How to use SA-MP map editor.

Welcome there,I will teach you how to use the SA-MP map editor.

I have realised a bunch of can't manage to map,I am aiming to help mappers to be better than usual.

I also realised that a bunch use MTA map editor instead of SA-MP map editor.

Bah,MTA map editor is for MTA! Not SA-MP! Everytime I see a dude posting a map for SA-MP done by MTA map editor I go nuts. (Eh I am mad probs) Anyway..

SA-MP map editor is much more efficient than the MTA editor. Also you may remove buildings here. Most use MTA because they think there is no SA-MP map editor or they think MTA is more efficient. NO it is not. Learn how to use SA-MP map editor and you will be the best mapper! I guarantee!



_______________How to install_____________

Firstly,download the map editor from this link:

http://forum.sa-mp.com/showthread.php?t=282801

Extract the RAR to your desktop.

You will see a file called "background.txd" Copy it and paste it to your GTA SA folder.

Once you have done it,run the editor.exe file.


__________Loading the editor_________

Once you run the file,you will have 2 choices.



Uploaded with ImageShack.us

Load:

This will load the editor normally.

Load with COLLS:

This will load collisions with the objects aswell.

Before loading,you will realise the help menu on the left and top.

Now,just for now Click "Load". If you really feel like loading with colls,do it next time.

****If you have an error while loading,go to the "errors" section in the tutorial.



___Wandering around and Movement___

When you load,you will see AREA 51 on your screen.

Right click with your mouse and move it upwards,downwards left or right.

You just learned how to control your camera.

If you have mouse wheel scroll it. This will move your camera forward.

Right click and press W or A or S or D

These will make you move your camera.

You may also press space to move much more faster (just like running ingame)

Now,go and click somewhere on the map.

You will have that object reddish. (It means it is chosen)



________________Tabs___________________

You will see few tabs on top.

Import .pwn:

This will import the map that you have created to a .pwn file.

If you don't have an existing game script,this will not work for you.

Import paste:

This will import the code in your clipboard (copied object code). I will explain what is the code further in the TUT.

Show Code (currently unclickable):

This will show your map code.

Clear All:

Clears all objects you have added. Easy to get rid of everything.

Undo:

This will take back what you last did.

Insert object:

This will insert an object to the map. (I don't suggest you to use this one)

Duplicate:

Will Duplicate the choosen object (reddish object as I stated before)

Delete:

It will delete the object selected.

Test:

This is to test your map,I will explain this more next of the tutorial.

_________Get started to mapping______

You will see 3 sub tabs just on the right top corner. (Views,Objects,Movement)

Click movement.

Be sure the section is ticked "5 automatic (Hotkeys)

Click Objects tab near Movement.

You will see a title "Object Collection"

This is your object stock,you are able to add objects.

Click a random object on your map.



Uploaded with ImageShack.us

Now,at the Objects tab (you are right now in it)

Click add.

You will have a small photo of the object at your left,click add again.

You wil lrealise there is the object just on the right,click to it once,then move your mouse to the screen and press insert (INS) on your keyboard.

The object is now created where ever your mouse cursor was.

The object is highlighted right now.

Use your arrow keys to move it.

To turn it or to raise it up press ctrl (left) same time the arrow keys.

To raise it up/down: Arrow keys:Up-down.

To turn it right/left: Arrow keys: left-right.

To give it a fast spin,click ctrl (left) and click the object with your mouse, moving your mouse

****If you couldn't manage to do these so far,be sure the object is highlighted.

While the object is highlighted click ctrl+c

Now use your arrow keys or drag your mouse to left or right to see your duplicated object.

Now,click "DEL" on your keyboard.

Well,you have managed to do it!You are now 418 steps away from being a pro mapper! (Hehe)

The main idea is this,but I aint gonna leave you middle of the desert (literally)

Messy map you got over there!Click clear all!!



______________________Tabs_________________


Views Tab:

This is a main tab to manage views.


Camera View:

You may paste coords here to go to a coord.

240.2021 1308.1946 12.9761

Copy these coords and paste them to the box,click "Point Camera at these Coords"

Just teaching ya!


Copy CameraLookAt()coords:

This aint for mappers,its useful for scripters,just makes the player turn their camera to those coords in gamemodes,it is not something for mapping.

Camera Bookmarks:

If you click add,it will copy the place you are and you may easily teleport that place with clicking it.

Game Data loading+rendering options.

Lod distance:

If you are lagging decrease it.

Draw Distance:

Same as above.

Stream:

Same as above (but leave this alone,better)

Water Color:

Reddish water?Naa!

Changing water will not affect your maps,it is just for your own editor.

Speed:

Be speedy like Speedy Gonzales. >Sets your speed to move/move objects etc.

Water Transperency:

Optimize water transperency.

Other things: (Load textures etc.)

Doesn't really matter,they are for design,will not affect your maps

Show colls:

Will show colls if you loaded with "Load Colls"



objects Tab:

You got the training of this,but you got something left to do.

Click "add" again.


You will see a bunch of selections:

search for:

If you type something here,it will give the objects that carry those names.

Ex: tv

Write "tv" and you will get anything that has "TV" in their name.

Sometimes,you may even have televisions that has another name.

Click one of the tv names.

You will see the pic of it at left. You may click that pic to observe it better.

Now,click add at the same window.

Click "add" again which will bring you to the previous search window.

By size:

This just checks for size (Not sure if this function is working yet)


Desccription name:

You may change the object name you are adding from here.

IDE Number:

Object id number.

If you have an object id write it here and click add to have it on your list.

Read "Object ID" section for more information about Object ID's.

Special Tool:

I will explain what is this function on the section "prefabpics"



Movement:


I suggest you to use 5 (automatic hotkeys)

Coordinates:

This shows the coords of the object currently selected.

Please return to the objects tab.

Click "add"



Uploaded with ImageShack.us

Type in the object id 3244 to IDE number space.

Click "add"

Import your object to your map.

Return to movement.

Move the X angle stick. (Moves your object in X angle)

Move the Y angle stick (moves your object in Y angle)

And goes like that.

Reset angles:

Resets all X Y Z changes done to the object turning it back to normal

Car Colors:

Not working.

Nudge tool:

If you want to make milimetric changes on your object (while you are working very sensitive objects) Use this.

X Y Z, R-X, R-Y,R-Z,learn how to use them and memorise how they do work.

Nudge power:

This will set the nudge power (how sensitive are you working with the object.

Camerative nudge:

Good if you are pointing north on the editor.

Well,you just learned how to move yar objects pal!.

_____Starting to map for real_____

Click "clear all"

Now,add this object to your objects tab by doing.. (DONT MAKE ME EXPLAIN IT! YOU DID IT 2 TIMES!) :P

Add object id

19460



Your first task is to make an area closed from 4 sides. (No need to be realistic,just get the main idea)

Once you are done Click Show code.

When you click here,you will see 4 wierdal stupido texts and numbers trying to tell you something.

Here is mine:

CreateObject(19460, 263.51, 1067.61, 17.89, 0.00, 0.00, 0.00);
CreateObject(19460, 258.68, 1072.39, 17.89, 0.00, 0.00, 89.04);
CreateObject(19460, 253.79, 1067.83, 17.89, 0.00, 0.00, -1.20);
CreateObject(19460, 258.66, 1063.11, 17.89, 0.00, 0.00, 89.04);



Uploaded with ImageShack.us


Anyway,copy your code. Now click "clear all".

Your map is gone.

Now,click import paste.

Woop!It's back!

So the idea is this,how to store your maps?Eh,well. Create a notepad and paste them there,close your editor,if you want to map it again copy it and import paste!

You may also delete objects that are added!

Simply,click the object and click delete.

Deleted objects are named different.

RemoveBuildingForPlayer(playerid, 16591, 205.4922, 1730.3516, 17.8281, 0.25);
RemoveBuildingForPlayer(playerid, 16209, 205.4922, 1730.3516, 17.8281, 0.25);

Usually like these.

Woop woop!The stupid tut is almost to finish!

Be sure that your objects are added.

Now click "test" on top of the editor.

When you click "test" samp will load.

You are near your objects HOORAY!

It will create your Carl Johnson dude just where your camera is aiming to,so I suggest you to go abit more closer to the ground if you don't think your CJ is a superman or something. (Maybe he is!)

Anyway,by testing you may see your bugs and fix them.


__________Misc_____________

It is possible to map cars,but you can't test them. Due we got "gravity" all floating cars will hit the ground automatically,but floating objects may not.

Double click to an object to see information about it. This is useful for scripters or if you are using SetObjectMaterial (which is for scripters)

Interriors are above the sky. You may fly like a skyrocket and you will see the interriors. It's impossible to miss them.

__________Object ID'S___________

There are around 20,000 objects in the GTA SA.

You may see a list of some of the objects which are useful here:

http://wiki.sa-mp.com/wiki/Model_ID

Also here:

http://wiki.sa-mp.com/wiki/Samp_objects

Car ID's ingame and car ID's in map editor are same.

First 0-300 are skins,they will not appear ingame even if you map them.



_______Known Bugs________


Flying objects:

If you go to another tab (in windows) and return back to the editor the object might fly away. Simply click redo to avoid it.

Invisible objects:

Some objects cannot be seen. Maybe they are huge maybe they have different textures. Rotate them.

Interriors:

If you try to test your map in an interior it will not work and our dude cj will fall down.

To enter an interrior you need to use the entrance.

Detection.

Some small objects under huge objects may not be detected and the editor will think you are clicking another object,only way to fix this is to get closer to the object you wish to click.




______Errors________

Background.txd missing error.

Copy the file to your GTA SA folder.

Graphic Card Error:

Drop your dinasour PC or renew your graphics card. Else,you may update your drivers ofcourse!

Module errors:

No idea how to fix,try to reboot pc.

Range Check error:

Restart your pc.

If that doesn't work re-install SA-MP or GTA SA.

Editor Files are not recognised (Files must be in your gta sa folder)

Copy them to your gta sa folder.

(xxx,yyy,zzz) is not a valid floating value.

Ignore or re-open editor.

Other Errors:

Tell us here if you have any.

_______Prefabpics and editor files__________

Every object you click will be stored as a pic on prefabpics folder on your GTA SA folder.

The render range function is to copy those pics to those folder between a range.


Editor files:

editor_objects.

Right click notepad to see your objects in the list.

Cameras:

Shows your cameras.

_______Tips:________

-Work alot.

Mapping alot will help you get pro'er.

-Learn the GTA SA map.

Knowing where you can find good objects will help you alot.

-Don't give up mapping for a long time

If you quit mapping it will cause you to loose your skill.

-Spend your time mapping.

Map as much as you can,when you are bored,when you want to chill.

-Never give up.

A map may get hard to do,give breaks,but never give up an idea you got.

-Don't make your objects float.

Double check if your objects are meeting the floor!


_________Credits:__________

JerneyL-Thanks to him we got SA-MP Map Editor

Turhan - I wouldn't be here if you didn't force me to learn how to map!
__________________
The three stages of truth:

- Ridicule.
- Violent opposition.
- Acceptance.


Quote:
The greatest hypnotist on the planet Earth is an oblong box in the corner of the room. It is constantly telling us what to believe is real. If you can persuade people that what they see with their eyes is what there is to see you've got them. you know because they'll laugh in your face of an explanation that portrays the biggest picture of what's happening... and they have.

Last edited by Tamer; 08/01/2015 at 08:33 PM.
Tamer is offline   Reply With Quote
Old 28/12/2012, 04:50 PM   #2
Rillo
Big Clucker
 
Join Date: Dec 2012
Posts: 104
Reputation: 17
Default Re: How to use SA-MP map editor?

Nice tutorial, I'm sure it will help a lot of players who want to map but don't know where to start.

+Repped
Rillo is offline   Reply With Quote
Old 28/12/2012, 04:51 PM   #3
Mellnik
Gangsta
 
Mellnik's Avatar
 
Join Date: Dec 2011
Location: Paradise Falls, CAℕADA
Posts: 771
Reputation: 373
Default AW: How to use SA-MP map editor?

Well done +rep
Mellnik is offline   Reply With Quote
Old 28/12/2012, 08:11 PM   #4
LeMoi
Gangsta
 
LeMoi's Avatar
 
Join Date: Jul 2011
Location: Portugal
Posts: 974
Reputation: 112
Default Re: How to use SA-MP map editor?

Good job.
LeMoi is offline   Reply With Quote
Old 28/12/2012, 08:53 PM   #5
viddo
Huge Clucker
 
Join Date: Aug 2011
Location: Home
Posts: 255
Reputation: 5
Default Re: How to use SA-MP map editor?

Hey i have a question some of the objects i mapped and added diasappears when you go a bit far from them and they disappear quickly than normal mapped objects anyone had this problem before?
__________________
Sup.
viddo is offline   Reply With Quote
Old 28/12/2012, 10:51 PM   #6
Tamer
High-roller
 
Tamer's Avatar
 
Join Date: Nov 2011
Location: Turkey
Posts: 1,127
Reputation: 172
Default Re: How to use SA-MP map editor?

Quote:
Originally Posted by viddo View Post
Hey i have a question some of the objects i mapped and added diasappears when you go a bit far from them and they disappear quickly than normal mapped objects anyone had this problem before?
Are you running a streamer?Does this happen only on SA-MP map test or in a game script? Are the objects huge or small? What object code are you using? CreateDynamicObject or CreateObject? If it is not Createobject and you have a streamer included in your script,also if you have 1000 objects or more on your script it is normal for you do have that problem.
__________________
The three stages of truth:

- Ridicule.
- Violent opposition.
- Acceptance.


Quote:
The greatest hypnotist on the planet Earth is an oblong box in the corner of the room. It is constantly telling us what to believe is real. If you can persuade people that what they see with their eyes is what there is to see you've got them. you know because they'll laugh in your face of an explanation that portrays the biggest picture of what's happening... and they have.
Tamer is offline   Reply With Quote
Old 24/03/2013, 12:42 PM   #7
Mrki_Drakula
Huge Clucker
 
Mrki_Drakula's Avatar
 
Join Date: Jul 2011
Posts: 351
Reputation: 35
Default Re: How to use SA-MP map editor?

I'm constantly getting this error:
Please install proper drivers for your graphic card. ****** will help you in achieving this task.

But, Device Manager says my graphic drivers are up to date.

Also, after i press OK when that message appears, it says:
Access violation at address 6611955B. Read of address 6611955B.

Any help or solution?

Thanks.

- EDIT -
Fixed. The drivers were problems anyway.
__________________

Last edited by Mrki_Drakula; 24/03/2013 at 11:47 PM.
Mrki_Drakula is offline   Reply With Quote
Old 12/04/2013, 02:17 PM   #8
Ibrahim.E
Huge Clucker
 
Ibrahim.E's Avatar
 
Join Date: Mar 2013
Location: I dun know.
Posts: 486
Reputation: 50
Default Re: How to use SA-MP map editor?

Nice ! , +REP'ed
__________________
Ibrahim.E is offline   Reply With Quote
Old 12/04/2013, 02:23 PM   #9
DiGiTaL_AnGeL
High-roller
 
DiGiTaL_AnGeL's Avatar
 
Join Date: Aug 2012
Location: Romānia
Posts: 1,925
Reputation: 104
Default Re: How to use SA-MP map editor?

Finally, someone who did this. Even if it's not complete, goow work.
__________________

DiGiTaL_AnGeL is offline   Reply With Quote
Old 12/04/2013, 02:28 PM   #10
absolute
Big Clucker
 
absolute's Avatar
 
Join Date: Feb 2013
Location: Iran
Posts: 155
Reputation: -5
Default Re: How to use SA-MP map editor?

nice tut bro .
but i think MTA is a lil bit faster for mapping . i've tried samp map editor once or twice but the controls were a lil hard
absolute is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Map Editor please help Korisnik Scripting Help 0 10/06/2012 08:42 AM
Editor Help please :3 NeymarJr Scripting Help 15 10/06/2012 04:53 AM
Map Editor AarabMoney Scripting Help 2 09/06/2012 02:04 AM


All times are GMT. The time now is 02:36 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.