Mapeditor

Whether you're a newbie or an experienced programmer, any questions, help, or just talk of any language will be welcomed here.

Moderator: Coders of Rage

Post Reply
User avatar
Martijn
Chaos Rift Newbie
Chaos Rift Newbie
Posts: 22
Joined: Thu Jun 04, 2009 4:47 pm
Programming Language of Choice: C++

Mapeditor

Post by Martijn »

Hello :).

I was wondering, how does a mapeditor work? can someone give me a short explanation of how they work?
This game im playing has private servers which they call "open tibia" servers.

And a guy made a mapeditor in C++ which is open source so I downloaded it but it kinda confused me :p.
But he had all kind of cool functions, i'm just simply interested in how the "mapping" itself works.

It's a 2d tile game, and the source for his mapeditor can be found here: http://remeresmapeditor.com/marklar.php
I know making a mapeditor is way too much for me, so im just interested :p.

Oh btw, the game uses an OTBM file format to open.
User avatar
programmerinprogress
Chaos Rift Devotee
Chaos Rift Devotee
Posts: 632
Joined: Wed Oct 29, 2008 7:31 am
Current Project: some crazy stuff, i'll tell soon :-)
Favorite Gaming Platforms: PC
Programming Language of Choice: C++!
Location: The UK
Contact:

Re: Mapeditor

Post by programmerinprogress »

Just to start, lusikkamage (aka moosader) has a good map editor, it's open-source aswell, so you can see what she did there, plus she's quite active on this forum, her website is here http://moosader.com/app-moose-tiles.html

As for making your own editor, just think about what you would do in the editor, a few actions that come to mind for me are

- clicking to place tiles
- selecting tiles
- outputting the map to a file
- reading in maps

have a bit of a brainstorming session, and think about what you would find in a good editor, write down what you think of, and then break that down into logical steps, then it should hopefully become clear :)

PS: I've made my own editor in the past, so i'm not completely clueless, if you'd like to see what I did with my editor/ game, heres the link to the video, I tried best to explain what the editor can do, and it might give you some pointers as to what is usually included in a (very basic I must stress) map editor.
http://www.youtube.com/watch?v=1xE9gM54mkI
(theres also a slightly more advanced editor I wrote a few months later, the video is on my channel)
---------------------------------------------------------------------------------------
I think I can program pretty well, it's my compiler that needs convincing!
---------------------------------------------------------------------------------------
And now a joke to lighten to mood :D

I wander what programming language anakin skywalker used to program C3-PO's AI back on tatooine? my guess is Jawa :P
User avatar
Moosader
Game Developer
Game Developer
Posts: 1081
Joined: Wed May 07, 2008 12:29 am
Current Project: Find out at: http://www.youtube.com/coderrach
Favorite Gaming Platforms: PC, NES, SNES, PS2, PS1, DS, PSP, X360, WII
Programming Language of Choice: C++
Location: Kansas City
Contact:

Re: Mapeditor

Post by Moosader »

I need to put the webpage tutorial I had back up on my site. It seems like this gets asked every other day.
I guess since I'm not doing anything on my vacation right now, I'll re-start it again.
User avatar
Moosader
Game Developer
Game Developer
Posts: 1081
Joined: Wed May 07, 2008 12:29 am
Current Project: Find out at: http://www.youtube.com/coderrach
Favorite Gaming Platforms: PC, NES, SNES, PS2, PS1, DS, PSP, X360, WII
Programming Language of Choice: C++
Location: Kansas City
Contact:

Re: Mapeditor

Post by Moosader »

User avatar
Martijn
Chaos Rift Newbie
Chaos Rift Newbie
Posts: 22
Joined: Thu Jun 04, 2009 4:47 pm
Programming Language of Choice: C++

Re: Mapeditor

Post by Martijn »

Thanks both :D.
Really helpful :).
Post Reply