SphereServer BugTracker - SphereServer
View Issue Details
0001650SphereServerexecutable - genericpublic04-09-09 13:1812-09-09 15:26
dzhony 
 
normaltweakalways
closedno change required 
 
 
09-09-2008
None
None
0001650: Communication Crystal Light
Model situation: 2 items, i_crystal_green and i_lantern_lit. Green crystal shows light radius no.0 in the green color. This type of light radius can not be changed, I've tried the same tiledata setting for both items, same MOREZ and TYPE ingame setting. Green crystal shows always no.0 light radius on every MOREZ setting.

But, changing DISPID on i_lantern_lit to i_crystal_green makes the item changeable - I mean, you can change MOREZ and the item changes light radiuses.

In my opinion, green color of light is client-dependent, but the possibility to change light radius is server-dependent. Am I wrong?
Screenshot added
No tags attached.
png comm-crystal.PNG (41,928) 04-09-09 13:18
http://tracker.sphere.torfo.org/bugs/file_download.php?file_id=25&type=bug
png comm-crystal-test.PNG (1,965) 11-09-09 00:14
http://tracker.sphere.torfo.org/bugs/file_download.php?file_id=26&type=bug
Issue History
04-09-09 13:18dzhonyNew Issue
04-09-09 13:18dzhonyFile Added: comm-crystal.PNG
04-09-09 13:18dzhonyNightly Version => 09-09-2008
04-09-09 13:18dzhonyExperimental Flags => None
04-09-09 13:18dzhonyOption Flags => None
05-09-09 15:31MrSugarCubeNote Added: 0000268
05-09-09 15:31MrSugarCubeStatusnew => closed
05-09-09 15:31MrSugarCubeResolutionopen => no change required
05-09-09 17:21dzhonyStatusclosed => feedback
05-09-09 17:21dzhonyResolutionno change required => reopened
05-09-09 17:21dzhonyNote Added: 0000270
10-09-09 21:54MrSugarCubeNote Added: 0000274
11-09-09 00:14dzhonyFile Added: comm-crystal-test.PNG
11-09-09 00:15dzhonyNote Added: 0000276
11-09-09 00:28dzhonyNote Added: 0000277
11-09-09 08:47MrSugarCubeNote Added: 0000278
11-09-09 08:49MrSugarCubeNote Edited: 0000278
11-09-09 18:08dzhonyNote Added: 0000279
12-09-09 15:26MrSugarCubeStatusfeedback => closed
12-09-09 15:26MrSugarCubeResolutionreopened => no change required

Notes
(0000268)
MrSugarCube   
05-09-09 15:31   
Change the type to t_light_lit and you'll be able to use MOREZ to set the light style.
(0000270)
dzhony   
05-09-09 17:21   
I've already tried that - it doesn't work.
(0000274)
MrSugarCube   
10-09-09 21:54   
Test with the following script (.testcrystal):

[FUNCTION testcrystal]
SERV.NEWITEM i_crystal_green
NEW.TYPE = t_light_lit
NEW.MOREZ = 0
NEW.P <EVAL <P.X> + 2>, <P.Y>, <P.Z>, <P.M>
NEW.SAY Light #<NEW.MOREZ>
NEW.TIMERF 2, testcrystal_
RETURN

[FUNCTION testcrystal_]
MOREZ += 1
UPDATE
SAY Light #<MOREZ>
TIMERF 2, testcrystal_
RETURN
(0000276)
dzhony   
11-09-09 00:15   
all MOREZ values are the same, screenshot included
(0000277)
dzhony   
11-09-09 00:28   
tested i_crystal_green script definition (only minor changes contrary to the default):

[itemdef 01ecd]
//blinking green communications crystal casting light
defname=i_crystal_green
resources=10 i_gem_emerald
name="communication crystal"
type=t_comm_crystal
category=Alchymie a magie
subsection=Magicke krystaly
description=communication crystal (green)
dupelist=01ece,01ecf
Can=CAN_I_BLOCK

[itemdef 01ece]
//green (off?)communications crystal casting light
dupeitem=01ecd

[itemdef 01ecf]
//bright green (on) communications crystal casting light
dupeitem=01ecd
(0000278)
MrSugarCube   
11-09-09 08:47   
(edited on: 11-09-09 08:49)
I believe your CAN line on the itemdef has cleared the lighting capabilities. Try changing it to:

CAN=CAN_I_BLOCK|CAN_I_LIGHT

(after resyncing/restarting check that the can flags have the 0800 flag with '.xshow can' on the crystal)

(0000279)
dzhony   
11-09-09 18:08   
It works, thank you :) Sorry for the report.