1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Achievement System 2016-09-23

not mine

  1. Frosttiger
    Offline

    Frosttiger Member

    Joined:
    Jul 29, 2016
    Messages:
    164
    Likes Received:
    6
    #1 Frosttiger, Sep 23, 2016
    Last edited: Oct 1, 2016
    • Two Thumbs Up Two Thumbs Up x 1
  2. Tasanar
    Offline

    Moderator

    Joined:
    Oct 16, 2014
    Messages:
    4,144
    Likes Received:
    93
    This is awesome man thank you!

    A great framework to start on. So what ones are disabled right now due to no event sinks?

    It looks like Discovery is one of them.
    --- Double Post Merged, Sep 24, 2016 ---
    Okay so a bug.

    Kill 5 dogs restart and BOOM achievement is gone.

    After this point can no longer gain that achievement. Tried with both the Achievement memory stone added and removed.
    --- Double Post Merged, Sep 24, 2016 ---
    Nevermind.

    Add stone first,

    Restart,

    then play around with it.
     
  3. Frosttiger
    Offline

    Frosttiger Member

    Joined:
    Jul 29, 2016
    Messages:
    164
    Likes Received:
    6
    yeah far as I know it saves the tasks but I cant figure out the null crash with the discovery one .

    The discovery one works and all. but if a player logs out in any region the shard crashes with a null.
     
  4. sahisahi
    Offline

    sahisahi Member

    Joined:
    Jan 13, 2016
    Messages:
    621
    Likes Received:
    17
    I get error: im using runuo2.2



    KUSTOM/Achievement System/Gumps/AchievementGump.cs:
    CS0241: Line 13: Default parameter specifiers are not permitted

    This is the method causing the error:

    Code (C#):
    1. public AchievementGump(Dictionary<int, AchieveData> achieves, int total,int category = 1) : base(25, 25)

    Any clue? thanks
     
  5. Tasanar
    Offline

    Moderator

    Joined:
    Oct 16, 2014
    Messages:
    4,144
    Likes Received:
    93
    This system was most likely designed for newer versions of ServUO.
     
    • WTF WTF x 1
  6. sahisahi
    Offline

    sahisahi Member

    Joined:
    Jan 13, 2016
    Messages:
    621
    Likes Received:
    17
    Booo :( Oh well
     
  7. Tasanar
    Offline

    Moderator

    Joined:
    Oct 16, 2014
    Messages:
    4,144
    Likes Received:
    93
    With all the event sinks and stuff too, it has been years since I looked at RunUO. I am sure it can be modified to work but will most likely have to be done by those who use RunUO still.
     
    • Like Like x 1
  8. tass23
    Offline

    Moderator

    Joined:
    Aug 28, 2013
    Messages:
    1,017
    Likes Received:
    134
    Any scripts can be adapted to work with ServUO. I haven't had time to look at this yet to figure out the null issue, but my guess is never letting it result in a null value is a step in the right direction.

    @sahisahi I don't know exactly what is causing your error, but if I have time to look at this system (or anyone else for that matter), I'm sure it can be fixed.
     
    • Thanks! Thanks! x 1
  9. Tasanar
    Offline

    Moderator

    Joined:
    Oct 16, 2014
    Messages:
    4,144
    Likes Received:
    93
    It is a very nice drag and drop system but it needs a little TLC. The gump closes at random ect.
     
    • Like Like x 1
  10. PyrO
    Offline

    PyrO Active Member

    Joined:
    Jan 27, 2015
    Messages:
    921
    Likes Received:
    51
    The error just comes from the old version of net framework that is set in runuo 2.2, so the issue is "int category =1". So remove the =1 and I guess you will need to adjust the script further since it may not actually set the category in some places
     
    • Like Like x 1
    • Two Thumbs Up Two Thumbs Up x 1
  11. tass23
    Offline

    Moderator

    Joined:
    Aug 28, 2013
    Messages:
    1,017
    Likes Received:
    134
    Ha! Yeah, I've run into situations like that with a lot of the old scripts in my archives!

    If someone doesn't beat me to it, I'll get around to updating this in the future ;)
     
    • Two Thumbs Up Two Thumbs Up x 1
  12. Tasanar
    Offline

    Moderator

    Joined:
    Oct 16, 2014
    Messages:
    4,144
    Likes Received:
    93
    Would be awesome! Ill work on adding more quests too. A drag and drop achievement system would be awesome.
     
  13. sahisahi
    Offline

    sahisahi Member

    Joined:
    Jan 13, 2016
    Messages:
    621
    Likes Received:
    17

    I did what you said, now im getting 3 errors:


    Errors:
    + KUSTOM/Achievement System/AchieveTypes/DiscoveryAchievement.cs:
    CS0246: Line 33: The type or namespace name 'OnEnterRegionEventArgs' could n
    ot be found (are you missing a using directive or an assembly reference?)
    + KUSTOM/Achievement System/AchieveTypes/HarvestAchievement.cs:
    CS0246: Line 17: The type or namespace name 'ResourceHarvestSuccessEventArgs
    ' could not be found (are you missing a using directive or an assembly reference
    ?)
    + KUSTOM/Achievement System/AchieveTypes/ItemCraftedAchievement.cs:
    CS0246: Line 18: The type or namespace name 'CraftSuccessEventArgs' could no
    t be found (are you missing a using directive or an assembly reference?)
     
  14. Frosttiger
    Offline

    Frosttiger Member

    Joined:
    Jul 29, 2016
    Messages:
    164
    Likes Received:
    6
    runuo doesn't have them eventsinks. if you look at where the eventsinks are in the core and add them to you runuo core then the system should work but make sure you do them the way the event sinks are set up/

    Well I'm glad people our willing to jump in and expand on these I think its a nice little drag and drop system that doesn't require veta nex or any other scripts.

    if you call make new event sinks please share I was going to work on these my self but I have other projects that I think is more importin then a achievement system that makes uo like any other game., but hell if I find a fix or a bug ill try my bets to help out.
     
    • Two Thumbs Up Two Thumbs Up x 1
  15. sahisahi
    Offline

    sahisahi Member

    Joined:
    Jan 13, 2016
    Messages:
    621
    Likes Received:
    17
    Im not good at scripting, i wish i could fix it for runuo
     
  16. tass23
    Offline

    Moderator

    Joined:
    Aug 28, 2013
    Messages:
    1,017
    Likes Received:
    134
    I stand corrected. I was unaware this setup would require Core modifications (edits to Server files). My original Core was damaged years ago, so I can recompile mine, which means I could never install a system like this.

    So, I guess my question is now:
    Is it possible to make "core" edits without recompiling the core, i.e. could a system like this be installed by adding the EventSink in for each achievement, right in the Achievement Type script?
     
  17. Tasanar
    Offline

    Moderator

    Joined:
    Oct 16, 2014
    Messages:
    4,144
    Likes Received:
    93
    It does not need core mods if using newest SVN of ServUO. It is strictly drag and drop.
     
  18. tass23
    Offline

    Moderator

    Joined:
    Aug 28, 2013
    Messages:
    1,017
    Likes Received:
    134
    Yep, I see that, but some people might not be.
     
  19. Tasanar
    Offline

    Moderator

    Joined:
    Oct 16, 2014
    Messages:
    4,144
    Likes Received:
    93
    Sorry didn't understand what / who you were referring to.
     
  20. Tim
    Offline

    Tim Member

    Joined:
    Feb 4, 2015
    Messages:
    101
    Likes Received:
    5
    The Script that is in question belongs to darklotus.
    Here is a peace of the conversation we had :)

    Also You want to delete the skills and and item crafted achievments he told me that something runuo has that servuo don't . Got to do with event sink.

    darklotus said...
    "Entire system is mostly just a proof of concept, since i saw so many people looking for a system like this and no one was sharing, so i figured a base to start from would help.
    Im happy to accept fixes and additions on github from anyone for the system. Hopefully have time one day to flesh it out a bit more and add some more documentation."
     
    • Two Thumbs Up Two Thumbs Up x 3
Similar Threads: Achievement System
Forum Title Date
Script Support Achievement System won't compile Nov 9, 2017
Script Support Achievement SystemHelp Feb 3, 2017
Script Support Achievement System and hide complete task Jan 11, 2017
Script Support Achievement System Gump error Oct 3, 2016
Looking For Help Paying $ us dollars for achievement system and guild perk system Apr 20, 2016
Custom Releases Here is my achievement system that you can make your own achievements. May 26, 2015
Think Tank Achievement System Nov 6, 2014