Questions tagged [libtcod]

libtcod (also: The Doryen Library) is a library for advanced console output and API for developing roguelikes.

from the libtcod homepage:

libtcod, a.k.a. “The Doryen Library”, is a free, fast, portable and uncomplicated API for roguelike developpers providing an advanced true color console, input, and lots of other utilities frequently used in roguelikes.

libtcod offers bindings for a wide range of languages, including C, C++, C#, D, Common Lisp and Python. The source is available at BitBucket.

51 questions
0
votes
1 answer

Installing libtcod for python returns “Access denied” im Terminal

I’ve been trying to follow the python3+libtcod roguelike Tutorial online but I’m stuck on the first hurdle. As soon as I try to import “libtcodpy” to python I get a “Access denied” from my terminal. I tried running in administrator already and…
0
votes
1 answer

Visual Studio 2015 + libtcod - Unexpected exit

I am having an odd issue getting libtcod to work with Visual Studio 2015. I have followed all the steps found on this blog post to get everything linked. The problem is that during debugging or running it inside Visual Studio the application will…
Matt
  • 619
  • 3
  • 8
  • 23
0
votes
0 answers

Why does libtcod.console_put_char keep returning "ctypes.ArgumentError"

The Code so far: http://pastie.org/private/wcjqodm9pm66aorks9jp7w When running the code, I get the error: Traceback (most recent call last): File "C:/Users/Tyler/Documents/Third Party Games/Python/RogueLike/RogueLike.py", line 224, in…
Mrchooch
  • 171
  • 1
  • 1
  • 9
0
votes
0 answers

Python. Libtcodpy. Linux (Lubuntu) Attribute Error

I've had to fight to get this library to run. I can import it and the samples_cpp works fine. But when I run my roguelike, I get this error: > python main.py Traceback (most recent call last): File "main.py", line 3, in import…
acollection_
  • 191
  • 10
0
votes
1 answer

Error when trying to launch program that uses libtcod for ruby

I just installed the libtcod ruby gem, and i wanted to see if the demo works. When I start the demo, it gives me an error: C:/Ruby21-x64/lib/ruby/gems/2.1.0/gems/ffi-1.9.8-x64-mingw32/lib/ffi/library.rb:133:in `block in ffi_lib': Coul…
tudor
  • 3
  • 3
0
votes
1 answer

KUbuntu, Python and libtcod - console_is_window_closed not working...?

I've done a reasonable amount of coding with the libtcod library, both the C# and python wrappers. My current setup is KUbuntu 14.10, python 2.7.8, and libtcod 1.5.2. I've made a few programs that work fine, but the latest I've just started doesn't…
v4nz
  • 115
  • 7
0
votes
2 answers

Having problems with Libtcodpy

I'm writing a roguelike with libtcodpy. It works, but when I run this listing: http://kooneiform.wordpress.com/2009/03/29/241/ at the bottom of the page is a full listing and a few others I've tried, I get errors such as this: FYI I'm on Windows…
ss7
  • 2,902
  • 7
  • 41
  • 90
0
votes
1 answer

Creating/Importing A Custom Map in Python using Libtcod?

I have been in the works of creating a Roguelike in Python, using Libtcod! However, one of my major hurdles that i have been faced with - is that i have absolutely no idea how to make a CUSTOM map (as in, i define the cells and what elements they…
0
votes
2 answers

Python - Getting error whenever I try to run program "Module cannot be found"

I'm trying to do this little tutorial http://www.roguebasin.com/index.php?title=Complete_Roguelike_Tutorial,_using_python%2Blibtcod,_part_1 A little ways down the page right before it says moving around it says to test what you have so far. I'm…
HunterWard
  • 58
  • 2
  • 8
0
votes
1 answer

Python libtcod weird description error

I'm surprised this isn't crashing, but I'm really not sure what's happened here. On mouse over + key press 'd' should bring up menu of objects under mouse (which it does). When selecting an object it should print a message to console from that…
B-mo
  • 49
  • 1
  • 9
0
votes
1 answer

Python libtcod: Object description feature error

I'm working my way through the libtcod python tutorial, I've decided to mess around with some of the code to make it more unique today, and decided to start off with a feature to allow the player to hover the mouse over an object and press 'd' for a…
B-mo
  • 49
  • 1
  • 9
0
votes
1 answer

Tracking item and monster positions

I've been working on a libtcod/C++ roguelike, and I've run into a small problem. When the player goes between floors, the items from the previous floor stay on the new map, ending up in the walls, and each time I go between floors, more items…
0
votes
1 answer

C++ with libtcod not allowing TCODColor type declaration

I am attempting to make a simple rouge like game with c++ and libtcod. I am attempting to compile code that declares a col variable with TCODColor TCODColor col; and this is the actual error: error: TCODColor does not name a type The error occues in…
ponger3d
  • 27
  • 1
  • 6
0
votes
1 answer

I'm getting "Error 1" when compiling libtcod in MinGW's Shell

I am currently installing libtcod for MinGW to make a roguelike and was following the instructions from the documentation on their website :…
Maxime M.
  • 357
  • 1
  • 4
  • 17
0
votes
2 answers

libtcod - Movement function not responding to input

I'm using libtcod and c and my movement function does not respond to input, here is how the function looks when being called TCOD_key_t key; move_entity(player.x, player.y, key); and here is the actualy source code void move_entity(int x,…
user3214982