SDK Reason Codes: Difference between revisions

From Virtual Paradise Wiki
Jump to navigation Jump to search
Add missing reason codes
 
Line 129: Line 129:
</tr>
</tr>


<tr>
<td id="VP_RC_TIMEOUT">VP_RC_NOT_IN_UNIVERSE</td>
<td id="NO_17">17</td>
<td><p>''Not in universe''
:There is no connection to the universe server.
</p></td>
</tr>
<tr>
<td id="VP_RC_TIMEOUT">VP_RC_INVALID_ARGUMENTS</td>
<td id="NO_18">18</td>
<td><p>''Invalid arguments''
:A function was given invalid arguments.
</p></td>
</tr>
<tr>
<td id="VP_RC_TIMEOUT">VP_RC_OBJECT_NOT_FOUND</td>
<td id="NO_19">19</td>
<td><p>''Object not found''
:The specified object was not found.
</p></td>
</tr>
<tr>
<td id="VP_RC_TIMEOUT">VP_RC_UNKNOWN_ERROR</td>
<td id="NO_20">20</td>
<td><p>''Unknown error''
:The server returned an unknown error code.
</p></td>
</tr>
<tr>
<td id="VP_RC_TIMEOUT">VP_RC_RECURSIVE_WAIT</td>
<td id="NO_21">21</td>
<td><p>''Recursive wait''
:[[Vp_wait]] was called recursively, for example by calling it inside an event or callback handler.
</p></td>
</tr>
</table>
</table>


[[Category: SDK]]
[[Category: SDK]]

Latest revision as of 15:15, 17 March 2015

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.