26.05.2009, 18:36

::: Introduction :::
I was browsing thrue the forums looking for an ingame object editor, I've found a few but some of them were too bugged or too complicated. I needed something incredibly simple just with the basic commands, I found BreadFishes' but the download links were down. So I thought I could make one myself. So that's where this whole project started.
This is an incredibly simple, 500 lines, map editor. It took me about 3 - 4 days to create this so don't expect too much. I'll probably create another (improved) version if I see people think it's usefull.
::: Features :::
Well, this basically features everything a simple map editor needs. It saves everything into objects.txt in your scriptfiles folder (in the correct format) and has a few commands to edit the object with.
A small list of commands and their features:
- /addobject <objectid> : This commands simply adds an object. Note: Some object ID's might crash your server, check the wiki before randomly trying one.
- /saveobject <note> : This saves everything into objects.txt in your 'scriptfiles' folder in the correct format, all you need to do is add the line to your gamemode!
- /moveup <coord> : Moves the object up.
- /movedown <coord> : Moves the object down.
- /moveleft <coord> : Moves the object to the left.
- /moveright <coord> : Moves the object to the right.
- /moveforwards <coord> : Moves the object forwards.
- /movebackwards <coord> : Moves the object backwards.
- /stick <no params> : Sticks you to your object.
- /unstick <no params> : Unsticks you from your object.
- /ohelp <no params> : Shows a list of commands.
- /objects <no params> : A list with a few usefull objects.
- /objecttp <no params> : Teleports you to your object.
- /abort <no params> : Aborts the editing of an object.
- /stop <no params> : Aborts the editing of an object without removing it.
Note: I've deleted the rotate commands as they were bugged (a SA:MP bug I think?). You can do that manually.
::: Video :::
I've made a little video to show what it's like ingame, I know the editing and quality sucks, I've done this in 5 minutes.
SA:MP Ingame Object Editor by Matthias
::: Credits :::
I take all credits for this, you are not allowed to edit and republish it without my permission. You can use it on your server and edit it if you want though. Putting me in the credits would be greatly appreciated

General thanks to:
- DracoBlue (for dcmd)
- The creator of sscanf
- WeirdoSport for helping me out with a tiny bug
::: Downloads :::
Finally, we've come to the download part! Mirrors are accepted!
Version 1.0:
* Pastebin
* Megaupload
Version 2.0:
* Megaupload (Recommended)
* Pastebin
::: How to install? :::
Well, you simply download 'ObjectEditor.pwn' from one of the links provided above, then you open them in Pawno and compile them. Then place 'ObjectEditor.amx' into your 'filterscripts' folder.
Then open server.cfg and add 'ObjectEditor' to that line. Or just go ingame and do /rcon loadfs ObjectEditor.
Let's say you have the following filterscripts running: script1.amx, script2.amx, script3.amx then your server.cfg line will become:
Code:
filterscripts script1 script2 script3 ObjectEditor
None so far, please report them in here!
::: Last words :::
Well, thanks for reading all this and I hope you enjoy it! Please post any suggestions / questions or bugs in this topic!
Update!
Here is version 2.0! It doesn't contain a lot new features. Mostly they are small bugfixes.
- Fixed /addobject
- Fixed /movedown.
- Fixed /objects.
- Added a /stop command
- The note in /saveobject is now optional
Greetings,
Matthias