Sunday, February 7, 2010

libtcod-net 1.5.0rc1 seems to have an issue with TCODRandom, beware.

Update: See this for a solution.

I've spent half of today debugging this issue. It appears that there is an issue I'm hitting in magecrawl where a TCODRandom gets stuck in a state where it returns 0's for every GetRandomInt call. I'm working with the maintainers of libtcod, but it appears the issue is one underlying libtcod itself.


The workaround is to use the constructor that takes an enum and pass is the MersenneTwister value.


I'll update more when we find out more. I just didn't want anyone else to try to debug into their code for a few hours looking for sensor ghosts.

No comments: