Results 1 to 13 of 13
  1. #1
    DBFunx's Avatar
    Join Date
    Jul 2015
    Gender
    male
    Posts
    166
    Reputation
    10
    Thanks
    37

    Shatters Behavior ERROR?

    So after implementing my new shatters behavior i got this weird ERROR? does anyone know what this error means or any ideas on how to fix it?
     
    System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
    at System.Collections.Generic.Dictionary`2.get_Item(T Key key)
    at wServer.logic.BehaviorDb.ctor.Init(String objType, State rootState, ILootDef[] defs) in C:\Users\REALM\Desktop\Divinity Realms\Rotmg PServer\Gummy's Realm\wServer\logic\BehaviorDb.cs:line 112
    at wServer.logic.BehaviorDb.<>c.<.ctor>b__25_23() in C:\Users\REALM\Desktop\Divinity Realms\Rotmg PServer\Gummy's Realm\wServer\logic\db\BehaviorDb.Shatters.cs:line 16
    at wServer.logic.BehaviorDb..ctor(RealmManager manager) in C:\Users\REALM\Desktop\Divinity Realms\Rotmg PServer\Gummy's Realm\wServer\logic\BehaviorDb.cs:line 64
    at wServer.realm.RealmManager.Initialize() in C:\Users\REALM\Desktop\Divinity Realms\Rotmg PServer\Gummy's Realm\wServer\realm\RealmManager.cs:line 225
    at wServer.Program.Main(String[] args) in C:\Users\REALM\Desktop\Divinity Realms\Rotmg PServer\Gummy's Realm\wServer\Program.cs:line 55

  2. #2
    The First Sin's Avatar
    Join Date
    May 2016
    Gender
    male
    Location
    At the Jugg House
    Posts
    54
    Reputation
    10
    Thanks
    16
    My Mood
    Devilish
    ~ If you are going to use Skilly source items then use the source itself.

    ~ Check for errors or misspellings or items you do not own.
    Be thankful that you're blessed yet cursed with life and death.
     



    Violence, Bad Words, Scammers, Pornography, Drugs, Discrimination, Gambling, All on the internet.
    PEGI FAQ
    Review Internet Safety and Stay Safe Kids.

     


    ESRB RATINGS GUIDE
    Review Internet Safety and Stay Safe Kids.



    Gaming since 1994
    Microsoft Computing since 2000
    C since 2001
    Java since 2003
    Mobile since 2007
    Python since 2010


  3. #3
    DBFunx's Avatar
    Join Date
    Jul 2015
    Gender
    male
    Posts
    166
    Reputation
    10
    Thanks
    37
    This is not skilly's source

  4. #4
    OmegaBM's Avatar
    Join Date
    Oct 2015
    Gender
    male
    Posts
    102
    Reputation
    33
    Thanks
    84
    My Mood
    Cold
    Quote Originally Posted by DBFunx View Post
    This is not skilly's source
    He's talking about using Skilly's behaviors/items. If you're going to use them in your FSoD server, might as well use Skilly's source. I don't know if you're using his behaviors/items though, its just a prediction.

  5. #5
    DBFunx's Avatar
    Join Date
    Jul 2015
    Gender
    male
    Posts
    166
    Reputation
    10
    Thanks
    37
    It's not the skilly's shatters i never mentioned skilly's either

  6. #6
    The First Sin's Avatar
    Join Date
    May 2016
    Gender
    male
    Location
    At the Jugg House
    Posts
    54
    Reputation
    10
    Thanks
    16
    My Mood
    Devilish
    ~ I don't like replying to a post more then 1 time but this will be an exception.

    ~ Show us your behavior and we can point out the problem, or at least the loot segment that you edited previously to => encountering this error

    ~ Currently with the given information we can only speculate that the probably errors is that you placed the Threshold/MostDamagers/etc.. in the incorrect area or you placed incorrectly/misspelled in the general corresponding loot definitions such as ItemLoot.

    ~ Another speculation is that you misspelled the enemy name located in Init()
    Last edited by The First Sin; 05-30-2016 at 11:26 PM.
    Be thankful that you're blessed yet cursed with life and death.
     



    Violence, Bad Words, Scammers, Pornography, Drugs, Discrimination, Gambling, All on the internet.
    PEGI FAQ
    Review Internet Safety and Stay Safe Kids.

     


    ESRB RATINGS GUIDE
    Review Internet Safety and Stay Safe Kids.



    Gaming since 1994
    Microsoft Computing since 2000
    C since 2001
    Java since 2003
    Mobile since 2007
    Python since 2010


  7. #7
    DBFunx's Avatar
    Join Date
    Jul 2015
    Gender
    male
    Posts
    166
    Reputation
    10
    Thanks
    37
    Quote Originally Posted by The First Sin View Post
    ~ I don't like replying to a post more then 1 time but this will be an exception.

    ~ Show us your behavior and we can point out the problem, or at least the loot segment that you edited previously to => encountering this error

    ~ Currently with the given information we can only speculate that the probably errors is that you placed the Threshold/MostDamagers/etc.. in the incorrect area or you placed incorrectly/misspelled in the general corresponding loot definitions such as ItemLoot.
    Alright this is my itemloot
    .Init("shtrs Encounter Chest",
    new State(
    new State("Idle",
    new ConditionalEffect(ConditionEffectIndex.Invulnerabl e),
    new TimedTransition(5000, "UnsetEffect")
    ),
    new State("UnsetEffect")
    ),
    new Threshold(0.15,
    new TierLoot(11, ItemType.Weapon, 0.06),
    new TierLoot(12, ItemType.Weapon, 0.05),
    new TierLoot(6, ItemType.Ability, 0.05),
    new TierLoot(12, ItemType.Armor, 0.06),
    new TierLoot(13, ItemType.Armor, 0.05),
    new TierLoot(6, ItemType.Ring, 0.06),
    new ItemLoot("Potion of Attack", 1),
    new ItemLoot("Potion of Defense", 0.5),
    new ItemLoot("The Tower Tarot Card", 0.04),
    new ItemLoot("Bracer of the Guardian", 0.01) //jacob
    )
    )
    If you need more please contact me via MGPH or @DBFunx on skype if you have it

  8. #8
    The First Sin's Avatar
    Join Date
    May 2016
    Gender
    male
    Location
    At the Jugg House
    Posts
    54
    Reputation
    10
    Thanks
    16
    My Mood
    Devilish
    ~ In case you didn't know more then 1 enemy can have loot

    ~ Misspellings can take place in more then 1 enemy

    ~ Check every "Quotes" for misspellings
    Be thankful that you're blessed yet cursed with life and death.
     



    Violence, Bad Words, Scammers, Pornography, Drugs, Discrimination, Gambling, All on the internet.
    PEGI FAQ
    Review Internet Safety and Stay Safe Kids.

     


    ESRB RATINGS GUIDE
    Review Internet Safety and Stay Safe Kids.



    Gaming since 1994
    Microsoft Computing since 2000
    C since 2001
    Java since 2003
    Mobile since 2007
    Python since 2010


  9. #9
    DBFunx's Avatar
    Join Date
    Jul 2015
    Gender
    male
    Posts
    166
    Reputation
    10
    Thanks
    37
    I only have 4 item loots that was 1 i checked the rest misspellings i'll check those every quote will take a while "1300 lines...."

  10. #10
    MikeRaarupBirk's Avatar
    Join Date
    Mar 2016
    Gender
    male
    Posts
    1,583
    Reputation
    38
    Thanks
    3,775
    My Mood
    Stressed
    You dont need a state for loot...

    - - - Updated - - -

    Quote Originally Posted by DBFunx View Post
    Alright this is my itemloot
    .Init("shtrs Encounter Chest",
    new State(
    new State("Idle",
    new ConditionalEffect(ConditionEffectIndex.Invulnerabl e),
    new TimedTransition(5000, "UnsetEffect")
    ),
    new State("UnsetEffect")
    ),
    new Threshold(0.15,
    new TierLoot(11, ItemType.Weapon, 0.06),
    new TierLoot(12, ItemType.Weapon, 0.05),
    new TierLoot(6, ItemType.Ability, 0.05),
    new TierLoot(12, ItemType.Armor, 0.06),
    new TierLoot(13, ItemType.Armor, 0.05),
    new TierLoot(6, ItemType.Ring, 0.06),
    new ItemLoot("Potion of Attack", 1),
    new ItemLoot("Potion of Defense", 0.5),
    new ItemLoot("The Tower Tarot Card", 0.04),
    new ItemLoot("Bracer of the Guardian", 0.01) //jacob
    )
    )
    If you need more please contact me via MGPH or @DBFunx on skype if you have it
    There is a random space in Invulnerable
    Did you remove the old Shtrs Encounter Chest behavior before adding a new one?
    Last edited by MikeRaarupBirk; 05-31-2016 at 04:43 AM.

  11. #11
    DBFunx's Avatar
    Join Date
    Jul 2015
    Gender
    male
    Posts
    166
    Reputation
    10
    Thanks
    37
    I think there is a error with my server i had a friend use the code and it worked just fine please close since there is probably no way to fix it unless i fix all errors on my server @Joe @Nyaro's Panda

  12. #12
    Desire's Avatar
    Join Date
    Sep 2013
    Gender
    male
    Location
    Insert Name Here
    Posts
    1,039
    Reputation
    58
    Thanks
    1,394
    My Mood
    Amused
    Quote Originally Posted by DBFunx View Post
    I think there is a error with my server i had a friend use the code and it worked just fine please close since there is probably no way to fix it unless i fix all errors on my server @Joe @Nyaro's Panda
    lmfao it worked flawlessly on my server, ugly behavior tbh
    im not really back nor will i ever get back into developing pservers
    though ill check once every month atleast


     

  13. #13
    Luis's Avatar
    Join Date
    Aug 2013
    Gender
    male
    Posts
    2,801
    Reputation
    348
    Thanks
    1,846
    My Mood
    Psychedelic
    Guess it's solved
    /closed.

Similar Threads

  1. [Solved] Fabiano's Source Shatters Behaviors?
    By Desire in forum Realm of the Mad God Private Servers Help
    Replies: 5
    Last Post: 05-14-2016, 03:09 PM
  2. Hellbreath Int Error?
    By RebornAce in forum General
    Replies: 10
    Last Post: 03-06-2009, 09:04 PM
  3. Shattered Galaxy
    By Chronologix in forum General Gaming
    Replies: 5
    Last Post: 01-09-2006, 09:45 AM
  4. Shattered Galaxy
    By Chronologix in forum General Game Hacking
    Replies: 2
    Last Post: 01-03-2006, 04:39 PM