Page 1 of 1

location of wilderness exit

Posted: Fri May 28, 2010 1:56 pm
by Old Tomnoddy
Hi,
I'm playing around with the tome module and currently I am a bit confused by the wilderness exits: all the dungeons seem to have an “up” to the wilderness on level 1 defined in their respective zone.lua but I don't get how these exits are linked to entrances on the wilderness map.

I “rearranged” parts of the wilderness including Amon Sul. Now leaving the initial dungeon through the “up” on dlvl 1, the player is not put on the replaced entrance tile. How do I set the coordinates of the player after exiting Amon Sul to match the location of the tile?

Thanks in advance! (And thanks a lot for The Luafication of tome, making things a lot more transparent!)

Re: location of wilderness exit

Posted: Fri May 28, 2010 2:08 pm
by darkgod
They are simply not linked ;)
Players exit to the wilderness where they left it. And the initial position in manualy set in data/birth/races/* .
The code handling that in in class/Game.lua:changeLevel and class/Player.lua:move

Re: location of wilderness exit

Posted: Fri May 28, 2010 2:37 pm
by Old Tomnoddy
Ahh, thanks!

So there is no way (yet) for a dungeon to have different exits (maybe to different wilderness maps)?

Re: location of wilderness exit

Posted: Fri May 28, 2010 2:56 pm
by darkgod
This is utterly module specific so no, but in your module you could add code handling it very easily

Re: location of wilderness exit

Posted: Fri May 28, 2010 3:09 pm
by Old Tomnoddy
Thanks for clearing this up. I located the default_wilderness settings in the race files; for now I'm happy with this.

Re: location of wilderness exit

Posted: Fri May 28, 2010 3:11 pm
by darkgod
:)

What are you doing BTW?

Re: location of wilderness exit

Posted: Fri May 28, 2010 3:21 pm
by Old Tomnoddy
Mapping!

Just drawing a wilderness map using JavE. That's why I'm relocating some dungeons.

Re: location of wilderness exit

Posted: Fri May 28, 2010 4:00 pm
by darkgod
Oh ;)
A better one ?

If you can do good ascii maps I might have some work for you!

Re: location of wilderness exit

Posted: Fri May 28, 2010 4:27 pm
by Old Tomnoddy
darkgod wrote:Oh ;)
A better one ?

If you can do good ascii maps I might have some work for you!
Unfortunately, I'm still trying to figure out whether I _can_ do ascii maps at all. If I make some progress and won't be totally frustrated by the lack of a decent ascii drawing tool I'll be glad to help.