2009
09.10

This version fixes a bug with background color detection in IN_ROW fonts using non-square texture.
I’m still struggling to compile the linux32 version…

[edit] ok linux32 is available now.

5 comments so far

Add Your Comment
  1. Thanks, I’ll try it out for a “learning python” exercise. Probably on Windows, OSX and Linux.

    (Btw, the tab-order for commenting on your blog is really weird. First this text box, then Name, Email, Captcha and URI.)

  2. I got the samples_py.py working on windows, but not on OSX (Leopard, 10.5). Has that ever worked? I’ve noticed that the libtcodpy.py file only checks sys.platform for ‘linux’, not ‘darwin’. I’ll be happy to try and get it working. The C and C++ samples work great though, but exit with a warning that the program is using deprecated libraries:

    2009-09-10 22:48:04.692 samples_c[11191:10b] Warning once: This application, or a library it uses, is using NSQuickDrawView, which has been deprecated. Apps should cease use of QuickDraw and move to Quartz.

  3. No, python does not work on OSX. If you manage to make it work, I’ll be happy to include your patch in the next release 🙂

    AS for the exit warning, I’ve no idea where it comes from. Maybe SDL itself uses deprecated APIs ??

    PS : tab order fixed in comment form !

  4. Ok, I’ve been trying to get it to work but it seems like SDL is a pain to initialize correctly on OS X. I managed to compile a libtcod.dylib and modified the libcodpy.py to use it with the sample_py.py, but it failed when it tried to initialize SDL window:

    Python[3960:613] *** Terminating app due to uncaught exception ‘NSInternalInconsistencyException’, reason: ‘Error (1002) creating CGSWindow’

    I looked a bit at how pygame does for it’s OS X port, and it seems like a bit of a pain. I guess I’ll have to use libtcod on Windows and Linux for now, but it would be nice to be able to port it. Probably the best way would be to set up a more general build system. I don’t know how to set up autoconf or waf yet, but maybe it would be a nice exercise to set it up for libtcod 1.5? 🙂

    /Claes

  5. ah damn. too bad i can’t have an OSX box at hand. I suppose we cannot download it freely and run it in vmware ! 😀

    btw, autoconf is already setup (and probably working on OSX) on the 1.5 branch 😀