SMO - Achievements Menu v1.04

Hi, I've been having the same issue (and I also have the HIME PreTitle Custom title screen).
If you figured out how to get it to work without crashing the game, I'd be really thankful for it!
if you enable this for the title command, than, no this wont work globally, you can however
use a work around with calling the scene (latest savefile will be used)

@Bongeusz don't use SRD_Preloader, but use Galv_ImageCache instead.
or event the images required before hand on boot instead of everything.

but preloader plugin could work, I believe it needs to be above SMO_Achievement.
Galv_ImageCache can be on any place (but I have preloader for SMO_Achievement
in my base plugin if it's imported so those works directly on the fly 🙂 )
if you enable this for the title command, than, no this wont work globally, you can however
use a work around with calling the scene (latest savefile will be used)

@Bongeusz don't use SRD_Preloader, but use Galv_ImageCache instead.
or event the images required before hand on boot instead of everything.

but preloader plugin could work, I believe it needs to be above SMO_Achievement.
Galv_ImageCache can be on any place (but I have preloader for SMO_Achievement
in my base plugin if it's imported so those works directly on the fly 🙂 )
I set the parameter to global and for some reason that seemed to have fixed everything, sorry I only realized after I posted the question...
if any of you uses YEP_X_GameNewPlus, there is a bug with SMO_Achievements.
to fix that (make sure SMO_Achievements is below YEP_X_GameNewPlus plugin)

open SMO_Achievements and go to line 5792.
make a new line on 5794 and paste this code:
JavaScript:
        if (Imported.YEP_X_NewGamePlus && !SMO.AM.isGlobalMode) {
            SMO.AM.refreshDynamicData();
        }
so your end result looks like this:
NGPbug.png

after this modification, it works as it should, (this fix might be added even if your NOT using
the YEP_X_NewGamePlus plugin, but thats optional (also untested) but shouldn't crash)

Edit:
in case of another crash, add this ON line 5812 (don't add it if it doesn't crash)
as it might not be needed, but if it crash, it might fixed it (make sure its similar as above.

JavaScript:
if (Imported.YEP_X_NewGamePlus && !SMO.AM.isGlobalMode && $dataAchievements) {
    SMO.AM.refreshDynamicData();
}
SMO_Achievements.js
by SMOValadorn

​
Description:
Creates an achievements menu for your project.

Features:
Spoiler
- In-Game Editor (optional):
You may use an editor in-game to create/edit your achievements, categories and the menu data;

- Pop up on unlock (optional):
When unlocking an achievement, a pop up will be shown on the screen. The player can click on the pop up and it'll lead him to directly to the achievemnt menu (as long as the player is not on a dialog);

- Auto update (optional):
The requirements for locked achievements will be checked every 1 second. It's possible to change this interval on the plugin's parameters, or even deactivate it and check manully using a plugin command if you want;

- Categories (optional):
It's possible to make many categories, and each achievement can be on multiple categories;

- Trophies (optional):
After completing all achievements on a specific category the player unlocks a trophy;

- Sort (optional):
It's possible to add/remove or edit the sort options through the plugin's parameters (some JS knowledge may be required).
E.G: A-z, Locked, Unlocked...

- Global/Local range:
It's possible to make global achievements, in this case any achievement unlocked on a playthrough will keep unlocked until you use a plugin command to reset it.

- Requirements and Rewards:
Each achievement may have many requirements and rewards (rewards are optional);

- Hidden and Secret achievements:
It's possible to make an achievement secret or completely hide it until it's unlocked, you can also reveal them before unloking them;


- Unlocked date:
The info window shows the unlocked date;

These are the main features.
Optional features may be deactivated using the plugin parameters.
Screenshots:
Spoiler
Categories and trophies:
View attachment 147124

Achievements:
View attachment 147125

Info window:
View attachment 147127

License:
This plugin is under MIT License.
You can use it for free on both comercial and non-commercial projects. Credit me as SMO.
You can read more about the license here.


Download:
Clicking below you'll see the raw file, use RMB and click on "Save as..." to download it.
Download Plugin

You'll find a demo below, it's a non encrypted project stored on Google Drive ~ 27 MB.
Download Demo


How to use:
You'll find all the info you need on the plugin's help section, you can use the plugin's parameters to add achievements and customize the menu.

Changelog:
Spoiler
V 1.04
  • Added the ACHIEVENATOR, which includes an editor for the achievements, for the menu and for the categories;
  • Added option to collect the reward manually, check out the "Collect Reward" parameter;
  • Rewards are now optional, check out the "Use Rewards" parameter;
  • You can now reveal secret and hidden achievements before the player unlocks it or turn other achievements into secret/hidden ones, take a look at the new script calls (10-14);
  • Gold gained and spent are now tracked and available to be used as the requirement types: "Gold Gained" and "Gold Spent", there are new script calls to check those values too (scripts 15 and 16);
  • New reward type: Experience;
  • New parameter for categories: "Global Category", only one category may be global, it'll be automatically added to all achievements;
  • The info window now has a fixed height and scrollers were added to the requirements and rewards;
  • Compatibility with YEP_MessageCore and some translation plugins: SRD_TranslationEngine, KDTools_Localization and Iavra Localization - Core;
  • Necessary files are automatically created, "data/Achievements.json" is now on "save/achievs.rpgsave", the old data is automatically imported and the old file deleted;
  • Auto-refresh after transfer is now optional, check out the "Refresh After Transfer" parameter;
  • Fixed error where achievements unlocked on global mode were not being saved on deployed projects;
  • Fixed bug where unlocking an achievement with no background would still show the "locked" image as background;
  • Fixed bug where loading a game saved while the pop up is visible would show the same pop up without background when that game is loaded, you can now decide what the pop up should remember when loading a game, check out the "Local Load Pop Up" parameter;
  • Fixed bug where the trophies could be misplaced when using the "Grow" selector;
  • Fixed bug where creating a requirement based on the party size wouldcrash the game;
  • Fixed bug where it was possible to unlock achievements on scenes loaded from the title on local mode;
  • General improvements on the plugin's script and plugin parameters;
V 1.03
  • The info window now open/close instead of just appearing/disappearing;
  • Improved wrap text mechanic, and it also works on the info window now;
  • Improved performance on the menu;
  • Achievements are now refreshed after transfering;
  • Parameter "Unlocked In" changed to "Unlocked On";
  • New parameters for trophies on "Categories and Trophies": "Hide Trophy", "Trophy Image" and "On Unlock";
  • New parameter inside "Use Trophies": "Trophy Selector";
  • Added option to select images for locked and secret achievements (check out "Locked Achiev Background" and "Secret Achiev Background";
  • Added text codes for the pop up's text and for the "Unlocked On" text;
  • It's possible to set a different image for the pop up for each achiev, check out "Pop Up Image" inside "Achievements Data";
  • Fixed bug where advanced requirements were not working properly;

V 1.02
  • Fixed bug with plugin commands;
  • Fixed bug where achievements unlocked with script calls were not being saved on global range;

V 1.01
  • New parameter added: Global Rewards;

V 1.00
  • Plugin released!

Please let me know if you have any suggestions or if you find any bug (or even a spelling mistake, I'm trying to improve my english hehehe)

Cheers everyone!
😍
Hi! What exactly is MIT license, if I bought RPG Maker does that mean I can use this commercially? Also in credits should I mention MIT licence or just your name?
Hi! What exactly is MIT license, if I bought RPG Maker does that mean I can use this commercially? Also in credits should I mention MIT licence or just your name?
it means this in short:

The MIT License is a permissive software license that allows free use and
modification of software without attribution. Learn about its history, terms,
variations, and notable projects that use it.

but check the terms of use that is if you need to credit him or not which is
on his first post and probably in the helpfile:

License:
This plugin is under MIT License.
You can use it for free on both comercial and non-commercial projects. Credit me as SMO.
You can read more about the license here.

so you have to credit him, regardless non-commercial or commercial use.
This plugin is great but has the Exmespack1 problem been solved?
This plugin is great but has the Exmespack1 problem been solved?
which one is the Exmespack1? if its from YEP, I think you need to read
some pages back as there might be something on it how to fix it.
which one is the Exmespack1? if its from YEP, I think you need to read
some pages back as there might be something on it how to fix it.
It's the yep Exmespack1
I keep getting this.convertplaytime is not a function type error
I make some updates to the plugin to the plugin to fix some more
issue include those issues.

place the plugin below SMO or at the bottom for safety.
(not sure if it SMO_Achievement need to be below it or not).
but this patch should be (I add it to the main plugin after sorting some
more issues and share it here 🙂
I make some updates to the plugin to the plugin to fix some more
issue include those issues.

place the plugin below SMO or at the bottom for safety.
(not sure if it SMO_Achievement need to be below it or not).
but this patch should be (I add it to the main plugin after sorting some
more issues and share it here 🙂
Hey it's works now 😀 the patch worked
thanks for the help
I'll get you now if there's issues
Hey! First of all I want to say, Amazing plugin! I have a small issue with it however. Whenever I tr to disable categories by leaving the "categories and trophies" parameter empty as instructed, I get this error message:

TypeError: Cannot read property 'active' of undefined
at Scene_Achievements.easyRefresh (SMO_Achievements.js:7777)
at Object.SMO.AM.refreshAchievementsScene (SMO_Achievements.js:3474)
at Object.SMO.AM.refreshAchievements (SMO_Achievements.js:3886)
at Scene_Achievements.Scene_Base.updateAchievements (SMO_Achievements.js:6219)
at Scene_Achievements.Scene_Base.update (SMO_Achievements.js:6123)
at Scene_Achievements.update (SMO_Achievements.js:7697)
at Function.SceneManager.updateScene (rpg_managers.js:2024)
at Function.SceneManager.updateScene (GraphicalDesignMode.js:1326)
at Function.SceneManager.updateMain (rpg_managers.js:1983)
at Function.SceneManager.updateMain (SRD_SuperToolsEngine.js:413)
SceneManager.catchException @ rpg_managers.js:1949

Am I doing something wrong? Is this some kind of plugin issue? It works perfectly fine if i have the categories on...
Hey! First of all I want to say, Amazing plugin! I have a small issue with it however. Whenever I tr to disable categories by leaving the "categories and trophies" parameter empty as instructed, I get this error message:

TypeError: Cannot read property 'active' of undefined
at Scene_Achievements.easyRefresh (SMO_Achievements.js:7777)
at Object.SMO.AM.refreshAchievementsScene (SMO_Achievements.js:3474)
at Object.SMO.AM.refreshAchievements (SMO_Achievements.js:3886)
at Scene_Achievements.Scene_Base.updateAchievements (SMO_Achievements.js:6219)
at Scene_Achievements.Scene_Base.update (SMO_Achievements.js:6123)
at Scene_Achievements.update (SMO_Achievements.js:7697)
at Function.SceneManager.updateScene (rpg_managers.js:2024)
at Function.SceneManager.updateScene (GraphicalDesignMode.js:1326)
at Function.SceneManager.updateMain (rpg_managers.js:1983)
at Function.SceneManager.updateMain (SRD_SuperToolsEngine.js:413)
SceneManager.catchException @ rpg_managers.js:1949

Am I doing something wrong? Is this some kind of plugin issue? It works perfectly fine if i have the categories on...
I would like to add that it doesn't seem to be a plugin conflict, since I get the same error on the demo, which leads me to believe I'm doing something wrong...
I would like to add that it doesn't seem to be a plugin conflict, since I get the same error on the demo, which leads me to believe I'm doing something wrong...
it may be a bug for it, but you can leave it active.
you can drag out the window entirely so you don't have it on screen, but still be
able to use it on the menu which require it.

I don't know if there is a smarter way to do it as its been a while when I mess with it.
I make some updates to the plugin to the plugin to fix some more
issue include those issues.

place the plugin below SMO or at the bottom for safety.
(not sure if it SMO_Achievement need to be below it or not).
but this patch should be (I add it to the main plugin after sorting some
more issues and share it here 🙂
Hey ShadowDragon, I realize you have a ton of patches in here. I tried to use this to make Eli_MessageActions compatible but I didn't have any success.

The typeerror I'm received is "Cannot read property 'adjustCharacterToNotDrawAboveImage' of undefined.

Is there any chance you can add compatibility for it?
Hey ShadowDragon, I realize you have a ton of patches in here. I tried to use this to make Eli_MessageActions compatible but I didn't have any success.

The typeerror I'm received is "Cannot read property 'adjustCharacterToNotDrawAboveImage' of undefined.

Is there any chance you can add compatibility for it?
I need to check the plugin for it, but can add it later on, probably this week if able.

Edit:
@Khali I made the adjustment, but cannot tell if it works.
so see if it works for you and no errors, and still working.

if not, send a mini demo so I can check it in there. (make sure the bug is replicate able).
This is such a niche issue but! I noticed that the secret achievement names and descriptions. So I made a fix for it! If you have this issue, just put this plugin under the main SMO_Achievements!

Original thread: https://forums.rpgmakerweb.com/threads/smo-achievements-menu-v1-04.122651/