Autorank

Autorank

380k Downloads

Autorank 4: New Paths.yml

nathan93 opened this issue ยท 12 comments

commented

I am not a fan of this update that replaces the AdvancedConfig with this new Paths.yml, but I guess I'll have to live with it.

The wiki isn't giving an explanation for what I need. I simply want players to be ranked up if they meet certain requirements, none of this other extra complicated stuff. My AdvancedConfig on Autorank 3.8 looked like this http://pastebin.com/thtVjFTJ

All I want is simply for that to work. How might I do that with this new update?

commented

Do you have an example of what the configuration of Paths.yml might look like for Member to Novice? I understand that you need a prerequisite, however what I'm not understanding is how to format it in the configuration.

commented

Here's an example for the Member to Novice group:

Member to Novice:
    prerequisites:
        in group:
            value: Member
    requirements:
        mcmmo power level:
            value: 100
        time:
            value: 2h
    results:
        rank change: Novice
        command: 'bc &p has just been promoted to &bNovice&a, and earned &91 crate key!; crate givekey &p SionCrate 1; tell &p You have just earned 1 crate key!'
        message: 'Congratulations, you are now a Novice!'

There you go! Looks a lot like the AdvancedConfig.yml!

You could also add a display name to make it easier to choose the path:

Member to Novice:
    prerequisites:
        in group:
            value: Member
    requirements:
        mcmmo power level:
            value: 100
        time:
            value: 2h
    results:
        rank change: Novice
        command: 'bc &p has just been promoted to &bNovice&a, and earned &91 crate key!; crate givekey &p SionCrate 1; tell &p You have just earned 1 crate key!'
        message: 'Congratulations, you are now a Novice!'
    options:
        display name: 'To Novice'
commented

From what I understand, that is one path? How do I make it so they players don't have to consistently choose the path they want so they can get the ranks they desire? Or am I misunderstanding the setup?

commented

That is correct, this is one path. If you don't want players to explicitly choose (via the /ar choose command) what path they want, you can use the 'auto choose' option. It comes down to adding an auto choose: true to the options of a path.

commented

So just create more paths (i.e. Novice to Apprentice, etc.) and in each path set "autochoose" to true?

commented

Yes, don't forget the space in the 'auto choose'. That's how it works! Note that you need Autorank v4.0.1 for this to work.

commented

It's still not working how I'd it like to. I formatted it like you showed, however it still doesn't "auto rank" me when I meet the requirements set, and when I check the requirements in game, it says the only requirements are to be in a specific group.

commented

Can you show me your Paths file, Settings file and please do /ar debug and provide that file as well!

commented
commented

What does it show you when you do /ar check when you are in one of the paths?

commented

When I set myself as a member, I still have to manually select the ranking path, when I do /ar check in the path "Member to Novice" it will promote me and run the commands it's supposed to, but then I have to manually select the next path. It looks like auto choose isn't working (I have 4.0.1). I set myself as member, chose path "Member to Novice," ran /ar check, and was promoted to Novice. Then I tried selecting "Novice to Apprentice" and was told I did not meet the requirements to select that path.

commented

I'm sorry that you're having troubles with the new format. I tried to keep the format close to what Autorank originally had. The good news is that Paths.yml and the AdvancedConfig share more or less the same format. The biggest change you'll have to perform is that each path will have a prerequisite that is the 'in group'.

Take a look at your Member group. You would create a new path, for example Member to Novice, that has a prerequisite 'in group' with value 'Member'. The requirements and results sections can be copied from the AdvancedConfig.

That's it!