Error message when starting a mud file

Posted by Cosine_Omerta on Tue 17 Feb 2015 10:59 PM — 21 posts, 75,796 views.

USA #0
Hi. When I start a particular mud file, I get an error message:
line 8 MUSHclient\worlds\constants.lua was not found

I assume this is a problem with an include somewhere, but I don't know how to troubleshoot it. It gives a line number, but no file name. I've searched all of my plugin files and none of them reference constants.lua.

If I move constants.lua to \worlds it just gives me another error about a different line number, so that doesn't solve it. Where would I begin to find the problem?

Thanks.
MUSHclient v 4.94
Win 7
Australia Forum Administrator #1
What other error?

Try copying it, not moving it. It is hard to tell with so little information (such as, what plugins you are using).
USA #2
When I move or copy constants.lua, I get:
line 6: tag not used: <script> 0

I'm using a chat window plugin and one of my own. I moved that folder out and deleted them from the plugins to load in the client, but the message still happens.
Australia Forum Administrator #3
Moving a file shouldn't cause a "tag not used" message. You aren't telling us everything that is happening here.
USA #4
I open the mud file, I get the constants not found message. I copy constants.lua, paste it into the worlds directory. Then I get the tag error. If I remove the plugins directory altogether, I still get the tag error. (I initially get an error that the two plugin files that I use aren't there, and not loaded, but just the first time.) I also deleted the scripts file(which is empty), which gives me an error about that file not being there, but I still get the tag error.

What other files can I check?
Amended on Wed 18 Feb 2015 11:15 PM by Cosine_Omerta
Australia Forum Administrator #5
Can you copy and paste all the error messages please? Like, show everything that happens when you start the client up.
USA #6
Those two that I quoted before are the error messages in their entirety. The constants.lua missing one if that file is in the plugins directory, and the tag error one if I copy it into the worlds directory.

If I delete my plugins before uninstalling them in the client (with the mud file open) then I get this error:
Line 5668: \worlds\plugins\ToggleButtons.xml contains an invalid path. (Not loaded)

But only once, and only when the plugins are deleted, like I mentioned.
Australia Forum Administrator #7
You are clearly using a plugin which has 5668 or more lines (that's a lot!).

It is completely out of my control what goes wrong when plugins fail. Instead of posting here you need to contact the plugin author. Failing that, examine the plugin and see what the problem is. Failing that, stop using the plugin.
USA #8
So if I uninstall (remove) the two plugins that I load (neither of which are over 500 lines), and completely delete the plugins directory, there is still a possibility of a plugin loading?

I just want to make sure I understand what "using a plugin" means. When I open a mud file, I do file->plugins, and the little box pops up with nothing in it. Is there some other way to "use a plugin"?

I went through every plugin in the plugins directory looking for a constants.lua include, and couldn't find one. To the best of my knowledge, this is the only place where plugins are saved. But even if they snuck in somewhere else, if they exist at all does it matter if they aren't in the little plugins box? If they aren't being loaded why would they cause an error message?
Australia Forum Administrator #9
Template:summary

Please provide a summary of your world configuration:

  • Either use the scripting Immediate window (Ctrl+I) to execute: Debug ("summary")

    or

  • Install the Summary plugin (see "Summary" feature) and type "summary"

Then copy the resulting information from the output window, and paste into a Forum message.

You need version 4.55 onwards of MUSHclient to do this.

USA #10
-------------- MUSHclient summary --------------

MUSHclient version: 4.94
Compiled: Jul 28 2014.
Time now: Thursday, February 19, 2015, 4:09 PM
Client running for: 0d 00h 01m 53s
World opened for: 0d 00h 00m 05s
World connected for: 0d 00h 00m 04s
Operating system: Windows 7
Libraries: Lua 5.1.4, PCRE 8.35, PNG 1.5.14, SQLite3 3.8.4.3, Zlib 1.2.8
World name: 'Tempus', ID: 311e5b44a5ed3285ac4b1a3e
-- Scripting --
Script language: Lua, enabled: yes
Scripting active: yes
Script file: E:\MUSHclient\worlds\TempusScripts\myscripts.lua
Lua sandbox is 127 characters, DLL loading allowed: yes
Scripting prefix: '****lkjh'. External editor in use: NO.
Scripting for: 0.000060 seconds.
-- Triggers, aliases, timers, variables --
** Triggers: 205 in world file, triggers enabled: yes. [Triggers]
205 enabled, 204 regexp, 11275 attempts, 0 matched, 0.005074 seconds.
** Aliases: 223 in world file, aliases enabled: yes. [Aliases]
218 enabled, 5 regexp, 0 attempts, 0 matched, 0.000000 seconds.
** Timers: 0 in world file, timers enabled: yes.
0 enabled, 0 fired.
Timers checked every 0.1 seconds.
** Variables: 56. [Variables]
-- MCCP --
MCCP not active.
-- Plugins (Processing order) --
** Plugins: 0 loaded, 0 enabled.
-- Comms --
Connect phase: 8 (Open). NAWS wanted: NO
Received: 5159 bytes (5 Kb)
Sent: 46 bytes (0 Kb)
Received 7 packets, sent 4 packets.
Total lines received: 107
This connection: Sent 2 lines, received 95 lines.
Telnet (IAC) received: DO: 0, DONT: 0, WILL: 1, WONT: 1, SB: 0 [Telnet]
-- MXP --
MXP active: NO, Pueblo mode: NO, Activated: On command
MXP tags received: 0
MXP entities received: 0
MXP errors: 0
-- Commands --
Commands in command history: 0
Speed walking enabled: yes. Speed walking prefix: .
Command stacking enabled: yes. Command stack character: ';'
Accelerators defined: 0
-- Miniwindows --
** Miniwindows: 0 loaded, 0 shown.
-- Output window --
Output pixels: width 727, height: 645, font width: 8, font height: 15
can show 90 characters, wrapping at column 80, height 43 lines.
Output buffer: 125 of 50000 lines.
-- Miscellaneous --
Logging: NO, tracing: NO
** SQLite3 databases: 0
Sound buffers in use: 0

---------------------- End summary ----------------------
Australia Forum Administrator #11
Cosine_Omerta said:

I just want to make sure I understand what "using a plugin" means. When I open a mud file, I do file->plugins, and the little box pops up with nothing in it. Is there some other way to "use a plugin"?


Well, no. But I don't understand where these messages are coming from.

What is in the file:


E:\MUSHclient\worlds\TempusScripts\myscripts.lua
USA #12
The file myscripts.lua is empty.
Australia Forum Administrator #13
Cosine_Omerta said:

Hi. When I start a particular mud file, I get an error message:
...


Can you copy and paste that file here please? Remove any line with "password" in it (near the start). It will look like this:


   password="TmljayBHYW1tb24="


You can open the "world" file in Notepad, then select all, copy, and paste here.
USA #14
Well there's the 5k+ line file. The constants.lua include was there, so I modified the path and that solved that error. I still get the line 6 tag error though, which in that file line 6 is just a comment with the mushclient homepage.

I wouldn't think posting the 5k+ line file here would be prudent, but I will if there aren't any suggestions about the tag error.

I've gone through and I don't see any elements without proper tags. I can post just the world element, or any specific element, etc.

Thanks for your help.
Australia Forum Administrator #15

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE muclient>
<!-- Saved on Thursday, February 19, 2015, 4:09 PM -->
<!-- MuClient version 4.94 -->
<!-- Written by Nick Gammon -->
<!-- Home Page: http://www.mushclient.com/ -->
<muclient>
<include name="E:\MUSHclient\worlds\plugins\constants.lua" />
<world


What's that line in bold doing there?
Australia Forum Administrator #16
I suggest you remove that line.
USA #17
That was originally
<include name="constants.lua" />

And I was playing with the path to try to get it into the plugins directory.

Removing that line solves the problem though, so thank you very much. I'm curious how that got there to cause a problem and if it not being there is going to cause any future problems?

I didn't even realize the .mcl files were editable in that manner, so I've never even opened it.

Thanks again.
Australia Forum Administrator #18
Someone <looks around the room> put it there?
#19
Quite interesting, and I'm glad I found this thread. It has been happening to me for a long time, and I know I'm not the only one. Mine happened to appear in the Aardwolf.mcl file. Nick, have you been putting things in places they shouldn't be??!

Commented out the line just in case it turns out to be game-breaking, but seems fine so far!
Australia Forum Administrator #20
Someone used the plugin wizard, and it defaults to including that file, probably from where it currently is on the hard disk.

A lot of constants are built into Lua tables these days so you can probably just omit it.