SphereServer BugTracker - SphereServer
View Issue Details
0002462SphereServerexecutable - windows buildpublic24-01-15 06:3323-02-15 18:44
sub-zero 
Coruja 
normalcrashalways
resolvedfixed 
 
0.56c Nightly 
Automated (specify build number)
None
Command_Sysmsgs, FileCommands, NoItemNaming, NoHouseMuteSpeech
0002462: Crash on cooking skillmenu
server crash on clicking on cooking/barbecue
simple try cooking nay of barbecue of skillmenu
using Sphere Version 0.56c-Nightly [WIN32] by www.spherecommunity.net, compiled at Jan 23 2015 (00:08:15), internal build 0002158
No tags attached.
Issue History
24-01-15 06:33sub-zeroNew Issue
07-02-15 05:42CorujaNote Added: 0002667
19-02-15 15:43darksun84Note Added: 0002683
19-02-15 16:05darksun84Note Edited: 0002683bug_revision_view_page.php?bugnote_id=0002683#r834
20-02-15 01:12CorujaNote Added: 0002684
20-02-15 10:33darksun84Note Added: 0002685
20-02-15 10:34darksun84Note Edited: 0002685bug_revision_view_page.php?bugnote_id=0002685#r836
20-02-15 10:34darksun84Note Edited: 0002685bug_revision_view_page.php?bugnote_id=0002685#r837
23-02-15 18:44CorujaNote Added: 0002700
23-02-15 18:44CorujaStatusnew => resolved
23-02-15 18:44CorujaFixed in Version => 0.56c Nightly
23-02-15 18:44CorujaResolutionopen => fixed
23-02-15 18:44CorujaAssigned To => Coruja

Notes
(0002667)
Coruja   
07-02-15 05:42   
try type manually .skillmenu sm_cooking to test if it works

if it works manually, maybe the problem is not really on the skill menu, but on some item/typedef behavior (although I doesn't found nothing wrong on scripts)
(0002683)
darksun84   
19-02-15 15:43   
(edited on: 19-02-15 16:05)
I am testing cooking, while cooking works when called manually(by skillmenu sm_cooking) , it always crash when the skill is used by a cooking tool.

By my test, the problem is solved by doing this:

1) In all the food items made by cooking skill, you must add t_cooking in the SKILLMAKE line of the item, without this you 'll crash, this is very important.
 Example: SKILLMAKE=Cooking 50.0,t_cooking.

2)By default, the cooking submenus (Ingredients, Baking, Barbecue) are missing the "sub-menu title".
Example:
[SKILLMENU sm_cook_barbecue]


ON=i_bird_cooked <name> (<resmake>)
MAKEITEM=i_bird_cooked

must be

[SKILLMENU sm_cook_barbecue]
Barbecue

ON=i_bird_cooked <name> (<resmake>)
MAKEITEM=i_bird_cooked

If the sub-title is missing, sphere will think that ON=I_bird_cooked <name> (<resmake>) is the subtitle, the next line is MAKEITEM=i_bird_cooked.



Anyway i don't know why it works if called manually by skillmenu :p

(0002684)
Coruja   
20-02-15 01:12   
it makes sense, the skillmenu is really missing the title line

if you add the title on the skillmenu it still work on items without t_cooking set?
(0002685)
darksun84   
20-02-15 10:33   
(edited on: 20-02-15 10:34)
If you add the title on all the cooking submenu, but t_cooking is not set on the foods, you always get the message "you can't do anything with what you have"

(0002700)
Coruja   
23-02-15 18:44   
so I'm quite sure the crash is caused only by the missing title on the skillmenu

anyway, I already fixed it on script pack yesterday, now cooking skillmenu already comes with proper title and all cooking itens with t_cooking properly set