MMOMinion

Full Version: Moogle Script Manager [Script Auto Updater] [Beta/WiP]
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
Moogle Script Manager
An Auto Updater and Manager for Moogle created and User submitted scripts

ATTENTION: THIS IS BETA. THAT MEANS IF SOMETHING ON YOUR END IS NOT WORKING CORRECTLY I NEED TO KNOW ABOUT IT, PLEASE :)

If you are having issues of any kind, include this in your post please:
[Image: CU94acH.png]

[Image: ogd0bMO.png]

What is the module for? What does it do? How does it work?
Moogle Script Manager is for downloading, managing, and automatically updating profiles created by myself, and other users as well. The goal is to help promote module usage, and creation by the community while keeping everyone always up to date. Just like store add-ons that automatically update, this manager too will do the same, while in the game.


Unlike Minion launcher's store, Moogle Script Manager is for, free, public profiles, where everyone can see the code. Just like if you browsed the forums, found a skill profile you liked, downloaded it, and tweaked it to your liking, you can do the same here but within a controlled manager. Also unlike the store, updates aren't guaranteed, requests can take longer, but hey it's free, so there was a risk of that anyways.

The module checks for updates in my repository at a user-controlled interval. If it finds that there is a new version, it automatically replaces the currently downloaded version, then notifies the user that there is an update available. There is also an option to automatically Reload Lua if the bot is not running or doing any tasks. This option is disabled by default since the nature of it could cause all kinds of potential issues, though its only risk is an annoying delay in the game responding reloading everything.

How do I install Moogle Script Manager?
First and foremost, Moogle Script Manager is a hybrid of Lua and PowerShell. If you for some reason don't have PowerShell, or a version too outdated, this, unfortunately, won't work. Luckily PowerShell is included by default for most versions of Windows. So for those of you who are like "I don't know what a PowerShell is", if you have Windows 10 for example, you're perfectly fine, while if you have Windows 7 you might have to update to a newer version of PowerShell which other users in the topic have mentioned it's quite easy to do.
That means you need:
  • Windows XP with Service Pack 2 or above, though older PowerShell versions may not work.
I have not tested any version of Windows other than Windows 10.

There are two options you may use to install Moogle Script Manager, both do the same things, but one is potentially easier than the other.

PowerShell Script Installer:
https://github.com/KaliMinion/Moogle-Stu...taller.ps1
  • To install, right-click the link above and click Save link as... and save the .ps1 file anywhere within the Minion folder directory (like in ..\MINIONAPP\Bots\FFXIVMinion64 for example), then right click and select Run with PowerShell. For those who don't know already, the default location is C:\MINIONAPP.
  • First, it looks to see where you've installed MINIONAPP, then creates the folder MoogleStuff Files in your LuaMods folder. After the folder is created, it downloads the latest versions of Moogle Updater, module.def, Main Window, MoogleLib, and Moogle Scripts from my repository.
If you'd prefer to download and install manually, or you can't get the ps1 script to work, you'll need these files:
https://github.com/KaliMinion/Moogle-Stu...pdater.lua
https://github.com/KaliMinion/Moogle-Stu...Module.def
https://github.com/KaliMinion/Moogle-Stu...Window.lua
https://github.com/KaliMinion/Moogle-Stu...gleLib.lua
https://github.com/KaliMinion/Moogle-Stuff/raw/master/MoogleScripts.lua
  • Right Click each link and click Save link as... and save each file in ..\MINIONAPP\Bots\FFXIVMinion64\LuaMods\MoogleStuff Files (Create the folder MoogleStuff Files if it is missing). If you wish to view the code first, then just click each link.
  • Alternatively, I uploaded MoogleStuff.zip where you can find at the end of the post that contains the folders and two files. Although these two files won't be the current version, they will update themselves once loaded. Maybe. If they stop working I'll update the zip. Simply extract the zip within the MINIONAPP folder, and it will automatically put everything where it needs to go. Just Reload Lua in-game and it will start working.
I'd like to contribute my script/module/project so my users can stay updated on what I'm doing.
Moogle Script Manager is not only limited to what I'm working on, but I've opened it up to anyone who wants to keep their users updated as well. Regardless if you're working on a Samurai Skill Profile or profiles for Sense, Moogle Script Manager can keep your project updated for all of your users.


While I will have to control what's going through my manager if you wish to contribute the easiest way to reach me is through Discord:

FFXIVMinion Community Discord: https://discord.gg/0fQJTii7Qwcctu4K
MoogleStuff Discord: https://discord.gg/Ytr9jJC
clicking to install the module above FPS crashed my game
I might need to output a log of steps it's taking to work around crashes, since the log is lost when it crashes, unfortunately.
I really like the idea of auto update public profiles/modules etc.

Currently I'm struggling with making this module work on my system: windows 7 with ps 2.0.
Problem: constant error about C stack overflow in bot console and all bot windows become non-responsive.

Behavior before problem:
I used .zip from first post.
I removed all my public modules.
Module did load MainWindow/Scripts/MoogleLib lua files then Reload.
Then it did load .png files. From this point stack overflow error begins.

Maybe ps integrated to windows10 much better than win7 so it works much faster...idk
I'll do some experiments to understand what is happening.

Just out of curious: in windows 10 when you io.popen powershell command does it close cmd/powershell processes when they are done? For win7ps2 they stays in Task manager like forever...
Yea, they close out in windows 10. I'll have to do more testing later when I get home.

You never even see CMD or PowerShell windows at all for me. Visually or in the task manager.
I've added a note at the top of my post for people that are having issues. When I get home I'm going to update my installer and try it out on different versions of Windows.
I've finished my experiments.

1) I've updated PS to 5.1 and after it PS processes starts and ends (not even stays forever anymore) really fast so I really recommend to update for all win7 users ( https://docs.microsoft.com/en-us/powersh...rshell-5.1 ).
2) Before spam of C stack overflow file "Moogle Scripts.lua" has been deleted automatically, so it was staring point for research.
As a result I've discovered a problem at Moogle Updater.lua line 534
Code:
[[https://github.com/KaliMinion/Moogle-Stuff/raw/master/Moogle%20Scripts.lua]]
I added a lot of debug messages to Download functions and it returns url something like
Code:
"https://github.com/KaliMinion/Moogle-Stuff/raw/master/Moogle    (nil)cripts.lua"
So simple replace %20 with space was enough to fix all issues for me.
Ohhhhhhhhhhhhhhhhhhhhhhh...... *slams face to desk*

Yea... believe it or not, I thought I fixed all of those spaces in the urls. :/

I'll fix it when I get home. I'll just remove the spaces in the names in my repository, easier that way.
I'll probably fix my installer by checking for PowerShell Version before installing, ask the user that PowerShell should be updated, download it if they agree and start the installation. Maybe not that far, maybe just open the folder it was downloaded into.

It's probably more complicated than I'm thinking it is.
Kali,

Since this bot has NO documentation outside of the GUI stuff on how to actually accomplish things (even the GUI stuff it still not well documented but it's something). Even with a "Documentation Dev" which who the hell knows what that person does as I don't see any improvements in this area. So I want to say thank you soooo much for the ImGui. Very helpful.

Now maybe someone could put out an example of how to code properly actions (e.g. move to position and attack) and making the bot do certain things. It's such a pain in the ass to go through peoples codes to figure it out and I think it hampers development.

Lastly, I think the code repository is a cool idea. Hope it catches on. It's like the github of mmominion. :)
Pages: 1 2 3