Per KoLmafiaCLI.findScriptFile, .cli as well.ash .txt and .js are all good extensions for scripts
Per KoLmafiaCLI.findScriptFile, .cli as well.ash .txt and .js are all good extensions for scripts
scriptMRULength |
This was fixed at some point during hola's PR. It was one of the reasons I liked it. It has since broken, probably while fixing a different bug (/thing people didn't like) with that change.The presence of scripts you think you didn't "call" is expected or, if you prefer a bug that has not bothered people for several years but should be looked at.
Tried this out on r26571, this is what it looks likeIn the meantime if you use r26570, set scriptMRULength to zero and scriptCascadingMenus to true you should get the (old) cascading menus and not the script MRU. I would expect lag to disappear and rendering issues to be easier to diagnose.
Also with scriptMRULength set to greater than 0, any script in a subdirectory of the scripts directory will no longer run when clicked from the scripts menu e.g.
That file is in \scripts\i_made_this\ and runs fine if I just type "aftercore_daily" on the CLI or find it using the "Load Script" menu option.
This was working pre-r26569
The general idea was that a user initiated a script on some way, after which they could run the script by selecting it from the MRU. Over the years there are several issues bugs or feature requests that have not been acted upon.
There are probably a couple more. Some of these I will almost certainly look at if other people are actually continuing to use the MRU. Some of these would better be considered in a larger context such as a reconsideration of the script install/update/run infrastructure.
- Some, but not all, scripts called from relay scripts show up on the list even though running them directly makes no sense.
- Scripts that are invoked by "call" in other scripts show up. Many of those can be called directly and so being on the list is by design but a couple are not and could be filtered out.
- Scripts that are in a subdirectory of scripts/ may or may not be runnable from the MRU because it is not explicit in managing full paths and so it sometimes cannot find something.
- It was recently observed that scripts with a semi-colon in the file name will "break" the feature.
For the mess of arrows and dividers, try closing and reopening Mafia. I could only reproduce it when I changed the preferences in the same session (and it caused other issues, like not all scripts appearing on the menu. It's a weird one).
pre-26569 I had to use the scriptMRU for that menu to do literally anything. It was listing scripts with their directories & when clicked they would run.So you are confirming an instance of an already known behavior, correct?
When you say working pre-26569 are you saying you were using the scriptMRU and this worked, which is contrary to my experience or were using what is now called the cascading script menu which AFAIK never had this undesirable behavior? The distinction is important because the cascading script menu, then and now, and the scriptMRU don't have a lot of code in common.