SAS Map Editor 2

BlitzMax Forums/BlitzMax Programming/SAS Map Editor 2

Scott Shaver(Posted 2006) [#1]
http://www.scottshaver2000.com/blitz/sasmapeditor2/sasmapeditor2.zip
===================================================================

Version: 1.2.0
Release Date: 11/13/2006
Changes:
Added support for animating tiles in the tilemap module. The animation
support is not yet in the map editor, it will be soon.

Fixed the scroll bars in the map window and tile selector.

Removed the tile selector window and status bar. Put this functionality
into a tab control in the main window. Much more intuitive.

Added a properties file to keep track of the window size and file
locations when you close the rerun the program. Window position
was very annoying before.



Windows exes are included, so is the source code so you can compile it on Mac and Linux, although the GUI might be a bit off on those platforms.

The matching tilemap module is also included, with source.


Mikele(Posted 2006) [#2]
Thanks!
Is it possible to use tiles bigger than grid (cell in your editor) (something like prefabs 1x2, 2x2, 1x5 cellsize etc.)? It could be very usefull IMHO.


CS_TBL(Posted 2006) [#3]
stamps.. brushes.. macros .. pick a name! No mapmaker could/should be without it!


Scott Shaver(Posted 2006) [#4]
For the time being, I don't have stamps. I may add them later but right now my priority is getting the animated tiles in place.


caff_(Posted 2006) [#5]
Pretty nice. I look forward to seeing how this develops.


Scott Shaver(Posted 2006) [#6]
I hope to have the animation stuff in today. I've fixed a number of redraw issues as well.


Scott Shaver(Posted 2006) [#7]
(see link in first post for download)

Version: 1.2.1
Release Date: 11/15/2006
Changes:
Added support for animating tiles in the editor.
Added help documents.




bradford6(Posted 2006) [#8]
very cool indeed. nice work.


Scott Shaver(Posted 2006) [#9]
Yeah, I'm not completely happy with the presentation of the anims tab but that will get worked out. Thanks.


Scott Shaver(Posted 2006) [#10]
(see link in first post for download)

Version: 1.2.2
Release Date: 11/16/2006
Changes:
Fixed the info tab to display the name of an anim if the mouse is over an anim cell in the map.

Made sure the keyboard controls are working includes shifting cell positions and cell alpha values.

Updated help files for the keyboard stuff, samples and file format.


Scott Shaver(Posted 2006) [#11]
(see link in first post for download)

Version: 1.2.3
Release Date: 11/17/2006
Changes:
Fixed a viewport issue with the canvas objects, to keep them from being
corrupted when the window is resized.

Fixed issue with the scroll bars, first in the tile tab and then in the
edit area, proportions were incorrect.

Added version 2.1 of the map format to handle a background image.




Tri|Ga|De(Posted 2006) [#12]
Ity would be nice if we could move around the map with the cursor keys.

And to pick a tile in the map would be nice.

Fill area maybe??

Change tile with keyboard.


Scott Shaver(Posted 2006) [#13]
Good ideas, I'll add those. I've also added the ability to name the layers and the non-animated tiles are always on screen for you now. I should have this new version up this weekend. I'm going to add stamps as well this weekend.




Tri|Ga|De(Posted 2006) [#14]
And if it only scroll vertical in the tiles that would be nice.


Scott Shaver(Posted 2006) [#15]
I had to make the tiles scroll hoirz and vert because people need to see the tiles exactly as the layed them out in the image. I just added a splitter between the map and the right hand controls which works out nice as well.


Tri|Ga|De(Posted 2006) [#16]
It is possible to load a new tileset in the program to replace the old one?


Scott Shaver(Posted 2006) [#17]
yep, you just go into the map properties and select a new image. however there may be a bug or two in there if the new image has fewer tiles than the orignal.


Scott Shaver(Posted 2006) [#18]
(see link in first post for download)
===================================================================

Version: 1.2.4
Release Date: 11/19/2006
Changes:
Added a display of the current layer on the info tab
Moved the Tiles tab so it is always on screen
Moved the Paint With Anim Tiles check box to the Anims tab
Added a splitter control to the editor
Added ability to scroll the map with the keyboard
Added ability to create a set of stamps and draw with them
Added ability to select an area and clear or fill it with current tile


Scott Shaver(Posted 2006) [#19]
oops found a bug get it again


Scott Shaver(Posted 2006) [#20]
Crap, found another bug in the stamps thing, get it again. Sorry.


Scott Shaver(Posted 2006) [#21]
===================================================================

Version: 1.2.5
Release Date: 11/20/2006
Changes:
Added ability to pick up the tile that the mouse is over
Fixed a bug in the stamps drawing (IT WORKS NOW I SWEAR).
Added highlight to show where stamp will be drawn
Added BBDOC comments to the tilemap module, so do a docmods on the new code


Scott Shaver(Posted 2006) [#22]
A user found that using a BMP image crashes the program. I forgot to include the bmploader module in the tilemap and editor imports. I'll fix it in the next release in the mean time you can do the same if needed.


North(Posted 2006) [#23]
Hi Scott,

firstly let me thank you for sharing your work with us.

How do I use the stamp-feature?


Scott Shaver(Posted 2006) [#24]
First you need a map, either load one or create a new one. Then check the edit stamps check box on the info tab. If you are making a new map you may not see anything happen but it just switched to the stamp editing area on the left. Draw the stamps you want to use. Highlight a stamp to draw with by holding the Shift key down and then using the first mouse button drag out an outline box around the stamp. Use Escape key to clear the selection.

Uncheck the edit stamps check box to go back to editing the map. When you want to draw with a stamp check the Draw With Current STamp check box on the info tab.

Have Fun.


Scott Shaver(Posted 2006) [#25]
===================================================================

Version: 1.2.6
Release Date: 11/24/2006
Changes:
Added the PNG and BMP loader modules.
Black background when editing the map, dark blue when editing stamps.


Scott Shaver(Posted 2006) [#26]
===================================================================

Version: 1.2.7
Release Date: 11/24/2006
Changes:
Fixed a bug with switching from anim tiles to non-anim tiles
Wasn't initializing the anims to the start index on load


Scott Shaver(Posted 2006) [#27]
===================================================================

Version: 1.3
Release Date: 12/24/2006
Added version 2.3 of the map format to handle collision flags for the cells.
Fixed a crash that happened when you weren't on layer zero when switching to stamp editing mode.


Scott Shaver(Posted 2006) [#28]
Found a bug, fixed it sorry, get it again.


matthews_30(Posted 2006) [#29]
when i try to compile and run the first sample it displays the following error:

Compile Error: Can't find interface for module 'sas.tilemaps'
Build Error: failed to compile D:/MisDocs/Desarrollo de Videojuegos/BlitzMax/Modules/MaxGUI/sasmapeditor2/SAS Map Editor 2/samples/Sample1.bmx

****************


now when i try to run "SAS MAp Editor.bmx" it displays the following error :(

Compile Error: Can't find interface for module 'brl.maxgui'
Build Error: failed to compile D:/MisDocs/Desarrollo de Videojuegos/BlitzMax/Modules/MaxGUI/sasmapeditor2/SAS Map Editor 2/SAS Map Editor.bmx
*****************************

any help?

thanks,

matt.


tonyg(Posted 2006) [#30]
Do you have Maxgui and sas.tilemaps?


matthews_30(Posted 2006) [#31]
i dont have MaxGUI and nither sas.tilemaps O_O
i remember i downloaded the full zip of "SAS Map Editor 2" do you know if this zip file should contain them?

thanks,

matt.


Scott Shaver(Posted 2006) [#32]
the zip contains the sas.tilemaps module. for the maxgui module you have to buy it from brl. You don't need the maxgui module to write programs, just sas.tilemaps. I included a windows binary in the zip for the editor.


Scott Shaver(Posted 2006) [#33]
===================================================================

Version: 1.3.1
Release Date: 12/25/2006
Moved the "Draw with animation tile" check box to the info tab.
Updated the documentation to explain editing maps, stamps and collisions better.