Dungeon.lua hacking
Moderator: Sophia
Forum rules
Please read the Forum rules and policies before posting.
Please read the Forum rules and policies before posting.
Dungeon.lua hacking
[post modified, lua codes removed]
So I'm hacking the dungeon file and trying to figure out whats what.
I had posted lua code here, but that is getting really deep.
I'll post scripts and executable to download when I get to that point.
So I'm hacking the dungeon file and trying to figure out whats what.
I had posted lua code here, but that is getting really deep.
I'll post scripts and executable to download when I get to that point.
Last edited by iGame3D on Mon Dec 22, 2008 10:29 am, edited 1 time in total.
- Sophia
- Concise and Honest
- Posts: 4240
- Joined: Thu Sep 12, 2002 9:50 pm
- Location: Nowhere in particular
- Contact:
I assume you're writing some kind of parser/editor for DSB. I am impressed.
You probably more about the Lua language than I do, but if you need help with the specifics of DSB, I will certainly volunteer whatever information or code is needed.
I would warn that I have overruled certain aspects of Lua's internals because they don't do exactly what DSB needs to.
Notably:
Do not use Lua's math library for generating random numbers. Always use dsb_rand(). This is because if/when DSB supports recording movies, this will allow the random seed to be stored and make the outcome deterministic.
Don't use Lua's dofile() to include other Lua files when you're using DSB-- use the lua_manifest or the ability to import archetypes. This is because DSB does more than just load and run the file, such as fixing extensions. (it will search for a compiled .lxx if a .lua is not found)
Yeah that is hairy. There's to be a list of whats in the level, select item in the list will select the square changing the button border.
I kind of got distracted at 4AM turning the map into 3D...which is pretty much working with raw quads and cubes, now to hack to use textured walls and floors. Then get back on track with pulling the data into lists.
Yeah I'll take some textures, maybe I can point the map tool toward them so you can see what's at a dungeon point.
bill at igame3d dot com if you want to deliver them
Thanks.
I'm so fried, went to bed at 7AM.
I kind of got distracted at 4AM turning the map into 3D...which is pretty much working with raw quads and cubes, now to hack to use textured walls and floors. Then get back on track with pulling the data into lists.
Yeah I'll take some textures, maybe I can point the map tool toward them so you can see what's at a dungeon point.
bill at igame3d dot com if you want to deliver them
Thanks.
I'm so fried, went to bed at 7AM.
Well thats my 3D game engine, the editor was just a "lets see what I can do with your lua" thing expanding to "I wonder if I can make a 3D dungeon from this". So far so good.Sophia wrote:The editor is going to end up looking better than the game it's editing.
I'm not sure what RTC offers in way of editing.Trantor wrote:Does this mean I will have to switch from RTC to DSB? It looks very impressive to say the least!
Its going to be some time before I can get a Dungeon Master editor that isn't a bugs nest.
Moving the editor to 3D opened a whole can of worms.
How many lua programmers around here?
I would love to not have to toil on it all alone.
Best would be to make a very generic grid/tunnel mapping tool.
The output style should be customizable for other games.
Like a text adventure: "you are in a long hallway, there are exits east and west", hmm, 5AM Christmas morning, there's time to try that.
On a related note I was thinking of Zombie Master.
A Dungeon Master spin off where you start the game, choose your zombies from the picture frames, and then go on a munch hunt through the dungeons of the living.
Not sure what to do with the items and skills...Journeyman Zombie Ninja, lookout!
Our latest game is kind of like that, but not as funny.
A 3d editor is superfluous, IMHO, so don't bother with that, if it's a bugs nest !!
An editor is necessary, but it has to overcome several difficulties, notably that of being at the same time user-friendly and lua-friendly...
The idea I had in mind to achieve this was making a set of "preset mechanics" that emulates simple dungeon mechanisms with lua script, but require only a few parameters to be set in the editor, preferably using a few clicks.
An editor is necessary, but it has to overcome several difficulties, notably that of being at the same time user-friendly and lua-friendly...
The idea I had in mind to achieve this was making a set of "preset mechanics" that emulates simple dungeon mechanisms with lua script, but require only a few parameters to be set in the editor, preferably using a few clicks.
What Is Your Quest ?
Re: Dungeon.lua hacking
So, what's up with that iGame3D (just notice the 3D, so do the 3D if you feel like it) ?
What Is Your Quest ?
Re: Dungeon.lua hacking
iGame3D is an OpenGL game engine, with Lua scripting plus FLTK UI interface building via integrated murgaLua.
Our website doesn't get updated much, guess I'll update it soon.
I loathe updating web pages.
Lots of old stuff there, most of our previous games were in our own scripting language before the Lua switch.
Working on a game right now for the uDevGames Mac game dev contest, deadline is March 2nd.
You can read the Dev Diary here, it starts at most recent post.
I think I'm funny, so go ahead, read and laugh as much as I do.
I haven't updated that in a while either, enjoyed some slack for a week, then hardcore bug squashing and level detailing for another.
Just made a wicked cool arcade level tonight, fun stuff.
I should be able to post a build for mac and windows by the end of the week, will need lots of testing.
I'll drop the propaganda in some other thread and leave a link here.
The game is a zombie adventure, you control zombies and send them to eat people.
Mmmm!
If you meant the DSB editor, I'll have to get back to it after the contest.
I don't even remember what I did to make the stuff that is in this thread.
Lack of sleep is hell on memory.
Our website doesn't get updated much, guess I'll update it soon.
I loathe updating web pages.
Lots of old stuff there, most of our previous games were in our own scripting language before the Lua switch.
Working on a game right now for the uDevGames Mac game dev contest, deadline is March 2nd.
You can read the Dev Diary here, it starts at most recent post.
I think I'm funny, so go ahead, read and laugh as much as I do.
I haven't updated that in a while either, enjoyed some slack for a week, then hardcore bug squashing and level detailing for another.
Just made a wicked cool arcade level tonight, fun stuff.
I should be able to post a build for mac and windows by the end of the week, will need lots of testing.
I'll drop the propaganda in some other thread and leave a link here.
The game is a zombie adventure, you control zombies and send them to eat people.
Mmmm!
If you meant the DSB editor, I'll have to get back to it after the contest.
I don't even remember what I did to make the stuff that is in this thread.
Lack of sleep is hell on memory.
Re: Dungeon.lua hacking
Better late then never!
See this D-M forum post for what the hacks above turned into.
Have fun!
Thanks again Sophia for kick starting my brain with DSB!
See this D-M forum post for what the hacks above turned into.
Have fun!
Thanks again Sophia for kick starting my brain with DSB!