SA-MP Forums Archive
[FilterScript] [FS] Ingame Object Editor [Version 2.0] by Matthias (Update) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] [FS] Ingame Object Editor [Version 2.0] by Matthias (Update) (/showthread.php?tid=79220)

Pages: 1 2 3


[FS] Ingame Object Editor [Version 2.0] by Matthias (Update) - GTA_Rules - 26.05.2009



::: 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:
More commands might be added if people think this is usefull and like 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
::: Bugs :::

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.


Greetings,
Matthias




Re: [FS] Ingame Object Editor [Version 1.0] by Matthias - Correlli - 26.05.2009

Good work, i'm sure going to use this.


Re: [FS] Ingame Object Editor [Version 1.0] by Matthias - Google63 - 26.05.2009

afaik sscanf pawn version is by y_less, but in lot of other high languages there are also sscanf such as C, c++ etc.
Nice work btw. but there are in moment a lot of object editors. but it is good to make one so you know


Re: [FS] Ingame Object Editor [Version 1.0] by Matthias - javi1995iv - 26.05.2009

Very good work


Re: [FS] Ingame Object Editor [Version 1.0] by Matthias - Shellegg - 26.05.2009

Fuck it * sorry about the language*

I'll try it, other objects editors are very bugged and very confused.
Thank you and keep the best work


Re: [FS] Ingame Object Editor [Version 1.0] by Matthias - Google63 - 26.05.2009

LoadObjects ? co it can continue to work on objects..
and SaveObjects too.. you will then need enum too...

Have fun..


Re: [FS] Ingame Object Editor [Version 1.0] by Matthias - Shellegg - 26.05.2009

Bit bugged too, the ID 1661 doesn't show and the ID 14532 isn't valid --
And i saw them on MTA.
Btw, you cannot put cords like 0.3500 you can only but entire numbers like 1 2 3 4 5 etc.


Re: [FS] Ingame Object Editor [Version 1.0] by Matthias - GTA_Rules - 27.05.2009

Thanks guys


Re: [FS] Ingame Object Editor [Version 1.0] by Matthias - Avjj55 - 27.05.2009

Its unique aswell, not by pressing a key you must type it in to get it perfect, I will use this instead of my MD2 to see how it goes. Good job bro!


Re: [FS] Ingame Object Editor [Version 1.0] by Matthias - DarkClone - 27.05.2009

This is awesome, thanks i hope it will have a loadmap in the future that would be awesome


Re: [FS] Ingame Object Editor [Version 1.0] by Matthias - GTA_Rules - 27.05.2009

Thank you guys, I really appreciate your comments!


Re: [FS] Ingame Object Editor [Version 1.0] by Matthias - Vichuzz - 27.05.2009

yo Matt..lvp pwntzor... :P

nice work..I'm gonna give it a try!

Cheerz!


Re: [FS] Ingame Object Editor [Version 1.0] by Matthias - GTA_Rules - 27.05.2009

Yo Vichuzz

Thanks man, enjoy it!


Re: [FS] Ingame Object Editor [Version 1.0] by Matthias - trm - 28.05.2009

i like it ferry mutch only 1 thing is strange how can i rotate the objects


Re: [FS] Ingame Object Editor [Version 1.0] by Matthias - *ToM* - 28.05.2009

Good job Matthias, but it would be better if you could move obcjets manually with arrow keys, not typing /moveforwar 5 and shit Anyway it's nice


Re: [FS] Ingame Object Editor [Version 1.0] by Matthias - NigNog1 - 28.05.2009

I can see a few bugs from a quick glance at the code. For example, if player ID 0 is editing an object, and player ID 1 starts editing an object, both players objects will parse because your storing the object data for only one object, globally.

Also, as far as I can remember there are object IDs above 10000. In the addobject command, it would be better to use IsValidObject.


Re: [FS] Ingame Object Editor [Version 1.0] by Matthias - SiJ - 29.05.2009

I think this will be great FS.. Thanks for creating it
P.S. Object movement with "walk" keys would be great. And also, I haven't seen object rotation in the video.. Is that impossible at the moment?


Re: [FS] Ingame Object Editor [Version 1.0] by Matthias - Castle - 29.05.2009

Would be cool if you would make it possible to move objects by buttons instead commands(will make it easier to map)
and also as Stevelo said:
Quote:
Originally Posted by Stevelo
I can see a few bugs from a quick glance at the code. For example, if player ID 0 is editing an object, and player ID 1 starts editing an object, both players objects will parse because your storing the object data for only one object, globally.

Also, as far as I can remember there are object IDs above 10000. In the addobject command, it would be better to use IsValidObject.
you should make it to


Re: [FS] Ingame Object Editor [Version 1.0] by Matthias - GTA_Rules - 30.05.2009

Quote:
Originally Posted by Stevelo
I can see a few bugs from a quick glance at the code. For example, if player ID 0 is editing an object, and player ID 1 starts editing an object, both players objects will parse because your storing the object data for only one object, globally.

Also, as far as I can remember there are object IDs above 10000. In the addobject command, it would be better to use IsValidObject.
It's not ment to be on a server with multiple players using it. And I'll make another version later, thanks for the replies.


Re: [FS] Ingame Object Editor [Version 1.0] by Matthias - Joe_Rock - 30.05.2009

VN, Matthias. Looks useful, I'll be sure to try it.