I've just found out that it's possible to define one's own level generators in lua, which is kind of cool...

However, is it possible to use a specific level generator just for one level in a dungeon, rather than for the whole dungeon? It seems that the generators are assigned to the dungeon as a whole, through the G:gen_name line in d_info.txt. All the other things here seem changeable in lua though (as in god temples).

So is there a "generator" variable I can change through lua instead?

thanks :)

--TheFalcon

[later: Yes, just set generator = "foo" in 3.0.]


TheFalcon: On the same topic, is there a way to make certain that a level is over a certain size. I can give the level a DF1_BIG flag, to try to make it that way, but it still means that a relatively small level can be generated, which is *not* a good thing for what I'm trying to do, and I'm not sure whether it's possible to force the level to be regenerated.

DarkGod: Dungeons(or even individual levels) can be made to a specific size. (In T-Engine 3 cvs obviously). Max level size has been increases from 198x66 up to 253x253

TheFalcon: Oh yes, I see. I assume that's the size_x and size_y variables. What values do those refer to though? "screen panels"? if so, how large is one of them?

[later:] It seems that in 3.0, the size_x and size_y still don't actually make sure that the level will be that large. It can still be generated smaller.

[slightly afterwards:] But of course I can just make it a special level if I need to, so it doesn't matter. Oops!

DarkGod: It does, or at elast it should, except if you use the SMALL flag

TheFalcon: If I there's a dungeon defined as 3x3 pannels, with size_x and size_y, almost all the time it will be that size, but there are still occasions when it's smaller.

Module Developers Discussion/level generators (last edited 2006-02-27 17:12:39 by TheFalcon)