Operations that change non-concurrent collections must have exclusive access. A concurrent update was performed on this collection and corrupted its state. The collection's state is no longer correct.

@template(Header)
#################

   at System.Collections.Generic.Dictionary`2.FindValue(TKey key)
   at siteface.Core.Template.Execute(String html) in /home/simon/Documents/siteface/siteface/sitefaceCore/Core/Template.cs:line 631
   at siteface.Core.Template.Execute() in /home/simon/Documents/siteface/siteface/sitefaceCore/Core/Template.cs:line 604
   at siteface.module.CMSModule.<>c__DisplayClass2_0.<RegisterCallbacks>b__3(String[] str) in /home/simon/Documents/siteface/siteface/moduleCMS/Modules/CMSModule.cs:line 81
   at TemplateSlang.TplCall.Visit(ExecContext e) in /home/simon/Documents/siteface/siteface/sitefaceCore/TemplateSlang/TemplateSlangMain.cs:line 3441

Change image of inventory item

  • #1, by constantinMonday, 17. July 2017, 14:34 8 years ago
    I have read quite some hours about this problem, but maybe the new version offers a better solution. 
    i want to change the image of the inventory item as soon as it gets clicked in the inventory with an empty image. (i use a command-cursor instead of a dragged item, because it suits the game better.) removing the item and adding a new (empty) one is not possible, because it doesnt get the same position. (new items seem to always be added at the last position.) 
    is there a way to change to change the image? i have read about the activeanimation command with lua, but how can i control the animation? the inventory-item-animations dont show up in the "play animation" action parts.
    thanks for any advise. :-) 

    Forum Fan

    167 Posts


Operations that change non-concurrent collections must have exclusive access. A concurrent update was performed on this collection and corrupted its state. The collection's state is no longer correct.
</section>
@template(Footer)
#################

   at System.Collections.Generic.Dictionary`2.FindValue(TKey key)
   at siteface.Core.Template.Execute(String html) in /home/simon/Documents/siteface/siteface/sitefaceCore/Core/Template.cs:line 631
   at siteface.Core.Template.Execute() in /home/simon/Documents/siteface/siteface/sitefaceCore/Core/Template.cs:line 604
   at siteface.module.CMSModule.<>c__DisplayClass2_0.<RegisterCallbacks>b__3(String[] str) in /home/simon/Documents/siteface/siteface/moduleCMS/Modules/CMSModule.cs:line 81
   at TemplateSlang.TplCall.Visit(ExecContext e) in /home/simon/Documents/siteface/siteface/sitefaceCore/TemplateSlang/TemplateSlangMain.cs:line 3441