Generic Mapping Script
Re: Generic Mapping Script
Jor'Mox, everything works now that I added the Window Manager. I've got a lot of stuff mapped. Thanks for all of your time and help!!
Re: Generic Mapping Script
Ok, I reworked this to a Geyser template, placing the mapper window in the top-right corner. Very basic, if you wanna put it in a container you'll need to edit line 162 of "Map Script" to add the container argument, or add it to the container later. one liner to install is
All I really did was change the two calls to window manager to one call to create the geyser mapper. It autoshows on creation. oh and I adjusted a couple of the map.config table keys for consistency with what Geyser is looking for.
Re: Generic Mapping Script
And now one which has 0 ties to any UI framework of any sort, allowing you to have the popout map window, or create a mapper in the UI framework of your choice.
Re: Generic Mapping Script
Thank you for making and sharing this, and writing SWM.
I'm getting the same error GErswin was getting. I installed the package that includes SWM, and I can activate aliases like stop mapping and load map, but typing start mapping Zone shows no message and simply sits there. Would you please help with what is happening here?
I took three screenshots of what I see, but the forum won't let me post them (maybe because I'm new?)
The curious thing to me is that no aliases show in the aliases window (I did see some there a few times, interestingly, each time after I uninstalled the package), but I am still able to call the stop mapping alias without it appearing there.
Thank you for writing this and for your help. I'm very excited to use this.
I'm getting the same error GErswin was getting. I installed the package that includes SWM, and I can activate aliases like stop mapping and load map, but typing start mapping Zone shows no message and simply sits there. Would you please help with what is happening here?
I took three screenshots of what I see, but the forum won't let me post them (maybe because I'm new?)
The curious thing to me is that no aliases show in the aliases window (I did see some there a few times, interestingly, each time after I uninstalled the package), but I am still able to call the stop mapping alias without it appearing there.
Thank you for writing this and for your help. I'm very excited to use this.
Re: Generic Mapping Script
So, firstly, the aliases don't show up in the aliases window because the script creates all tempAliases, to keep people from messing them up.
As for why nothing is happening when you use the start mapping command, this suggests to me that you don't have the necessary room name and exit information captured for the script to use. The fact that this comes up so often tells me I should put in an error message, instead of letting it fail quietly. Though, to be fair, it does put an actual error message into the error pane of the script window when it happens.
What do you have in place for capturing the room name, the room exits, and the onNewRoom and onPrompt events? Those four things form the essentials that have to be in place before anything will work with the script.
As for why nothing is happening when you use the start mapping command, this suggests to me that you don't have the necessary room name and exit information captured for the script to use. The fact that this comes up so often tells me I should put in an error message, instead of letting it fail quietly. Though, to be fair, it does put an actual error message into the error pane of the script window when it happens.
What do you have in place for capturing the room name, the room exits, and the onNewRoom and onPrompt events? Those four things form the essentials that have to be in place before anything will work with the script.
Re: Generic Mapping Script
Thank you for responding, and so quickly! I will look into those things. The MUD I play offers complex prompts, and the prompt is two lines. I am not well-versed in perl regex, though I am happy to learn. Is there a way to make it account for the entire prompt without escaping a majority of the characters?
Another issue, the color of some of the prompt letters match the room letters in the game. Will this cause the script to mis-understand room names, or is that what onPrompt is for? I will look into onNewRoom and onPrompt. Thank you.
Another issue, the color of some of the prompt letters match the room letters in the game. Will this cause the script to mis-understand room names, or is that what onPrompt is for? I will look into onNewRoom and onPrompt. Thank you.
Re: Generic Mapping Script
Sorry, I forgot to post the prompt. This is the prompt that I use in my MUD:
Opponent: / Tank:
481(481)hitp 735(850)forcep 186(186)move>
Opponent: / Tank:
481(481)hitp 735(850)forcep 186(186)move>
Re: Generic Mapping Script
I think I need to edit the regex for reading exits, as well. The exits in my MUD are displayed like this:
Obvious Exits: North East South[closed] West
Obvious Exits: North East South[closed] West
Re: Generic Mapping Script
Sorry for posting so much. I have a longer post in moderation, that will explain the prompt message I posted.
Re: Generic Mapping Script
I'm afraid I don't see anything in the moderation queue - is it still there?