Modified version of Max's Scripts menu

 From:  Larry Fahnoe (FAHNOE)
10353.24 In reply to 10353.23 
Hi SUIYAN,

I think that I'm understanding your desire to make it easier for people to make changes, thus your changes to the formatting. However after rereading your previous messages, I don't think you really need to make any changes to Extras.

Going back over your screen shots, it appears you are making changes to the files in the MoI installation directory (D:\Program Files\MoI 5.0 beta Apr-13-2023\commands). But that's NOT where Extras is looking for the commands to add to the menu. Extras is looking in your %AppData%\Moi\commands directory which is where any custom scripts are supposed to live so that you can easily upgrade versions of MoI without loosing your custom scripts.

The additional[] array is a special case (really a hack that I'm not pleased with) and is only intended to hold the list of commands that are built-in to MoI, but do not have icons in the UI. This is intended to be a very small list of commands and it should only need to be changed when Michael adds another of this type of command, NOT where you add your own custom commands.

You are adding either Pipe管道 or 管道 to the additional[] array. Instead, if you want to add a Pipe管道 or 管道 Extras menu item, put those files into your %AppData%\Moi\commands directory and Extras should display them without any changes to its code.

The only part I am a bit uncertain about however is if you need to save Extras.htm as a UTF-8 encoded file with byte order mark as Michael mentioned in order for it to properly display your Chinese file names. I would be interested in knowing if my original Extras from Extras-003.zip properly displays the Chinese file names in your %AppData%\Moi\commands directory.

If it is your intention to translate the names of the 12 (currently) commands in additional[], then you would edit only those command names in BOTH Extras and rename the files in the MoI installation directory. However I do NOT recommend making any changes to the files in the MoI installation directory.

--Larry