SDK Reason Codes

From Virtual Paradise Wiki
Revision as of 15:15, 17 March 2015 by Edwin (talk | contribs) (Add missing reason codes)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Reason codeValueDescription
VP_RC_SUCCESS 0

Success

The operation completed successfully.

VP_RC_VERSION_MISMATCH 1

Version mismatch

VP.h and the SDK library are from different builds.

VP_RC_NOT_INITIALIZED 2

Not initialized

The SDK hasn't been initialized (try calling vp_init)

VP_RC_ALREADY_INITIALIZED 3

Already initialized

The SDK has already been initialized (by calling vp_init)

VP_RC_STRING_TOO_LONG 4

String too long

VP_RC_INVALID_LOGIN 5

Invalid login

Could not login due to invalid user or incorrect password.

VP_RC_WORLD_NOT_FOUND 6

World not found

There is no world running with a matching name.

VP_RC_WORLD_LOGIN_ERROR 7

World login error

Couldn't login to the world (usually the world server is mapped to a different address.)
Banned (not yet implemented)

VP_RC_NOT_IN_WORLD 8

Not in world

The SDK is not initialized into a world.

VP_RC_CONNECTION_ERROR 9

Connection error

There was an error connecting to the universe/world server.

VP_RC_NO_INSTANCE 10

No instance

VP_RC_NOT_IMPLEMENTED 11

Not implemented

VP_RC_NO_SUCH_ATTRIBUTE 12

No such attribute

There is no attribute matching that name.

VP_RC_NOT_ALLOWED 13

Not allowed

VP_RC_DATABASE_ERROR 14

Database error

VP_RC_NO_SUCH_USER 15

No such user

The user you are looking for does not exist.

VP_RC_TIMEOUT 16

Timeout

The action timed out.

VP_RC_NOT_IN_UNIVERSE 17

Not in universe

There is no connection to the universe server.

VP_RC_INVALID_ARGUMENTS 18

Invalid arguments

A function was given invalid arguments.

VP_RC_OBJECT_NOT_FOUND 19

Object not found

The specified object was not found.

VP_RC_UNKNOWN_ERROR 20

Unknown error

The server returned an unknown error code.

VP_RC_RECURSIVE_WAIT 21

Recursive wait

Vp_wait was called recursively, for example by calling it inside an event or callback handler.