[sldev] SL Protocol

Lawson English lenglish5 at cox.net
Thu Jan 10 16:25:41 PST 2008


gmx0007 at gazeta.pl wrote:
> Hello,
>
>  I try to connect to Second Life using my simple program.
>  I use xmlrpc method to login to SL according to
> https://wiki.secondlife.com/wiki/Current_login_protocols.
> In response LoginServer give me
> circuit_code(cc),session_id(ss),agent_id(aa),sim_ip,sim_port,.. 
>  Which next I use to start circuit by sending UseCircuitCode to
> (sim_ip,sim_port) and start receive thread to get all UDP packet
> from simulator.
>
> cc - CircuitCode = from login CircuitCode
> ss - Session UUID = from login session_id
> aa - Agent UUID = from login agent_id
>
> == Sending packet ==
>
> UseCircuitCode
> Debug: Send:46 pendingAcks:0
> 0000 - 40 00 00 00 01 00 ff ff 00 03 cc cc cc cc ss ss  
> 0010 - ss ss ss ss ss ss ss ss ss ss ss ss ss ss aa aa  
> 0020 - aa aa aa aa aa aa aa aa aa aa aa aa aa aa        
>
> CompleteAgentMovement
> Debug: Send:46 pendingAcks:0
> 0000 - 40 00 00 00 02 00 ff ff 00 f9 aa aa aa aa aa aa  
> 0010 - aa aa aa aa aa aa aa aa aa aa ss ss ss ss ss ss  
> 0020 - ss ss ss ss ss ss ss ss ss ss cc cc cc cc        
>
> --- UserInfoRequest ---
> Debug: Send:42 pendingAcks:0
> 0000 - 40 00 00 00 07 00 ff ff 01 8f aa aa aa aa aa aa  
> 0010 - aa aa aa aa aa aa aa aa aa aa ss ss ss ss ss ss  
> 0020 - ss ss ss ss ss ss ss ss ss ss
>
>  For last one (UserInfoRequest) Sim didn't send response,
> but I get PacketAck for this packet.
> I also have the same problem for: AvatarPropertiesRequest, LogoutRequest
>
> It works well with:
>  UUIDNameRequest, StartPingCheck, CloseCircuit 
> and receive
>   UUIDNameReply, CompletePingCheck,  PacketAck
>
>  When at start I send UseCircuitCode with wrong circuitCode or session 
> then no any packets from sim. And this case is clear, no open cicuit.
> But what with open one ?
>
>  What might be wrong that I didn't get those replies?
>
> Thanks,
>  Tom
>   

I'm not really sure there. I know that some packets are coming in 
through the CAP interface via EventQueueGet, and that may be one of 
them. However, I'm not sure yet how to use EventQueueGet via Python, sorry.

Lawson


More information about the SLDev mailing list