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 10: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 10:08 PM

Re: SAMP Zone Editor
 
Very nice, useful tool!

ikey07 01/10/2013 10:10 PM

Re: SAMP Zone Editor
 
I smell it useful.

DaRealShazz 01/10/2013 10:27 PM

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

Team_PRO 02/10/2013 12:35 AM

Re: SAMP Zone Editor
 
nice will try

RafaelZam 02/10/2013 02:47 AM

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

xganyx 02/10/2013 03:37 AM

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

WLSF 02/10/2013 03:54 AM

Re: SAMP Zone Editor
 
Very interesting, +rep

AnGeL_KRAMER 02/10/2013 06:16 AM

Re: SAMP Zone Editor
 
NICE!

OTACON 02/10/2013 06:39 AM

Respuesta: SAMP Zone Editor
 

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


All times are GMT. The time now is 05:08 AM.

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