Re: [DM-dev] DM status update
Brought to you by:
acdalton,
henningsen
From: Stephan B. <st...@ei...> - 2001-08-29 08:27:53
|
On Wednesday 29 August 2001 04:13, you wrote: > Render-as-we read? As I see it, we read the data in and use it to > initialize the DungeonMaker internals (nothing's rendered at this time). Sorry, I meant when reading data from a file. For example, read one line which says "room=x,y,w,h,..." and then draw it to the grid immediately. I had a reason for this, but now I'm not sure what it was. Perhaps it won't be needed at all. I've still got a few ideas to try out which may make this moot. > Saving a dungeon back to "dungeon data" format is not what we want to do. Yeah, I've given up on that for now. > All we need is the initialization data and the random seed, and we can > generate the dungeon in under one second flat. Calling programs will have > their own formats, and it will be very easy for them to write code to save > the dungeon to that format, if desired. Sounds fair enough. I think I was gonna have to make a new file format for QUB, anyway, so this is no problem. > Sorry to hear about the QUB leak. Hope you got the right tools to catch it. It was one I could catch with cerr, luckily. I'm still paranoid about memory leaks in C++ (because my background is mostly Java, where that doesn't exist), so I tend to print debug output for all objects when they die. I just happened to notice that some objects didn't die when I thought they should. It's all fixed and online, so I'm happy. I wasn't aware of some deletion behaviour regarding main windows in Qt, and wasn't deleting them until the app closed. Here's a handy macro for dealing with debug output: #define CERR cerr << "debug: " << __FILE__ << ": " << dec << __LINE__ << ": " You use it just like cerr: CERR << "debug output!" << endl; and you don't have to search for the debug output later, because you get the file/line in the output. That's in DM.h, by the way. see ya! ----- stephan Generic Universal Computer Guy st...@ei... - http://www.einsurance.de Office: +49 (89) 552 92 862 Handy: +49 (179) 211 97 67 "Perhaps, as has often been said, the trouble with people is not so much with their ignorance as it is with their knowing so many things that are not so....." - William A. White |