HeroEngine Forums
Welcome, Guest. Please login or Register for HeroCloud Account.

Author Topic: [RESOLVED] Spec decorator fields Cache?  (Read 1130 times)

feredfn

  • General Accounts
  • *
  • Posts: 154
    • View Profile
[RESOLVED] Spec decorator fields Cache?
« on: Dec 11, 13, 06:19:57 AM »

Hello there,

I'm working on spell spec system..
while i must say everything is going well , i found something which i cant be sure how to fix it

what i did :
  • i added a decorator ( SpellFxDec ) to the spec oracle decorators list
  • made a field ( spellFxSpecKey) and  added to SpellFxDec
  • made a spell and glommed the SpellFxDec  to it
  • when i edit the spell , it has spellFxSpecKey field
  • i decided to change the field type
  • removed the field from SpellFxDec class
  • added new field to it

now i expected  when i edit the spell, i see the new field, but it still shows the old one..
so im thinking its might be something with its cache..

is there anyway to solve this problem ?
or i must add the old field again but don't use it?

thanks in advance
Fered
« Last Edit: Dec 11, 13, 06:51:42 AM by feredfn »
Logged

feredfn

  • General Accounts
  • *
  • Posts: 154
    • View Profile
Re: Spec decorator fields Cache?
« Reply #1 on: Dec 11, 13, 06:51:11 AM »

seems with HeroBlade restarted , it fixed.
Logged

keeperofstars

  • General Accounts
  • *
  • Posts: 998
    • View Profile
    • StarKeeper Online
Re: [RESOLVED] Spec decorator fields Cache?
« Reply #2 on: Dec 11, 13, 07:42:37 AM »

The repository on the server and thusly specs, get cached client side to cut down on bandwidth. Sort of a load it once deals. When you reload the game / client it does a check automatically for any changes between the two.

There is also a way to force that check real time / sort of invalidate the client spec. Not something you want to do often, in a production environment, but something that could be useful as an occasional anti cheat check.

For 99% of the users / time making spec changes will happen during a maintenance period or such for the end users. Just keeps things nice and clean.

If you  make spec change real time, in production it could get a bit sticky, so lets say your in a boss fight, and the spec for fireball just took a big nerf, and the raid loses to the boss cause of it. <insert mass butt chewing on forums>

Logged
[img]http://screencast.com/t/x7btcSSyp3h0[\img]

Tarra2012

  • General Accounts
  • *
  • Posts: 113
    • View Profile
Re: [RESOLVED] Spec decorator fields Cache?
« Reply #3 on: Dec 18, 13, 12:02:03 PM »

>>i decided to change the field type
A general stomach advise:

Whenever you need to change datatypes, better delete the old var and insert a new var.

a) You are forced to correct all scripts where the var is handled
b) Lists dependet on a changed datatypefield are tricky and need updates as well
c) Strange effects in HE can happen on changed datatype for a var (synchronizing effects)


Logged