I have not played a MUD in over 5 years, so this might be something stupid I am missing.
I have a directory that includes my world file, my external script file, and another Lua file that is being required in the script file. So, to illustrate:
C:\MUSHuser\world.MCL
C:\MUSHuser\scriptfile.lua
C:\MUSHuser\test.lua
scriptfile.lua is just one line of:
require "test"
Upon startup, I get this error:
[string "Script file"]:1: module 'test' not found
My MUSHclient is installed in C:\Program Files (x86)\MUSHclient, which I know is probably frowned upon. However, that was also the case when I was playing 5+ years ago. The directory with my world and scripts was also a copy from before. So, the only thing that should have changed is the version of MUSHclient (and the included Lua).
Why is the require not searching in the same directory of the script file that is calling it? When I edit the script to print(GetInfo(64)), it shows that the current directory is in C:\Program Files (x86)\MUSHclient. This is really strange. Is it possible that previously I had a Global Preference that initialized Lua in a different way?
Thanks in advance for any help that is provided.
I have a directory that includes my world file, my external script file, and another Lua file that is being required in the script file. So, to illustrate:
C:\MUSHuser\world.MCL
C:\MUSHuser\scriptfile.lua
C:\MUSHuser\test.lua
scriptfile.lua is just one line of:
require "test"
Upon startup, I get this error:
[string "Script file"]:1: module 'test' not found
My MUSHclient is installed in C:\Program Files (x86)\MUSHclient, which I know is probably frowned upon. However, that was also the case when I was playing 5+ years ago. The directory with my world and scripts was also a copy from before. So, the only thing that should have changed is the version of MUSHclient (and the included Lua).
Why is the require not searching in the same directory of the script file that is calling it? When I edit the script to print(GetInfo(64)), it shows that the current directory is in C:\Program Files (x86)\MUSHclient. This is really strange. Is it possible that previously I had a Global Preference that initialized Lua in a different way?
Thanks in advance for any help that is provided.