Closed GoogleCodeExporter closed 9 years ago
Hi, I do not see the 07 TMW example in the attachment. Please follow up with:
1. The 07 TMW example you run.
2. In what directory do you place the 07 TMW example when you get the error?
3. In what directory do you place the TMX file and the graphics directory?
4. Any other details that are required for me to reproduce the error.
Here is the directory structure I use in development and testing, and the way
that I run the example. You may want to try this. If the problem persists,
please provide the info I requested above. Cheers.
gummworld2/
gummworld2/data/graphics/(TMW tilesets)
gummworld2/data/map/001-1.tmx
gummworld2/examples/07_tiled_tmw_with_renderer.py
## using Cygwin or Linux
$ cd gummworld2/examples
$ ./07_tiled_tmw_with_renderer.py
## using Windows
$ cd gummworld2/examples
$ 07_tiled_tmw_with_renderer.py
Original comment by stabbing...@gmail.com
on 24 Mar 2014 at 5:05
I forgot! Please include the complete traceback output that is printed by the
crash.
Original comment by stabbing...@gmail.com
on 24 Mar 2014 at 5:06
Sorry, I have renamed your tmw example, and anyway I attach it here.
The traceback output is this:
Traceback (most recent call last):
File "new_07_tiled_tmw_with_renderer.py", line 308, in <module>
main()
File "new_07_tiled_tmw_with_renderer.py", line 299, in main
gummworld2.run(app)
File "..\gamelib\gummworld2\engine.py", line 393, in run
State.clock.tick()
File "..\gamelib\gummworld2\gameclock.py", line 284, in tick
self.frame_callback(self.interpolate)
File "..\gamelib\gummworld2\engine.py", line 301, in _draw
self.draw(interp)
File "new_07_tiled_tmw_with_renderer.py", line 249, in draw
self.draw_detail()
File "new_07_tiled_tmw_with_renderer.py", line 268, in draw_detail
blit(s.image, s.rect.move(camera.anti_interp(s)))
TypeError: 'NoneType' object is not callable
About the directory structure, my is different, I don't have
gummworld2/data/graphics.
But it is missing also in yout original zip gummworld2-src-0.4.4.zip.
And, by the way, the secondo map renderer I attach here
(07_tiled_map_with_renderer.py) is working with my dir structure.
Both are in examples dir.
new_07.....py (not working)
07_tiled....py (is working)
2014-03-24 18:06 GMT+01:00 <gummworld2@googlecode.com>:
Original comment by harrie...@gmail.com
on 24 Mar 2014 at 5:44
Thank you for the extra helpful info.
You appear to be using an older version of the library. I ran a comparison
against your gummworld2/*.py and found the following files did not match the
tip revision: basicmap.py, basicmaprenderer.py, camera.py, gameclock.py,
geometry.py, spatialhash.py. One can see this just by looking at the
__version__ string in the source files.
I suggest doing a fresh pull using a SVN client. Or, unzip v0.4.4 and manually
grab the tip revision of tiledmap.py and 07_tiled_tmw*.py from the tiled2
branch.
Upcoming v0.4.5 will contain the latest revisions. I will release v0.4.5 within
the next week, in time for Pyweek.
If I'm mistaken in any way, please post another comment. Thanks!
Original comment by stabbing...@gmail.com
on 25 Mar 2014 at 3:31
I should have added: I moved your new_07*.py into a current copy of the library
and it works.
Also, sorry for not redistributing The Mana World map. I did not want to bloat
the size of the zip file, and have to deal with redistributing under their
license (whatever it is--may not be an issue, I just haven't looked).
Original comment by stabbing...@gmail.com
on 25 Mar 2014 at 3:35
Ok, thank you very much, now it works!
It is important for me to gain enough skills to cooperate (if necessary) in
debugging gumnworld2 library, so I will be regularly update my version of
gumworld with svn using the tiled2 branch which seems the most updated.
Original comment by harrie...@gmail.com
on 25 Mar 2014 at 8:28
I'm glad to hear you got it working. I will put on my to-do list to merge the
branch. It has been that way for too long and I'm sure it causes everyone
confusion. I will close this particular issue as "not a bug". Cheers!
Original comment by stabbing...@gmail.com
on 25 Mar 2014 at 3:10
Original issue reported on code.google.com by
harrie...@gmail.com
on 24 Mar 2014 at 8:45Attachments: