SolvedShatters Behavior ERROR?

Posts 1–13 of 13 · Page 1 of 1
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?
 
BEHAVIOR ERROR CLICK HERE
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
~ 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.
This is not skilly's source
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.
It's not the skilly's shatters i never mentioned skilly's either
~ 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()
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
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?
~ 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
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...."
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 @Danny @Luis
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 @Danny @Luis
lmfao it worked flawlessly on my server, ugly behavior tbh
Guess it's solved
/closed.
Posts 1–13 of 13 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?