Thursday 24 March 2011

Experiments with ScenePresence.Appearance.

So I got the Jane Does to appear as clouds and I wanted to experiment. So I added the following lines of code (totally blindly) to the bottom of the NPC instantiation I posted earlier tonight:

sp.Appearance.ClearAttachments();
sp.Appearance.ClearWearables();
sp.Appearance.SetDefaultWearables();
sp.SendInitialFullUpdateToAllClients();
sp.SendWearables();
sp.SendFullUpdateToAllClients();

Sadly it didn't work. But what *was* of interest was the differences in the console logs between watching x8ball log in via imprudence, and Jane Doe suddenly appear in the region as an NPC. Following is a record of the events that took place in the console. You will notice there is a bunch more for the x8Ball stuff than for the Jane Doe stuff. A couple of points that stand out are error messages about null appearances and a zero session ID. Maybe session ID is important.... Anyway's we'll see. Here are the logs below:

[SCENE]: Incoming client x8Ball in region chibacity1 via regular login. Client IP verification not performed.
[LLUDPSERVER}: Handling UseCircuitCode packet from 192.168.1.3:1076
[SCENE]: Adding new agent x8Ball to scene chibacity1
[SCENE]: Upgrading child to root agent for x8Ball in chibacity1
[PRESENCE DETECTOR]: Detected root presence 3efbb294-e1d6-430e-a508-fa5ca4748dbb in chibacity1
[PRESENCE SERVICE]: ReportAgent with session .... in region ....
[ACTIVITY DETECTOR]: Detected root presence 3efbb.... in chibacity1
[SCENE]: Received request for wearables of x8Ball
[CAPS]: UploadBakedTexture Request in region: chibacity1
[CAPS]: Received baked texture ef7b9.....
[CAPS]: UploadBakedTexture Request in region: chibacity1
[CAPS]: UploadBakedTexture Request in region: chibacity1
[CAPS]: UploadBakedTexture Request in region: chibacity1
[CAPS]: UploadBakedTexture Request in region: chibacity1
[CAPS]: Received baked texture 83a04...
[CAPS]: Received baked texture 3ce3adc2...
[CAPS]: Received baked texture 47a32....
[CAPS]: UploadBakedTexture Request in region: chibacity1
[CAPS]: UploadBakedTexture Request in region: chibacity1
[CAPS]: Received baked texture 9308...
[CAPS]: Received baked texture d331...
[CAPS]: UploadBakedTexture Request in region: chibacity1
[CAPS]: Received baked texture 5a84...
[CAPS]: Received baked texture 48cd...

[SCENE]: Adding new agent Jane Doe to scene chibacity1
[APPEARANCE]: Appearance not found in chibacity1, returning default
[SCENE]: Upgrading child to root agent for Jane Doe in chibacity1
[ATTACHMENT]: Appearance has not been initialized for agent 8d69...
[SCENE PRESENCE]: null appearance in MakeRoot in chibacity1
[PRESENCE DETECTOR]: Detected root presence 8d69... in chibacity1
[PRESENCE SERVICE]: ReportAgent with session 000000.... in region
003fdfc7.....
[ACTIVITY DETECTOR]: Detected root presence 8d693dc7.... in chibacity1
[SCENE]: Received request for wearables of Jane Doe

No comments:

Post a Comment