Script executing multiple times

Forum Archive - from http://theuniversal.net
Locked
User avatar
morbydvisns
Posts: 1889
Joined: Sun Jan 30, 2005 12:51 am

Script executing multiple times

Post by morbydvisns »

Software:Registered Server
Version Number:xx.6
________________________________________________________________________
Location
ariya
________________________________________________________________________
Description:
scripts are executing multiple times. had an instance when a script executed 3 times when a usable item was used, one executed twice on a build a new building script. sometimes they just go once but about 70% theyve executed more than once per scripted session.
________________________________________________________________________
Steps to Replicate:
^^
User avatar
morbydvisns
Posts: 1889
Joined: Sun Jan 30, 2005 12:51 am

Post by morbydvisns »

i thought this may be a prob with .5 to .6 conversation (the new items show as 'upgrade required an theres a blank spot under discard that works to use the item) but it multi-executes using .6 beta client as well.
User avatar
morbydvisns
Posts: 1889
Joined: Sun Jan 30, 2005 12:51 am

Post by morbydvisns »

ok so after i posted my comment on the new beta thread, i went to expiramenting, and anytime the gamescript is refreshed via *refreshweap command its just stackking all the scripts in the script buffer or whatever and every script gets multi-executed then.
User avatar
Mit
Staff
Staff
Posts: 3551
Joined: Sun Sep 21, 2003 10:14 pm
Location: Unknown

Post by Mit »

ahh ding, *refreshweap probably doin nasty things.. hadnt really considered that much yet.
btw.. theres a *reloadscript command for doing the ServerGameScript.mts updates which is probably less painful. all still needs sortin properly tho :]
User avatar
morbydvisns
Posts: 1889
Joined: Sun Jan 30, 2005 12:51 am

Post by morbydvisns »

Ok on this... *Reloadscript wipes the script record and *refreshweap will then make the new one with no duplicates this time is how ive been using it tonight with no problem.
User avatar
Mit
Staff
Staff
Posts: 3551
Joined: Sun Sep 21, 2003 10:14 pm
Location: Unknown

Post by Mit »

Both commands fixed properly server 0.50.7
Locked