Difference between revisions of "FAQ"

From Mudlet
Jump to navigation Jump to search
m
 
(26 intermediate revisions by 7 users not shown)
Line 1: Line 1:
 +
<languages/>
 
{{TOC right}}
 
{{TOC right}}
==Where can I get it?==
+
<translate>
 +
 
 +
= Installation =
 +
 
 +
==Where can I get it?== <!--T:1-->
 +
 
 +
<!--T:2-->
 
: Mudlet can be downloaded at: https://www.mudlet.org/download/
 
: Mudlet can be downloaded at: https://www.mudlet.org/download/
  
 +
<!--T:3-->
 
: You can download the source code of the latest git-version here: https://github.com/Mudlet/Mudlet
 
: You can download the source code of the latest git-version here: https://github.com/Mudlet/Mudlet
  
==Is there a Manual?==
 
: Yes. The manual and supporting documentation can be found here: [[Manual:Contents]]
 
  
==I've got my map pulled up, and it looks all jumbled==
+
= Usage =
 +
 
 +
==Is there a Manual?== <!--T:4-->
 +
 
 +
<!--T:5-->
 +
: Yes. The manual and supporting documentation can be found here: [[Special:MyLanguage/Manual:Contents|Manual:Contents]]
 +
 
 +
: The [[Manual:Introduction|introduction page]] should give you the basics to get playing.
 +
 
 +
==I've read the manual, but I don't understand something. What now?== <!--T:6-->
 +
 
 +
<!--T:7-->
 +
: Well, we have a few different options here.
 +
