Idea: linking a script to a file on disk
Idea: linking a script to a file on disk
Idea: allow a script to be linked to a file on disk. This means it'll monitor that file for changes and dofile() it when it's changed (ie - save in your code editor, Mudlet auto-reloads).
Re: Idea: linking a script to a file on disk
This would certainly be nice, would save me from constantly running dofiles when i'm working on external scripting.
How would this work with required scripts, though? The way I load my system, I add my scripting folder to lua's PATH then require my main file... which requires in my entire system. Would you just have to manually add in each file in the system, or could you just add a "watch" directory that loads on change?
How would this work with required scripts, though? The way I load my system, I add my scripting folder to lua's PATH then require my main file... which requires in my entire system. Would you just have to manually add in each file in the system, or could you just add a "watch" directory that loads on change?
Re: Idea: linking a script to a file on disk
I'm not sure. You could have it watch one 'main' file that's auto-touched by your editor or somesuch when you save others for that.