Author Topic: Complete beginner/idiot question (libtcod)  (Read 7117 times)

SriBri

  • Newcomer
  • Posts: 1
  • Karma: +0/-0
    • View Profile
    • Email
Complete beginner/idiot question (libtcod)
« on: November 07, 2012, 06:41:06 AM »
I've taken a couple university classes in Python, and now want to try messing around with roguelike development. I'm trying to get libtcod working, but after several attempts and zero progress I'm getting frustrated at my inability to get through the door.

I assume I'm using libtcod, or Python wrong...

My problem is this: I can't get anything to launch. Even code copied directly from tutorials such as here:

http://roguebasin.roguelikedevelopment.org/index.php?title=Complete_Roguelike_Tutorial,_using_python%2Blibtcod,_part_1_code#Showing_the_.40_on_screen


Doesn't run. It doesn't return any errors, but it generates no console window, when all the beginner tutorials say it should. I'm completely stumped before I even started. :/

mendonca

  • Newcomer
  • Posts: 11
  • Karma: +0/-0
    • View Profile
    • A Hundred Heroes - Roguelike Reviews and Ruminations
    • Email
Re: Complete beginner/idiot question (libtcod)
« Reply #1 on: November 07, 2012, 08:19:19 AM »
As a thought, have you installed Python (I'm using 32-bit 2.7, I think)? Also have you added all the relevant DLLs etc. to your game directory, from where you are running the script?

Checking through the stuff I am working on, you should have the following in the same directory as the script you are trying to run (assuming windows):

libtcod-mingw.dll
libtcodpy.pyc
libtcodpy.py
SDL.dll

font_file.png (arial10x10.png if you are flat out copying the tutorial)

And then your own python script (or scripts) e.g. My_Roguelike.py

guest509

  • Guest
Re: Complete beginner/idiot question (libtcod)
« Reply #2 on: November 07, 2012, 08:21:09 AM »
  I'm not sure what the issue is, are you able to get your school work projects to run?

  There are some great coders on here that will get you fixed up quick. Unfortunately that's not me. :-(
  
  Check back frequently as they'll be asking questions, I'm not sure you've provided enough info for a quick fix.

  Good luck and WELCOME!

george

  • Rogueliker
  • ***
  • Posts: 201
  • Karma: +1/-1
    • View Profile
    • Email
Re: Complete beginner/idiot question (libtcod)
« Reply #3 on: November 07, 2012, 04:23:06 PM »
Yeah, we need more information, especially about how exactly you're running the program. What editor/IDE are you using, what version of libtcod do you have, what version of Python, and what steps do you take to run the program.

Quendus

  • Rogueliker
  • ***
  • Posts: 447
  • Karma: +0/-0
  • $@ \in \{1,W\} \times \{1,H\}$
    • View Profile
    • Klein Roguelikes
Re: Complete beginner/idiot question (libtcod)
« Reply #4 on: November 07, 2012, 10:54:51 PM »
Do you have terminal.png in the same folder as your python script?