If anyone from 3k can't wait to map, here is a working version of a mapper. It isn't fully complete yet, but it's very usable.
The most recent version can be found here:
https://github.com/Chris7/3k-Scripts
And help can be found here:
https://github.com/Chris7/3k-Scripts/wiki
Look around, there are a ton more aliases/etc I don't feel like documenting. Thanks to the WOT mapper and Vadi's mapper for some code snippets.
(mapping script) 3kingdoms Mapper
(mapping script) 3kingdoms Mapper
- Attachments
-
- 3k Mapper.xml
- (50.97 KiB) Downloaded 1466 times
Last edited by chris on Wed Aug 03, 2011 2:03 am, edited 5 times in total.
Re: (mapping script) 3kingdoms Mapper
(moved it and added a tag to the title, so Mudlets 'find mapping scripts' feature will locate it)
Re: (mapping script) 3kingdoms Mapper
Based on the lack of comments here, I'm guessing others may have already figured this stuff out, but I'm a tad slow and it took me a bit of effort to get this working. Note that I'm on a Windows platform.
There are a couple limitations after some _very_ brief testing (and thus, might be my own problem):
- In scripts->Helper Functions, I had to add the following function:
- In Scripts->Sql Initiator, I had to change lines 48 and 50 as follows (hence my note about being on Windows):
- In scripts->Room Checking Functions, I had to add the following to the very top of the checkExit function. Without this, it would fail to ever create the very first room when using the 'firstroom' alias:
- I added an alias to call makeSqlDB(). You can add one for dropSqlDB() as well, just be careful!
- Within the MUD itself, you can add the special unique identifier with the following command (I hadn't even realized such a thing was doable in 3k, so it took me a bit to find):
If you choose a different character, make sure you also change Scripts->Helper Functions->convertRoomName()
- Login to 3k
- Do the aset command to set the unique room suffix if you haven't already
- Run your 'makesqldb' alias to prep the database (you only do this once!)
- Choose a sane starting location. IE., maybe not in the login room.
- Open the Map in mudlet via the toolbar
- Type 'mtoggle' to enable mapping
- Type 'firstroom'
- Move in an available direction.
There are a couple limitations after some _very_ brief testing (and thus, might be my own problem):
- The script detects collisions, but can't do anything about them. You need to delete/move rooms around manually.
- It doesn't appear support for Areas is in (yet?)
Re: (mapping script) 3kingdoms Mapper
There is support for room collisions. If there is a collision it halves your room scale and puts the room there. I'll aggregate my latest additions (a lot) and post them in a day or 2.
Re: (mapping script) 3kingdoms Mapper
Thanks, figured that out after I started a clean map - I had corrupted the first one getting it working ![Smile :)](./images/smilies/icon_e_smile.gif)
Very interested to see your updates!
![Smile :)](./images/smilies/icon_e_smile.gif)
Very interested to see your updates!
Re: (mapping script) 3kingdoms Mapper
I put in an update. Some more config parameters: in Mapper Variables, tkm.specialChar you can set to your special character (obviously change the trigger to use this one too). You can also set your map scale in there as well. Following works, and the speedwalker waits for room confirmations as well (later this can be used to add delays)
Re: (mapping script) 3kingdoms Mapper
here's a bit of hard won experience. If you use the special exit command (>trueexit>dirOnMap), dirOnMap must be the long form of the direction
So >portal>s causes the mapper to go into hysterics but >portal>south gets the room made.
So >portal>s causes the mapper to go into hysterics but >portal>south gets the room made.
Re: (mapping script) 3kingdoms Mapper
I opted not to allow shortcuts because there are corner cases where that behavior might be bad (such as an evil area maker having all special exits with names like 'e'
). Also, I'll upload an updated mapper. I started from scratch with a new profile to make my mapper more user friendly (like automatically setting ansi up).
Also, my scripts will be packaged into the binary for the next release with an icon (for 3s)
.
![Smile :)](./images/smilies/icon_e_smile.gif)
Also, my scripts will be packaged into the binary for the next release with an icon (for 3s)
![Smile :)](./images/smilies/icon_e_smile.gif)
Re: (mapping script) 3kingdoms Mapper
I'm not sure how final your scripts are but I'd love to collaborate with you on them. I've been rolling deep in the code so if there are some issues to resolve, I wouldn't mind pitching in.
Re: (mapping script) 3kingdoms Mapper
Chris, is there a readme file that discusses how to set up your mapper?
I've got the 3k Mapper in the default 3 Kingdoms profile for Mudlet 2.1. Is there another package I need to make it work for me?
Thanks,
I've got the 3k Mapper in the default 3 Kingdoms profile for Mudlet 2.1. Is there another package I need to make it work for me?
Thanks,