Howdy!
I've been trying to get away from plugins and generate some more effective and powerful scripts. Unfortunately, it's given me a two (very minor) headaches.
Here's some issues I'm having:
require "file"
When it runs through all of the paths for where this file could be (Lua library locations, MUSH library locations and the current folder I believe) it always comes back saying it can't find the file. Here is what I switched to:
f1 = loadfile("test.lua")
f1()
f1("something something yada yada")
This is working well enough for me, but it seems like it's a bit sloppier than require and could have some issues in the future. Does anyone else think this as well?
addXML function
Right now, every time my main lua file runs, it imports the XML all over again. Even though this isn't very efficient, I don't mind it for the time being. I also haven't noticed any duplicates issue. I was hoping to find out if it replaces the old triggers and aliases with the same name, or if when it sees a duplicate it just goes on to the next one. I can't think of any way to test this and I can't find it in the documentation.
Thanks guys!
I've been trying to get away from plugins and generate some more effective and powerful scripts. Unfortunately, it's given me a two (very minor) headaches.
Here's some issues I'm having:
require "file"
When it runs through all of the paths for where this file could be (Lua library locations, MUSH library locations and the current folder I believe) it always comes back saying it can't find the file. Here is what I switched to:
f1 = loadfile("test.lua")
f1()
f1("something something yada yada")
This is working well enough for me, but it seems like it's a bit sloppier than require and could have some issues in the future. Does anyone else think this as well?
addXML function
Right now, every time my main lua file runs, it imports the XML all over again. Even though this isn't very efficient, I don't mind it for the time being. I also haven't noticed any duplicates issue. I was hoping to find out if it replaces the old triggers and aliases with the same name, or if when it sees a duplicate it just goes on to the next one. I can't think of any way to test this and I can't find it in the documentation.
Thanks guys!