On Tue, Apr 7, 2009 at 5:11 PM, Lucio Torre <[email protected]> wrote:
>
> On Tue, Apr 7, 2009 at 4:58 PM, Kao Cardoso Felix <[email protected]> wrote:
>> Actually, loading is not working anyway for me right now, even after
>> reverting my changes.
>> From the error message I can deduce it's Windows path issues (damn
>> you, backslashes) and I'm trying to track it down right now.
>
> its so nice to have someone in the team that uses windows!!
>
> thanks a lot kao!

I'm happy to help :)

About the issues, pyglet.resource is having some problems on
recognizing paths with backslashes. I've checked out pyglet trunk to
see if this was only temporary, but it does the same, unfortunately.

I was looking at pyglet.resource code and it looks like it gets the
file from the index by the exact name. So, when changing the operating
systems the changes on path format would break the level files that
follow a different convention. I see two solutions:
 - changing the paths to all forward slashes everytime
 - adding the tileset path to pyglet.resource.path and keeping only
the tile image name.

I prefer the second way 'cause we can let pyglet worry about paths and
only worry about image names, but is also a bit more work and will
affect more modules.

What do you guys think?

-- 
Kao Cardoso Félix

Página pessoal: http://www.inf.ufrgs.br/~kcfelix
Blog: http://kaofelix.blogspot.com

--~--~---------~--~----~------------~-------~--~----~
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