[Home] [Downloads] [Search] [Help/forum]


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  General
. . -> [Subject]  how to use mapper plugin to gererate a txtfile

how to use mapper plugin to gererate a txtfile

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page


Posted by Phost   (11 posts)  [Biography] bio
Date Sun 28 Nov 2010 04:32 PM (UTC)
Message
hello,i want to ask whether the maper plugin can generate the txt file like the following file. which would ilucidate the relations of each room.such as
1=stone street|south:131,west:132,east:3,north:130,
2=south street|west:2,north:14,east:4,south:15,
3=cloud street|west:3,north:12,east:5,south:13,
4=shop|west:4,south:11,north:10,east:6,
5=north steet|west:5,north:8,east:7,south:9,
.................
if it can,should the trigger added?
such as the exit here is ....?
[Go to top] top

Posted by Ddid   China  (19 posts)  [Biography] bio
Date Reply #1 on Sun 28 Nov 2010 08:06 PM (UTC)
Message
I guess, the mapper plugin that you used is helllua's maper.dll .

If it is, as far as I known, its authour is jarlynn. Maybe you can ask your question with him in another forum -- http://pkuxkx.net/forum
[Go to top] top

Posted by Nick Gammon   Australia  (22,975 posts)  [Biography] bio   Forum Administrator
Date Reply #2 on Sun 28 Nov 2010 08:39 PM (UTC)

Amended on Sun 28 Nov 2010 08:40 PM (UTC) by Nick Gammon

Message
If you are referring to the mapper plugin I wrote, then the data (for the ATCP_Mapper anyway) is kept in a SQLite3 database. It wouldn't be too much work to dump that as a text file with suitable SELECT statements.

For example:


sqlite> select uid, name from rooms limit 10;

462|South end of Market Street
463|Market Street circling the Merchant's Quarter
440|Parade of Zarathustra north of Statue
441|Continuing on the Parade of Zarathustra
453|Northeast of Central Market
454|North of Central Market
458|Northwest of Central Market
4731|The Sarcophagus
457|West of Central Market
455|Central Market of Ashtan


And for the exits:


sqlite> select dir, fromuid, touid from exits limit 10;

n|462|463
se|462|440
sw|462|453
s|463|462
nw|463|464
n|440|441
ne|440|480
se|440|448
sw|440|449
nw|440|462


Combine that information together and you know which rooms have which exits.

For example, north from room 462 (South end of Market Street) leads to 463 (Market Street circling the Merchant's Quarter).

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Phost   (11 posts)  [Biography] bio
Date Reply #3 on Mon 29 Nov 2010 03:14 AM (UTC)
Message
thanks! i asked jarlynn before and he said he just did it by hand. And i use zmud to draw the rooms before.
[Go to top] top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


11,112 views.

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at HostDash]