CN103678892A - Role object management method and role object management device - Google Patents

Role object management method and role object management device Download PDF

Info

Publication number
CN103678892A
CN103678892A CN201310643217.XA CN201310643217A CN103678892A CN 103678892 A CN103678892 A CN 103678892A CN 201310643217 A CN201310643217 A CN 201310643217A CN 103678892 A CN103678892 A CN 103678892A
Authority
CN
China
Prior art keywords
role object
role
information
scene
request
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201310643217.XA
Other languages
Chinese (zh)
Inventor
钟勇
王旭新
姚建辉
邱林辉
杨敏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Chengdu Co Ltd
Original Assignee
Tencent Technology Chengdu Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Chengdu Co Ltd filed Critical Tencent Technology Chengdu Co Ltd
Priority to CN201310643217.XA priority Critical patent/CN103678892A/en
Publication of CN103678892A publication Critical patent/CN103678892A/en
Priority to TW103140975A priority patent/TWI561287B/en
Priority to PCT/CN2015/072098 priority patent/WO2015081907A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/55Controlling game characters or game objects based on the game progress

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Human Computer Interaction (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a role object management method and a role object management device, and belongs to the technical field of internet. The method includes when receiving a request of adding a first artificial intelligence (AI) role object into a local scene, acquiring state information of the first AI role object; distributing corresponding cache space to the first AI role object, and storing the state information of the first AI role object in the cache space; when the first AI role object leaves the local scene, deleting the state information, stored in the cache space, of the first AI role object. By the role object management method and the role object management device, flexibility in scheduling of the AI role object can be improved.

Description

Role object management method and device
Technical Field
The invention relates to the technical field of internet, in particular to a method and a device for managing role objects.
Background
With the continuous development of internet technology, the internet has become a very important part in people's life and work, and with the popularization of the internet, online games have been rapidly popularized, becoming one of the main entertainment modes of people.
In network games, one or more scenes are generally set, for example, a copy scene, a field scene, and the like in a role playing game, a table scene in a chess and card game, and the like. One or more character objects (game characters) may be included in the scene, and the character objects may include general character objects (game characters controlled by a player) or AI (Artificial Intelligence) character objects (game characters controlled by a computer in an Artificial Intelligence manner). The AI character object can realize the interaction with the common character object controlled by the player, such as conversation, fight, cooperation and the like, so that the content of the online game is richer and more diversified.
In the process of implementing the invention, the inventor finds that the prior art has at least the following problems:
in the related art, an AI character object exists as a part of a scene of a game, and information such as status information (e.g., a character's level, position, blood volume, etc.) of the AI character object is fixed in a main program in a game server of the scene. Because the main program is hard to modify dynamically, some dynamic scheduling manners of the AI character objects cannot be realized, for example, dynamically adding a new AI character object (i.e., randomly requesting to add an AI character object by a manager or a player user), dynamically migrating an AI character object between different servers (i.e., randomly requesting to migrate an AI character object to an arbitrary destination by a manager or a player user), and the like. Thus, poor flexibility in scheduling the AI role object results.
Disclosure of Invention
In order to solve the problems in the prior art, embodiments of the present invention provide a method and an apparatus for role object management, so as to improve flexibility of scheduling an AI role object. The technical scheme is as follows:
in one aspect, a method for role object management is provided, where the method includes:
when a request for adding a first Artificial Intelligence (AI) role object into a local scene is received, acquiring state information of the first AI role object;
allocating a corresponding cache space for the first AI role object, and storing the state information of the first AI role object in the cache space;
and deleting the state information of the first AI role stored in the cache space when the first AI role object leaves the local scene.
In another aspect, an apparatus for managing character objects is provided, the apparatus including:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring the state information of a first Artificial Intelligence (AI) role object when receiving a request for adding the first AI role object into a local scene;
the storage module is used for allocating a corresponding cache space for the first AI role object and storing the state information of the first AI role object in the cache space;
and the deleting module is used for deleting the state information of the first AI role stored in the cache space when the first AI role object leaves the local scene.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
in the embodiment of the invention, when a request for adding the first AI role object into the local scene is received, the state information of the first AI role object is obtained, the corresponding cache space is allocated to the first AI role object, the state information of the first AI role object is stored in the cache space, and the state information of the first AI role object stored in the cache space is deleted when the first AI role object leaves the local scene, so that the AI role object can be added and removed at any time in the running process of the main program of the server, and the scheduling flexibility of the AI role object can be improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a flow chart of a method for managing role objects according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a network system provided in an embodiment of the present invention;
FIG. 3 is a schematic diagram of an apparatus for managing role objects according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a server according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
Example one
An embodiment of the present invention provides a method for managing a role object, and as shown in fig. 1, a processing flow of the method may include the following steps:
step 101, when receiving a request for adding a first AI character object to a local scene, obtaining status information of the first AI character object.
Step 102, allocating a corresponding cache space for the first AI character object, and storing the state information of the first AI character object in the cache space.
And 103, deleting the state information of the first AI role stored in the cache space when the first AI role object leaves the local scene.
In the embodiment of the invention, when a request for adding the first AI role object into the local scene is received, the state information of the first AI role object is obtained, the corresponding cache space is allocated to the first AI role object, the state information of the first AI role object is stored in the cache space, and the state information of the first AI role object stored in the cache space is deleted when the first AI role object leaves the local scene, so that the AI role object can be added and removed at any time in the running process of the main program of the server, and the scheduling flexibility of the AI role object can be improved.
Example two
The embodiment of the invention provides a method for managing role objects, wherein an execution main body of the method can be a server, the server can be a server of a network application background for interaction between users and interaction between the users and a computer, such as a server of a network game background, the embodiment takes a scene server of which the execution main body is the network game background (such as chess and card games, role playing games and the like) as an example to perform detailed description of a scheme, and the method is similar to the method under the condition of other execution main bodies, and is not repeated in the embodiment.
In a network application, an area where a user can control a character object to enter can be divided into a plurality of scenes, and different scene servers are respectively arranged for management. The scene server is a server for managing scene information in a certain scene (such as a certain desktop scene, a copy scene, etc.). The scene information is information for reflecting the state and change of a character object, environment, and the like in a scene (e.g., in a table, in a copy, and the like), and includes state information of the character object.
The process flow shown in fig. 1 will be described in detail below with reference to specific embodiments, and the contents may be as follows:
in step 101, when a request for adding a first AI character object to a local scene is received, a server (scene server) obtains status information of the first AI character object.
The character object is a general term of a character or other things in the network application that can be controlled by a user or an AI, the AI character object is a character object controlled by a computer in an artificial intelligence manner, and the general character object is a character object controlled by a user (a user of the network application, such as a game player). The first AI character object can be any AI character object. The local scene is a scene managed by the present server. The state information is a sum of information for describing attributes of a certain character object, and is one of scene information, for example, the state information of the character object in the chess and card game may include hand information, level information, prop information, etc., and the state information of the character object in the role-playing game may include appearance information, mastery skill information, attack force information, defense force information, level information, etc.
In practice, there may be many situations where the first AI character object is requested to be added to the local scene, and the corresponding manner of obtaining the status information of the first AI character object may also be different, and the following process of step 101 is given for several possible situations:
situation one
When a request for migrating the first AI character object from the scene of another server to the local scene is received, state information of the first AI character object is acquired from a cache space allocated to the first AI character object by the another server.
In implementation, the first AI character object may be an AI character object in a scene corresponding to some other server, and when the first AI character object joins the other server, the other server may allocate a cache space to the first AI character object according to the processing procedure of the embodiment of the present invention, and store the state information of the first AI character object in the cache space allocated to the first AI character object. In some cases, for example, when a manager or a user requests to migrate the first AI character object from the scene of the other server to the local scene to interact with the user, or when the first AI character object moves in the scene of the other server, the boundary between the scene and the local scene is reached, and a scene switch is required, the other server may send a migration request to the server to request to migrate the first AI character object from the scene of the other server to the local scene, and when receiving the migration request, the local server may obtain the state information of the first AI character object cached in the local scene from the other server.
Situation two
When a request for newly creating a first AI role object in a local scene is received, state information of the first AI role object carried in the request is acquired.
In implementation, a manager may request to add a first AI character object in a certain scenario, before the server starts to operate (at a stage when a user cannot log in the server through a client, the manager may configure data of the server, such as creating a plurality of AI character objects or loading a plurality of preconfigured AI character objects), or during the operation of the server, the manager may configure status information of the first AI character object through a management terminal used by the manager, may select an external shape of the first AI character object, input information of a name, a blood volume, an attack power, a defense power, and the like of the first AI character object, and click to confirm to add the AI character object, at this time, the management terminal may generate a request to create the first AI character object, carry the status information of the AI character object therein, and send the request to the server, when the server receives the request, it may obtain the status information of the first AI character object from the request.
Step 102, the server allocates a corresponding cache space for the first AI character object, and stores the state information of the first AI character object in the cache space.
In implementation, the server may preset a certain amount of cache spaces according to its load capacity, where each cache space is used to be allocated to one general character user or AI character object to store state information of the corresponding character object. The server may also maintain a cache state table for recording which cache spaces are in an idle state and which are used. When a certain AI role object or normal role object is added to the local scene, a cache space can be selected from each idle cache space, allocated to the corresponding AI role object or normal role object, and the corresponding state information is stored in the selected cache space. The server can also record the corresponding relation between each role object and the cache space address so as to facilitate the management of the state information of each role object.
When the server operates and maintains and manages the scene information, the server may adjust the state information in the corresponding cache space according to the state change of a role object (a common role user or an AI role object), for example, if a certain AI role object is attacked by an injury of 1 and has no defense measure, the server reduces the blood volume value in the state information in the cache space corresponding to the AI role object by 1.
Here, the server manages the status information of the normal character object and the AI character object in the same manner.
Step 103, when the first AI character object leaves the local scene, the server deletes the state information of the first AI character stored in the cache space.
In practice, there are many possibilities for the case where the first AI character object leaves the local scene. For example, in a case where the first AI character object is migrated from the local scene to some other server, after the other server acquires the attribute information of the first AI character object from the local server and stores the attribute information in its own cache space, the local server may delete the attribute information of the first AI character object stored in the local cache space. For another example, there is a case where the manager requests to cancel the first AI character object, and at this time, the server may directly delete the status information of the first AI character object from the cache space.
In the embodiment of the present invention, an independent AI processing platform may be provided for processing behavior logic of an AI character object to control each AI character object. The AI processing platform may be a module of the scene server or an independent server.
When the scene information changes, the server may perform the following processing:
step one, when scene information changes, determining an associated role object in a local scene corresponding to the changed scene information.
The associated role object can be a role object capable of sensing the changed scene information based on a preset rule in network application, and the preset rule can be set arbitrarily according to requirements.
In implementation, when a user controls a common role object to execute an action through a client, or when an AI processing platform controls an AI role object to execute an action, the scene information is triggered to change, for example, when the user controls a common role object to play a killing card, the scene information is triggered to change, where the scene information includes a change in state information of the common role object (the killing card is one less in hand), and an additional killing card is added on a desktop, and the like. According to a preset scene change rule in the server, the scene information can also be triggered to change, for example, a bomb is preset to drop at a specified position every 20 minutes, and then a bomb drops at the specified position every 20 minutes, and the scene information changes, wherein the scene information changes, and the scene information changes (a bomb is generated), and the like.
In the implementation, the method for determining the related role object corresponding to the changed scene information may be various, for example, the role object whose visual range can include the scene information may be determined as the related role object according to the position of the changed scene information and the visual range of the role object, or, for example, the corresponding related role object may be preset for a special event (the scene information is changed when the event occurs).
In addition, the server also determines other scene information (which may include environment information, status information of the character object, etc.) that is affected and needs to be changed along with the changed scene information according to the changed scene information, and adjusts the other scene information accordingly.
Step two, if the associated role object comprises a common role object, sending the change information of the changed scene information to a client corresponding to the common role object in the associated role object; and if the associated role object comprises the AI role object, sending the change information of the changed scene information and the role object identifier of the associated role object comprising the AI role object to the AI processing platform.
The change information may be a value obtained by changing the changed scene information, or may be a change value, for example, if the original blood volume of a certain character object is 3 and the blood volume after the change is 4, the change information of the scene information may be 4 or may be increased by 1.
In implementation, the server may record a corresponding relationship between each common role object and the client, if the associated role object includes a common role object, the client corresponding to the corresponding common role object may be determined according to the corresponding relationship, and the change information may be sent to the determined client, and the client may display a corresponding animation effect in a scene displayed by the client according to the change information, for example, when a house in front collapses, after seeing that the scene changes, the user may determine a response that the user needs to make, and if it is determined that a certain action needs to be performed, the client may further send an action request to the server.
In implementation, if the associated role object includes an AI role object, a processing request may be sent to the AI processing platform, where the processing request carries the change information and the role object identifier of each AI role object included in the associated role object, and the AI processing platform may record in advance a logic rule corresponding to each AI role object (the AI processing platform may determine a corresponding behavior logic rule according to information such as a scene and a state where the AI role object is located, or a manager may specify a corresponding behavior logic rule for the AI role object in advance), when receiving the processing request, the AI processing platform can search the corresponding behavior logic rule according to the role object identifier therein, and perform behavior decision based on the change information and the searched behavior logic rule, and if the action is determined to be required, sending an action request to the server according to the action decision. In the course of behavior decision, if some scene information is needed according to the logic rule, the corresponding scene information can be obtained from the server.
In the embodiment of the present invention, when receiving an action request sent by a client or an AI processing platform, a server may control corresponding scene information according to the action request, and a processing procedure may be as follows:
in a first situation, when an action request carrying action information and a role object identifier sent by a client is received, the feasibility of the action information is verified according to a preset rule, and if the verification is passed, a common role object corresponding to the role object identifier is controlled to execute an action corresponding to the action information.
And in the second case, when an action request which is sent by the AI processing platform and carries action information and a role object identifier is received, verifying the feasibility of the action information according to a preset rule, and if the verification is passed, controlling the AI role object corresponding to the role object identifier to execute the action corresponding to the action information.
Specifically, the process of verifying the feasibility of the action information according to the preset rule may be as follows: and sending the action request to the logic platform so that the logic platform verifies the feasibility of the action information according to the stored preset rule and feeds back a verification result.
The action request is used for requesting the server to control the role object to execute a specified action. The preset rules may be basic behavior rules in the network application that are based on natural rules and/or human rules. In the embodiment of the present invention, an independent logic platform may be provided for processing the basic logic of the network application, and if it is determined that the execution of a certain action is feasible, for example, a certain user requests to move a certain box, and based on a preset rule of the game, the current state of the box is not movable, it is determined that the action request is rejected. The logical platform may be a module of the scene server or may be a separate server.
In implementation, after receiving an action request sent by a client or an AI processing platform, a server may send the action request to a logic platform, the logic platform verifies the feasibility of the action information in the action request according to a preset rule, and feeds back a verification result to the server, if the verification result received by the server passes, the server controls a corresponding character object to execute a corresponding action, for example, a "killer" card is issued, a skill is used, and if the verification result does not pass, the server may reject the action request. The scene information can be changed by executing the corresponding action, and further, the notification of the change information can be performed according to the method above in the embodiment.
In the above processing, the server applies the same processing method to the operation requests of the normal character object and the AI character object.
A schematic diagram of a network system structure provided by the embodiment of the present invention may be as shown in fig. 2. In the network system structure, the AI processing platform and the logic platform are independent servers other than the scene server, so that the AI processing platform and the logic platform can provide services for one or more scene servers.
In the embodiment of the invention, the server can record the role type of each role object storing the state information in the local cache space, can record the role type of the AI role object locally allocated with the cache space as the AI type, and records the role type of the ordinary role object locally allocated with the cache space as the ordinary type. Accordingly, a role type table can be established for recording the role types of the roles. Based on the above-mentioned processing method for managing the status information of the character objects by allocating the cache space and the character types of the respective character objects recorded by the server, the server can implement the transition between the normal character object and the AI character object as follows:
when a request for converting a first common role object in a local scene into an AI role object is received, the locally recorded role type of the first common role object is modified from a common type to an AI type.
In implementation, an intelligent hosting function can be provided for a user at a client, when the user operates and starts the intelligent hosting function in the client, the client can be triggered to send an intelligent hosting request to a server, and after the server receives the intelligent hosting request, the role type of a common role object corresponding to the client can be modified from the common type to an AI type in the role type table. In addition, the server may also actively convert a certain general character object into an AI character object when a certain trigger condition occurs according to a predefined rule.
When a request for converting a first AI role object in a local scene into a common role object is received, the locally recorded role type of the first AI role object is modified from an AI type to a common type.
In implementation, when a user finishes operation in a client, the client may be triggered to send an intelligent hosting termination request to a server, and after the server receives the intelligent hosting termination request, the role type of the common role object corresponding to the client may be modified from an AI type to a common type in the role type table. In addition, the server may also actively convert an AI character object into a normal character object when a certain trigger condition occurs according to a predefined rule.
In the embodiment of the invention, when a request for adding the first AI role object into the local scene is received, the state information of the first AI role object is obtained, the corresponding cache space is allocated to the first AI role object, the state information of the first AI role object is stored in the cache space, and the state information of the first AI role object stored in the cache space is deleted when the first AI role object leaves the local scene, so that the AI role object can be added and removed at any time in the running process of the main program of the server, and the scheduling flexibility of the AI role object can be improved.
EXAMPLE III
Based on the same technical concept, an embodiment of the present invention further provides an apparatus for managing a role object, as shown in fig. 3, the apparatus includes:
an obtaining module 310, configured to obtain state information of a first artificial intelligence AI role object when a request for adding the first AI role object to a local scene is received;
a storage module 320, configured to allocate a corresponding cache space for the first AI role object, and store the state information of the first AI role object in the cache space;
a deleting module 330, configured to delete the state information of the first AI role stored in the cache space when the first AI role object leaves the local scene.
Preferably, the obtaining module 310 is configured to:
when a request for migrating a first AI role object from the scene of other servers to a local scene is received, acquiring the state information of the first AI role object from a cache space allocated to the first AI role object by the other servers; or,
when a request for newly creating a first AI role object in a local scene is received, state information of the first AI role object carried in the request is acquired.
Preferably, the apparatus further comprises a sending module, configured to:
when scene information changes, determining an associated role object in a local scene corresponding to the changed scene information;
if the associated role object comprises a common role object, sending the change information of the changed scene information to a client corresponding to the common role object in the associated role object;
and if the associated role object comprises an AI role object, sending the change information of the changed scene information and the role object identifier of the associated role object comprising the AI role object to an AI processing platform.
Preferably, the apparatus further comprises a control module for:
when an action request which is sent by a client and carries action information and a role object identifier is received, verifying the feasibility of the action information according to a preset rule, and if the verification is passed, controlling a common role object corresponding to the role object identifier to execute an action corresponding to the action information; or,
when an action request which is sent by an AI processing platform and carries action information and a role object identifier is received, verifying the feasibility of the action information according to a preset rule, and if the verification is passed, controlling an AI role object corresponding to the role object identifier to execute an action corresponding to the action information.
Preferably, the control module is configured to:
and sending the action request to a logic platform so that the logic platform verifies the feasibility of the action information according to a preset rule stored in the logic platform and feeds back a verification result.
Preferably, the apparatus further comprises a conversion module configured to:
recording the role type of an AI role object locally allocated with a cache space as an AI type, and recording the role type of a common role object locally allocated with a cache space as a common type;
when a request for converting a first common role object in a local scene into an AI role object is received, modifying the locally recorded role type of the first common role object from a common type to an AI type;
when a request for converting a first AI role object in a local scene into a common role object is received, the locally recorded role type of the first AI role object is modified from an AI type to a common type.
In the embodiment of the invention, when a request for adding the first AI role object into the local scene is received, the state information of the first AI role object is obtained, the corresponding cache space is allocated to the first AI role object, the state information of the first AI role object is stored in the cache space, and the state information of the first AI role object stored in the cache space is deleted when the first AI role object leaves the local scene, so that the AI role object can be added and removed at any time in the running process of the main program of the server, and the scheduling flexibility of the AI role object can be improved.
Example four
Fig. 4 is a schematic structural diagram of a server (which may be used as a scene server for the network application) in the embodiment of the present invention. The server 1900 may vary widely by configuration or performance and may include one or more Central Processing Units (CPUs) 1922 (e.g., one or more processors) and memory 1932, one or more storage media 1930 (e.g., one or more mass storage devices) storing applications 1942 or data 1944. Memory 1932 and storage medium 1930 can be, among other things, transient or persistent storage. The program stored in the storage medium 1930 may include one or more modules (not shown), each of which may include a series of instructions operating on a server. Still further, a central processor 1922 may be provided in communication with the storage medium 1930 to execute a series of instruction operations in the storage medium 1930 on the server 1900.
The server 1900 may also include one or more power supplies 1926, one or more wired or wireless network interfaces 1950, one or more input-output interfaces 1958, one or more keyboards 1956, and/or one or more operating systems 1941, such as Windows Server, Mac OSXTM, UnixTM, LinuxTM, FreeBSDTM, etc.
Server 1900 may include memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors include instructions for:
when a request for adding a first Artificial Intelligence (AI) role object into a local scene is received, acquiring state information of the first AI role object;
allocating a corresponding cache space for the first AI role object, and storing the state information of the first AI role object in the cache space;
and deleting the state information of the first AI role stored in the cache space when the first AI role object leaves the local scene.
Preferably, the acquiring the state information of the first AI character object when receiving a request for adding the first AI character object to a local scene includes:
when a request for migrating a first AI role object from the scene of other servers to a local scene is received, acquiring the state information of the first AI role object from a cache space allocated to the first AI role object by the other servers; or,
when a request for newly creating a first AI role object in a local scene is received, state information of the first AI role object carried in the request is acquired.
Preferably, the method further comprises the following steps:
when scene information changes, determining an associated role object in a local scene corresponding to the changed scene information;
if the associated role object comprises a common role object, sending the change information of the changed scene information to a client corresponding to the common role object in the associated role object;
and if the associated role object comprises an AI role object, sending the change information of the changed scene information and the role object identifier of the associated role object comprising the AI role object to an AI processing platform.
Preferably, the method further comprises the following steps:
when an action request which is sent by a client and carries action information and a role object identifier is received, verifying the feasibility of the action information according to a preset rule, and if the verification is passed, controlling a common role object corresponding to the role object identifier to execute an action corresponding to the action information; or,
when an action request which is sent by an AI processing platform and carries action information and a role object identifier is received, verifying the feasibility of the action information according to a preset rule, and if the verification is passed, controlling an AI role object corresponding to the role object identifier to execute an action corresponding to the action information.
Preferably, the verifying the feasibility of the action information according to a preset rule includes:
and sending the action request to a logic platform so that the logic platform verifies the feasibility of the action information according to a preset rule stored in the logic platform and feeds back a verification result.
Preferably, the method further comprises the following steps:
recording the role type of an AI role object locally allocated with a cache space as an AI type, and recording the role type of a common role object locally allocated with a cache space as a common type;
when a request for converting a first common role object in a local scene into an AI role object is received, modifying the locally recorded role type of the first common role object from a common type to an AI type;
when a request for converting a first AI role object in a local scene into a common role object is received, the locally recorded role type of the first AI role object is modified from an AI type to a common type.
In the embodiment of the invention, when a request for adding the first AI role object into the local scene is received, the state information of the first AI role object is obtained, the corresponding cache space is allocated to the first AI role object, the state information of the first AI role object is stored in the cache space, and the state information of the first AI role object stored in the cache space is deleted when the first AI role object leaves the local scene, so that the AI role object can be added and removed at any time in the running process of the main program of the server, and the scheduling flexibility of the AI role object can be improved.
It should be noted that: the role object management apparatus provided in the above embodiment is only illustrated by dividing the function modules when managing the status information of the role object, and in practical applications, the function allocation may be completed by different function modules according to needs, that is, the internal structure of the apparatus may be divided into different function modules to complete all or part of the functions described above. In addition, the role object management apparatus provided in the foregoing embodiment and the role object management method embodiment belong to the same concept, and specific implementation processes thereof are described in detail in the method embodiment and are not described herein again.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (12)

1. A method for role object management, the method comprising:
when a request for adding a first Artificial Intelligence (AI) role object into a local scene is received, acquiring state information of the first AI role object;
allocating a corresponding cache space for the first AI role object, and storing the state information of the first AI role object in the cache space;
and deleting the state information of the first AI role stored in the cache space when the first AI role object leaves the local scene.
2. The method of claim 1, wherein obtaining the status information of the first AI character object when a request to join the first AI character object to the local context is received comprises:
when a request for migrating a first AI role object from the scene of other servers to a local scene is received, acquiring the state information of the first AI role object from a cache space allocated to the first AI role object by the other servers; or,
when a request for newly creating a first AI role object in a local scene is received, state information of the first AI role object carried in the request is acquired.
3. The method of claim 1, further comprising:
when scene information changes, determining an associated role object in a local scene corresponding to the changed scene information;
if the associated role object comprises a common role object, sending the change information of the changed scene information to a client corresponding to the common role object in the associated role object;
and if the associated role object comprises an AI role object, sending the change information of the changed scene information and the role object identifier of the associated role object comprising the AI role object to an AI processing platform.
4. The method of claim 1, further comprising:
when an action request which is sent by a client and carries action information and a role object identifier is received, verifying the feasibility of the action information according to a preset rule, and if the verification is passed, controlling a common role object corresponding to the role object identifier to execute an action corresponding to the action information; or,
when an action request which is sent by an AI processing platform and carries action information and a role object identifier is received, verifying the feasibility of the action information according to a preset rule, and if the verification is passed, controlling an AI role object corresponding to the role object identifier to execute an action corresponding to the action information.
5. The method according to claim 4, wherein the verifying the feasibility of the action information according to a preset rule comprises:
and sending the action request to a logic platform so that the logic platform verifies the feasibility of the action information according to a preset rule stored in the logic platform and feeds back a verification result.
6. The method of claim 1, further comprising:
recording the role type of an AI role object locally allocated with a cache space as an AI type, and recording the role type of a common role object locally allocated with a cache space as a common type;
when a request for converting a first common role object in a local scene into an AI role object is received, modifying the locally recorded role type of the first common role object from a common type to an AI type;
when a request for converting a first AI role object in a local scene into a common role object is received, the locally recorded role type of the first AI role object is modified from an AI type to a common type.
7. An apparatus for character object management, the apparatus comprising:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring the state information of a first Artificial Intelligence (AI) role object when receiving a request for adding the first AI role object into a local scene;
the storage module is used for allocating a corresponding cache space for the first AI role object and storing the state information of the first AI role object in the cache space;
and the deleting module is used for deleting the state information of the first AI role stored in the cache space when the first AI role object leaves the local scene.
8. The apparatus of claim 7, wherein the obtaining module is configured to:
when a request for migrating a first AI role object from the scene of other servers to a local scene is received, acquiring the state information of the first AI role object from a cache space allocated to the first AI role object by the other servers; or,
when a request for newly creating a first AI role object in a local scene is received, state information of the first AI role object carried in the request is acquired.
9. The apparatus of claim 7, further comprising a sending module configured to:
when scene information changes, determining an associated role object in a local scene corresponding to the changed scene information;
if the associated role object comprises a common role object, sending the change information of the changed scene information to a client corresponding to the common role object in the associated role object;
and if the associated role object comprises an AI role object, sending the change information of the changed scene information and the role object identifier of the associated role object comprising the AI role object to an AI processing platform.
10. The apparatus of claim 7, further comprising a control module to:
when an action request which is sent by a client and carries action information and a role object identifier is received, verifying the feasibility of the action information according to a preset rule, and if the verification is passed, controlling a common role object corresponding to the role object identifier to execute an action corresponding to the action information; or,
when an action request which is sent by an AI processing platform and carries action information and a role object identifier is received, verifying the feasibility of the action information according to a preset rule, and if the verification is passed, controlling an AI role object corresponding to the role object identifier to execute an action corresponding to the action information.
11. The apparatus of claim 10, wherein the control module is configured to:
and sending the action request to a logic platform so that the logic platform verifies the feasibility of the action information according to a preset rule stored in the logic platform and feeds back a verification result.
12. The apparatus of claim 7, further comprising a conversion module to:
recording the role type of an AI role object locally allocated with a cache space as an AI type, and recording the role type of a common role object locally allocated with a cache space as a common type;
when a request for converting a first common role object in a local scene into an AI role object is received, modifying the locally recorded role type of the first common role object from a common type to an AI type;
when a request for converting a first AI role object in a local scene into a common role object is received, the locally recorded role type of the first AI role object is modified from an AI type to a common type.
CN201310643217.XA 2013-12-03 2013-12-03 Role object management method and role object management device Pending CN103678892A (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
CN201310643217.XA CN103678892A (en) 2013-12-03 2013-12-03 Role object management method and role object management device
TW103140975A TWI561287B (en) 2013-12-03 2014-11-26 Method and device for managing role object
PCT/CN2015/072098 WO2015081907A1 (en) 2013-12-03 2015-02-02 Role object management method, device, and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310643217.XA CN103678892A (en) 2013-12-03 2013-12-03 Role object management method and role object management device

Publications (1)

Publication Number Publication Date
CN103678892A true CN103678892A (en) 2014-03-26

Family

ID=50316422

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310643217.XA Pending CN103678892A (en) 2013-12-03 2013-12-03 Role object management method and role object management device

Country Status (3)

Country Link
CN (1) CN103678892A (en)
TW (1) TWI561287B (en)
WO (1) WO2015081907A1 (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015081907A1 (en) * 2013-12-03 2015-06-11 腾讯科技(深圳)有限公司 Role object management method, device, and server
WO2017005162A1 (en) * 2015-07-07 2017-01-12 网易(杭州)网络有限公司 Game data processing method, game serving end and game client
WO2017050182A1 (en) * 2015-09-23 2017-03-30 腾讯科技(深圳)有限公司 Smart hardware interaction method and device
CN107103644A (en) * 2017-04-21 2017-08-29 腾讯科技(深圳)有限公司 The control method and device of object in a kind of virtual scene
CN107890674A (en) * 2017-11-13 2018-04-10 杭州电魂网络科技股份有限公司 AI behaviors call method and device
CN107930127A (en) * 2017-11-28 2018-04-20 腾讯科技(上海)有限公司 Method, apparatus, storage medium and the equipment of team's transfer scene are realized in game
CN108057249A (en) * 2017-11-29 2018-05-22 腾讯科技(成都)有限公司 A kind of business data processing method and device
CN108465242A (en) * 2018-03-31 2018-08-31 丁超 Network game processing method, device and computer storage media
CN109960545A (en) * 2019-03-29 2019-07-02 网易(杭州)网络有限公司 Virtual object control method, system, device, medium and electronic equipment

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113769408B (en) * 2021-09-15 2024-05-10 网易(杭州)网络有限公司 Game data processing method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060223600A1 (en) * 2004-11-18 2006-10-05 Turbo Squid, Inc. Method of dynamically modifying a computer game
CN1848124A (en) * 2005-04-12 2006-10-18 国际商业机器公司 Slitless game world system based on server/customer's machine and method thereof
CN1945588A (en) * 2006-10-27 2007-04-11 北京金山软件有限公司 Network game system and method for establishing game elements
CN102215209A (en) * 2010-04-07 2011-10-12 上海乐格网络科技有限公司 Online game engine for large-scale multiplayer online role playing
CN102629302A (en) * 2012-04-22 2012-08-08 盛绩信息技术(上海)有限公司 Method and system for establishing self-initiated games

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20040052131A (en) * 2002-12-13 2004-06-19 한국전자통신연구원 Distance based distributed online game server system
CN101169806B (en) * 2007-09-28 2010-06-02 腾讯科技(深圳)有限公司 Role data management device and method in network game system
CN102158524A (en) * 2010-12-30 2011-08-17 北京像素软件科技股份有限公司 Rendering-based distributed behavior control system
US8570320B2 (en) * 2011-01-31 2013-10-29 Microsoft Corporation Using a three-dimensional environment model in gameplay
TW201309370A (en) * 2011-08-25 2013-03-01 Moregeek Entertainment Inc A method of massively multi-player online game
CN103678892A (en) * 2013-12-03 2014-03-26 腾讯科技(成都)有限公司 Role object management method and role object management device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060223600A1 (en) * 2004-11-18 2006-10-05 Turbo Squid, Inc. Method of dynamically modifying a computer game
CN1848124A (en) * 2005-04-12 2006-10-18 国际商业机器公司 Slitless game world system based on server/customer's machine and method thereof
CN1945588A (en) * 2006-10-27 2007-04-11 北京金山软件有限公司 Network game system and method for establishing game elements
CN102215209A (en) * 2010-04-07 2011-10-12 上海乐格网络科技有限公司 Online game engine for large-scale multiplayer online role playing
CN102629302A (en) * 2012-04-22 2012-08-08 盛绩信息技术(上海)有限公司 Method and system for establishing self-initiated games

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015081907A1 (en) * 2013-12-03 2015-06-11 腾讯科技(深圳)有限公司 Role object management method, device, and server
WO2017005162A1 (en) * 2015-07-07 2017-01-12 网易(杭州)网络有限公司 Game data processing method, game serving end and game client
WO2017050182A1 (en) * 2015-09-23 2017-03-30 腾讯科技(深圳)有限公司 Smart hardware interaction method and device
US10874937B2 (en) 2015-09-23 2020-12-29 Tencent Technology (Shenzhen) Company Limited Intelligent hardware interaction method and system
CN107103644A (en) * 2017-04-21 2017-08-29 腾讯科技(深圳)有限公司 The control method and device of object in a kind of virtual scene
CN107103644B (en) * 2017-04-21 2019-03-08 腾讯科技(深圳)有限公司 The control method and device of object in a kind of virtual scene
CN107890674A (en) * 2017-11-13 2018-04-10 杭州电魂网络科技股份有限公司 AI behaviors call method and device
CN107930127B (en) * 2017-11-28 2020-12-11 腾讯科技(上海)有限公司 Method, device, storage medium and device for realizing team transfer scene in game
CN107930127A (en) * 2017-11-28 2018-04-20 腾讯科技(上海)有限公司 Method, apparatus, storage medium and the equipment of team's transfer scene are realized in game
CN108057249A (en) * 2017-11-29 2018-05-22 腾讯科技(成都)有限公司 A kind of business data processing method and device
WO2019105377A1 (en) * 2017-11-29 2019-06-06 腾讯科技(深圳)有限公司 Service processing method and apparatus, and storage medium
CN108465242A (en) * 2018-03-31 2018-08-31 丁超 Network game processing method, device and computer storage media
CN109960545A (en) * 2019-03-29 2019-07-02 网易(杭州)网络有限公司 Virtual object control method, system, device, medium and electronic equipment

Also Published As

Publication number Publication date
WO2015081907A1 (en) 2015-06-11
TWI561287B (en) 2016-12-11
TW201521845A (en) 2015-06-16

Similar Documents

Publication Publication Date Title
CN103678892A (en) Role object management method and role object management device
CN110898428B (en) Multi-virtual object interaction method, device, server and storage medium
WO2014194695A1 (en) Method and server for pvp team matching in computer games
CN113209633A (en) Mirror image processing method and device, electronic equipment and readable storage medium
CN111228813B (en) Virtual object control method, device, equipment and storage medium
CN110935169B (en) Control method of virtual object, information display method, device, equipment and medium
JP2024541214A (en) Method, device, equipment, and program for controlling virtual objects
CN110716766A (en) Game scene loading method and device, computer readable medium and electronic equipment
Bhojan et al. CloudyGame: Enabling cloud gaming on the edge with dynamic asset streaming and shared game instances
US20120284651A1 (en) Persistent party rooms
WO2025031207A1 (en) Method and apparatus for generating media content, device, and storage medium
CN113713388A (en) Game data processing method, device, equipment and storage medium
CN105791080A (en) Group message processing method and system, and electronic device
US20250083040A1 (en) Matchmaking architecture for online game platform
US9149725B2 (en) Method and server for PVP team matching in computer games
US20240193705A1 (en) Social processing method and related device
WO2024125136A1 (en) Virtual object display method and apparatus, device, medium and program product
CN118059487A (en) Method, device, terminal and storage medium for rapidly discarding virtual prop
CN117695623A (en) Method and device for managing physical scene resources in virtual world and computer equipment
Farooq et al. Faster dynamic spatial partitioning in opensimulator
CN114425163A (en) Virtual object control method, device, terminal, storage medium and program product
WO2013165427A1 (en) Persistent party rooms
CN114047918A (en) Task processing method, device, equipment, storage medium and product
CN113713381A (en) Object management method, device, equipment, storage medium and system
US20240382850A1 (en) Skill acquisition based on virtual scene

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20140326