MoI discussion forum
MoI discussion forum

Full Version: Scripts installation

Show messages:  1-6  7-26  27-42

From: Michael Gibson
10 Oct   [#7] In reply to [#5]
Hi Mala, Burr's archive is listed on the resources page: https://moi3d.com/resources

The link is named "Burr's script archive - collection of scripts posted on the forum".

- Michael
From: Michael Gibson
10 Oct   [#8] In reply to [#6]
Hi Mala,

> You mean the scripts should be placed there: Win-key + R:
> %AppData%\Moi\commands

Yes, as described in the FAQ question #1
quote:
On Windows you can find the Moi appdata folder by typing Win+R to bring up the Windows "Run" dialog and then type in:
%AppData%\Moi\commands

> When I do that this path is opened on my Win11:
> C:\Users\info\AppData\Roaming\Moi\commands

Yes, that's where you need to put them.


> Something is wrong. No MoI folder in AppData.
> In the folder "Roaming" - there is a MoI folder. Idea why?

Nothing is wrong, it is normal that the MoI folder is located under C:\Users\info\AppData\Roaming\ and not C:\Users\info\AppData\ .

The reason why is that there are 3 different ways in Windows to store user profile data. Just C:\Users\info\AppData\ is not intended by Windows to have data stored in an immediate sub folder, it is supposed to go inside AppData\Local , AppData\LocalLow or AppData\Roaming, depending on the type of data. The most commonly used and the one used by Moi is under AppData\Roaming.

If you want to know the details on the different types of user profile data there is some info on it here:
https://www.thewindowsclub.com/local-localnow-roaming-folders-windows-10

- Michael
From: Lara (MALA)
10 Oct   [#9]
Hi Mala, Burr's archive is listed on the resources page:
https://moi3d.com/resources

The link is named "Burr's script archive - collection of scripts posted on the forum".

- Michael

got a 404
From: Lara (MALA)
10 Oct   [#10]
As you can probably tell, I’m no expert when it comes to PC file structures and systems. I just want to know where the files are supposed to go. I’ve now copied in all the scripts I found, but I still can’t launch them. They ought to be in the right place by now—under C:\Users\info\AppData\Roaming\Moi\commands.

Do the file folders perhaps need to be unzipped:



Image Attachments:
file structure.png 


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

re:
> got a 404

Sorry I had a typo, it's fixed now:

https://moi3d.com/resources

- Michael
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

Show messages:  1-6  7-26  27-42