[FIXED] Night Sight not working

Here we stuff all the bugs we've managed to squash/squish/squelch.
Locked
stranf
UOX3 Guru
Posts: 939
Joined: Wed Jan 04, 2006 3:59 pm
Has thanked: 0
Been thanked: 0

Night Sight not working

Post by stranf »

I'm not sure which spells are supposed to work and which aren't. Here is something I noticed about Night Sight:

1: If the spell is in your book and double clicked it says "you don't have that spell". (If you try to re-add the spell, it says "you already have that", as it should)

2: If you cast Night Sight from a scroll you get a fancy effect, but if your mage is stuck in a dungeon with Lightlevel=15, good luck trying to get out. :) No light.
Grimson
Developer
Posts: 802
Joined: Sat Jun 04, 2005 1:52 am
Location: Germany
Has thanked: 0
Been thanked: 0

Post by Grimson »

stranf wrote:1: If the spell is in your book and double clicked it says "you don't have that spell". (If you try to re-add the spell, it says "you already have that", as it should)
Confirmed.
stranf wrote:2: If you cast Night Sight from a scroll you get a fancy effect, but if your mage is stuck in a dungeon with Lightlevel=15, good luck trying to get out. :) No light.
This works for me, did you target your char after you used the scroll?
stranf
UOX3 Guru
Posts: 939
Joined: Wed Jan 04, 2006 3:59 pm
Has thanked: 0
Been thanked: 0

Post by stranf »

Yes. I could possibly have an olderversion of this spell.

I couldn't find a nightsight.js, is there one?

if it's hardcoded I'm running 3.7k at the moment. I will retry again. Could you reproduce the spellbook bug?
stranf
UOX3 Guru
Posts: 939
Joined: Wed Jan 04, 2006 3:59 pm
Has thanked: 0
Been thanked: 0

Post by stranf »

Spell "works" but no effect.

Try this in the 2d client.


As a GM:
1: 'setbrightlight 15
2: 'darklight 15

Log in as a PC mage.

1: go to the options menu, and under the eyeball CHECK both darknights and colored lighting.

2: Wait for the worldlight to update until it is pitch back.
3: Cast Nightsight (I was actually able to do it from the spell book from a different PC, go figure.

PC says In Lor, sound effect plays, and magic is drained but I get no visible light on the screen, it is still pitch black.

I targeted the PC by Shift+Ctrl and clicking on the name, by clicking on the PC, and by clicking on the health menu. All three ways of targeting the PC failed to produce and usable light.
Quintoxis
UOX3 Newbie
Posts: 7
Joined: Thu Nov 23, 2006 3:39 am
Has thanked: 0
Been thanked: 0

Post by Quintoxis »

I believe dark nights will always force the darkest possible settings making night sight useless.

Pretty sure it's hardcoded client side too.

http://support.ea.com/cgi-bin/ea.cfg/ph ... _topview=1
Grimson
Developer
Posts: 802
Joined: Sat Jun 04, 2005 1:52 am
Location: Germany
Has thanked: 0
Been thanked: 0

Post by Grimson »

stranf wrote:I targeted the PC by Shift+Ctrl and clicking on the name, by clicking on the PC, and by clicking on the health menu. All three ways of targeting the PC failed to produce and usable light.
How high is the magery skill of your PC?
Quintoxis wrote:I believe dark nights will always force the darkest possible settings making night sight useless.
Nope, night sight does work with dark nights activated.
Grimson
Developer
Posts: 802
Joined: Sat Jun 04, 2005 1:52 am
Location: Germany
Has thanked: 0
Been thanked: 0

Post by Grimson »

stranf wrote: 1: 'setbrightlight 15
2: 'darklight 15
Now I see why it doesn't work for you. Night Sight uses the value of the global bright light level as the light level for the spell. So if you do 'setbrightlight 15 you set that level to a pitch black value and night sight doesn't seem to work.

The spell book will be fixed with my next commit.
stranf
UOX3 Guru
Posts: 939
Joined: Wed Jan 04, 2006 3:59 pm
Has thanked: 0
Been thanked: 0

Post by stranf »

Thanks! the problem was in my understanding of the spell.

I have a question that is relating to my Night Sight as well as my world-light scroll.

If I tag all the dungeon regions as dungeon (shouldn't this be the default in Uox3? I wonder why that hasn't already been implemented), and set the dungeonlight = 15,

When PC enters the dungeon it should go pitch black with Dark Nights on. (This is what I want).

If the PC enters the dungeon and casts night-sight, does it use the 'brightlight setting? Or the dungeonlight setting?
User avatar
Xuri
Site Admin
Posts: 3704
Joined: Mon Jun 02, 2003 9:11 am
Location: Norway
Has thanked: 48 times
Been thanked: 8 times
Contact:

Post by Xuri »

stranf wrote:If I tag all the dungeon regions as dungeon (shouldn't this be the default in Uox3? I wonder why that hasn't already been implemented), and set the dungeonlight = 15,
It should probably be like that by default, yeah. Just needs someone to actually do it :)
-= Ho Eyo He Hum =-
Grimson
Developer
Posts: 802
Joined: Sat Jun 04, 2005 1:52 am
Location: Germany
Has thanked: 0
Been thanked: 0

Post by Grimson »

stranf wrote: If I tag all the dungeon regions as dungeon (shouldn't this be the default in Uox3? I wonder why that hasn't already been implemented)
It is. Try the current regions.dfn, and if there are any dungeons missing please tell.
stranf wrote:, and set the dungeonlight = 15,

When PC enters the dungeon it should go pitch black with Dark Nights on. (This is what I want).
Yes, and it works.
stranf wrote: If the PC enters the dungeon and casts night-sight, does it use the 'brightlight setting? Or the dungeonlight setting?
It always uses the brightlight setting.
Locked