Return code

From Virtual Paradise Wiki
Jump to: navigation, search
Reason code Value Description
VP_RC_SUCCESS 0 Request has completed successfully
VP_RC_VERSION_MISMATCH 1 VP.h and the SDK library are from different builds
VP_RC_NOT_INITIALIZED 2 No longer used
VP_RC_ALREADY_INITIALIZED 3 No longer used
VP_RC_STRING_TOO_LONG 4 If any of the given string parameters exceed the maximum length for the operation (when using UTF-8 encoded characters they can each be multiple bytes long)
VP_RC_INVALID_LOGIN 5 Incorrect username of password
VP_RC_WORLD_NOT_FOUND 6 No such world is connected to the universe
VP_RC_WORLD_LOGIN_ERROR 7 Could not enter world (e.g. incorrect world address configured) or banned (not yet implemented)
VP_RC_NOT_IN_WORLD 8 World request made while not connected to a world server
VP_RC_CONNECTION_ERROR 9 Unable to connect to universe, or waiting for events failed
VP_RC_NO_INSTANCE 10 No longer used
VP_RC_NOT_IMPLEMENTED 11 Requested operation is not implemented for bots (only available in the browser)
VP_RC_NO_SUCH_ATTRIBUTE 12 Invalid attribute (has an enum value that is out of range)
VP_RC_NOT_ALLOWED 13 Not allowed to perform the requested operation
VP_RC_DATABASE_ERROR 14 Unspecified database error
VP_RC_NO_SUCH_USER 15 No user with a matching user id (or name) was found
VP_RC_TIMEOUT 16 It took too long to receive a response from the server
VP_RC_NOT_IN_UNIVERSE 17 Universe request made while not connected to a universe server
VP_RC_INVALID_ARGUMENTS 18 ???
VP_RC_OBJECT_NOT_FOUND 19 ???
VP_RC_UNKNOWN_ERROR 20 Unknown error
VP_RC_RECURSIVE_WAIT 21 vp_wait() was called recursively on the same instance
VP_RC_JOIN_DECLINED 22 Join request was declined
VP_RC_SECURE_CONNECTION_REQUIRED 23 ???
VP_RC_HANDSHAKE_FAILED 24 ???
VP_RC_VERIFICATION_FAILED 25 ???
VP_RC_NO_SUCH_SESSION 26 No user with the specified session is currently connected to the universe
VP_RC_NOT_SUPPORTED 27 Operation is not supported for this instance
VP_RC_INVITE_DECLINED 28 Invite request was declined