SphereServer BugTracker - SphereServer
View Issue Details
0002481SphereServerexecutable - windows buildpublic21-02-15 18:4905-03-15 16:36
alexpetro 
XuN 
normalcrashalways
resolvedfixed 
 
0.56c Nightly 
Not Available
DiagonalWalkCheck, New_Triggers, Intrinsic_Locals, NewPositionChecks, WalkCheck, Script_Profiler, DamageTools, NPCAct_Triggers
OSIMultiSight, NoItemNaming, NoHouseMuteSpeech, Flood_Protection, Buffs, NoPrefix, DyeType
 2188
0002481: Adding a tooltip to some Typedef make crash server
Adding a tooltip to some Typedef make crash server

I have many items which I have added a tooltip, this for to show info to the players about our customized game systems. Anyway here a simple example:

On a Type T_fruit

[ITEMDEF 0c5c]
//Watermelon
DEFName=i_fruit_watermelon
Name=Anguria
TYPE=T_FRUIT
TDATA1=i_semi_anguria
Tdata2=10
VALUE={5 10}
WEIGHT=1
DUPELIST=0c5d

ON=@ClientToolTip
IF (<amount> > 1)
Name=Angurie
Else
Name=Anguria
endif

this mke crash the server
the build 0002011 Does not present the problem.

The problem is tested also with original sphere files
No tags attached.
Issue History
21-02-15 18:49alexpetroNew Issue
22-02-15 01:19MirroRNote Added: 0002688
22-02-15 01:20MirroRNote Edited: 0002688bug_revision_view_page.php?bugnote_id=0002688#r839
22-02-15 02:00BenNote Added: 0002689
24-02-15 18:55alexpetroNote Added: 0002703
26-02-15 17:39alexpetroNote Added: 0002708
05-03-15 16:36XuNNote Added: 0002722
05-03-15 16:36XuNStatusnew => resolved
05-03-15 16:36XuNFixed in Version => 0.56c Nightly
05-03-15 16:36XuNResolutionopen => fixed
05-03-15 16:36XuNAssigned To => XuN

Notes
(0002688)
MirroR   
22-02-15 01:19   
(edited on: 22-02-15 01:20)
Not name !

ON=@ClientToolTip
IF (<amount> > 1)
src.addcliloc <def.empty.cliloc>,<amount>
Else
src.addcliloc <def.empty.cliloc>,anguria
Endif

(0002689)
Ben   
22-02-15 02:00   
I found the reason for this... It started in r2146 when Coruja added "Tooltips now will auto update when item/char properties got changed."
so changing certain properties in @ClientToolTip will cause an infinite loop.

Not sure it can be fixed without removing that feature...
(0002703)
alexpetro   
24-02-15 18:55   
Mirror I want change the name, because in Italian we can't add %S to differentiate sigolar to plurar.
Anyway I use routines in Clienttooltip for many scopes, i have hundreds items that give information to the player and they change their state with enviroment: "a barrell will fill with water meanwhile is raining, Tooltip tell me how many litres of water it contein..." and so on..

Please spend just a little time for this, is very usefull for shards customization, and vital for mine. Thank you.
(0002708)
alexpetro   
26-02-15 17:39   
with MirroR solution i can solve the Name Problem adding a Return 1.

Remain the request to have the possibility to full script the Trigger, for the above motivations.

Thank you.
(0002722)
XuN   
05-03-15 16:36   
Should be fixed tomorrow.