Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Work in Progress / Map Editor.NET

Author
Message
Silvester
18
Years of Service
User Offline
Joined: 7th Dec 2005
Location: Netherlands
Posted: 29th Nov 2009 09:57 Edited at: 30th Nov 2009 20:19


Well, since the other version which was made in Dark Basic Pro didn't get much attention, and neither does DarkGDK.NET(And I sort of need this for a project myself). I figured I'd write an other map editor for the DarkGDK.NET Platform, I suppose you could use it for DBP and DarkGDK as well, but I'm not going to write any libraries for those, mainly since I lack the knowledge to do so in C++, and DBP already has my other Map Editor.

Anyways, at this very moment the editor does pretty much EVERYTHING it should be able to do, which are:

Creating new Maps.
Saving Maps.
Loading Maps.
Basic Undo option.
Multiple Layer Support.
Dynamic map sizes
Scrolling over the map.
Basic Settings.ini
Actually placing tiles.
Placing attributes


It's pretty much what you would expect from a map editor really. But oh well, I've had a good time trying to get it to work and I'm sure some people will get to using it some day. Now here's a screenshot for the sake of having one, it's nothing fancy but it's a requirement.


As you can see it has a basic interface, and I'd like to mention that this is the interface you get when you put ScreenMode = 0 in the settings file, changing this to 1 will make it appear larger with a larger area to edit your map in.

Now for the known bugs:
[b]ScreenMode = 0 creates a phantom screen, and sometimes makes it turn up blank.(DarkGDK.NET issue, can't really fix this.)
Moving the mouse beyond x=0 and y=0 onto the UI will make the mouse mysteriously appear on the other side of the screen.

And now time for the downloads! I've prepared two downloads for you, one in a setup file and one with all the files in a *.zip file. Enjoy!

Download Setup(~584KB) : >>>Download<<<
Download ZIP(~305KB) : >>>Download<<<


EDP Map Editor[2D]
Hayer
19
Years of Service
User Offline
Joined: 4th Nov 2005
Location: Norway
Posted: 29th Nov 2009 19:37
Nice, but much more useful if you'd write a dll to load the maps to.

Keep it simple.
Questions? Mail me
Silvester
18
Years of Service
User Offline
Joined: 7th Dec 2005
Location: Netherlands
Posted: 29th Nov 2009 19:41
Quote: "Nice, but much more useful if you'd write a dll to load the maps to."

Hence the fact it's in W.I.P. I'm not really done with it yet.


EDP Map Editor[2D]
Caleb1994
16
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 30th Nov 2009 01:21
Good Job! Loving it!

New Site! Check it out \/
Silvester
18
Years of Service
User Offline
Joined: 7th Dec 2005
Location: Netherlands
Posted: 30th Nov 2009 07:20 Edited at: 30th Nov 2009 16:02
Quote: "Good Job! Loving it!"

Thanks!

And also, I've just started work on the *.dll file that will be used to load the maps, right now it... well, loads them! There's no option to actually render any of them yet however. But it'll come.

Right now it can be used like this...


EDIT:Righto, I think I'm pretty much done with the *.dll... Here's what I have so far:

Subs:
Public Sub LoadTileset(ByVal Filename As String)
Public Sub SetRenderPort(ByVal ScreenX As Long, ByVal ScreenY As Long, ByVal MaxTilesX As Long, ByVal MaxTilesY As Long)
Public Sub LoadMap(ByVal Filename As String)
Public Sub ClearMap()
Public Sub RenderLayer(ByVal LayerID As Integer)


Functions:
Public Function GetCurTileX(ByVal PositionX As Integer) As Integer
Public Function GetCurTileY(ByVal PositionY As Integer) As Integer
Public Function GetTileAttribute(ByVal TileX As Long, ByVal TileY As Long) As Integer


Constants:
Public Const ATT_NONE = 0
Public Const ATT_BLOCK = 1
Public Const ATT_HEAL = 2
Public Const ATT_KILL = 3


Public Variables:
Public MapX As Long
Public MapY As Long
Public MaxLayers As Long
Public OffsetX As Long
Public OffsetY As Long


EDIT2:
A new version has been uploaded!
Changelog:


[b]NOTE! The update will try to overwrite Map Editor.exe while it's still active! This is an issue with the program I've forgotten to fix! Please shut down Map Editor.exe in your process list when it prompts you about this![b]


EDP Map Editor[2D]
Silvester
18
Years of Service
User Offline
Joined: 7th Dec 2005
Location: Netherlands
Posted: 8th Dec 2009 16:29 Edited at: 8th Dec 2009 16:30
Righto, I've made a little progress on fine-tuning the map loader and its functions, as well as making a basic idea on how to set up attribute triggering... The attached example is a simple map which uses blocked tiles and a BASIC collision system based on this, sure it's not perfect and needs some fine tuning but it's a start! No real new features yet aside from this demo however.

Note that the NPC character will randomly move on its own!


EDP Map Editor[2D]

Attachments

Login to view attachments

Login to post a reply

Server time is: 2024-11-24 11:43:09
Your offset time is: 2024-11-24 11:43:09