MoI discussion forum
MoI discussion forum

Full Version: Scripts installation

Show messages:  1-11  12-31  32-42

From: Michael Gibson
10 Oct   [#12] In reply to [#10]
Hi Mala,

re:
> Do the file folders perhaps need to be unzipped:

The answer is in the first 2 sentences of the FAQ, please read it:

FAQ #1, How to install a plug-in script.

Also it can be helpful if you change a Windows setting so it will not hide the file extensions:
https://www.howtogeek.com/205086/beginner-how-to-make-windows-show-file-extensions/

- Michael

Message 12126.13 was deleted


From: Lara (MALA)
10 Oct   [#14]
Hi Michael, thanks—I don't think I have issues with the file extensions; I can see whether a file is .html or .js.
New - I moved the HTML/JS files from the folders into the commands folder, but I'm still having problems. When I launch MoI, I get the error message I’ve attached, and I still can't run the scripts within the program.


Image Attachments:
file structure.png  script error while starting.png 


Message 12126.15 was deleted


From: Lara (MALA)
10 Oct   [#16]
Thanks, Zooen, for your efforts. However, I fail to see what the organization of the displayed file structure has to do with the fact that the script folder (or "commands" folder) cannot be launched from within MoI. Are we—or rather, am I—talking at cross-purposes?

Image Attachments:
file structure.png 


From: Michael Gibson
10 Oct   [#17] In reply to [#14]
Hi Mala,

re:
> When I launch MoI, I get the error message I’ve attached, and I still
> can't run the scripts within the program.

You will get that error message on the program startup if you have placed the _Voronoi.js file in the %AppData%\Moi\startup folder.

It is not intended to be used as a startup script, it is meant to be copied into the commands folder.

If you delete the _Voronoi.js file from the startup folder that error message should stop being shown on program startup.

If you have got _Voronoi.js and _Voronoi.htm copied into the commands folder, how are you trying to run the scripts?

- Michael
From: Lara (MALA)
10 Oct   [#18]
Hi Michael, Voroni - Iremoved it > no more error message. Thank you.
A problem persists, however: when I click on "Scripts" in the bottom bar, the scripts in "Commands" are not triggered. Also, the "Scripts" entry appears twice.
From: Michael Gibson
10 Oct   [#19] In reply to [#18]
Hi Mala,

re:
> A problem persists, however: when I click on "Scripts" in the bottom bar, the scripts in "Commands" are not triggered.

When you say "not triggered" do you mean they are displayed but don't do anything when you pick one in the menu?

Or do you mean they are not displayed in the scripts menu at all?


> Also, the "Scripts" entry appears twice.

If you look the %AppData%\Moi\startup folder, do you have 2 files there named something like "80 Scripts.js", and "81 Scripts Full.js" ?

If so then delete one of them so you won't have 2 scripts buttons on the bottom bar.

I think the "full" one also displays all regular built-in commands as well.

- Michael
From: Lara (MALA)
11 Oct   [#20]
Thanks Michael, I removed "80 scripts" > it now appears only once in the GUI. However, just like the "Light" script, it doesn't open scripts from the "Commands" folder; a small black-and-white area just keeps appearing instead.
What is still wrong there?
Mala





Image Attachments:
80 scripts deleted - result GUI.png  script Light also no function.png 


From: Lara (MALA)
11 Oct   [#21]
...here are the data folders: commands / plugins / startup / themes

Are the HTML/JS files incorrectly located?

Mala

...here are the data folders: commands / plugins / startup / themes
Are the HTML/JS files assigned incorrectly?
Mala
P.S.: Plugins and themes are empty.











Image Attachments:
scripts file structure - commands.png  scripts file structure - plugins.png  scripts file structure - startup.png  scripts file structure - themes.png 


Message 12126.22 was deleted


From: Zooen
11 Oct   [#23] In reply to [#21]
That’s strange (though I might be way off the mark!) – you don’t have a ‘customui’ folder in the ‘Moi’ folder
AppData > Roaming > Moi > customui
My ‘customui’ folder contains
Scripts.menu.htm
ScriptsFull.menu.htm
LightingOptions.htm
LightingPresets.menu.htm

I’ve just carried out a test: if I disable LightingOptions.htm and LightingPresets.menu.htm, I get the same empty rectangles as you.
That might be a lead – and I do mean might.

Image Attachments:
Capture d’écran 2026-10-11.png  customui.png  Moi_Folder.png 


From: Michael Gibson
11 Oct   [#24] In reply to [#21]
Hi Mala,

re:
> Are the HTML/JS files incorrectly located?

Those are located correctly now.

I think Zooen is correct that you're missing part of the CustomUI mod that adds those buttons to the bottom toolbar.

Make a folder named customui at the same level as commands/plugins/startup/themes and put the attached files into it.

For the lighting menu to work you will need to run the Lighting Options dialog one time. To do that select the following text and do Ctrl+C, then inside MoI type the Tab key to put keyboard focus into the XYZ input box in the bottom toolbar and then Ctrl+V then Enter. The lighting options dialog should show, and that will initialize the lighting options stored in moi.ini and the lighting menu should then work.

Text to paste is this:

script: /* Opens Lighting Options Dialog */ moi.ui.createDialog( 'moi://appdata/customui/LightingOptions.htm' );


- Michael

Attachments:
LightingOptions.htm
LightingPresets.menu.htm
LogScroll.htm
ObjLibrary.cfg.htm
ObjLibrary.menu.htm
Scripts.menu.htm
ScriptsFull.menu.htm
Shortcuts.menu.htm


From: Lara (MALA)
11 Oct   [#25]
Hi Zooen, thanks for the effort; I’m going to uninstall and reinstall MoI now. If that doesn’t work, I might be able to create the `custommoi` folder manually.
P.S.: Just´ saw michaels workaround, thank you, and try this as second option like intended by me too.
From: Michael Gibson
11 Oct   [#26] In reply to [#25]
Hi Mala, uninstall/reinstall MoI isn't going to do anything for this particular problem, the stuff that you need is from a UI mod and isn't part of the regular install.

If you make a folder customui at the same level as commands/startup/etc... and copy the above files into it that should get the UI mod set up.

- Michael
From: Michael Gibson
11 Oct   [#27] In reply to [#25]
Hi Mala,

re:
> If that doesn’t work, I might be able to create the `custommoi` folder manually.

Yes you should create the folder manually, but note that it should be named customui , not custommoi .

- Michael
From: MO (MO_TE)
11 Oct   [#28]
Hi MALA,
I might be wrong since I'm going off a day-old screenshot, but I think you accidentally extracted "CustomUI.2.0.beta2" into your "Commands" folder. You can see it in your screenshot in post #10.
The contents of that folder should actually go into "AppData/Roaming/Moi", As Michael and Zooen mentioned.
From: Lara (MALA)
11 Oct   [#29]
Hi Mo,thx.
I added "CustomUI.2'" - still does not run. (also with Michael hints not)
Mala


Image Attachments:
customUI# added to AppData Roaming MoI.png 


From: MO (MO_TE)
11 Oct   [#30] In reply to [#29]
You should open the "CustomUI.2.0.beta2" folder and copy all the folders inside it, then paste them into "AppData/Roaming/Moi". It looks like you copied the main folder instead of its contents.
From: Lara (MALA)
11 Oct   [#31]
I tried to follow your ideas - still no commands open by click "scripts" button in MoI-GUI.
Other thoughts - the file structure within the `AppData>Roaming>Moi` path now includes the `CustomUI2` folder—just like with Mo. This folder, in turn, contains the `customui`, `objects`, and `startup` folders. However, there is no `commands` folder. That strikes me as odd and is confusing; it’s like a parallel file structure that is almost identical.
Also, Michael, you mentioned that `CustomUI2` should go into the `AppData` folder (at least, I think I read that—though I can't seem to find it in the thread anymore)(or is this a misunderstanding from my side - almost little confused).
Any thoughts on these points, questions, or observations?





Image Attachments:
appdata roaming structure.png  customUI2 structure.png 


Show messages:  1-11  12-31  32-42