MZ [CGMZ] Achievements

Heya, sorry if this is something obvious I am missing. In my game the Achievements option is not showing up in my in-game menu. I don't know because the encyclopedia shows up fine. I can make achievements and they work, can call up the menu manually with the script command etc. I am wondering if there is some simple option I am not enabling to display the Achievement menu in the game menu.

The only other idea is I have the Quest system from Phoenix KageDesu and your Encyclopedia. Does it mean I already have the full amount of possible options in the menu and it can't display more? Thanks I am not experienced with adding things like this.
@bigsmiles Hi, you are not missing anything, none of my plugins add themselves to the menu automatically, this is to increase compatibility with plugins that do add things to the menu. You need to use a plugin that can add custom menu commands and add them that way. I have CGMZ Menu Command Window for this: https://www.caspergaming.com/plugins/cgmz/menucommandwindow/

There are also other plugins not made by me that can add custom commands to the menu. Once you have a plugin that can add custom menu commands, you will have the custom command run the JavaScript code:
Code:
SceneManager.push(CGMZ_Scene_Achievements);
@bigsmiles Hi, you are not missing anything, none of my plugins add themselves to the menu automatically, this is to increase compatibility with plugins that do add things to the menu. You need to use a plugin that can add custom menu commands and add them that way. I have CGMZ Menu Command Window for this: https://www.caspergaming.com/plugins/cgmz/menucommandwindow/

There are also other plugins not made by me that can add custom commands to the menu. Once you have a plugin that can add custom menu commands, you will have the custom command run the JavaScript code:
Code:
SceneManager.push(CGMZ_Scene_Achievements);
Thankyou for such good explanation. I had used Menu Command Window for the Encyclopedia, but forgot and was confused. Thanks also supplying such excellent plugins.
Hi all, CGMZ Achievements was updated today 👋!

This update adds the ability to run a common event as a reward, which is a much-requested feature to get around some of the limitations of the other reward types. Now you can event your rewards and provide rewards with no limit.

The second major feature of this plugin is the ability to mark an achievement as failed. Failed achievements can still be manually completed, but will no longer automatically track their completion as there is an assumption that a failed achievement is no longer able to be earned. You can mark an achievement as failed by using the new plugin command. Failed achievements have some new parameters for how they are displayed in the achievement scene as well.

Lastly, one minor new feature which will be coming to all of my plugins is the ability to "hide" the empty space where Touch UI would be if the player has Touch UI turned off (or if you permanently disabled Touch UI as the dev). This is a toggle parameter that needs to be turned ON because some third-party plugins may add their own things to that space.

Version 1.5.0
- Added common event as reward for achievement
- Added ability to mark an achievement as failed via Plugin Command
- Added some display window options for failed achievements
- Added option to fill space where touch UI buttons would be
I'm getting a bug where when using Toast Manager for the pop up, I can't change the default sound. Or, I can change it in the plugin manager, but the game still looks for Applause1.ogg (or whatever).

EDIT: I fixed it, turns out there was a parameter within the achievement that called for the sound.
When I put the plugin into my game, and make an achievement. It doesn't show up in my menu? I have all of your plugins in. Here is the order. core, menu, toast encyclopedia and achievements. What am I doing wrong?
@Ghostbusturs could you explain what you mean a bit more... the achievement's scene doesn't appear as an option in the main menu? Or the achievement you made doesn't appear listed in the achievement scene? Do you get any errors in the console (press F8 in game to open and switch to the console tab at the top)?
@Ghostbusturs could you explain what you mean a bit more... the achievement's scene doesn't appear as an option in the main menu? Or the achievement you made doesn't appear listed in the achievement scene? Do you get any errors in the console (press F8 in game to open and switch to the console tab at the top)?
My bad. It doesnt appear as an option in the main menu. I was very tired last night lol

EDIT! I have gotten it to work on the main menu! Sorry to bother you!
@Ghostbusturs No problem. None of my plugins automatically add themselves to the main menu. To get achievements to appear as an option in the main menu, if you are using [CGMZ] Menu Command Window, you will want to set up a command via that plugin's parameters to something like this:
1701313354873.png

The JS Command parameter will be:
Code:
SceneManager.push(CGMZ_Scene_Achievements);

You can also use other menu plugins that add custom commands, but I can't help with setup for those.
how do i add it to the visustella main menu plugin?
I did this but i just copy and pasted from another command, it didnt work obviously but i dont know what to type in the value other than the js run code you posted
image.png
@jedite1000 I am sorry but I don't know how other people's plugins work as I only use my own, so I am not able to provide support for other people's plugins. You would need to ask the author of that plugin for support, or maybe they have documentation that explains how to add a new command.

Your JS Run Code does look correct if that is what is run after selecting the option in the menu, though it's cut off in your screenshot so I can't be certain. Just to be sure, is it:
Code:
SceneManager.push(CGMZ_Scene_Achievements);

You do seem to have 2 empty parameters, I am not sure if maybe it expects something in those fields, I know a common problem with my own [CGMZ] Menu Command Window is people leaving a parameter blank which cannot be blank.
version-151.png

Hi all, this plugin was updated to version 1.5.1 today. 👋

This update added Spanish language help documentation. It also fixes a bug where some achievement text would not fit on smaller resolution sizes. Text codes should also work in a lot more areas than before, including the Totals window. This updated removed some deprecated CGMZ Core function calls. As part of this, the date format has changed to take player locale into account, and this means the date format parameter has changed slightly.

