On Thu, Aug 27, 2009 at 5:40 AM, devon <[email protected]> wrote:

>
> This is still very alpha, but I wanted to get a release out for pyweek
> for people to use if they're interested. Cocograph is a tile map
> editor for cocos2d that using kytten for the gui. Cocograph includes
> pencil, eraser, zoom, and move tools and can create new maps and
> tilesets without writing any xml. Ctrl clicking on a tile or cell will
> allow you to edit, add or delete the properties and these changes will
> be saved back to the orginal tileset when you okay them for tiles and
> will not be saved until you save the map for cells.
>
> download includes cocos 0.3, and kytten5, also a version with pyglet
> so you don't need to install anything else. map examples from cocos
> and threads of fate are included (and include your license,
> Richard :) )
> http://code.google.com/p/devdev-python/downloads/list
>
> screenshots and documentation here:
> http://code.google.com/p/devdev-python/wiki/Cocograph
>
> There's still a number of bugs and a few planned features that are not
> implemented yet.
>
> -Currently clicking outside of the map when you create a new one will
> mess up the event handling for on_drag (I think..) which affects the
> tools, but this doesn't happen when opening a map for some reason...
>
> -Saving a map will change all property types to unicode and change any
> requires filenames to absolute paths in the xml. I believe these are
> both issues with the tiles library and reported a bug about the
> property types.
>
> -I tried using the latest revision of cocos tonight but it gave me a
> batchnode error about too many arguments for set_child or something so
> I just included cocos 0.3
>
> Features planned for the next release:
> -flood fill
> -layers
> -drag selection clone tool to easily clone large tile patterns
> -possibly loading maps as brushes, but I think clone might be enough
> -possibly creating tilesets out of an imageatlas instead of a
> directory of images
>
> If anybody uses this and/or has feedback or suggestions please let me
> know! This is my first cocos, pyglet, and kytten project :)
>
> Devon
>
> p.s. Thanks to Richard and Lynx for the cocos tiles and kytten gui
> libraries that got me excited to spend way too many late nights
> working on this!
>
>


>From what is seen in the doc page is a neat tool.
But there are some problems, at least in windows.



If running with the included cocos, opened the first dungeon map from the
menu and got this:
D:\tmp\cocograph>c:\python26\python.exe run_cocograph.py
dialog_node <cocograph.tile_layers.ToolMenuDialog object at 0x0317BD50>
Traceback (most recent call last):
File "_ctypes/callbacks.c", line 295, in 'calling callback function'
File "D:\tmp\cocograph\pyglet\window\win32\__init__.py", line 849, in
_wnd_pro
c
result = event_handler(msg, wParam, lParam)
File "D:\tmp\cocograph\pyglet\window\win32\__init__.py", line 1032, in
_event_
lbuttonup
'on_mouse_release', mouse.LEFT, lParam)
File "D:\tmp\cocograph\pyglet\window\win32\__init__.py", line 1021, in
_event_
mousebutton
self.dispatch_event(ev, x, y, button, self._get_modifiers())
File "D:\tmp\cocograph\pyglet\window\__init__.py", line 1217, in
dispatch_even
t
EventDispatcher.dispatch_event(self, *args)
File "D:\tmp\cocograph\pyglet\event.py", line 340, in dispatch_event
if handler(*args):
File "D:\tmp\cocograph\kytten\dialog.py", line 532, in on_mouse_release
button, modifiers)
File "D:\tmp\cocograph\kytten\dialog.py", line 173, in on_mouse_release
x, y, button, modifiers)
File "D:\tmp\cocograph\pyglet\event.py", line 349, in dispatch_event
getattr(self, event_type)(*args)
File "D:\tmp\cocograph\kytten\menu.py", line 79, in on_mouse_release
self.menu.select(self.text)
File "D:\tmp\cocograph\kytten\menu.py", line 190, in select
self.on_select(text)
File "D:\tmp\cocograph\kytten\file_dialogs.py", line 35, in on_menu_select
self._select_file(self.files_dict[choice])
File "D:\tmp\cocograph\kytten\file_dialogs.py", line 70, in _select_file
self.on_select(filename)
File "D:\tmp\cocograph\cocograph\tile_layers.py", line 468, in on_open_click
self.on_open(filename)
File "D:\tmp\cocograph\cocograph\tile_layers.py", line 709, in open
level_to_edit = tiles.load(edit_level_xml)
File "D:\tmp\cocograph\cocos\tiles.py", line 379, in load
obj = Resource(filename, paths)
File "D:\tmp\cocograph\cocos\tiles.py", line 261, in __init__
self.handle(root)
File "D:\tmp\cocograph\cocos\tiles.py", line 297, in handle
return self.factories[tag.tag](self, tag)
File "D:\tmp\cocograph\cocos\tiles.py", line 276, in resource_factory
self.handle(child)
File "D:\tmp\cocograph\cocos\tiles.py", line 297, in handle
return self.factories[tag.tag](self, tag)
File "D:\tmp\cocograph\cocos\tiles.py", line 280, in requires_factory
resource = load(filename)
File "D:\tmp\cocograph\cocos\tiles.py", line 379, in load
obj = Resource(filename, paths)
File "D:\tmp\cocograph\cocos\tiles.py", line 256, in __init__
tree = ElementTree.parse(filename)
File "c:\python26\lib\xml\etree\ElementTree.py", line 862, in parse
tree.parse(source, parser)
File "c:\python26\lib\xml\etree\ElementTree.py", line 579, in parse
source = open(source, "rb")
IOError: [Errno 2] No such file or directory:
'D:\\Projects\\Python\\cocograph\\
maps\\dungeon\\data/tiles.xml'

Hey, it is a hardcoded path !! Thats a no-no!

--
claxo

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"cocos2d discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/cocos-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to