Game resource control method and device, storage medium and electronic device
By allowing different game accounts to share and rent game resources, the problem of wasted game resources is solved, resource utilization and game activity are improved, and account intimacy is enhanced.
Patent Information
- Application Number
- CN202111449944.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-30
- Publication Date
- 2025-12-16
- Estimated Expiration
- 2041-11-30
AI Technical Summary
In existing technologies, game resources under a game account cannot be shared, leading to resource waste, reduced player interest, and decreased game activity and playability.
A method for controlling game resources is provided, which allows different game accounts to share and rent game resources. By receiving resource sharing requests, the method obtains target game resources and allocates them to a second game account, enabling the copying, freezing, or deletion of resources. It also calculates intimacy bonus values to increase account intimacy and settles accounts after the rental period expires.
It improved the interactivity and utilization of game resources, enhanced the intimacy between game accounts, and increased the game's activity and playability.
Smart Images

Figure CN114082196B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of computer, in particular to a game resource control method and device, a storage medium and an electronic device. BACKGROUND
[0002] In the related art, online games do not allow game data leasing between different game players because the game resources under each game account are private data of the game account. Each game player can only use game data such as game characters and resources in his own account. However, a game account can manage multiple data, and the current player can only use a part of the data, resulting in idle state of the remaining game resources, resource waste, and reduced interest in the game of some players who cannot experience high-quality game data, and ultimately reduced game activity and playability.
[0003] To solve the above problems in the related art, no effective solution has been found so far. SUMMARY
[0004] The embodiments of the present application provide a game resource control method and device, a storage medium and an electronic device.
[0005] According to an embodiment of the present application, a game resource control method is provided, including: receiving a resource sharing request of a first client, wherein the first client is used to log in a first game account, and the resource sharing request is used to request to lease a target game resource configured by the first game account; obtaining the target game resource of the first game account based on the resource sharing request; receiving a resource transfer request of a second client, wherein the second client is used to log in a second game account, and the resource transfer request is used to request to lease the target game resource; and allocating the target game resource to the second game account.
[0006] Optionally, obtaining the target game resource of the first game account based on the resource sharing request includes one of the following: in response to a first resource sharing request, searching for the target game resource from game data of the first game account, copying the target game resource to a shared resource pool, and maintaining a state of the target game resource in the game data of the first game account as an active state; and in response to a second resource sharing request, searching for the target game resource from the game data of the first game account, copying the target game resource to the shared resource pool, deleting or freezing the target game resource in the game data of the first game account, and adding or un-freezing the target game resource in the game data of the first game account after a lease time of the target game resource arrives.
[0007] Optionally, after the target game resource is allocated to the second game account, the method further comprises: calculating an affinity gain value based on the target game resource; and increasing the affinity between the first game account and the second game account according to the affinity gain value.
[0008] Optionally, after the target game resource is allocated to the second game account, the method further comprises: allocating an affinity permission related to the first game account to the second game account; and in response to the affinity permission triggered by the second game account, allocating a first game character controlled by the first game account and a second game character controlled by the second game account to the same game camp.
[0009] Optionally, after the target game resource is allocated to the second game account, the method further comprises: searching for a matching game resource associated with the target game resource, wherein the matching game resource is a game resource that is used in conjunction with the target game resource in a game scene; determining whether the second game account has configured the matching game resource; and if the second game account has not configured the matching game resource, pushing the matching game resource or a rental prompt information of the matching game resource to the second game account.
[0010] Optionally, after the target game resource is allocated to the second game account, the method further comprises: after a rental time of the target game resource arrives, counting a settlement resource generated by the second game account using the target game resource within the rental time; transferring the settlement resource from the second game account to the first game account; or, determining whether the settlement resource is a valid resource in the second game account, if the settlement resource is a valid resource in the second game account, retaining the settlement resource in the second game account, if the settlement resource is an invalid resource in the second game account, deleting the settlement resource in the second game account; and / or determining a resource state of the target game resource after the rental time, and rolling back the resource state of the target game resource to an initial state before the rental time.
[0011] Optionally, allocating the target game resource to the second game account comprises: reading a historical game parameter of the target game resource from the first client and / or a game server, wherein the historical game parameter is used to indicate a use of the target game resource by the first game account within a recent time period; allocating the target game resource to the second game account, and generating operation guide information of the target game resource according to the historical game parameter, so that the second game account uses the target game resource according to the operation guide information.
[0012] Optionally, the obtaining the target game resource of the first game account based on the resource sharing request comprises at least one of the following: obtaining a game character resource of the first game account based on the resource sharing request; obtaining a game prop resource of the first game account based on the resource sharing request; obtaining a game permission resource of the first game account based on the resource sharing request; obtaining a game friend resource of the first game account based on the resource sharing request; obtaining a game progress resource of the first game account based on the resource sharing request; and obtaining a character image configuration resource of the first game account based on the resource sharing request.
[0013] According to another embodiment of the present application, a game resource control device is provided, comprising: a first receiving module configured to receive a resource sharing request of a first client, wherein the first client is configured to log in a first game account, and the resource sharing request is configured to request to rent a target game resource configured by the first game account; an obtaining module configured to obtain the target game resource of the first game account based on the resource sharing request; a second receiving module configured to receive a resource transfer request of a second client, wherein the second client is configured to log in a second game account, and the resource transfer request is configured to request to rent the target game resource; and a first distribution module configured to distribute the target game resource to the second game account.
[0014] Optionally, the obtaining module comprises one of the following: a first obtaining unit configured to, in response to a first resource sharing request, search for the target game resource from game data of the first game account, copy the target game resource to a shared resource pool, and maintain a state of the target game resource in the game data of the first game account as an active state; and a second obtaining unit configured to, in response to a second resource sharing request, search for the target game resource from the game data of the first game account, copy the target game resource to the shared resource pool, delete or freeze the target game resource in the game data of the first game account, and add or unfreeze the target game resource in the game data of the first game account after a lease time of the target game resource arrives.
[0015] Optionally, the device further comprises: a calculating module configured to calculate an affinity gain value based on the target game resource after the first distribution module distributes the target game resource to the second game account; and an increasing module configured to increase an affinity between the first game account and the second game account according to the affinity gain value.
[0016] Optionally, the apparatus further comprises a second distribution module configured to, after the first distribution module distributes the target game resource to the second game account, distribute an intimate permission related to the first game account to the second game account; and a third distribution module configured to, in response to the intimate permission triggered by the second game account, distribute a first game character controlled by the first game account and a second game character controlled by the second game account to the same game camp.
[0017] Optionally, the apparatus further comprises a searching module configured to, after the first distribution module distributes the target game resource to the second game account, search for a matched game resource associated with the target game resource, wherein the matched game resource is a game resource that is matched for use in a game scene with the target game resource; a judging module configured to judge whether the second game account has configured the matched game resource; and a pushing module configured to, if the second game account has not configured the matched game resource, push the matched game resource or a rental prompt information of the matched game resource to the second game account.
[0018] Optionally, the apparatus further comprises a processing module configured to, after the first distribution module distributes the target game resource to the second game account, after a rental time of the target game resource arrives, count a settlement resource generated by the second game account using the target game resource within the rental time; transfer the settlement resource from the second game account to the first game account; or, judge whether the settlement resource is a valid resource in the second game account, if the settlement resource is a valid resource in the second game account, retain the settlement resource in the second game account, if the settlement resource is an invalid resource in the second game account, delete the settlement resource in the second game account; and / or a rollback module configured to determine a resource state of the target game resource after the rental time, and roll back the resource state of the target game resource to an initial state before the rental time.
[0019] Optionally, the first distribution module comprises a reading unit configured to read a historical game parameter of the target game resource from the first client and / or a game server, wherein the historical game parameter is used to indicate a use of the target game resource by the first game account within a latest time period; and a distribution unit configured to distribute the target game resource to the second game account, and generate operation guide information of the target game resource according to the historical game parameter, so that the second game account uses the target game resource according to the operation guide information.
[0020] Optionally, the obtaining module comprises at least one of: a third obtaining unit configured to obtain the game character resource of the first game account based on the resource sharing request; a fourth obtaining unit configured to obtain the game prop resource of the first game account based on the resource sharing request; a fifth obtaining unit configured to obtain the game permission resource of the first game account based on the resource sharing request; a sixth obtaining unit configured to obtain the game friend resource of the first game account based on the resource sharing request; a seventh obtaining unit configured to obtain the game progress resource of the first game account based on the resource sharing request; and an eighth obtaining unit configured to obtain the character image configuration resource of the first game account based on the resource sharing request.
[0021] According to a further embodiment of the present application, a storage medium is also provided, wherein the storage medium stores a computer program, and the computer program is configured to execute the steps of any one of the method embodiments when running.
[0022] According to a further embodiment of the present application, an electronic device is also provided, comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the computer program to execute the steps of any one of the method embodiments.
[0023] According to the present application, the resource sharing request of the first client is received, wherein the first client is used to log in the first game account, the resource sharing request is used to request to rent the target game resource configured by the first game account, and the target game resource of the first game account is obtained based on the resource sharing request; the resource transfer request of the second client is received, wherein the second client is used to log in the second game account, the resource transfer request is used to request to rent the target game resource, the target game resource is allocated to the second game account, the target game resource of the first game account is obtained based on the resource sharing request of the first client, and the target game resource is allocated to the second game account sending the resource transfer request, thereby solving the technical problem that the related art cannot share the game resource in the user game account, and improving the interactivity of the game resource between different game accounts and the utilization rate of the game resource. BRIEF DESCRIPTION OF DRAWINGS
[0024] The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiments of the application and together with the description serve to explain the application. In the drawings:
[0025] Figure 1 is a hardware structure block diagram of a game resource control server according to an embodiment of the present application;
[0026] Figure 2is a flowchart of a game resource control method according to an embodiment of the application;
[0027] Figure 3 is a schematic diagram of displaying a shared identifier on a virtual character according to an embodiment of the application;
[0028] Figure 4 is a structural block diagram of a game resource control device according to an embodiment of the application;
[0029] Figure 5 is a structural diagram of an electronic device according to an embodiment of the application. DETAILED DESCRIPTION
[0030] In order to enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor should fall within the scope of protection of the present application. It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other.
[0031] It should be noted that the terms "first", "second", and the like in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and do not necessarily indicate a specific order or a chronological sequence. It should be understood that the data thus used can be interchanged under appropriate circumstances, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, product or device including a series of steps or units does not necessarily have to include only those steps or units clearly listed, but can include other steps or units not clearly listed or inherent to the process, method, product or device.
[0032] Embodiment 1
[0033] The method embodiments provided in the embodiments of the present application can be executed in a mobile phone, a tablet, a server, a computer or similar electronic terminal. Taking the case of running on a server, Figure 1 is a hardware structural block diagram of a game resource control server according to an embodiment of the present application. As shown in Figure 1 , the server can include one or more Figure 1The server shown in the figure only has one processor 102 (the processor 102 can include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data. Optionally, the server can further include a transmission device 106 for communication function and an input and output device 108. Those skilled in the art can understand that, Figure 1 The structure shown in the figure is only schematic and does not limit the structure of the server. For example, the server can further include more or fewer components than those shown in the figure, or have a different configuration from that shown in the figure. Figure 1 Figure 1 The structure shown in the figure is only schematic and does not limit the structure of the server. For example, the server can further include more or fewer components than those shown in the figure, or have a different configuration from that shown in the figure.
[0034] The memory 104 can be used to store server programs, such as software programs of application software and modules, such as a server program corresponding to a game resource control method in an embodiment of the application. The processor 102 executes various functional applications and data processing by running the server program stored in the memory 104, that is, implements the method described above. The memory 104 can include a high-speed random access memory and can further include a non-volatile memory, such as one or more magnetic storage devices, a flash memory, or other non-volatile solid-state memories. In some examples, the memory 104 can further include a memory remotely arranged with respect to the processor 102, and these remote memories can be connected to the server through a network. Examples of the network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof. In the embodiment, the processor 104 is used to control the target virtual character to perform a specified operation to complete a game task in response to a human-computer interaction instruction and a game strategy. The memory 104 is used to store program scripts, configuration information, attribute information of virtual characters, and the like.
[0035] The transmission device 106 is used to receive or send data via a network. Specific examples of the network can include a wireless network provided by a communication provider of the server. In one example, the transmission device 106 includes a network adapter (NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet in a wireless manner.
[0036] Optionally, the input and output device 108 further includes a human-computer interaction screen, which is used to obtain a human-computer interaction instruction through a human-computer interaction interface and is further used to present a streaming media picture.
[0037] In the embodiment, a game resource control method is provided, Figure 2 is a flowchart of a game resource control method according to an embodiment of the application, as shown inFigure 2 As shown, the flow includes the following steps:
[0038] Step S202, receiving a resource sharing request of a first client, wherein the first client is used to log in a first game account, and the resource sharing request is used to request to rent a target game resource configured by the first game account;
[0039] Optionally, the resource sharing request is also used to indicate a permission range of the target game resource, and a second game account renting the target game resource can only use the target game resource within the corresponding permission range, such as using the target game resource only within a fixed time period, using the target game resource only for a specific scene, and the like.
[0040] Step S204, obtaining the target game resource of the first game account based on the resource sharing request;
[0041] Step S206, receiving a resource transfer-in request of a second client, wherein the second client is used to log in a second game account, and the resource transfer-in request is used to request to rent the target game resource;
[0042] Step S208, allocating the target game resource to the second game account;
[0043] After the target game resource is allocated to the second game account, the second game account can use the target game resource originally under the first game account, thereby realizing game resource sharing.
[0044] The embodiment can be applied in game scenes of MMO (Massive Multiplayer Online Game) and big world, and the network architecture includes a game server, at least two game clients, a first game client and a second game client, a first game account and a second game account logged in, the first game account being a tenant account, the second game account being a buyer account, and the first game account managing multiple game data.
[0045] By the above steps, the resource sharing request of the first client is received, the first client is used to log in the first game account, the resource sharing request is used to request to rent the target game resource configured by the first game account, and the target game resource of the first game account is obtained based on the resource sharing request; the resource transfer request of the second client is received, the second client is used to log in the second game account, the resource transfer request is used to request to rent the target game resource, the target game resource is allocated to the second game account, the target game resource of the first game account is obtained based on the resource sharing request of the first client, and the target game resource is allocated to the second game account sending the resource transfer request, thereby solving the technical problem that related technologies cannot share game resources in a user game account, and improving the interactivity of game resources between different game accounts and the utilization rate of game resources.
[0046] Optionally, the target game resource of the embodiment can be, but is not limited to, a game character, a prop, a weapon, a permission, a friend, and face data. The target game resource of the first game account obtained based on the resource sharing request can be, but is not limited to, a game character resource (for example, a PCC (player control character), a pet, etc. that has been unlocked, configured, or purchased by the first game account) of the first game account obtained based on the resource sharing request; a game prop resource (for example, a virtual weapon, a decoration, a prop fragment, etc. that has been unlocked, configured, or purchased by the first game account) of the first game account obtained based on the resource sharing request; a game permission resource of the first game account obtained based on the resource sharing request; a game friend resource (for example, a teammate, a spouse, a friend, etc. paired in a virtual game by the first game account) of the first game account obtained based on the resource sharing request; a game progress resource of the first game account obtained based on the resource sharing request; and a character image configuration resource (for example, face data, a skeleton model parameter, skin mapping data, etc. used by a configured virtual character of the first game account in a virtual game) of the first game account obtained based on the resource sharing request.
[0047] In some examples, the game permission resource of the first game account includes an operation permission of the first game account in a virtual game, such as being able to unlock a specified level, being able to call a specific game resource, the higher the level of the first game account and the more virtual currency spent, the greater the operation permission and the more game permission resources. In the embodiment, the game permission resource can be stored by a permission configuration table. In some examples, the game progress resource is all levels or the highest level (a game account of a specified level can only be matched to a game account of the same level or a game account of the same or lower level in game matching) that has been unlocked by the first game account, or a game progress or game time that the first game account is currently in.
[0048] In some implementation scenarios, the allocation of the target game resource to the second game account includes: obtaining lease billing information of the second game account, determining whether a billing amount in the lease billing information matches the target game resource, and if so, allocating the target game resource to the second game account; in another example, the allocation of the target game resource to the second game account includes: obtaining a lease exchange resource of the second game account, determining whether the lease exchange resource matches the target game resource, and if so, allocating the target game resource to the second game account, in which case the lease exchange resource is a game resource configured by the second game account, and the first game account and the second game account can exchange resources in a barter manner to achieve real mutual sharing and exchange of resources. Optionally, if the lease exchange resource and the target game resource are of the same type (of the same kind), it is determined that they match, and / or if the lease exchange resource and the target game resource correspond to the same amount of virtual transaction resources (such as game coins), it is determined that they match.
[0049] In this implementation scenario, game resources of each game account or game platform in a virtual game can be leased and shared. Players are divided into tenants and purchasers. The tenants share their game data (or game resources) with the game server through the first game account. The purchasers spend virtual currency to lease through the second game account. After the lease period expires, the game data is returned to the tenants or the game server.
[0050] The first game account uploads the game resources that the first game account is willing to lease to a virtual transaction market of an online mall. The second player selects target game resources that the second player wants to lease in the second client and pays a fee. The game server allocates the target game resources to the second game account. The second player can use the target game resources when logging in to the second game account. After the lease period expires, the target game resources are invalidated or deleted, and the experience ends. The second player can continue to lease by paying a fee again.
[0051] In one implementation of the embodiment, the obtaining of the target game resource of the first game account based on the resource sharing request includes one of the following:
[0052] In response to the first resource sharing request, the target game resource is searched from game data of the first game account, and the target game resource is copied to the shared resource pool while maintaining an active state of the target game resource in the game data of the first game account;
[0053] In response to the second resource sharing request, the target game resource is searched from game data of the first game account, the target game resource is copied to the shared resource pool, and the target game resource is deleted or frozen in the game data of the first game account. After the lease period of the target game resource expires, the target game resource is added or unfrozen in the game data of the first game account.
[0054] In the solution, the sharing of the target game resource includes two strategies. One is to clone the target game resource in the first game account and copy it to a shared resource pool, so that the first game account and the second game account can use the target game resource at the same time. In this scenario, the game platform or the cloud platform where the target game resource is located needs to extract a certain rental fee. The other is to temporarily delete or freeze the target game resource in the first game account after the target game resource is listed or allocated to the second game account, and then restore the use permission of the target game resource in the first game account after the rental ends. In this way, the same game resource can be avoided in a game scene, and this strategy can be executed for rare game resources.
[0055] In one implementation scenario of the embodiment, after the target game resource is allocated to the second game account, the method further includes: calculating an affinity gain value based on the target game resource; and increasing the affinity between the first game account and the second game account according to the affinity gain value.
[0056] Optionally, calculating the affinity gain value based on the target game resource includes: analyzing the resource type and resource quantity of the target game resource according to the configuration information of the target game resource, and calculating the affinity gain value based on the resource type and resource quantity. The server pre-sets a mapping table of resource type and affinity gain value, and the resource quantity is positively correlated with the affinity gain value. For example, each unit of target game resource corresponds to 1 affinity gain value. If the quantity of target game resources is 10, the affinity gain value increases by 10.
[0057] The affinity between the first game account and the second game account in the virtual game can be affected by the affinity of the embodiment. For example, the higher the affinity, the higher the ranking in the friend list, the higher the probability of matching to the same camp and the same map area, the higher the delivery rate of broadcast messages, and the higher the coincidence degree of the script in the random scenario game.
[0058] In another implementation scenario of the embodiment, after the target game resource is allocated to the second game account, the method further includes: allocating an affinity permission related to the first game account to the second game account; and in response to the affinity permission triggered by the second game account, allocating the first game character controlled by the first game account and the second game character controlled by the second game account to the same game camp.
[0059] In an example of the present application, after the second game account completes the leasing action, the game server further establishes an association between the first game account and the second game account or increases the closeness, when the second game account is online and calls the target game resource, a notification message is generated synchronously to notify the first game client corresponding to the first game account, the first game account can choose to team up with / friend / accompany the second game account, or assign specific permissions to the second game account, such as the permission to enter the live broadcast room of the first game account, when online pairing is performed (such as 5V5 pairing), the server improves the matching probability of the first game account and the second game account based on the closeness or closeness permission, controls the first game account and the second game account to play in the same camp, and can also increase specific shared identifiers on the first virtual role and the second virtual role corresponding to the first game account and the second game account, wherein the shared identifier is used to represent that the first virtual role and the second virtual role are sharing resources with each other. Figure 3 is a schematic diagram of displaying a shared identifier on a virtual role according to an embodiment of the present application, the first virtual role and the second virtual role are both parties of sharing target game resources, and the third virtual role does not share resources. Optionally, a leasing identifier can also be displayed on the first virtual role corresponding to the first game account, wherein the leasing identifier is used to represent that the first virtual role has game resources to be shared, and other players in the same game scene as the first virtual role can quickly locate the first virtual role in the game scene according to the leasing identifier, and directly control the second virtual role being controlled to interact with the first virtual role to initiate a resource transfer request, so as to quickly lease game resources.
[0060] In an embodiment of the present embodiment, after the target game resource is allocated to the second game account, the method further includes: searching for a matching game resource associated with the target game resource, wherein the matching game resource is a game resource used in the game scene in conjunction with the target game resource; determining whether the second game account has configured the matching game resource; and if the second game account has not configured the matching game resource, pushing the matching game resource to the second game account or pushing a leasing prompt information of the matching game resource.
[0061] In the embodiment, when the second game account rents the target game resource, the second client or the server further determines and searches the associated game data matched with the target game resource, and the associated game data is used to create a game environment of the target game resource for the second game account. For example, the target game resource is a virtual character of a specific level, the character 1 of level 59 is matched with the scene 1, the character 1 of level 59 can only be operated in the scene 1, the character 2 is matched with the scene 2, and the character 2 of level 100 can only be operated in the scene 2. If the second game account has not loaded or unlocked the scenes 1 and 2, the system can push the game data of the scenes 1 and 2 as the associated matched game resource to the second game account, or push the lease prompt information of the associated game data to the second game account.
[0062] In one embodiment of the embodiment, after the target game resource is allocated to the second game account, the following steps are further included: after the lease time of the target game resource arrives, counting the settlement resource generated by the second game account using the target game resource within the lease time; transferring the settlement resource from the second game account to the first game account; or, determining whether the settlement resource is a valid resource in the second game account, if the settlement resource is a valid resource in the second game account, retaining the settlement resource in the second game account, if the settlement resource is an invalid resource in the second game account, deleting the settlement resource in the second game account; and / or determining the resource state of the target game resource after the lease time, and rolling back the resource state of the target game resource to the initial state before the lease time.
[0063] In the scheme, the settlement resource generated by the second game account using the target game resource in the virtual game, such as generating virtual gold coins using a rented virtual character, finding a treasure box, upgrading or downgrading a rented virtual prop, after the lease ends, the embodiment can determine the rule matched with the settlement resource of the target game resource during the lease of the target game resource, execute the rollback or non-rollback operation on the target game resource, and retain the generated settlement resource on the second game account or transfer it to the first game account. The second game account can obtain the settlement resource by additional payment. In some examples, the server can further determine whether the generated settlement resource is valid in the second game account, such as using a high-level prop to hit a lot of prop fragments, and the prop fragments can only be synthesized by a player account of level 100, and the first game account is actually level 50. For the first game account, it is invalid resource, and it can be directly deleted.
[0064] In one scheme of the embodiment, before receiving the resource transfer-in request of the second client, the scheme further includes: obtaining the target game resource, and storing the target game resource in the shared resource pool. In the embodiment, the target game resource can be a system preset game resource or a user customized game resource. A player or a creator can create high-quality game materials (such as characters, props, and costumes) by himself / herself. The platform can place the most popular game materials created by the players or the creators in the rentable shared resource pool by purchasing the most popular game materials, and any player can share and use the game materials by paying a fee.
[0065] In some examples of the embodiment, the target game resource is allocated to the second game account includes: reading historical game parameters of the target game resource from the first client and / or the game server, wherein the historical game parameters are used to indicate the use of the target game resource by the first game account in a recent time period; and the target game resource is allocated to the second game account, and operation guide information of the target game resource is generated according to the historical game parameters, so that the second game account uses the target game resource according to the operation guide information.
[0066] In this example, after the first game account selects to share a certain target game resource (such as a virtual prop or a virtual game character), the server judges the resource type of the target game resource. When the target game resource is a specific type of game resource, such as a virtual prop, the server further reads and stores historical game parameters from the first game client or the game server. When the target game resource is a game character, the historical game parameters can be virtual props (such as weapons and virtual pets) used by the game character in the historical game, skills equipped, game operations in the game process, selected teammates, etc. When the target game resource is a game prop resource, the historical game parameters can be the use of the game prop in the historical game, such as the use timing, the use object, the game copy participated in, etc. In this example, when generating the operation guide information, for example, the target game resource is a virtual prop, and the first game account has obtained a lot of virtual income by using the virtual prop in a recent period of time. When renting the virtual prop, the server can further obtain the use of the virtual prop by the first game account (such as game behavior parameters, use environment parameters of the virtual prop, instruction set and instruction sequence for controlling the virtual prop, etc.). After the second game account rents the virtual prop, the server generates operation guide information according to the game behavior of the first game account to guide the second game account to use the virtual prop reasonably and efficiently, so as to help the second game account to quickly master the virtual prop and improve the use efficiency of the target game resource.
[0067] By using the scheme of the embodiment, the interaction efficiency of game resources between different game accounts and the utilization rate of game data are improved.
[0068] Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be realized by means of software on a general hardware platform as necessary, and of course can also be realized by hardware, but in many cases the former is a better embodiment. Based on such understanding, the technical solutions of the present application can be embodied in the form of a software product in essence or in the form of a part of the prior art that makes a contribution, and the computer software product is stored in a storage medium (such as a ROM / RAM, a magnetic disk, or an optical disk), and includes a plurality of instructions for causing a terminal device (which can be a mobile phone, a computer, a server, or a network device) to execute the method described in each embodiment of the present application.
[0069] Embodiment 2
[0070] In this embodiment, a game resource control device is also provided for implementing the above embodiments and preferred embodiments, which have been described and will not be repeated. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware is also possible and is contemplated.
[0071] Figure 4 is a structural block diagram of a game resource control device according to an embodiment of the present application, as shown in Figure 4 The device includes a first receiving module 40, an acquisition module 42, a second receiving module 44, and a first allocation module 46, wherein,
[0072] The first receiving module 40 is configured to receive a resource sharing request of a first client, wherein the first client is configured to log in a first game account, and the resource sharing request is configured to request to rent a target game resource configured by the first game account;
[0073] The acquisition module 42 is configured to acquire the target game resource of the first game account based on the resource sharing request;
[0074] The second receiving module 44 is configured to receive a resource transfer request of a second client, wherein the second client is configured to log in a second game account, and the resource transfer request is configured to request to rent the target game resource;
[0075] The first allocation module 46 is configured to allocate the target game resource to the second game account.
[0076] Optionally, the obtaining module comprises one of the following: a first obtaining unit, configured to, in response to a first resource sharing request, find the target game resource from game data of the first game account, and copy the target game resource to the shared resource pool while maintaining a state of the target game resource in the game data of the first game account as an active state; and a second obtaining unit, configured to, in response to a second resource sharing request, find the target game resource from the game data of the first game account, copy the target game resource to the shared resource pool, and delete or freeze the target game resource in the game data of the first game account, and after a lease time of the target game resource arrives, add or un-freeze the target game resource in the game data of the first game account.
[0077] Optionally, the apparatus further comprises: a calculating module, configured to calculate an affinity gain value based on the target game resource after the first allocating module allocates the target game resource to the second game account; and an increasing module, configured to increase an affinity between the first game account and the second game account according to the affinity gain value.
[0078] Optionally, the apparatus further comprises: a second allocating module, configured to allocate an affinity permission related to the first game account to the second game account after the first allocating module allocates the target game resource to the second game account; and a third allocating module, configured to allocate a first game character controlled by the first game account and a second game character controlled by the second game account to a same game camp in response to the affinity permission triggered by the second game account.
[0079] Optionally, the apparatus further comprises: a finding module, configured to find a matched game resource associated with the target game resource after the first allocating module allocates the target game resource to the second game account, wherein the matched game resource is a game resource matched with the target game resource in a game scene; a judging module, configured to judge whether the second game account has configured the matched game resource; and a pushing module, configured to push the matched game resource or a lease prompt information of the matched game resource to the second game account if the second game account has not configured the matched game resource.
[0080] Optionally, the apparatus further comprises: a processing module configured to, after the first distribution module distributes the target game resource to the second game account, after the lease time of the target game resource arrives, count a settlement resource generated by the second game account using the target game resource within the lease time; transfer the settlement resource from the second game account to the first game account; or, determine whether the settlement resource is a valid resource in the second game account, if the settlement resource is a valid resource in the second game account, retain the settlement resource in the second game account, if the settlement resource is an invalid resource in the second game account, delete the settlement resource in the second game account; and / or a rollback module configured to determine a resource state of the target game resource after the lease time, and roll back the resource state of the target game resource to an initial state before the lease time.
[0081] Optionally, the first distribution module comprises: a reading unit configured to read a historical game parameter of the target game resource from the first client and / or a game server, wherein the historical game parameter is used to indicate a use of the target game resource by the first game account within a recent time period; and a distribution unit configured to distribute the target game resource to the second game account, and generate operation guide information of the target game resource according to the historical game parameter, so that the second game account uses the target game resource according to the operation guide information.
[0082] Optionally, the obtaining module comprises at least one of: a third obtaining unit configured to obtain a game character resource of the first game account based on the resource sharing request; a fourth obtaining unit configured to obtain a game prop resource of the first game account based on the resource sharing request; a fifth obtaining unit configured to obtain a game permission resource of the first game account based on the resource sharing request; a sixth obtaining unit configured to obtain a game friend resource of the first game account based on the resource sharing request; a seventh obtaining unit configured to obtain a game progress resource of the first game account based on the resource sharing request; and an eighth obtaining unit configured to obtain a character image configuration resource of the first game account based on the resource sharing request.
[0083] It should be noted that each of the above modules can be implemented by software or hardware, and for the latter, the following implementation manners can be used, but are not limited thereto: all the above modules are located in the same processor; or, the above modules are located in different processors in any combination.
[0084] Embodiment 3
[0085] The embodiment of the present application further provides an electronic device, Figure 5is a structural diagram of an electronic device according to an embodiment of the present application, as shown in the figure, comprising a processor 51, a communication interface 52, a memory 53 and a communication bus 54, wherein the processor 51, the communication interface 52 and the memory 53 complete mutual communication through the communication bus 54, and the memory 53 is used for storing a computer program; Figure 5
[0086] The processor 51 is used for executing the program stored in the memory 53, and realizes the following steps: receiving a resource sharing request of a first client, wherein the first client is used for logging in a first game account, and the resource sharing request is used for requesting to rent a target game resource configured by the first game account; obtaining the target game resource of the first game account based on the resource sharing request; receiving a resource transfer request of a second client, wherein the second client is used for logging in a second game account, and the resource transfer request is used for requesting to rent the target game resource; and allocating the target game resource to the second game account.
[0087] Optionally, the obtaining of the target game resource of the first game account based on the resource sharing request comprises one of the following: in response to a first resource sharing request, searching for the target game resource from game data of the first game account, copying the target game resource to a shared resource pool, and maintaining a state of the target game resource in the game data of the first game account as an active state; and in response to a second resource sharing request, searching for the target game resource from the game data of the first game account, copying the target game resource to the shared resource pool, and deleting or freezing the target game resource in the game data of the first game account, and adding or un-freezing the target game resource in the game data of the first game account after a rental time of the target game resource arrives.
[0088] Optionally, after the target game resource is allocated to the second game account, the method further comprises: calculating an affinity gain value based on the target game resource; and increasing an affinity between the first game account and the second game account according to the affinity gain value.
[0089] Optionally, after the target game resource is allocated to the second game account, the method further comprises: allocating an affinity permission related to the first game account to the second game account; and in response to the affinity permission triggered by the second game account, allocating a first game character controlled by the first game account and a second game character controlled by the second game account to a same game camp.
[0090] Optionally, after the target game resource is allocated to the second game account, the method further comprises: searching for a matching game resource associated with the target game resource, wherein the matching game resource is a game resource that is used in conjunction with the target game resource in a game scene; determining whether the second game account has configured the matching game resource; and if the second game account has not configured the matching game resource, pushing the matching game resource or a rental prompt information of the matching game resource to the second game account.
[0091] Optionally, after the target game resource is allocated to the second game account, the method further comprises: after a rental time of the target game resource arrives, counting a settlement resource generated by the second game account using the target game resource within the rental time; transferring the settlement resource from the second game account to the first game account; or, determining whether the settlement resource is a valid resource in the second game account, if the settlement resource is a valid resource in the second game account, retaining the settlement resource in the second game account, if the settlement resource is an invalid resource in the second game account, deleting the settlement resource in the second game account; and / or determining a resource state of the target game resource after the rental time, and rolling back the resource state of the target game resource to an initial state before the rental time.
[0092] Optionally, allocating the target game resource to the second game account comprises: reading a historical game parameter of the target game resource from the first client and / or a game server, wherein the historical game parameter is used to indicate a use of the target game resource by the first game account within a recent time period; allocating the target game resource to the second game account, and generating operation guide information of the target game resource according to the historical game parameter, so that the second game account uses the target game resource according to the operation guide information.
[0093] Optionally, acquiring the target game resource of the first game account based on the resource sharing request comprises at least one of: acquiring a game character resource of the first game account based on the resource sharing request; acquiring a game prop resource of the first game account based on the resource sharing request; acquiring a game permission resource of the first game account based on the resource sharing request; acquiring a game friend resource of the first game account based on the resource sharing request; acquiring a game progress resource of the first game account based on the resource sharing request; and acquiring a character image configuration resource of the first game account based on the resource sharing request.
[0094] The communication bus mentioned above can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For the convenience of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or only one type of bus.
[0095] The communication interface is used for communication between the terminal and other devices.
[0096] The memory can include a Random Access Memory (RAM) and can also include a non-volatile memory, for example, at least one disk memory. Optionally, the memory can also be at least one storage device located away from the aforementioned processor.
[0097] The processor mentioned above can be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc. It can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component.
[0098] In another embodiment provided in the present application, a computer readable storage medium is also provided, and the computer readable storage medium stores instructions, when the instructions run on a computer, the computer executes the game resource control method in any of the above embodiments.
[0099] In another embodiment provided in the present application, a computer program product containing instructions is also provided, when the instructions run on a computer, the computer executes the game resource control method in any of the above embodiments.
[0100] In the embodiments described above, all or part of the embodiments can be implemented by software, hardware, firmware or any combination thereof. When implemented by software, all or part of the embodiments can be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of the present application are generated. The computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions can be transmitted from one website site, computer, server or data center to another website site, computer, server or data center through wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) mode. The computer readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. integrated with one or more available media. The available media can be magnetic media (for example, floppy disk, hard disk, magnetic tape), optical media (for example, DVD), or semiconductor media (for example, solid state disk (SSD)) and the like.
[0101] The serial numbers of the embodiments of the present application described above are only for description, not representing the advantages and disadvantages of the embodiments.
[0102] In the above-described embodiments of the present application, the description of each embodiment has its own focus, and the parts not described in detail in a certain embodiment can be referred to the related description of other embodiments.
[0103] In the several embodiments provided by the present application, it should be understood that the disclosed technology can be implemented in other ways. Of course, the embodiment described above is only illustrative, and the division of units is only a logical function division, and actual implementation can have another division manner, for example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the units or modules shown or discussed can be indirect coupling or communication connection through some interfaces, units or modules, which can be electrical or other forms.
[0104] The units described as separate components can or can not be physically separated, and the components shown as units can or can not be physical units, that is, they can be located in one place, or distributed on a plurality of network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the embodiment scheme.
[0105] In addition, each function unit in each embodiment of the present application can be integrated in one processing unit, or each unit can be physically present separately, or two or more units can be integrated in one unit. The integrated unit can be realized in the form of hardware or in the form of a software function unit.
[0106] When the integrated unit is realized in the form of a software function unit and sold or used as an independent product, it can be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present application, essentially or in part, or all or part of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium, and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in each embodiment of the present application. The foregoing storage medium includes: a U disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a mobile hard disk, a magnetic disk or an optical disk, and various media that can store program codes.
[0107] The above is only the preferred embodiment of the present application, and it should be pointed out that, for those skilled in the art, without departing from the principles of the present application, a number of improvements and refinements can be made, and these improvements and refinements should be considered as the protection scope of the present application.
Claims
1. A method for controlling game resources, characterized in that, include: Receive a resource sharing request from a first client, wherein the first client is used to log in to a first game account, and the resource sharing request is used to request to rent out the target game resources configured in the first game account; Based on the resource sharing request, obtain the target game resources of the first game account; Receive a resource transfer request from a second client, wherein the second client is used to log in to a second game account, and the resource transfer request is used to request to rent the target game resources; Allocate the target game resources to the second game account; The method further includes, after allocating the target game resources to the second game account, assigning intimate permissions related to the first game account to the second game account; in response to the intimate permissions triggered by the second game account, assigning the first game character controlled by the first game account and the second game character controlled by the second game account to the same game faction, and adding a specific sharing identifier to the first virtual character and the second virtual character corresponding to the first game account and the second game account, wherein the sharing identifier is used to indicate that the first virtual character and the second virtual character are sharing resources with each other.
2. The method according to claim 1, characterized in that, The target game resources for the first game account obtained based on the resource sharing request include one of the following: In response to the first resource sharing request, the target game resource is located in the game data of the first game account and copied to the shared resource pool. At the same time, the status of the target game resource in the game data of the first game account is kept active. In response to the second resource sharing request, the target game resource is located in the game data of the first game account, copied to the shared resource pool, and deleted or frozen in the game data of the first game account. After the rental period of the target game resource expires, the target game resource is added or unfrozen in the game data of the first game account.
3. The method according to claim 1, characterized in that, After allocating the target game resources to the second game account, the method further includes: Calculate the intimacy bonus value based on the target game resources; The intimacy bonus value increases the intimacy level between the first game account and the second game account.
4. The method according to claim 1, characterized in that, After allocating the target game resources to the second game account, the method further includes: Find the matching game resources associated with the target game resource, wherein the matching game resources are the game resources used in conjunction with the target game resource in the game scene; Determine whether the second game account has been configured with the corresponding game resources; If the second game account has not configured the corresponding game resources, the corresponding game resources or a rental prompt message for the corresponding game resources will be pushed to the second game account.
5. The method according to claim 1, characterized in that, After allocating the target game resources to the second game account, the method further includes: After the rental period of the target game resource expires, the settlement resources generated by the second game account using the target game resource during the rental period are tallied; the settlement resources are transferred from the second game account to the first game account; or, it is determined whether the settlement resources are valid resources in the second game account. If the settlement resources are valid resources in the second game account, the settlement resources are retained in the second game account; if the settlement resources are invalid resources in the second game account, the settlement resources are deleted from the second game account; and / or, Determine the resource status of the target game resource after the rental period, and roll back the resource status of the target game resource to the initial state before the rental period.
6. The method according to claim 1, characterized in that, Allocating the target game resources to the second game account includes: Read historical game parameters of the target game resource from the first client and / or game server, wherein the historical game parameters are used to indicate the usage of the target game resource by the first game account in the most recent time period; The target game resource is allocated to the second game account, and operation guidance information for the target game resource is generated based on the historical game parameters, so that the second game account can use the target game resource according to the operation guidance information.
7. The method according to claim 1, characterized in that, The target game resources for the first game account obtained based on the resource sharing request include at least one of the following: Based on the resource sharing request, obtain the game character resources of the first game account; Based on the resource sharing request, obtain the game item resources of the first game account; Based on the resource sharing request, obtain the game permission resources of the first game account; Based on the resource sharing request, obtain the game friend resources of the first game account; Based on the resource sharing request, obtain the game progress resources of the first game account; Based on the resource sharing request, obtain the character image configuration resources of the first game account.
8. A control device for game resources, characterized in that, include: The first receiving module is used to receive a resource sharing request from a first client, wherein the first client is used to log in to a first game account, and the resource sharing request is used to request the rental of target game resources configured in the first game account; The acquisition module is used to acquire the target game resources of the first game account based on the resource sharing request; The second receiving module is used to receive a resource transfer request from a second client, wherein the second client is used to log in to a second game account, and the resource transfer request is used to request to rent the target game resources; The first allocation module is used to allocate the target game resources to the second game account; The device further includes: a second allocation module, configured to allocate intimate permissions related to the first game account to the second game account after the first allocation module allocates the target game resources to the second game account; and a third allocation module, configured to respond to the intimate permissions triggered by the second game account, allocate the first game character controlled by the first game account and the second game character controlled by the second game account to the same game faction, and add a specific sharing identifier to the first virtual character and the second virtual character corresponding to the first game account and the second game account, wherein the sharing identifier is used to indicate that the first virtual character and the second virtual character are sharing resources with each other.
9. A storage medium, characterized in that, The storage medium stores a computer program, wherein the computer program is configured to execute the method described in any one of claims 1 to 7 when it is run.
10. An electronic device comprising a memory and a processor, characterized in that, The memory stores a computer program, and the processor is configured to run the computer program to perform the method as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Game system and game control method
JP2011200564A
Game system, game control method, and program
JP2012236110A