Weapons do not longer merge in shifter forms
Weapons do not longer merge in shifter forms
Hello. After last restart weapons stopped merging in shifter forms.
Re: Weapons do not longer merge in shifter forms
I noticed this during testing. This is a timing issue, I added a delay to give time for the creature items to be created and equipped. Evidently, this wasn't enough. I will have to change it to a recursive function that keeps checking to see if the items are valid before adding the properties.
Re: Weapons do not longer merge in shifter forms
Ok. Thank You for your efforts.
-
- Commoner
- Posts: 11
- Joined: Wed Dec 19, 2018 7:34 pm
Re: Weapons do not longer merge in shifter forms
Thanks for the quick resolution!
- Cornflower
- Duke
- Posts: 654
- Joined: Sat May 26, 2018 10:53 am
- Location: Sweden
Re: Weapons do not longer merge in shifter forms
Ouch. Recursive functions can be nasty. I am convinced you already thought of this, but even so: there needs to be some kind of anti-loop-security in that function, so that if it goes out of whack, it won't crash the server.driller wrote: ↑Wed Jan 23, 2019 9:32 am I noticed this during testing. This is a timing issue, I added a delay to give time for the creature items to be created and equipped. Evidently, this wasn't enough. I will have to change it to a recursive function that keeps checking to see if the items are valid before adding the properties.
Who wills, can
Who tries, does
Who loves, lives
(Ann McCaffrey)
Who tries, does
Who loves, lives
(Ann McCaffrey)
Re: Weapons do not longer merge in shifter forms
I always add a safety variable that will exit if it goes over a certain number.
Cornflower wrote: ↑Fri Jan 25, 2019 7:04 amOuch. Recursive functions can be nasty. I am convinced you already thought of this, but even so: there needs to be some kind of anti-loop-security in that function, so that if it goes out of whack, it won't crash the server.driller wrote: ↑Wed Jan 23, 2019 9:32 am I noticed this during testing. This is a timing issue, I added a delay to give time for the creature items to be created and equipped. Evidently, this wasn't enough. I will have to change it to a recursive function that keeps checking to see if the items are valid before adding the properties.