@Divided thanks for bringing this to my attention it will be fixed in the next release.
MZ [CGMZ] Achievements
JS Plugin Releases (RMMZ)Hi all, update for this plugin today to v1.2.0. It adds a lot of frequently requested features such as automatic recognition of new achievements in saved games and the ability to use text codes in the description. It also fixes some bugs, thank you to anyone who reported them!
Unfortunately due to the way descriptions were previously stored, they may have some weird spacing issues. You can fix this for saved games using the new Change Description plugin command. This issue will not affect new games.
Version 1.2.0:
- Added ability to use text codes in achievement descriptions
- New achievements should now be automatically recognized by saved games
- Added ability to change pre and post descriptions
- Added option to change the label / header text color
- Added option to change text alignment of list window
- Added option to change text alignment of totals window
- Fixed bug with toast audio on achievement earn
- Fixed bug with padding on list window
- Removed plugin command to manually recognize new achievements in saved game
Unfortunately due to the way descriptions were previously stored, they may have some weird spacing issues. You can fix this for saved games using the new Change Description plugin command. This issue will not affect new games.
Version 1.2.0:
- Added ability to use text codes in achievement descriptions
- New achievements should now be automatically recognized by saved games
- Added ability to change pre and post descriptions
- Added option to change the label / header text color
- Added option to change text alignment of list window
- Added option to change text alignment of totals window
- Fixed bug with toast audio on achievement earn
- Fixed bug with padding on list window
- Removed plugin command to manually recognize new achievements in saved game
Is there a way to make the achievement menu in the title screen instead of in-game and that the achievements are shared across every playfile ?
@Kaga this is not something default, but if you want it shared, there
is a way to do that on a different way if you like too.
I cannot say if there is plugin for MZ though, but this is a way:
find a plugin or create a simple one to show a command on Title Screen.
you can use scene command required to open this up.
to make it shared, in MV Olivia had "MetaControl" plugin, which enables,
local and global switches/variables that are persistend through save files.
if there is something in MZ, you can use the same ID, but this require a switch
for each achievement.
is a way to do that on a different way if you like too.
I cannot say if there is plugin for MZ though, but this is a way:
find a plugin or create a simple one to show a command on Title Screen.
you can use scene command required to open this up.
to make it shared, in MV Olivia had "MetaControl" plugin, which enables,
local and global switches/variables that are persistend through save files.
if there is something in MZ, you can use the same ID, but this require a switch
for each achievement.
I see, thank you ! I'll try to work it out !
Hello, when using the achievement plugin with the toast manager and menu command window plugins I get this message when opening the achievements window in the menu (I'm not using the encyclopaedia plugin)
@Spundungus Thanks for reporting this bug, it is probably something I missed when refactoring the plugin for v1.2.0. I will post an official fix tomorrow, but for now I have attached an unofficial fix to this post which should fix your issue.
Thank you very much that worked a treat. You're amazing.
Hi all, bug fix today for variable achievements not auto completing:
Version 1.2.2:
- Fixed bug with variable achievements not auto completing when they should
Version 1.2.2:
- Fixed bug with variable achievements not auto completing when they should
Hi Casper! I love this plugin, but there's something I can't understand.
If I set an achievement to "secret" it won't be shown to the player until completed.
Is there a way to have the player "unlock" this secret achievement at some point in the game and visualize it as a normal achievement? Or I need to implement some quest systems to do something like this?
If I set an achievement to "secret" it won't be shown to the player until completed.
Is there a way to have the player "unlock" this secret achievement at some point in the game and visualize it as a normal achievement? Or I need to implement some quest systems to do something like this?
Hey so this plugin has worked very well for me up to this point, however i did have an issue. i wanted to make an achievement for unlocking all other 16 achievements, and when this is achieved i want it to reward a switch that makes a cool statue of an 100% symbol appear in the hub. However, this has not been working at all. i set it to only one achievement for easy testing, but i also tried it with all 16. the text box for it never shows up EVER, even though i have it checked to show that. Or, the game just randomly crashes for no reason saying "switchobj" is missing. I have rewritten this achievement many times, but no matter my efforts it still does not work. and i assure you im 99% sure i made no mistakes as i rewrote the achievement several times.
for anyone who will ask: automatic tracking is set to true, and none of the boxes are empty, which i know crashes the game (it has a different error message)
does this system just not work well with the plugin or am i doing something wrong?
for anyone who will ask: automatic tracking is set to true, and none of the boxes are empty, which i know crashes the game (it has a different error message)
does this system just not work well with the plugin or am i doing something wrong?
@chrimp It is just this achievement causing problems? Could you open up the achievement in the plugin params, switch to the text tab at the top (should default to structure) and copy+paste that to me in a code tag so none of the formatting is lost?
If you do not see the text box (assuming you mean the toast window?) when it is earned, that probably means it is not being earned although it could be that you do not have CGMZ Toast manager which is required for that functionality. Do you have CGMZ Toast Manager imported and above this plugin in the plugin list?
For the crash, could you press F8 to open dev tools console, switch to the console tab at the top, and let me know what the full error trace is? Also, when does the game crash, when you open the achievement scene, when you start the game, when you earn the achievement?
You mentioned you have tried re-writing the achievement multiple times. If you saved between then, the saved game might not know you have changed the achievement so I would recommend testing in a new game or using the Reinitialize plugin command to reset achievements.
If you do not see the text box (assuming you mean the toast window?) when it is earned, that probably means it is not being earned although it could be that you do not have CGMZ Toast manager which is required for that functionality. Do you have CGMZ Toast Manager imported and above this plugin in the plugin list?
For the crash, could you press F8 to open dev tools console, switch to the console tab at the top, and let me know what the full error trace is? Also, when does the game crash, when you open the achievement scene, when you start the game, when you earn the achievement?
You mentioned you have tried re-writing the achievement multiple times. If you saved between then, the saved game might not know you have changed the achievement so I would recommend testing in a new game or using the Reinitialize plugin command to reset achievements.
sorry it took me a while to respond. Yes, I do have toast manager installed, and I have rebooted the game several times while testing. And to clarify about crashing, that had only happened when I used a thing to unlock every achievement at once, with no time in between, so I think the crash there was due to that (it happens nowhere else) Otherwise, the toast box simply does not show up but it silently unlocks, and the switch it is supposed to reward never is given. Here is my code:
Code:
{"Name":"completionist","Points":"9999","Pre Description":"\"do every achievement\"","Post Description":"\"\"","Difficulty":"no","Secret":"false","Automatic":"true","Rewards":"{\"Currency\":\"0\",\"Items\":\"[]\",\"Weapons\":\"[]\",\"Armors\":\"[]\",\"Switches\":\"[\\\"{\\\\\\\"Switch\\\\\\\":\\\\\\\"8\\\\\\\",\\\\\\\"On/Off\\\\\\\":\\\\\\\"true\\\\\\\",\\\\\\\"Description\\\\\\\":\\\\\\\"cool statue\\\\\\\"}\\\"]\",\"Variables\":\"[]\"}","Requirements":"{\"Currency\":\"0\",\"Items\":\"[]\",\"Weapons\":\"[]\",\"Armors\":\"[]\",\"Switches\":\"[]\",\"Variables\":\"[]\",\"Saves\":\"0\",\"Playtime\":\"0\",\"Steps\":\"0\",\"Battles\":\"0\",\"Wins\":\"0\",\"Escapes\":\"0\",\"Achievements Earned\":\"16\",\"Achievement Points\":\"0\",\"Encyclopedia Total\":\"0\",\"Encyclopedia Bestiary\":\"0\",\"Encyclopedia Items\":\"0\",\"Encyclopedia Armors\":\"0\",\"Encyclopedia Weapons\":\"0\",\"Encyclopedia Skills\":\"0\",\"Encyclopedia States\":\"0\",\"Professions\":\"[]\"}","Popup":"{\"Display?\":\"true\",\"Sound\":\"luck\",\"Image\":\"\",\"Color\":\"14\"}"}
Hi all,
Small update today for bugfix with switch/variable rewards.
Version 1.2.3
- Fixed crash with achievements that had switch/variable rewards
Small update today for bugfix with switch/variable rewards.
Version 1.2.3
- Fixed crash with achievements that had switch/variable rewards
good work! it works very well so far
Hi all, 👋
This plugin has been updated to version 1.3.0 today!
This update modernizes control over the display window, so now you can reorder or disable any line in the display window like most of my other plugins . Other small things were updated as well, including a parameter to show separate text for Points in the total and display window, a parameter to display the total points possible in the total window, and a param to display the total achievements possible in the total window. For some reason, when I initially made this plugin, I hard-coded some English words to describe progress bars like for criterias like "Number of Saves". Now every piece of text should be controlled by text parameters, especially important for games not made in English!
Version 1.3.0:
- Added ability to choose which order & info to display for achievements
- Added param for Points text in total window (separate from Display window)
- Added param to display total achievements possible in total window
- Added param to display total points possible in total window
- Added text params for achievement requirement text (on progress bar)
- Documentation Updated
This plugin has been updated to version 1.3.0 today!
This update modernizes control over the display window, so now you can reorder or disable any line in the display window like most of my other plugins . Other small things were updated as well, including a parameter to show separate text for Points in the total and display window, a parameter to display the total points possible in the total window, and a param to display the total achievements possible in the total window. For some reason, when I initially made this plugin, I hard-coded some English words to describe progress bars like for criterias like "Number of Saves". Now every piece of text should be controlled by text parameters, especially important for games not made in English!
Version 1.3.0:
- Added ability to choose which order & info to display for achievements
- Added param for Points text in total window (separate from Display window)
- Added param to display total achievements possible in total window
- Added param to display total points possible in total window
- Added text params for achievement requirement text (on progress bar)
- Documentation Updated
Hi all, CGMZ Achievements has been updated to v1.4.0 !
This update adds a long requested feature: categories! Now you can set your achievements to be separated into categories instead of just one big list. You can also change an achievement from secret to non-secret via plugin command. There are a few new parameters for scene customization, including custom background image and transparent windows. With RMMZ 1.6.0 there was a new color selector added for plugins, so I have also updated the color parameters to use this instead of needing to manually type in a number to reference a text color.
Version 1.4.0:
- Added categories of achievements
- Added plugin command to change an achievement's secret property
- Added param for transparent windows in achievement scene
- Added param to use a custom background image in achievement scene
- Updated color parameters to use the new color selector for plugins
This update adds a long requested feature: categories! Now you can set your achievements to be separated into categories instead of just one big list. You can also change an achievement from secret to non-secret via plugin command. There are a few new parameters for scene customization, including custom background image and transparent windows. With RMMZ 1.6.0 there was a new color selector added for plugins, so I have also updated the color parameters to use this instead of needing to manually type in a number to reference a text color.
Version 1.4.0:
- Added categories of achievements
- Added plugin command to change an achievement's secret property
- Added param for transparent windows in achievement scene
- Added param to use a custom background image in achievement scene
- Updated color parameters to use the new color selector for plugins
Hey there. Love the plugin. It was working great for a while. As I added entries to the system I started getting the below error:
rmmz_managers.js:2032 SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at CGMZ_Achievement.initializeVariables (js/plugins/Casper%20Gaming/CGMZ_Achievements.js:2081:25)
at CGMZ_Achievement.initialize (js/plugins/Casper%20Gaming/CGMZ_Achievements.js:2032:7)
at new CGMZ_Achievement (js/plugins/Casper%20Gaming/CGMZ_Achievements.js:1987:21)
at CGMZ_Core.initializeAchievements (js/plugins/Casper%20Gaming/CGMZ_Achievements.js:2201:23)
at CGMZ_Core.createPluginData (js/plugins/Casper%20Gaming/CGMZ_Achievements.js:2180:7)
at CGMZ_Core.initialize (js/plugins/Casper%20Gaming/CGMZ_Core.js:585:7)
at new CGMZ_Core (js/plugins/Casper%20Gaming/CGMZ_Core.js:578:21)
at DataManager.createGameObjects (js/plugins/Casper%20Gaming/CGMZ_Core.js:714:10)
If I remove all the added achievements, then the crash doesn't happen. But once it happens, I have to completely remove the addon and re-add it for it to work again. It's a weird issue.
I am using v1.4 of Achievements and v1.71 of the Core.
Thank you in advance,
Sindaine
rmmz_managers.js:2032 SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at CGMZ_Achievement.initializeVariables (js/plugins/Casper%20Gaming/CGMZ_Achievements.js:2081:25)
at CGMZ_Achievement.initialize (js/plugins/Casper%20Gaming/CGMZ_Achievements.js:2032:7)
at new CGMZ_Achievement (js/plugins/Casper%20Gaming/CGMZ_Achievements.js:1987:21)
at CGMZ_Core.initializeAchievements (js/plugins/Casper%20Gaming/CGMZ_Achievements.js:2201:23)
at CGMZ_Core.createPluginData (js/plugins/Casper%20Gaming/CGMZ_Achievements.js:2180:7)
at CGMZ_Core.initialize (js/plugins/Casper%20Gaming/CGMZ_Core.js:585:7)
at new CGMZ_Core (js/plugins/Casper%20Gaming/CGMZ_Core.js:578:21)
at DataManager.createGameObjects (js/plugins/Casper%20Gaming/CGMZ_Core.js:714:10)
If I remove all the added achievements, then the crash doesn't happen. But once it happens, I have to completely remove the addon and re-add it for it to work again. It's a weird issue.
I am using v1.4 of Achievements and v1.71 of the Core.
Thank you in advance,
Sindaine
@Sindaine The error points to your achievement's requirement or reward variables. Please check the problematic achievements' requirements and rewards parameters, specifically the variable requirement or reward. At minimum, you should see [] for the variables list. It cannot be blank or you will get that error.
Lol Just found that out going through them 1 by 1. Haha good catch, great plugin!
Thank you so much!
Sindaine
Original thread: https://forums.rpgmakerweb.com/threads/cgmz-achievements.126623/