Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-16-2010, 11:37 PM
LoneAngelIbesu LoneAngelIbesu is offline
master of infinite loops
LoneAngelIbesu's Avatar
Join Date: May 2007
Location: Toldeo, Ohio
Posts: 1,049
LoneAngelIbesu has a spectacular aura aboutLoneAngelIbesu has a spectacular aura about
Send a message via AIM to LoneAngelIbesu
TServerPlayer.isobserver

While debugging a serious problem on Valikorlia, I noticed that TServerPlayer.isobserver is not correct, at all.

The problem involved certain variables on the player object not being created, because the player was in observer. However, the function creating those variables should never have been triggered, because TServerPlayer.isobserver is checked. If it's true, the function shouldn't be triggered. If it's false, it should.

What I noticed was that, on login, even if the player is in observer mode, TServerPlayer.isobserver still returns false.
__________________
"We are all in the gutter, but some of us are looking at the stars."
— Oscar Wilde, Lady Windermere's Fan
Reply With Quote
  #2  
Old 01-16-2010, 11:54 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Ideally players should just be logged off while in observer. This is how it's supposed to work.
__________________
Reply With Quote
  #3  
Old 01-16-2010, 11:55 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Observer mode is a burden on Graal
__________________
Quote:
Reply With Quote
  #4  
Old 01-17-2010, 12:00 AM
LoneAngelIbesu LoneAngelIbesu is offline
master of infinite loops
LoneAngelIbesu's Avatar
Join Date: May 2007
Location: Toldeo, Ohio
Posts: 1,049
LoneAngelIbesu has a spectacular aura aboutLoneAngelIbesu has a spectacular aura about
Send a message via AIM to LoneAngelIbesu
Quote:
Originally Posted by cbk1994 View Post
Ideally players should just be logged off while in observer. This is how it's supposed to work.
I ended up adding the MUD object creation in the observer switch actions (onObserverSwitchToPlayer, etc). These act like onActionPlayerOnline() and onPlayerLogout().

In fact, onActionPlayerOnline() seems to be triggered when a player comes out of observer mode. However, I could only get the MUD objection creation to work by using the switch actions.
__________________
"We are all in the gutter, but some of us are looking at the stars."
— Oscar Wilde, Lady Windermere's Fan
Reply With Quote
  #5  
Old 01-17-2010, 12:22 AM
Imperialistic Imperialistic is offline
graal player lord
Imperialistic's Avatar
Join Date: Apr 2007
Location: Florida
Posts: 1,094
Imperialistic is a jewel in the roughImperialistic is a jewel in the rough
Quote:
Originally Posted by fowlplay4 View Post
Observer mode is a burden on Graal
I've read tons of forums I found on Google about GraalOnline, most people really enjoyed it and liked it.. But it was the subscription plans and obs mode that keeps them from actually playing.
__________________
" It's been swell, but the swelling's gone down. "
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 03:21 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.