PlaneShift

Development => PlaneShift Mods => Topic started by: Tontow on October 28, 2008, 06:08:42 am

Title: Cartography is now working!! - Tontow's MapMaker Tool 1.0
Post by: Tontow on October 28, 2008, 06:08:42 am

Forum Mods:
I have been given a green light by the GM Team Leader Kerol to post this program ALONG with a sample map of the HY plaza to show what the program can do so far.
And please don't shove this in some unread corner of the forums.  I would have put this in PS Mods, but that is under artwork and I’m not sure it fits.


Sorry, Windows only. – (Unless you run an OS that supports Microsoft Visual Basic 6.0)
If the program wont run, goggle the visual basic 6.0 runtime library from Microsoft and install.

If someone wants to make an honest effort to rewrite this in some form of C so that it is cross platform, then I will make the source code available.  Program is written in Microsoft Visual Basic 6.0 (only programming language I know well enough so far to do this in).


http://www.geocities.com/tontowmerlin/MapMaker/MapMaker.html

Edit: unzip the tool program into the same folder as your logs.


1.   Start up the program
2.   Input the name of your charater’s SYSTEM log
3.   For ease of use.  Make a /pos  shortcut.
4.   Hit your pos shortcut once.
5.   Alt tab to the MapMaker Tool and delete that that line in the bottom right textbox, because its garbage (Will fix soon™).
6.   Start walking around while hitting your pos shortcut.  The program will look in your system log for new lines that have the resulting /pos command data and phrase it accordingly.
7.   If your done walking around and hitting pos, then it is time to adjust your points. (If you haven’t guessed by now we are working with a 2d X,Y graph.)
8.   IT IS A GOOD IDEA TO MAKE A COPY OF THE TEXT IN THE LOWER RIGHT TEXTBOX AT THIS POINT IN TIME!!!!!  Makes it easier to come back and add more to your map or if some data is lost for some reason.
9.   Under the ‘ajust all points’ button (yes I know, spelling….) you will see 2 text boxes; one labeled X and the other Y.  Fill these with positive numbers and then press the ‘ajust all points’ button.   Your objective in doing this is to get all positive numbers since when the game draws the map the point 0,0 is in the upper left and lines with negative points either run off the map or are deleted by the game >:|
10.   Scale is best used at this point and is used for resizing.  Values of 1 = 100%   2 = 200%   0.5 = 50% etc.
11.    Rotate is used to rotate your map (duh).  Can be used before or after step 9, but you may need to repeat step 9 after using rotate.
12.   Go buy a blank map.  (Time for the cream filling)
13.   Edit your map.  (USE SHORTCUTS, GAME WILL CRASH IF YOU CLICK MAP ICONS!!!!!!)
14.   Make your map as big as possible.
15.   Name your map.
16.   Save your map.
17.   Go to your “Application Data\PlaneShift\sketches” folder and Open your map .xml file with notepad.
18.   You should be looking at something like (with different numbers maby) <pages><page l="38" t="94" w="933" h="590"></page></pages>
19.   On the MapMaker Tool, copy (ctrl-c = copy or ctrl-x = cut) the text in the lower right textbox.  This is the line point data list the game uses to graph/draw the map lines.
20.   Between <pages><page l="38" t="94" w="933" h="590">  AND  </page></pages> past the text (ctrl-v = past) you just copied from the tool.  THERE SOULD BE NO SPACES BETWEEN THE >< AND NO RETURNS. It should all be on one line.
21.   Save the .xml map
22.   Load your map and enjoy!!!


And, Yes, I do need to add a flip function so that the maps come out correctly. – the example maps are currently mirror images of what the final product ‘should’ be.
Title: Re: Cartography is now working!! - Tontow's MapMaker Tool 1.0
Post by: Tuxide on October 28, 2008, 07:00:06 am
Might be useful to write a tutorial for acraig's engine documentation thing (http://doc.hydlaa.com) on how to integrate some functionality like this into the engine, but then again this is in VB so I don't know.
Title: Re: Cartography is now working!! - Tontow's MapMaker Tool 1.0
Post by: neko kyouran on October 28, 2008, 02:28:37 pm
I think the mods section is quite appropriate for things like this. :)
Title: Re: Cartography is now working!! - Tontow's MapMaker Tool 1.0
Post by: Manar on October 28, 2008, 04:27:45 pm
I haven't tried it yet, but it looks nice!
I collected a lot data for my own maps the same way, if not quite as automated as this. :)
Title: Re: Cartography is now working!! - Tontow's MapMaker Tool 1.0
Post by: Tontow on October 29, 2008, 12:48:45 am
Vershion 2.0 is here!  \\o//

Adds:
Flip buttons
Preview Window (I got tired of going back and forth, so enjoy.  Dose not show exactly how maps will look like in game scail wise, but is close enough for me.)
Title: Re: Cartography is now working!! - Tontow's MapMaker Tool 1.0
Post by: Tontow on February 06, 2010, 12:50:54 pm
Sadly, It seems I'm in need of a place to host this file. :'(

Dose anyone Have an suggestions?  :detective:
Title: Re: Cartography is now working!! - Tontow's MapMaker Tool 1.0
Post by: ThomPhoenix on February 06, 2010, 12:59:54 pm
I can host it, PM me if you think that's okay.
Title: Re: Cartography is now working!! - Tontow's MapMaker Tool 1.0
Post by: Rigwyn on February 06, 2010, 03:11:00 pm

If you set up a free google sites account you can host all kinds of stuff there ... Web pages, files, etc..
Title: Re: Cartography is now working!! - Tontow's MapMaker Tool 1.0
Post by: MishkaL1138 on September 11, 2010, 12:37:10 pm
Why don't you try to use mediafire? It's just a suggestion…