Lastly, this plugin will now warn instead of crash when it detects invalid JSON in a plugin parameter. Invalid JSON is caused by incorrectly setting up certain plugin parameters.

Version 1.5.1
  • Added Spanish language help documentation
  • Fix bug where some text would not fit on small resolution sizes
  • Removed deprecated CGMZ Core functions from this plugin
  • Date Format now takes user locale into account
  • Text codes now work in the Totals window among other areas
  • Now warns instead of crash when invalid JSON detected
I'm getting an Error I don't understand..
Error.png

Console.png
version-160.png

Hi all, today this plugin was updated to version 1.6.0! 👋

The main feature in this update is the custom rewards. You can now display custom lines of text in the rewards section. This can be helpful to describe some of the more manual rewards such as those awarded by common events. Speaking of common event rewards, this update fixes a bug where the achievement would not recognize it had rewards if the only reward was a common event.

This update also added some more customization features. You can now change each window's windowskin, padding, background opacity, and tone. You can also change the header line gradient colors. This plugin now supports text codes everywhere you have text, including the toast window. This means that you now need to place [CGMZ] Achievements after [CGMZ] Toast Manager in your Plugin Manager. Achievements should no longer default to the Applause sound effect, instead defaulting to no sound effect when earned.

This update includes a major refactor of the code to move a lot of unnecessary things out of save data. This means you will now be able to change achievement rewards, requirements, difficulty, and automatic parameters and have changes made reflected in saved games. This should cut down on save file sizes quite significantly as well.

Note: The Scene Background parameter was changed, and it now supports all image folders instead of forcing your background to be in the pictures folder. Due to this change, you will need to reset this parameter when updating to this version.

Version 1.6.0

  • Added custom reward text lines (must be manually awarded)
  • Added windowskin, tone, padding, back opacity options for each window
  • Added option to change header line gradient colors
  • Fixed bug rewards that only had a common event reward
  • Text codes now supported everywhere in plugin
  • Scene Background parameter now supports any image folder
  • Achievements no longer default to the Applause sound effect
  • Moved rewards, requirements, automatic, difficulty out of save data

Casper 667, good afternoon. I am creating a game on RPG Maker MZ. When working with your plugins, I encountered such a problem: Using the CGMZ_Title Command Window plugin, I display the buttons leading to the windows of the CGMZ_Changelog and CGMZ_Achievements plugins, but both buttons open the Changelog window. At the same time, when disabling the CGMZ_Changelog plugin, the Achievements window opens quietly.I do not know how to fix this, I have been working in RPG Maker MZ quite recently.​

​

I am using:RPG Maker Mc 1.8.0CGMZ_Core v1.17.0CGMZ_Achievements v1.6.0CGMZ_Changelog v1.2.1CGMZ_Title Command Window v 1.1.1To display the buttons, I use:​


For Achievements: SceneManager.push(CGMS_Scene_Achievements);​

For Changelog: this._command Window.close();SceneManager.push(CGMZ_Scene_Changelog);​


I hope you can help me. Thank you in advance.I apologize if the text is written crookedly, I do not understand English and wrote the text through an online translator.​

@Evgeni_Arvokas Hi, in [CGMZ] Title Command Window, make the Command Symbol for the two commands something unique (not the same) and not blank.
version-170.png

Hi all, today this plugin was updated to version 1.7.0! 👋

This update adds quite a lot of new customization options. You can now choose to have the totals window display vertically (the only option previously), horizontally, or not at all. You can also change the list window's width as well as if it displays on the right or the left of the scene. By moving the various windows around, you should be able to make the scene much more custom looking.

This update also allows you to change what is in the windows. You can now display the total earned out of total possible achievements in the category window. You can also show the achievement points in the list window, and add in a background image for each list item. See the below image for how these changes can look in one possible configuration:
cgmz-achievements-170.png

There were also some quality of life changes added with this update. You can now choose the order reward types and criteria types display in via the standard drag and drop selectable parameter type I use for all of my plugins.

A plugin command was added to check the status of an achievement, for use in your events. Now you can easily know if an achievement is still in progress, earned, or failed.

You can now change the total window separator text, variable operator parameters are now select type instead of text, and this plugin no longer requires [CGMZ] Toast Manager to be above it in the Plugin Manager.

Version 1.7.0
  • Added plugin command to check achievement status
  • Added option to show category earned/total in category window
  • Added control over reward and requirement display order
  • Added total window display style
  • Added list window width parameter
  • Added list window background image
  • Added list window on right option
  • Added total window separator text param
  • Variable Operator is now select parameter type
  • Order no longer matters with [CGMZ] Toast Manager
Hi! Is there a way to make the achievements persists across different save files? What I mean is: when the player unlocks the achievement once, it'll be unlocked in the game and visible as unlocked on every save file no matter how many times they play it.

EDIT: Whoops, wrong post! I didn't see it's the MZ version. I'm using your plugin in MV and my question is about your achievement plugin in MV. I can't delete my comment, so I might as well leave it here...

​

How do you use exp as a reward?
@Scrachy Hi, you could award a common event and have that common event award exp.

Original thread: https://forums.rpgmakerweb.com/threads/cgmz-achievements.126623/