MV - HO Achievement System

● ARCHIVED · READ-ONLY
Started by horst_onager 29 posts Page 2 of 2 View original ↗
  1. Digita1Data said:
    so I just downloaded this plug i n and sorry if this sounds stupid but I can't figure out how to make an achievement.

    No worries ^^ Basically, you just do the following:
    1. Install the plugin like you would any other: Copy the plugin file into the game's js/plugins folder, then add the plugin in the plugin manager.
    2. At the top of the plugin parameters, there's one called "Achievement List". Click on that to open the list of achievements for your game. If you're not in the demo project, this list should be empty at first.
    3. Click on the "empty" entry in that list (the one with the highest index displayed on the left, but without any text) to open the window for adding a new achievement. There you can edit the achievement's properties to your liking.
    4. Click OK until all the windows are closed. If you set the achievement to be visible by default, then the achievement should already be visible when you open the achievement menu. Make sure the plugin has at least one valid category assigned!
    5. To have the player progress/complete an achievement within the game, you should use the plugin commands as detailed in the plugin's help section.

    When in doubt about any of these steps, you can also look at the demo project to see how achievements are set up there.

    If all that doesn't work, could you explain in more detail what steps you've taken that did not work?
  2. (I don't speak too much English, sorry if it's broken)How can I make that the player obtains the achievement? Thanks.
  3. Red-rampager-Devloper said:
    (I don't speak too much English, sorry if it's broken)How can I make that the player obtains the achievement? Thanks.
    You can follow the steps as explained in my previous comment, or download the demo project and look at the events to see how it's done there.

    What have you tried so far that isn't working?
  4. Hey Horst, I want to use this script but I was going to make some adjustments because I wanted to use pictures (or faces) instead of icons, I hadn't decided yet.

    I did however encounter a bug though, I added the menu to my main menu and loading a game creates double the achievements. I haven't dug through the script yet, but this may be as simple as creating a new list on load/new.

    I also realized upon doing this, that the achievements are not saving globally. (They seem to be per save) Is this something you could add? It saves me the time from having to edit it, so I thought I would ask before I did.
  5. Khali said:
    Hey Horst, I want to use this script but I was going to make some adjustments because I wanted to use pictures (or faces) instead of icons, I hadn't decided yet.

    I did however encounter a bug though, I added the menu to my main menu and loading a game creates double the achievements. I haven't dug through the script yet, but this may be as simple as creating a new list on load/new.

    I also realized upon doing this, that the achievements are not saving globally. (They seem to be per save) Is this something you could add? It saves me the time from having to edit it, so I thought I would ask before I did.
    Hey, last I checked just loading a game wasnt a problem, but I can look into it a bit over the next days. Maybe you could send me a minimal example project where I can reproduce this?

    Regarding adding global saving, maybe? I'll have to see how it works out. I added it to the MZ version already, but the data is structured differently here which makes it a bit more difficult. You could check out some other plugins that let you save and load arbitrary global data, maybe that's an easier solution for you than meddling with the script.
  6. The issue is that I've created a custom menu using an RMMV map, so I added your achievement scriptcall to that menu, just pushing the scene. It works as intended, but because no data is ever loaded and the map is being treated as a main menu, all of the achievements are technically not unlocked, because the unlock flags are stored/baked into the saves.

    If I start a new game, the issue doesn't arise. If I load a game, it generates every achievement twice. I'm not as familiar with JS programming, I'm still learning, but if this were C# I would think the issue here is that whatever the JS equivalent of list<achievements> = new list<achievements>; to clean the list before repopulating it might be the issue when loading the save. I would have to dig through other scripts to see how others have made it work though. I believe it's the fact that I'm able to push the scene before loading any map scene that's causing the issue. You might be able to easily recreate this simply by starting a game, opening the console at the main menu and pushing the scene by inputting:
    Code:
    SceneManager.push(Scene_Achievements);
    Then load a save and see if it duplicates.

    [edit]
    I thought it may be because I'm using Hime's PreTitle Events to load a map scene before loading a game because starting a new game works fine. However, I tried starting a new game, pushing Scene_Load and loading a save, and it broke again. Thinking this was the cause, I turned it off and returned it to the standard title screen and loaded a save, and again, it broke and displayed double achievements.
  7. I just tested again and cant reproduce the doubled achievements with just the plugin, so it's most likely an incompatibility with some other plugin.

    I also tested with the Hime plugin you mentioned, for the pre-title map I used just an empty map with a single event that pushes Scene_Load, also no issues there.

    In any case, I just pushed a new version of the plugin to itch.io with a fix that might still solve this, let me know if it helped. If it didnt, I can look some more into this, but then you have to provide me with the mentioned example project and exact steps to reproduce the issue.
  8. horst_onager said:
    I just tested again and cant reproduce the doubled achievements with just the plugin, so it's most likely an incompatibility with some other plugin.
    This could be the case, the current project is so far along that it would be hard to do this. I may be able to move the plugin combo to a separate project so you can see what plugins are in use.

    I did make a new discovery though!:
    Currently, the All list is functioning correctly, it shows the correct list and only one of each as it's supposed to, as of your new update. However, in my "Story" category, the same glitch still applies, and when I discovered I had seven copies of each achievement, it occurred to me that this might be happening each time the game is saved, so I made a new save, and sure enough, there are 8 copies of each now. I only have one category so I haven't tried with others yet.

    [edit]
    I created a new category, and now, it is only the Story (Category 2) category that duplicates achievements. I'm not sure if this helps get to the bottom of this, but category 3 doesn't appear to be doing it on save.
  9. Khali said:
    [edit]
    I created a new category, and now, it is only the Story (Category 2) category that duplicates achievements. I'm not sure if this helps get to the bottom of this, but category 3 doesn't appear to be doing it on save.
    What, I feel like that just makes it even weirder ^^'

    Maybe you can try creating a new project and copying all your plugins and plugin settings over, then disable them one-by-one to see which one causes this.