SA-MP Forums

SA-MP Forums (https://forum.sa-mp.com/index.php)
-   Tools and Files (https://forum.sa-mp.com/forumdisplay.php?f=82)
-   -   [Tool/Web/Other] SAMP Zone Editor (https://forum.sa-mp.com/showthread.php?t=467190)

Grimrandomer 01/10/2013 09:03 PM

SAMP Zone Editor
 
While working with Incognito's streamer (http://forum.sa-mp.com/showthread.php?t=102865) I wanted an easy way to make "Zones" on the map with the CreateDynamicPolygon and made a little tool to make it simple.

Latest Version: 1.0.0.6 ( 30/01/2018 )

https://i.gyazo.com/807e0b63803fa72a...86515e9f18.jpg

https://i.gyazo.com/7e9889ccd3291de4...faa288875c.jpg

How To:
You can create a zone by clicking the top "Add" button, the zones you have created will be in the top list, to select a zone, click it in the list.
When you have a selected zone, you can remove it with the top "Remove" button.

You can change the position of a zone by selecting it and using the Up and Down arrows

When you have a zone selected, you can double click on the map to add a point, or click the lower "Add" button to add where the center of the red cross it.

A path wont form until their is 3 points in the zone.

All points in the zone will be in the bottom list, double click one to center the map on it, or select and then click the lower remove button to remove it.

As the zone is a closed path, it will be created in order of the points in the list, if you want to add a new point in the middle of the list, select a point, and when you add a new one, it will be added after the selected point.

To move around the map, simply click and drag, or enter co-ordinates in the boxes at the top right for X and Y respectively

There is also a simple export button under File -> Export that can export either lists of points, or a simple filter script.

https://i.gyazo.com/c0ad6d563e78c5a6...358dcec933.jpg

(Hint, the filter-script wont compile if you have any non alphanumeric zone names, or zone names over 64 characters long)
(Hint, the filter-script requires the streamer mentioned at the top of the post)
(Hint, the filter-script is untested with dynamic circles)

Tip:
As the program now draws the map in "tiles", you should see improved performance, also, to avoid long start up times, tiles are generated as needed, so when you zoom in/out in parts of the map you have not already generated there may be a slight pause. The total tiles generated can be found under the FPS in the top left corner.

As this is not fully tested, I'm unsure how robust it is against crashing, so i advise saving regularly to avoid file losses.

Change-log:

Version 1.0.0.6
Code:

Fixed bug in Dynamic Rectangles
Version 1.0.0.5
Code:

Now supports Dynamic Rectangles
Version 1.0.0.4
Code:

Now has simple zoom in/out
Version 1.0.0.3
Code:

Now works with Dynamic Circle's
Download:

Version 1.0.0.6

Version 1.0.0.5
Version 1.0.0.4
Version 1.0.0.3
Version 1.0.0.2

Source code / Version History / Dowloads can be found here:
https://bitbucket.org/Grimrandomer/samp-zone-editor


Any comments or questions please ask :D

m99t 01/10/2013 09:08 PM

Re: SAMP Zone Editor
 
Very nice, useful tool!

ikey07 01/10/2013 09:10 PM

Re: SAMP Zone Editor
 
I smell it useful.

DaRealShazz 01/10/2013 09:27 PM

Re: SAMP Zone Editor
 
Definitely useful for making zones. Good work!

Team_PRO 01/10/2013 11:35 PM

Re: SAMP Zone Editor
 
nice will try

RafaelZam 02/10/2013 01:47 AM

Respuesta: SAMP Zone Editor
 
really?
this si amazing ! nice one :D !
well done guy +rep

xganyx 02/10/2013 02:37 AM

Re: SAMP Zone Editor
 
wtf?
Awesome! nice one :D!!
Rep+

WLSF 02/10/2013 02:54 AM

Re: SAMP Zone Editor
 
Very interesting, +rep

AnGeL_KRAMER 02/10/2013 05:16 AM

Re: SAMP Zone Editor
 
NICE!

OTACON 02/10/2013 05:39 AM

Respuesta: SAMP Zone Editor
 

exe file and not the source code...:mad:
source code?...

Grimrandomer 02/10/2013 09:47 AM

Re: SAMP Zone Editor
 
Will post source code when I get home today.

[Edit]
Source code added, see first post.

Ivory 04/10/2013 07:28 PM

Re : SAMP Zone Editor
 
Waooh !! Nice Job :)

+1

Djole1337 04/10/2013 07:51 PM

Re: SAMP Zone Editor
 
Hello, can you upload it elsewhere, I'm getting "Failed - Network error" with solidfiles, source code looks fine, I'm lazy to compile though.

Wizzy951 04/10/2013 08:25 PM

Re: SAMP Zone Editor
 
I find it useful!

Grimrandomer 05/10/2013 11:20 AM

Re: SAMP Zone Editor
 
Quote:

Originally Posted by Djole1337 (Post 2723930)
Hello, can you upload it elsewhere, I'm getting "Failed - Network error" with solidfiles, source code looks fine, I'm lazy to compile though.

I have put a drop box link in first post :D

Lordzy 05/10/2013 11:26 AM

Re: SAMP Zone Editor
 
Whoa! It's been complicated for me to create zones like these and have spent a lot of times in determining the values. This release is useful and great! Keep up.

Baboon 05/10/2013 11:30 AM

Re: SAMP Zone Editor
 
That looks extremely usefull, but it would be even more usefull if you could preview custom objects on that map.

Grimrandomer 05/10/2013 11:45 AM

Re: SAMP Zone Editor
 
Thanks for all the positive messages guys!


Quote:

Originally Posted by Strawhats (Post 2724713)
That looks extremely usefull, but it would be even more usefull if you could preview custom objects on that map.

Like a custom map/map files?

Baboon 05/10/2013 06:02 PM

Re: SAMP Zone Editor
 
Quote:

Originally Posted by Grimrandomer (Post 2724730)
Thanks for all the positive messages guys!




Like a custom map/map files?

exactly.

Juninho_Oakley 05/10/2013 07:48 PM

Re: SAMP Zone Editor
 
Very Nice +REP

Menor 05/10/2013 07:59 PM

Re: SAMP Zone Editor
 
Good job

PT 06/10/2013 12:57 AM

Re: SAMP Zone Editor
 
that is very good

Grimrandomer 06/10/2013 01:43 AM

Re: SAMP Zone Editor
 
Quote:

Originally Posted by ****** (Post 2725609)
Can this make anything but polygon areas? Cubes and circles are much easier to process for the streamer plugin if they can be made. Also, why are the areas restricted to +/-3000? What about custom islands outside that area?

Yea, would be good to add circles and squares, I was keeping it within -3000/3000 because thats the range of the map file, it couldent hurt to increase the boundries abit tho

RenovanZ 06/10/2013 02:03 AM

Re: SAMP Zone Editor
 
WOW! Very awesome work!
Need this, gonna test it :D

Grimrandomer 07/10/2013 12:56 AM

Re: SAMP Zone Editor
 
Quote:

Originally Posted by ****** (Post 2725609)
Can this make anything but polygon areas? Cubes and circles are much easier to process for the streamer plugin if they can be made. Also, why are the areas restricted to +/-3000? What about custom islands outside that area?

Completely re-wrote allot of the code to support different dynamic types, so now has the polygon area's and circles. Ill add rectangles in a future update, and unlock the map boundaries in a future update too.

raider19rus 07/10/2013 04:22 AM

Re: SAMP Zone Editor
 
Useful!

Niko_boy 07/10/2013 05:39 AM

Re: SAMP Zone Editor
 
extremely usefull tool!

Jankingston 07/10/2013 06:42 AM

Re: SAMP Zone Editor
 
nice , +rep

cyber_punk 09/10/2013 08:16 PM

Re: SAMP Zone Editor
 
Really nice app thanks, would be nice to support all the streamer areas that can be created, the ability to set colors to each created area, and also to zoom in and out of the map since I don't always need to be this close to the map especially if I am trying to cover a very large area. Still really helpful, keep it up!

[Edit]Also to make editing an already created zone to highlight the point that we select and some way to allow us to move that point.

Juniiro3 12/10/2013 04:14 PM

Re: SAMP Zone Editor
 
Very good ;)

iZN 12/10/2013 04:19 PM

Re: SAMP Zone Editor
 
That is amazing, it'd get handy, thanks alot!

Grimrandomer 14/10/2013 03:27 PM

Re: SAMP Zone Editor
 
Thanks guys.

Update (1.0.0.4):
Now has simple zoom in/out

shittt 14/10/2013 03:30 PM

Re: SAMP Zone Editor
 
Good Job.

kadaradam 14/10/2013 03:48 PM

Re: SAMP Zone Editor
 
wow, that's awesome.great work

Grimrandomer 26/10/2013 12:33 AM

Re: SAMP Zone Editor
 
Just realized I had not pushed the 1.0.0.4 source code to my bit-bucket, but its uploaded now.

Akira297 26/10/2013 12:52 AM

Re: SAMP Zone Editor
 
So, this could be another way of RemoveBuildingForPlayer or... Is there another story? I didn't quite understand the point of this.

Tropicali 27/10/2013 03:54 PM

Re: SAMP Zone Editor
 
This is actually really useful to the right person. Well done!

Grimrandomer 29/10/2013 11:21 PM

Re: SAMP Zone Editor
 
Quote:

Originally Posted by Akira297 (Post 2755504)
So, this could be another way of RemoveBuildingForPlayer or... Is there another story? I didn't quite understand the point of this.

Its not a map editor, Its kind of like ****** maps, It allows you to free-hand draw "Area's", you can then export the code, and use it as you wish, for example, if you have a rule "If you leave LS, you get killed", you would use this,
draw a line around ls, and then with the code program it to kill them when they leave the zone.

aDo7 29/10/2013 11:37 PM

Re: SAMP Zone Editor
 
Smell useful, +Rep

SchurmanCQC 29/10/2013 11:43 PM

Re: SAMP Zone Editor
 
Your code isn't pretty - but as long as you're not presenting it to anyone, it doesn't have to look good to work.


All times are GMT. The time now is 02:27 AM.

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