[Home] [Downloads] [Search] [Help/forum]


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  Forum
. -> [Folder]  Problems
. . -> [Subject]  constant.lua missing in world folder

constant.lua missing in world folder

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page


Posted by Uchida   (3 posts)  [Biography] bio
Date Sat 28 Jan 2023 06:20 PM (UTC)
Message
Suddenly i am getting few error messages in mush like this

Compile error
World:
Immediate execution
[string "Trigger: counter"]:1: ')' expected near '<eof>' and when i

and when i restarted mush. I get error saying line 7, constant.lua was not found. (not loaded.)

please help!
[Go to top] top

Posted by Nick Gammon   Australia  (22,966 posts)  [Biography] bio   Forum Administrator
Date Reply #1 on Sat 28 Jan 2023 11:12 PM (UTC)
Message
It looks to me like you have a coding error in your trigger, the one labelled "Counter". Perhaps if you post that trigger we could help you more.

Template:copying For advice on how to copy aliases, timers or triggers from within MUSHclient, and paste them into a forum message, please see Copying XML.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Uchida   (3 posts)  [Biography] bio
Date Reply #2 on Sun 29 Jan 2023 04:50 AM (UTC)
Message
Hi Nick!

I have deleted the trigger "counter" and it no longer have the error but i still get the constant.lua is missing from the world folder error when i start mushclient. i tried looking for my backup but i did not find the constant.lua anywhere.
[Go to top] top

Posted by Nick Gammon   Australia  (22,966 posts)  [Biography] bio   Forum Administrator
Date Reply #3 on Sun 29 Jan 2023 05:07 AM (UTC)
Message
Are you sure it isn't "constants.lua"?

Lua plugins may require that file. Do you have any plugins?

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Uchida   (3 posts)  [Biography] bio
Date Reply #4 on Sun 29 Jan 2023 06:51 AM (UTC)
Message
hi ! yes it is constants.lua in the worlds folder.

here is the snipe of the error.
https://imgur.com/a/XOVIGFB

yes, i am using plugins. are you meaning there is a certain plugin that requires this constants.lua file?

thanks!
[Go to top] top

Posted by Nick Gammon   Australia  (22,966 posts)  [Biography] bio   Forum Administrator
Date Reply #5 on Sun 29 Jan 2023 09:16 PM (UTC)
Message
Yes, probably a plugin. Please copy/paste the code below into a file called "show_loaded.lua" and put that file into the "lua" folder in your MUSHclient installation.


-- show_loaded.lua

--[[ 

Shows each plugin as it is loaded.

To enable this, add to:

  File menu -> Global Preferences -> Lua -> Preliminary Code 

  ... this line:
   
require "show_loaded"
  

--]]

if GetPluginID () == "" then
  ColourNote ("gray", "", "Initializing main world script ...")
else
  ColourNote ("gray", "", string.format ("Loading plugin '%s' (%s) version %0.2f ...",
    GetPluginInfo ( GetPluginID (), 7),
    GetPluginInfo ( GetPluginID (), 1),
    GetPluginInfo ( GetPluginID (), 19)))
end -- if



Now go to File menu -> Global Preferences -> Lua -> "Preliminary Code ..." and add the line:


require "show_loaded"


As each plugin is loaded you will see a message, and when the error occurs that will be the plugin that is causing it.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] 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.


4,337 views.

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at HostDash]