clintbellanger / flare

Free Libre Action Roleplaying Engine
http://clintbellanger.net/rpg/
GNU General Public License v3.0
166 stars 41 forks source link

Some questions on maps and Tiled #100

Closed stefanbeller closed 12 years ago

stefanbeller commented 13 years ago

Hello,

I thought about contributing, specially maps.

Best Regards Stefan

clintbellanger commented 13 years ago

As for long term goals, there may be something on that coming soon. I'm working with concept artist Justin Nichol on concept art and color design for the entire game world based on this map progression: http://clintbellanger.net/rpg/blog/20110706

That list shows 12 required tile sets. Maybe the two existing tile sets can be improved to fit the new look and feel, but they may have to be redone (actually, the two existing tile sets might be used for side quest dungeons/caves). I hope to take time soon to explain these long term goals.

stefanbeller commented 13 years ago

Thanks for that answer. So I will take a look at a tiled plugin, which suits ini style format :) I just wondered if there is something done for it yet.

clintbellanger commented 13 years ago

Jaderamiso started on a plugin a while back: http://www.mediafire.com/file/sffwkt06yjgfa0c/osare%20plugin.rar

Linked from http://opengameart.org/content/osare-v010-released

I didn't get to experiment with it too much; I didn't have time to figure out a Qt compile environment etc. I think it mostly handles the tile layers.

clintbellanger commented 13 years ago

If a Tiled plugin is something you'd like to help with, I can take the time to build a whole Flare map inside Tiled, along with the desired output .txt version.

clintbellanger commented 13 years ago

Here's a slightly out of date tutorial (one release behind) on map creation, on the old Google Code page https://code.google.com/p/flare-engine/wiki/MapEditing

stefanbeller commented 13 years ago

If a Tiled plugin is something you'd like to help with, I can take the time to build a whole Flare map inside Tiled, along with >the desired output .txt version.

Yeah some kind of spec would be helpful ;)

I started with this http://www.mediafire.com/file/sffwkt06yjgfa0c/osare%20plugin.rar And it handles the tilelayers quite nice as of now. (needed some time to get it working with the latest tiled - 0.7 :) So now I'd start to get the details working, like object support.

clintbellanger commented 13 years ago

Attempting to build a spec map.

I'm building an object with various properties for an event. In my map file objects I need several properties of the same name (e.g. on one event I need several "mapmod" properties). Currently when I try to add a property of the same name as an existing one, it assumes I'm trying to edit the existing one.

Is it a planned limitation to enforce property names on one object to be unique?

clintbellanger commented 13 years ago

Here's a current spec map that handles most cases.

http://clintbellanger.net/rpg/tiled/dungeon_spec.tmx The map fully built in Tiled http://clintbellanger.net/rpg/tiled/dungeon_spec.txt How the output should look (works in the current Flare dev code) http://clintbellanger.net/rpg/tiled/tiled_collision.png http://clintbellanger.net/rpg/tiled/tiled_dungeon.png

bjorn commented 13 years ago

You can't have multiple properties with the same name, since they are stored in a map. This is mainly because it is easier to work with than a list of key/value pairs. Maybe a multi-map is a possibility, but I still imagine it would get rather nasty to try to change one of several values behind a certain key, or change the key of only one of these values.

Are you sure it wouldn't be easier to change the way you store the information a bit?

stefanbeller commented 13 years ago

maybe the export plugin should do it like this: In tiled you have: setting_abc=option1, option2, option3; And in the exported map it goes like this: setting_abc=option1 setting_abc=option2 setting_abc=option3

clintbellanger commented 13 years ago

Hm let me think about this. Here are current examples where I use repeated properties on single events.

One possibility is that events with the same property name are listed together. Example:

mapmod=collision,1,1,0,collision,1,2,0,collision,1,3,0,object,1,1,50,object,1,2,51,object,1,2,50 loot=random,5,5,3,random,6,5,4,item,5,6,135

(edit)

Yeah it looks like have had the same idea. That could work. I'll update the spec map with examples of these. Also I'll get up-to-date info about which of these properties can be repeated and what field types they have.

bjorn commented 13 years ago

Hmm, "mapmod" sounds like a job for special layer, so you can visually create the caved-in section. But in general the issue remains.

Sometime soon I hope to replace the primitive property interface we have now with a more advanced property editor. I should keep this issue in mind to see if it provides a good solution to it, but I'm not sure.

stefanbeller commented 13 years ago

A first version is found here: https://github.com/stefanbeller/tiled/tree/osare (the osare branch of my tiled fork)

Clint, is a certain order required in the object attributes set? In case a special order is not needed please verify, if this export-plugin covers the needs.

What about the map attribute 'spawnpoint'? That would (only if required) appear in map properties, right?

As of now I only push out exactly these object properties as given in your example. Are there any kinds of objects which might have some more? (The event type just pushes out all properties it can find, since that's a lot anyway)

A diff to the specified text file is found here: http://dl.dropbox.com/u/6520164/tiled/osare.diff.txt

stefanbeller commented 12 years ago

Well I started again at the import plugin as well. So I propose a change of the format to also store the complete list of tilesets: https://github.com/stefanbeller/tiled/commit/a18ac68a23e3921efcf2cad57af9868543f2d9aa

This makes sure that opening the flare map format can be done, but doesn't affect the flare parser of maps

clintbellanger commented 12 years ago

stefan,

Let me gather some thoughts on this. For various reasons, the way I handle single tile sets in Flare are handled as multiple tile sets in Tiled.

I think that the Flare format can have a [tiled] section that is ignored by Flare, but Tiled can use to stash settings it needs (especially tileset info, currently).

I think that importing Flare files are a low priority, I don't mind working in tmx and only exporting Flare format when it's ready. I know some users will disagree, as they want it to be very easy to add/edit maps.

Clint

On Sat, Oct 29, 2011 at 7:33 AM, stefanbeller < reply@reply.github.com>wrote:

Well I started again at the import plugin as well. So I propose a change of the format to also store the complete list of tilesets: https://github.com/stefanbeller/tiled/commit/a18ac68a23e3921efcf2cad57af9868543f2d9aa

This makes sure that opening the flare map format can be done, but doesn't affect the flare parser of maps

Reply to this email directly or view it on GitHub: https://github.com/clintbellanger/flare/issues/100#issuecomment-2564690

clintbellanger commented 12 years ago

The export plug-in works great. It's in Tiled v0.8, I recommend people try it.

Tiled won't open the [map].txt files directly, and I'm ok with that. Map-makers should include their tmx files when distributing new maps.