.. _service-api-errors: Errors and Warnings =================== The server checks every service as the game loads. A member with an error is left out, along with every member that uses it, and the rest of kRPC keeps running. A call to a member that was left out fails with a "procedure not found" error. .. list-table:: :header-rows: 1 * - Error - Left out * - A procedure, method or property that is not valid, such as one with a parameter type kRPC cannot serialize - That member * - A class, enumeration, structure or exception that is not valid, such as a generic class, or a class with a member that overrides or hides a member of its base class - That type, and each member or structure that uses it * - A class whose base class is left out - The class, the classes derived from it, and each member or structure that uses them * - A class whose base class is in another service that derives classes from the class's service, directly or through other services - The class, the classes derived from it, and each member or structure that uses them * - An assembly with types that fail to load, such as from a missing dependency - Its services * - A service that is not valid, or declared by two classes - The service, its types, and the extension members of its classes * - Two services whose names differ only in case - Both services * - Two types of a service whose names differ only in case, or a type named as its service - Those types, and each member or structure that uses them * - Two members of a scope that share a :ref:`name ` - Both members. An extension member that shares a name with a member of the class is left out, and the class keeps its own member * - An extension member that shares a name with a member of a base class or a derived class - The extension member, and the other member too if it is an extension member * - A :cs:attr:`RequiresMod` that has no effect, as :ref:`service-api-availability` describes - None * - Two parameters of a procedure, values of an enumeration or fields of a structure that share a name - The procedure, enumeration or structure * - An identifier of 0, or one shared by two services, two procedures of a service or two types of a service - Each service, procedure or type with that identifier kRPC does not run without its ``KRPC`` service, so a clash that leaves it out disables kRPC. The server also checks that each member a procedure's code uses exists. A game or mod update can remove a member, and then the procedures that use it fail when called. They are listed as a problem, with the member they are missing. A warning leaves the members in. A class of :ref:`extension members ` that is not public gets one, as its members are out of reach. The kRPC Problems window opens at the main menu, with a category for each service with errors, one for the warnings and one for the :ref:`mod integrations ` that failed to load. Further categories list the RPCs broken by a missing member, and a game version other than the one kRPC was built and tested for. Click a category to expand it. The log has the full messages. The window's "Hide" button hides it until the problems change. The "Problems" option in the server window opens it again. A missing ``KRPC`` service disables kRPC, and its window cannot be hidden. ``krpc-servicedefs`` stops at the first error or warning. Running it on your assembly before a release checks the service, see :ref:`service-api-clientgen`.