: For real-time interactive help, we have [https://discord.gg/kuYvMQ9 Discord server]
 +
: There are also the [http://forums.mudlet.org Mudlet forums] where you can search to see if someone else has posted a similar question, and if not post it yourself.
 +
: You can also try searching the wiki to see if the subject comes up in any other pages. This can sometimes contextualize a concept, and provide a sort of "Aha!" moment.
 +
: Last, but not least, for years we have been using an IRC channel on freenode, #mudlet. You can get there using [http://webchat.freenode.net/?channels=mudlet this link]. Please be patient, as most users have moved to Discord, responses may take some time.
 +
 
 +
== Where are my profiles stored on disk? ==
 +
 
 +
Windows
 +
* C:\Users\<username>\.config\mudlet\profiles
 +
 
 +
Linux: 
 +
* $HOME/.config/mudlet/profiles
 +
 
 +
MacOS: 
 +
* $HOME/.config/mudlet/profiles
 +
 
 +
 
 +
== Can a copy my profiles from one OS to another? ==
 +
 
 +
Absolutely! You should be able to copy the entire profile directory from the location on your old OS to the one on your new OS. You can find the profiles folder [[#Where are my profiles stored on disk?|here]]
 +
 
 +
== Where did the buttons on the bottom right go? ==
 +
 
 +
You've turned on compact input line mode, you can turn it off by using <code>Alt+L</code> (default keyboard shortcut) or clicking Toolbox->"Compact Input Line" in the main window menu.
 +
 
 +
== I use character ;; (semicolon) in my input line, but strange things happen, why? == <!--T:26-->
 +
 
 +
<!--T:27-->
 +
: Mudlet's default command separator is <code>;;</code> which results in the semicolon not being sent, but instead splitting the command line content in two (or more) separate commands being sent to the game.
 +
: You can change it in the settings.
 +
 
 +
 
 +
= Mapping =
 +
 
 +
== How do I get mapping working? ==
 +
 
 +
Check out the [[Manual:Mapper|mapper page for specifics]].  The script, generic_mapper, comes preinstalled to get you started.
 +
 
 +
== I've got my map pulled up, and it looks all jumbled == <!--T:8-->
 +
 
 +
<!--T:9-->
 
: Example: [[File:Mapperissue.png|border|100px]]  
 
: Example: [[File:Mapperissue.png|border|100px]]  
  
 +
<!--T:10-->
 
: In the above example, click on the long blue arrow. There will be spinners for Rooms and Exits. If you adjust what you have towards the general vicinity of the values in the following image, it should get better.
 
: In the above example, click on the long blue arrow. There will be spinners for Rooms and Exits. If you adjust what you have towards the general vicinity of the values in the following image, it should get better.
  
 +
<!--T:11-->
 
: [[File:Mapcontrols.PNG|200px]]
 
: [[File:Mapcontrols.PNG|200px]]
  
==How do I go about making my own GUI? ==
+
= Customizing Mudlet =
 +
 
 +
==How do I go about making my own GUI? == <!--T:12-->
 +
 
 +
<!--T:13-->
 
: For those who don't know, GUI means Graphical User Interface, like pictures and gauges and all sorts of fancy things.
 
: For those who don't know, GUI means Graphical User Interface, like pictures and gauges and all sorts of fancy things.
: Well, you're in luck. You can do some pretty cool stuff with Mudlet. In fact, at the moment there are three primary options for creating your own GUI. Which one you choose will ultimately depend on what you are trying to accomplish.
+
: Well, you're in luck. You can do some pretty cool stuff with Mudlet. In fact, at the moment there are two primary options for creating your own GUI. Which one you choose will ultimately depend on what you are trying to accomplish.
:: 1. I want to create a full heads up display, with stuff on all the edges and pictures and the like.
 
::: Well, you may want to look into [[Vyzor]]. It is created specifically with this in mind, and will give you easy access to all four edges of the screen. When using Vyzor, it is recommended you stick strictly with Vyzor, but there is some pretty good documentation linked from the [[Vyzor]] page itself, including a sample walkthrough.
 
  
 +
<!--T:14-->
 
:: 2. I want a nice toolkit for making widgets, or even full blown GUIs by bolting widgets together.
 
:: 2. I want a nice toolkit for making widgets, or even full blown GUIs by bolting widgets together.
::: You may be interested in Geyser. You can create complex, intricate, full featured GUIs using this tool, or also very simply create a small console to just echo some text to. The manual for this GUI framework can be found here: [[Manual:Geyser]]
+
::: You may be interested in Geyser. You can create complex, intricate, full featured GUIs using this tool, or also very simply create a small console to just echo some text to. The manual for this GUI framework can be found here: [[Special:MyLanguage/Manual:Geyser|Manual:Geyser]]
  
 +
<!--T:15-->
 
:: 3. I prefer to cook up my own solutions from scratch. I want the barebones access to the UI elements.
 
:: 3. I prefer to cook up my own solutions from scratch. I want the barebones access to the UI elements.
::: Welcome, intrepid adventurer. It is indeed true that both Geyser and Vyzor are frameworks which are built upon the UI functionality provided by Mudlet itself. If you wish to forge your own trail and so on and so forth, then you will want to spend a lot of time meditating upon this tome: [[Manual:UI_Functions]]
+
::: Welcome, intrepid adventurer. It is indeed true that both Geyser and Vyzor are frameworks which are built upon the UI functionality provided by Mudlet itself. If you wish to forge your own trail and so on and so forth, then you will want to spend a lot of time meditating upon this tome: [[Special:MyLanguage/Manual:UI_Functions|Manual:UI_Functions]]
 +
 
 +
== Is there a way to resize/move the main command line in Mudlet? ==
 +
 
 +
Yes, see the first example in the [[Manual:Lua_Functions#setCmdLineStyleSheet | setCmdLineStyleSheet function]].  Read the note attached to the function description.
 +
 
 +
= Common Problems =
 +
 
 +
==How to see terminal output for Mudlet on macOS?== <!--T:24-->
 +
 
 +
<!--T:25-->
 +
: After opening the Terminal application, and verifying that the Mudlet application is located inside the main Applications folder, use this command:
 +
: <code>open /Applications/Mudlet.app/Contents/MacOS/Mudlet</code>
 +
: If you have renamed your Mudlet application, use the matching name, and if that name includes a space, like this "Mudlet 3.15", then put a "\" before any spaces in the name when you open it. Here is an example using that file name:
 +
: <code>open /Applications/Mudlet\ 4.11.app/Contents/MacOS/Mudlet</code>
 +
 
 +
 
 +
==Distorted font on Windows?== <!--T:16-->
 +
 
 +
<!--T:17-->
 +
If you're on a high-resolution display using Windows, you might be seeing strange text like this:
 +
 
 +
<!--T:18-->
 +
[[File:Highdpi-distortion.PNG|center|thumb]]
 +
 
 +
Or your tabs might be a bit messed up:
 +
 
 +
[[File:Dodgy-tab.png|center|thumb]]
 +
 
 +
<!--T:19-->
 +
The issue is with how Windows is upscaling the fonts. To fix this, right-click on <code>mudlet.exe</code> and change it to the following:
 +
 
 +
<!--T:20-->
 +
[[File:Working-settings-hidpi.PNG|center|thumb]]
 +
 
 +
<!--T:21-->
 +
macOS and Linux aren't affected by the problem.
 +
 
 +
== My editor window is blank/empty on Windows, how to fix? ==
 +
This happens on Windows when you unplug an external monitor - one way you can fix it is by right-clicking on the taskbar and selecting <code>Cascade windows</code>.
 +
 
 +
== How to load Lua C libraries without codesigned on Mac OS? ==
 +
: When you load C libraries in Mudlet on MacOS, e.g.
 +
:: <code>require('lpeg')</code>
 +
: You may get error messages below:
 +
:: <code>not valid for use in process using Library Validation: mapped file has no cdhash, completely unsigned? Code has to be at least ad-hoc signed.</code>
 +
:: or
 +
:: <code>code signature in (xxx.so) not valid for use in process using Library Validation: mapping process and mapped file (non-platform) have different Team IDs.</code>
 +
: It's because the C library is not codesigned with Apple Developer certificate (which need 99$/year).
 +
: Here's a workaround to bypass the so-called 'library validation' security mechanism.
 +
:: '''This workaround disables apple's security mechanism, allows Mudlet to load any library from any source without your permission. Think twice before you decide to do this.'''
 +
:: 1. In the Keychain Access app on your Mac, choose Keychain Access > Certificate Assistant > Create a Certificate.
 +
:: 2. Enter a name for the certificate.
 +
:: 3. Choose identity type as 'self-signed certificate'
 +
:: 4. Choose certificate type as 'codesign'
 +
:: 5. Click Create.
 +
:: 6. Open you terminate and execute the command below
 +
::: <code>codesign -s "<Certificate Name>" /Applications/Mudlet.app</code>
 +
:: 7. Done
 +
: See also [https://support.apple.com/en-hk/guide/keychain-access/kyca8916/mac Create self-signed certificates in Keychain Access on Mac]
  
==Where can I get information on regular expressions / regex / pcre?==
 
  
 +
 +
= Triggers, Scripts, etc =
 +
 +
==Where can I get information on regular expressions / regex / pcre?== <!--T:22-->
 +
 +
<!--T:23-->
 
: Regular expressions can seem a bit like black magic until you get to know them a bit better. Once you've created a few they come much more easily. Here are some places you can go for more information.
 
: Regular expressions can seem a bit like black magic until you get to know them a bit better. Once you've created a few they come much more easily. Here are some places you can go for more information.
 
::PCRE regular expression tutorial & reference: http://www.regular-expressions.info/reference.html  
 
::PCRE regular expression tutorial & reference: http://www.regular-expressions.info/reference.html  
 
::PCRE manual: http://www.pcre.org/pcre.txt
 
::PCRE manual: http://www.pcre.org/pcre.txt
  
==I've read the manual, but I don't understand something. What now?==
 
  
: Well, we have a few different options here.
+
</translate>
: For real-time interactive help, we have a few Discord channels. You can get there using [https://discord.gg/kuYvMQ9 THIS LINK].
+
 
: There are also the [http://forums.mudlet.org Mudlet forums] where you can search to see if someone else has posted a similar question, and if not post it yourself.
+
<translate>
: You can also try searching the wiki to see if the subjest comes up in any other pages. This can sometimes contextualize a concept, and provide a sort of "Aha!" moment.
+
== How can I control many characters at once? ==
: Last, but not least, for years we have been using an IRC channel on freenode, #mudlet. You can get there using [http://webchat.freenode.net/?channels=mudlet THIS LINK]. Please be patient, as most users have moved to Discord, responses may take some time.
+
Check out this [https://forums.mudlet.org/viewtopic.php?f=6&t=23023 cross profile communication package] that does this for you.
 +
</translate>
 +
 
 +
== Is there a list of best practices to follow? ==
 +
Definitely, have a [[Manual:Best Practices|look at this]].
 +
 
 +
 
 +
= Game Developers / Administrators =
 +
 
 +
== How can I get my game listed in Mudlet? ==
 +
 
 +
Are you a game admin and would like to see your game come by default in Mudlet's connection? Listing is free! [[Listing Your MUD|See here]] on how to do that.

Latest revision as of 12:21, 17 October 2024

Other languages:
Deutsch • ‎English • ‎Nederlands • ‎Türkçe • ‎français • ‎italiano • ‎polski • ‎suomi • ‎Ελληνικά • ‎русский • ‎العربية • ‎한국어

Installation

Where can I get it?

Mudlet can be downloaded at: https://www.mudlet.org/download/
You can download the source code of the latest git-version here: https://github.com/Mudlet/Mudlet


Usage

Is there a Manual?

Yes. The manual and supporting documentation can be found here: Manual:Contents
The introduction page should give you the basics to get playing.

I've read the manual, but I don't understand something. What now?

Well, we have a few different options here.
For real-time interactive help, we have Discord server
There are also the Mudlet forums where you can search to see if someone else has posted a similar question, and if not post it yourself.
You can also try searching the wiki to see if the subject comes up in any other pages. This can sometimes contextualize a concept, and provide a sort of "Aha!" moment.
Last, but not least, for years we have been using an IRC channel on freenode, #mudlet. You can get there using this link. Please be patient, as most users have moved to Discord, responses may take some time.

Where are my profiles stored on disk?

Windows

  • C:\Users\<username>\.config\mudlet\profiles

Linux:

  • $HOME/.config/mudlet/profiles

MacOS:

  • $HOME/.config/mudlet/profiles


Can a copy my profiles from one OS to another?

Absolutely! You should be able to copy the entire profile directory from the location on your old OS to the one on your new OS. You can find the profiles folder here

Where did the buttons on the bottom right go?

You've turned on compact input line mode, you can turn it off by using Alt+L (default keyboard shortcut) or clicking Toolbox->"Compact Input Line" in the main window menu.

I use character ;; (semicolon) in my input line, but strange things happen, why?

Mudlet's default command separator is ;; which results in the semicolon not being sent, but instead splitting the command line content in two (or more) separate commands being sent to the game.
You can change it in the settings.


Mapping

How do I get mapping working?

Check out the mapper page for specifics. The script, generic_mapper, comes preinstalled to get you started.

I've got my map pulled up, and it looks all jumbled

Example: Mapperissue.png
In the above example, click on the long blue arrow. There will be spinners for Rooms and Exits. If you adjust what you have towards the general vicinity of the values in the following image, it should get better.
Mapcontrols.PNG

Customizing Mudlet

How do I go about making my own GUI?

For those who don't know, GUI means Graphical User Interface, like pictures and gauges and all sorts of fancy things.
Well, you're in luck. You can do some pretty cool stuff with Mudlet. In fact, at the moment there are two primary options for creating your own GUI. Which one you choose will ultimately depend on what you are trying to accomplish.
2. I want a nice toolkit for making widgets, or even full blown GUIs by bolting widgets together.
You may be interested in Geyser. You can create complex, intricate, full featured GUIs using this tool, or also very simply create a small console to just echo some text to. The manual for this GUI framework can be found here: Manual:Geyser
3. I prefer to cook up my own solutions from scratch. I want the barebones access to the UI elements.
Welcome, intrepid adventurer. It is indeed true that both Geyser and Vyzor are frameworks which are built upon the UI functionality provided by Mudlet itself. If you wish to forge your own trail and so on and so forth, then you will want to spend a lot of time meditating upon this tome: Manual:UI_Functions

Is there a way to resize/move the main command line in Mudlet?

Yes, see the first example in the setCmdLineStyleSheet function. Read the note attached to the function description.

Common Problems

How to see terminal output for Mudlet on macOS?

After opening the Terminal application, and verifying that the Mudlet application is located inside the main Applications folder, use this command:
open /Applications/Mudlet.app/Contents/MacOS/Mudlet
If you have renamed your Mudlet application, use the matching name, and if that name includes a space, like this "Mudlet 3.15", then put a "\" before any spaces in the name when you open it. Here is an example using that file name:
open /Applications/Mudlet\ 4.11.app/Contents/MacOS/Mudlet


Distorted font on Windows?

If you're on a high-resolution display using Windows, you might be seeing strange text like this:

Highdpi-distortion.PNG

Or your tabs might be a bit messed up:

Dodgy-tab.png

The issue is with how Windows is upscaling the fonts. To fix this, right-click on mudlet.exe and change it to the following:

Working-settings-hidpi.PNG

macOS and Linux aren't affected by the problem.

My editor window is blank/empty on Windows, how to fix?

This happens on Windows when you unplug an external monitor - one way you can fix it is by right-clicking on the taskbar and selecting Cascade windows.

How to load Lua C libraries without codesigned on Mac OS?

When you load C libraries in Mudlet on MacOS, e.g.
require('lpeg')
You may get error messages below:
not valid for use in process using Library Validation: mapped file has no cdhash, completely unsigned? Code has to be at least ad-hoc signed.
or
code signature in (xxx.so) not valid for use in process using Library Validation: mapping process and mapped file (non-platform) have different Team IDs.
It's because the C library is not codesigned with Apple Developer certificate (which need 99$/year).
Here's a workaround to bypass the so-called 'library validation' security mechanism.
This workaround disables apple's security mechanism, allows Mudlet to load any library from any source without your permission. Think twice before you decide to do this.
1. In the Keychain Access app on your Mac, choose Keychain Access > Certificate Assistant > Create a Certificate.
2. Enter a name for the certificate.
3. Choose identity type as 'self-signed certificate'
4. Choose certificate type as 'codesign'
5. Click Create.
6. Open you terminate and execute the command below
codesign -s "<Certificate Name>" /Applications/Mudlet.app
7. Done
See also Create self-signed certificates in Keychain Access on Mac


Triggers, Scripts, etc

Where can I get information on regular expressions / regex / pcre?

Regular expressions can seem a bit like black magic until you get to know them a bit better. Once you've created a few they come much more easily. Here are some places you can go for more information.
PCRE regular expression tutorial & reference: http://www.regular-expressions.info/reference.html
PCRE manual: http://www.pcre.org/pcre.txt


How can I control many characters at once?

Check out this cross profile communication package that does this for you.

Is there a list of best practices to follow?

Definitely, have a look at this.


Game Developers / Administrators

How can I get my game listed in Mudlet?

Are you a game admin and would like to see your game come by default in Mudlet's connection? Listing is free! See here on how to do that.