Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ MUSHclient
➜ Plugins
➜ MajorMUD mapper plugin
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Wahnsinn
USA (8 posts) Bio
|
Date
| Thu 23 Feb 2012 02:49 PM (UTC) Amended on Thu 23 Feb 2012 07:27 PM (UTC) by Wahnsinn
|
Message
| Hi Nick, I've been reading the posts (and code) for the Materia Magica mapper plugin (http://gammon.com.au/forum/bbshowpost.php?id=10667), brilliant work! It seems to be exactly the kind of thing that most mudders would just love!
Using the latest version of your Materia Magica mapper as a starting point, I'm trying to adjust it to begin mapping for MajorMUD. It should be a positively simple process because there isn't too much difference in the formatting. What's hanging me up right now is a trivial matter, I just haven't been able to find what I need to solve it when searching through the forums. Here's what a simple room looks like:
<img src="http://mm.winkelmanndesigns.com/MajorMUD_BasicRoom.jpg">
What's stopping me from getting anywhere is that the color of the room name is different. I've taken a couple guesses, but I can't seem to find a table or reference list for the color codes that you use when telling the triggers to match color. This is the trigger I'm looking at, which it seems finds a bold yellow line of text in Magica that denotes the name of the room:
<trigger
back_colour="8"
bold="y"
enabled="y"
match="*"
match_back_colour="y"
match_bold="y"
match_inverse="y"
match_italic="y"
match_text_colour="y"
name="Name_Line"
script="Name_Line"
sequence="100"
text_colour="11"
keep_evaluating="y"
>
</trigger>
[EDIT] So the actual question here is what is the code for bold cyan and where can I find a list of the integer values of all the colors? | Top |
|
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Reply #1 on Thu 23 Feb 2012 10:23 PM (UTC) |
Message
| They are documented here:
http://www.gammon.com.au/forum/?id=7123
But you could just make up a trigger in the GUI interface, set it to match what you want, then copy it to the clipboard and see what the parameters to the trigger are. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Wahnsinn
USA (8 posts) Bio
|
Date
| Reply #2 on Tue 28 Feb 2012 01:12 PM (UTC) |
Message
| Thank you Nick, that was very helpful and got me rolling in the right direction so I'm seeing success working with the mapper.
What I need to come up with now is a reliable way to handle the fact that many rooms will have the same name and description. Even simple things like the uneventful portions of streets in the main town, there will be a couple rooms in a row with the same name and description as you travel down the street. I have a "master" version of the game's database in MySQL tables, so with a little legwork it's possible for me to know the guid of any given room. I tried to open the .db file of the mapping database generated by the mapper, but LINQPad with the IQ driver (for SQLite files) said that it was either encrypted or an invalid database.
Any ideas out there for handling non-unique room mapping are most welcome :) | Top |
|
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Reply #3 on Tue 28 Feb 2012 06:49 PM (UTC) |
Message
| The file is straight SQLite database. Maybe the LINQPad has an older version built in? More recent versions of SQLite have an option for storing the database in a slightly different format (for faster access). You can convert to/from this other format. (See my page about SQL I think).
As for the non-unique rooms, they are a pain. In one case I included exits so that hopefully two rooms with the same description have different exits, so that can be used to differentiate.
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | 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.
15,683 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top