ViewerLogin
Viewer Login States
This page describes, how the viewer logs into a grid including the respective viewer states.
- STATE_FIRST (0)
- Initial startup.
- Setup message system, asset xfer system, audio, etc.
- Go to STATE_BROWSER_INIT.
- STATE_BROWSER_INIT (1)
- Initialize web browser for login screen.
- Go to STATE_LOGIN_SHOW.
- STATE_LOGIN_SHOW (2)
- Display login screen.
- May skip to STATE_LOGIN_CLEANUP directly.
- Go to STATE_LOGIN_WAIT.
- STATE_LOGIN_WAIT (3)
- Wait for user input at login screen.
- STATE_LOGIN_CLEANUP (4)
- Retrieve input from login screen.
- Display startup progress bar.
- Go to STATE_LOGIN_AUTH_INIT.
- STATE_UPDATE_CHECK (5)
- Wait for user at a dialog box like updates, term-of-service, etc.
- STATE_LOGIN_AUTH_INIT (6)
- Collect login URIs and login options.
- Go to STATE_LOGIN_AUTHENTICATE.
- STATE_LOGIN_AUTHENTICATE (7)
- Get login location and MAC address.
- Contact login server.
- Go to STATE_LOGIN_NO_DATA_YET.
- STATE_LOGIN_NO_DATA_YET (8)
- Wait for start of authentication replies.
- Go to STATE_LOGIN_DOWNLOADING.
- STATE_LOGIN_DOWNLOADING (9)
- Waiting for authentication replies to download.
- Go to STATE_LOGIN_PROCESS_RESPONSE.
- STATE_LOGIN_PROCESS_RESPONSE (10)
- Check authentication reply
- true -> login successfull
- indeterminate -> try next URI, go back to STATE_LOGIN_AUTHENTICATE.
- (else) -> login error, check reason. May go to STATE_UPDATE_CHECK.
- On successful login get information from login reply, including:
- Agent and session IDs.
- First and last name.
- Save first name, last name and password.
- Start location.
- Circuit code.
- Simulator IP and port.
- Region x/y coordinates, compute region handle from it.
- Look at.
- Seed capability.
- Home position.
- Message for login screen.
- Login flags: ever_logged_in, stipend_since_login, gendered, daylight_savings.
- Initial outfit: folder and gender.
- Global textures: sun, moon and cloud.
- On success, go to STATE_WORLD_INIT, else back to login screen.
- Check authentication reply
- STATE_WORLD_INIT (11)
- Start building the world.
- Query seed capability.
- Go to STATE_MULTIMEDIA_INIT.
- STATE_MULTIMEDIA_INIT (12)
- Initialize multimedia library.
- Go go STATE_SEED_GRANTED_WAIT.
- STATE_SEED_GRANTED_WAIT (13)
- Wait for seed cap reply.
- STATE_SEED_CAP_GRANTED (14)
- Seed cap reply was received, both on success and on error.
- Register callbacks for message system and xfer manager.
- Start display.
- Start circuit for first sim.
- Go to STATE_WORLD_WAIT.
- STATE_WORLD_WAIT (15)
- Wait for circuit ack.
- Then go to STATE_AGENT_SEND.
- STATE_AGENT_SEND (16)
- Register AgentMovementComplete? callback.
- Setup asset storage and cache.
- Send economy data request.
- Go to STATE_AGENT_WAIT.
- STATE_AGENT_WAIT (17)
- Wait for AgentMovementComplete?.
- Then go to STATE_INVENTORY_SEND.
- STATE_INVENTORY_SEND (Do inventory transfer)
- STATE_MISC (Do more things (set bandwidth, start audio, save location, etc))
- STATE_PRECACHE (Wait a bit for textures to download)
- STATE_WEARABLES_WAIT (Wait for clothing to download)
- STATE_CLEANUP (Final cleanup)
- STATE_STARTED (Up and running in-world)
Edit this page (last edited 2009-01-11 15:35:08) [Show diff]
| Associated Item | Comment |
|---|---|
| No Associated Items Found | |
Comments
| Topic | Topic Starter | Messages | Last post ![]() |
|---|---|---|---|
| There are no threads. | |||


