Temple of The Roguelike Forums
Development => Programming => Topic started by: SriBri 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 (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. :/
-
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
-
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!
-
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.
-
Do you have terminal.png in the same folder as your python script?