Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Nathan Stoddard

Pages: [1]
1
Programming / Re: Inventory
« on: September 12, 2009, 04:27:35 PM »
I would remove the Weapon, Armor, etc classes and have everything be an Item, and add a field for the type of item. Sometimes object-orientation is more trouble than it's worth. This method will require more space (every item will have "damage" and "armor_class" fields, no matter what type of item it is), and it isn't as safe, but it's simpler.

2
Programming / Re: (un)acceptable memory usage
« on: April 06, 2009, 07:47:49 PM »
I don't think it's too unreasonable for a dungeon level to take 5 MB. It is probably higher than average, but as long as you only keep one dungeon level in memory at once (saving the rest to a file), it should be fine.

I'm not familiar with Python, so I'll let someone else explain what is probably taking up so much memory.

3
Programming / Re: Worst bug you had?
« on: February 03, 2009, 10:19:06 PM »
I just found a new and even weirder bug in my game. The game goes into an infinite loop, but only when g++'s -Os (optimize) flag is enabled and -g (debug) flag is disabled. So I can't debug the **** thing. Fortunately gdb still shows me what functions are executed, and I narrowed it down to about 40 LOC, but I still can't find what's wrong. I guess I'll have to disable some of the code, a little at a time.

4
Programming / Re: Advanced Dungeons of Freedom
« on: January 17, 2009, 07:50:37 PM »
I will be surprised if this ends up being released. In my opinion, it's usually a bad idea to "think ahead" so much before you code anything.

5
Other Announcements / Re: Internet Roguelike Database
« on: January 11, 2009, 12:11:41 AM »
Is the IRLDB still being updated? It isn't showing some roguelikes.

6
Programming / Re: Worst bug you had?
« on: December 25, 2008, 08:57:07 PM »
I got another weird bug. When I told my game to not generate any enemies, it generated exactly one rat and one gnoll. This was due to me forgetting to initialize a variable.

7
Programming / Re: Worst bug you had?
« on: December 23, 2008, 05:56:53 PM »
The weirdest bug I've had is in the hexagonal roguelike I'm making. Whenever the display is smaller than the dungeon (so part of it wraps around), you can't use any uppercase commands. I think the uppercase letters are getting converted to lowercase. When you save and reload the game, it's fine.

I have absolutely no idea what is causing this.

8
Temple of the Roguelike / Re: Roguelike World Map: Request Edition
« on: October 10, 2008, 12:44:46 AM »
Can you change my website to nate879.org? nate.clockwatch.info is no longer active. Also, please change my "roguelike projects" from "TrapRogue, Unnamed" to "Downfall, RLLib".

It would be nice if there was a way to change these things myself, rather than posting this here.

9
Temple of the Roguelike / Re: Roguelike World Map: Request Edition
« on: June 03, 2008, 01:42:42 AM »
The map thinks my website is "http://www.roguetemple.com/map/nate.clockwatch.info".  It should be "nate.clockwatch.info".  Maybe it needs the "http://" at the start.

Pages: [1]