Virtual resource allocation method and device, storage medium, and computer equipment

By receiving the virtual resource credential submission request in online games, updating and verifying the target credential collection records, and allocating resources according to preset rules, the problem of the large overhead of virtual resource allocation activities on server performance is solved, lower computing pressure and fairer resource allocation are achieved, and player experience is improved.

CN113893552BActive Publication Date: 2025-05-02BEIJING PERFECT WORLD SOFTWARE TECH DEV CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111161030.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-30
Publication Date
2025-05-02
Estimated Expiration
2041-09-30

AI Technical Summary

Technical Problem

Virtual resource allocation activities in online games cost a lot of server performance, heavy computing pressure, and high requirements for the network environment, which affects the gaming experience.

Method used

By receiving the virtual resource's credential submission request, update the target credential collection record, verify whether the credential meets the preset allocation conditions, and allocate resources according to the preset rules to reduce the server's calculation pressure.

Benefits of technology

Reduces server performance overhead and computing pressure, and improves the fairness of game virtual resource allocation and player experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113893552B_ABST
    Figure CN113893552B_ABST
Patent Text Reader

Abstract

The present application discloses a method and apparatus for allocating virtual resources, a storage medium, and a computer device, the method comprising: receiving a first credential submission request for a first virtual resource to be allocated, and updating a target credential collection record corresponding to the first virtual resource to be allocated, wherein the target credential collection record includes the collected target credentials and their corresponding submission role information; based on the target credential collection record, verifying whether the collected target credentials meet the preset allocation conditions corresponding to the first virtual resource to be allocated; if so, determining the target allocation role in the submission role according to the preset resource allocation rules, and allocating the first virtual resource to be allocated to the target allocation role. The present application helps to reduce the computing pressure on the server.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of Internet technology, and in particular to a method and device for allocating virtual resources, a storage medium, and a computer device. Background Art

[0002] In online games, setting up game activities to increase the player acquisition rate and retention rate is a common choice for game developers. For example, in a virtual resource allocation activity that "auctions" weapons and fashions in the game, the server determines the players who have successfully bid based on the real-time bidding data received during the bidding period. When there are many participating players and the bidding period is short, the server needs to receive a large amount of bidding data in a short period of time and perform calculations quickly, which places high demands on the network environment and puts a lot of computing pressure on the server. Another example is a virtual resource allocation activity that "snatches" weapons and fashions in the game. The first player who participates in the rush purchase after the rush purchase time starts will successfully purchase the virtual resources. When there are many participating players, the network environment is also required to be high, and the computing pressure on the server is high.

[0003] How to reduce the performance overhead of resource allocation game activities on the server and alleviate the computing pressure on the server has become an issue worth exploring in the field of game development. Summary of the invention

[0004] In view of this, the present application provides a method and apparatus for allocating virtual resources, a storage medium, and a computer device, which help to reduce the computing pressure of the server.

[0005] According to one aspect of the present application, a method for allocating virtual resources is provided, the method comprising:

[0006] receiving a first credential submission request for a first virtual resource to be allocated, and updating a target credential collection record corresponding to the first virtual resource to be allocated, wherein the target credential collection record includes the collected target credentials and their corresponding submission role information;

[0007] Verifying, based on the target credential collection record, whether the collected target credential meets a preset allocation condition corresponding to the first virtual resource to be allocated;

[0008] If the conditions are met, a target allocation role in the submitted role is determined according to a preset resource allocation rule, and the first virtual resource to be allocated is allocated to the target allocation role.

[0009] Optionally, the preset allocation condition includes a number of voucher collections corresponding to the first virtual resource to be allocated; and updating a target voucher collection record corresponding to the first virtual resource to be allocated specifically includes:

[0010] Determine the request role information corresponding to the first credential submission request, and query whether the submission role includes the request role;

[0011] If the submitted character does not include the requested character, the target credential is deducted from the game account of the requested character, and the target credential collection record is updated.

[0012] Optionally, before receiving the first credential submission request for the first virtual resource to be allocated, the method further includes:

[0013] Determining a collection reminder time for the first to-be-allocated virtual resources according to the collection start time of the first to-be-allocated virtual resources;

[0014] If the first virtual resource to be allocated has not been allocated when the collection reminder time arrives, then, under the authorization of the target submission role, an inquiry message is sent to the authorization role corresponding to the target submission role to inquire whether the authorization role agrees to submit the target credential to participate in the first resource allocation activity of the first virtual resource to be allocated.

[0015] Optionally, after sending the inquiry information to the authorization role corresponding to the target submission role under the authorization of the target submission role, the method further includes:

[0016] receiving a second credential submission request from the authorization role, and updating the target credential collection record, wherein the target credential collection record further includes associated role information corresponding to the submission role, the authorization role is an associated role of the target submission role and / or the target submission role is an associated role of the authorization role;

[0017] Accordingly, after determining the target assigned role in the submitted role, the method further includes:

[0018] If the target assigned role corresponds to an associated role, the first participation reward resource is allocated to the associated role corresponding to the target assigned role.

[0019] Optionally, after determining the target assigned role among the submitted roles, the method further comprises: allocating a second participation reward resource to other roles among the submitted roles except the target assigned role, wherein the value of the second participation reward resource is less than the value of the first participation reward resource; and / or,

[0020] After allocating the first virtual resource to be allocated to the target allocation role, the method further includes: obtaining usage income information of the first virtual resource to be allocated by the target allocation role, and allocating additional income to other roles in the submitted role except the target allocation role based on the usage income information, wherein the additional income is less than the usage income.

[0021] Optionally, after allocating the first virtual resource to be allocated to the target allocation role, the method further includes:

[0022] Removing the first virtual resource to be allocated from the preset virtual resource set, and acquiring a second virtual resource to be allocated in the preset virtual resource set;

[0023] A second resource allocation activity corresponding to the second virtual resource to be allocated is published.

[0024] Optionally, before receiving the first credential submission request for the first virtual resource to be allocated, the method further includes:

[0025] Determining an end time of collecting the first virtual resources to be allocated according to a start time of collecting the first virtual resources to be allocated;

[0026] If the first resource to be allocated is not allocated when the collection end time is reached, the first virtual resource to be allocated is removed from the preset virtual resource set, and according to the target credential collection record, the target credential is allocated to each submitting role or target credential collection information is sent to each submitting role;

[0027] A third virtual resource to be allocated in the preset virtual resource set is acquired, and a third resource allocation activity corresponding to the third virtual resource to be allocated is published.

[0028] Optionally, the preset virtual resource set includes a plurality of virtual resources to be allocated that are planned to be allocated within a preset resource allocation cycle; and the method further includes:

[0029] If all the virtual resources to be allocated are allocated within the preset resource allocation cycle, the resource allocation activity within the preset resource allocation cycle is terminated, and when the next resource allocation cycle arrives, the preset virtual resource set is reset.

[0030] According to another aspect of the present application, a virtual resource allocation device is provided, the device comprising:

[0031] a credential submission module, configured to receive a first credential submission request for a first virtual resource to be allocated, and update a target credential collection record corresponding to the first virtual resource to be allocated, wherein the target credential collection record includes the collected target credentials and their corresponding submission role information;

[0032] A verification module, configured to verify, based on the target credential collection record, whether the collected target credential satisfies a preset allocation condition corresponding to the first virtual resource to be allocated;

[0033] The resource allocation module is used to determine the target allocation role in the submitted role according to the preset resource allocation rule if the conditions are met, and allocate the first virtual resource to be allocated to the target allocation role.

[0034] Optionally, the preset allocation condition includes the number of vouchers collected corresponding to the first virtual resource to be allocated; the voucher submission module is specifically used to:

[0035] Determine the request role information corresponding to the first credential submission request, and query whether the submission role includes the request role;

[0036] If the submitted character does not include the requested character, the target credential is deducted from the game account of the requested character, and the target credential collection record is updated.

[0037] Optionally, the method further comprises:

[0038] An inquiry module is used to determine a collection reminder time for the first virtual resource to be allocated based on the collection start time of the first virtual resource to be allocated before receiving a first credential submission request for the first virtual resource to be allocated; if the first virtual resource to be allocated is not allocated when the collection reminder time arrives, then, under the authorization of the target submission role, an inquiry message is sent to the authorized role corresponding to the target submission role to inquire whether the authorized role agrees to submit the target credential to participate in the first resource allocation activity of the first virtual resource to be allocated.

[0039] Optionally, the credential submission module is further used to: after sending inquiry information to the authorization role corresponding to the target submission role under the authorization of the target submission role, receive a second credential submission request from the authorization role, and update the target credential collection record, wherein the target credential collection record also includes the associated role information corresponding to the submission role, the authorization role is the associated role of the target submission role and / or the target submission role is the associated role of the authorization role;

[0040] Accordingly, the device further comprises:

[0041] The reward allocation module is used for allocating the first participation reward resource to the associated role corresponding to the target allocation role after determining the target allocation role in the submitted role, if the target allocation role corresponds to an associated role.

[0042] Optionally, the reward allocation module is further used to:

[0043] After determining the target assigned role among the submitted roles, allocating a second participation reward resource to other roles among the submitted roles except the target assigned role, wherein the value of the second participation reward resource is less than the value of the first participation reward resource; and / or,

[0044] After allocating the first virtual resource to be allocated to the target allocation role, obtaining the usage income information of the first virtual resource to be allocated by the target allocation role, and allocating additional income to other roles in the submitted role except the target allocation role based on the usage income information, wherein the additional income is less than the usage income.

[0045] Optionally, the device further comprises:

[0046] The activity publishing module is used to remove the first virtual resource to be allocated from the preset virtual resource set after allocating the first virtual resource to be allocated to the target allocation role, and obtain the second virtual resource to be allocated in the preset virtual resource set; and publish a second resource allocation activity corresponding to the second virtual resource to be allocated.

[0047] Optionally, the activity publishing module is further used to:

[0048] Before receiving the first credential submission request for the first virtual resource to be allocated, determining the collection end time of the first virtual resource to be allocated according to the collection start time of the first virtual resource to be allocated;

[0049] If the first resource to be allocated is not allocated when the collection end time is reached, the first virtual resource to be allocated is removed from the preset virtual resource set, and according to the target credential collection record, the target credential is allocated to each submitting role or target credential collection information is sent to each submitting role;

[0050] A third virtual resource to be allocated in the preset virtual resource set is acquired, and a third resource allocation activity corresponding to the third virtual resource to be allocated is published.

[0051] Optionally, the preset virtual resource set includes a plurality of virtual resources to be allocated that are planned to be allocated within a preset resource allocation cycle; and the device further includes:

[0052] The reset module is used to terminate the resource allocation activity in the preset resource allocation cycle if all the virtual resources to be allocated are allocated in the preset resource allocation cycle, and reset the preset virtual resource set when the next resource allocation cycle is reached.

[0053] According to another aspect of the present application, a storage medium is provided, on which a computer program is stored, and when the program is executed by a processor, the above-mentioned virtual resource allocation method is implemented.

[0054] According to another aspect of the present application, a computer device is provided, including a storage medium, a processor, and a computer program stored on the storage medium and executable on the processor, wherein the processor implements the above-mentioned virtual resource allocation method when executing the program.

[0055] By means of the above technical scheme, the present application provides a method and device for allocating virtual resources, a storage medium, and a computer device. When a game server receives a first credential submission request corresponding to a first virtual resource to be allocated, the target credential collection record corresponding to the resource is updated to store the collected target credentials and submitted role information. After the target credential collection record is updated, the first virtual resource to be allocated is verified according to the record to see whether it meets the corresponding preset allocation conditions. Thus, when the first virtual resource to be allocated meets the preset allocation conditions, the target allocation role is selected from the submitted roles and resources are allocated according to the preset resource allocation rules. Compared with the virtual resource allocation methods such as real-time bidding and lottery in the prior art, the embodiments of the present application help to reduce the performance overhead of the server, reduce the computing pressure of the server, reduce the requirements for the network environment, improve the fairness of the allocation of game virtual resources, and improve the game experience of players.

[0056] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0058] Figure 1 A schematic diagram of a flow chart of a method for allocating virtual resources provided in an embodiment of the present application is shown;

[0059] Figure 2 A schematic diagram showing a flow chart of another method for allocating virtual resources provided in an embodiment of the present application;

[0060] Figure 3 A schematic diagram of the structure of a virtual resource allocation device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0061] The present application will be described in detail below with reference to the accompanying drawings and in combination with embodiments. It should be noted that the embodiments and features in the embodiments of the present application can be combined with each other without conflict.

[0062] In this embodiment, a method for allocating virtual resources is provided, such as Figure 1 As shown, the method includes:

[0063] Step 101, receiving a first credential submission request for a first virtual resource to be allocated, and updating a target credential collection record corresponding to the first virtual resource to be allocated, wherein the target credential collection record includes the collected target credentials and their corresponding submission role information;

[0064] The embodiment of the present application is mainly applied to a game server. The game server can provide an allocation activity of a first virtual resource to be allocated, and publish the activity to a game client held by a player. The player can participate in the activity by submitting a virtual voucher in the game. In a specific application scenario, the allocation activity of the first virtual resource to be allocated can be a snap-up, lottery, auction, and other activities in the game. When the player participates in the activity in the game and submits a target voucher matching the activity, the game client generates a first voucher submission request corresponding to the first virtual resource to be allocated. After receiving the first voucher submission request, the game server updates the target voucher collection situation corresponding to the virtual resource, wherein the target voucher collection situation can be recorded in the target voucher collection record, and the record records the game character information participating in the activity. Since the player participates in the allocation activity of the first virtual resource to be allocated by submitting the target voucher in the game, the record can specifically record the collected target vouchers corresponding to the first virtual resource to be allocated and the submitted character information corresponding to each collected target voucher. For example, in the game, game character A participates in the allocation activity of a certain game prop by submitting a target voucher, and the target voucher collection record of the game prop allocation activity can record that game character A submitted a target voucher.

[0065] Step 102, verifying whether the collected target credentials meet a preset allocation condition corresponding to the first virtual resource to be allocated according to the target credential collection record;

[0066] After each update of the target voucher collection record, the target vouchers collected in the record can be verified to verify whether the currently collected target vouchers meet the preset allocation condition corresponding to the first resource to be allocated. For example, the preset allocation condition can be the number of voucher collections, that is, when the collected target vouchers reach the corresponding number of voucher collections, the allocation condition is determined to be satisfied. For another example, the preset allocation condition can also be the number of participants, that is, when the submitted roles reach the corresponding number of participants, the allocation condition is determined to be satisfied.

[0067] Step 103: If the conditions are met, a target allocation role in the submitted role is determined according to a preset resource allocation rule, and the first virtual resource to be allocated is allocated to the target allocation role.

[0068] After verifying that the collected target credentials meet the preset allocation conditions, the first resource to be allocated can be allocated. Specifically, a target allocation role can be selected from each submitted role in the record according to the preset preset resource allocation rule for allocation. Of course, if the first resource to be allocated includes multiple ones, a corresponding number of target allocation roles can also be selected for allocation. Taking the first resource to be allocated as a game prop as an example, the preset resource allocation rule can be to randomly select a submitted role as the target allocation role for game prop allocation; it can also be to randomly select a collected target credential and use the submitted role corresponding to the target credential as the target allocation role for game prop allocation (specifically, when updating the target credential collection record, each newly added target credential can be encoded, and the submitted role information corresponding to each encoded target credential can be recorded to achieve the effect of determining the target allocation role through the selected collected target credential).

[0069] By applying the technical solution of this embodiment, when the game server receives the first credential submission request corresponding to the first virtual resource to be allocated, the target credential collection record corresponding to the resource is updated to realize the storage of the collected target credentials and submitted role information, and after the target credential collection record is updated, it is verified whether the first virtual resource to be allocated meets the corresponding preset allocation conditions according to the record, so that when the first virtual resource to be allocated meets the preset allocation conditions, according to the preset resource allocation rules, the target allocation role is selected from the submitted roles and the resource allocation is performed. Compared with the virtual resource allocation methods such as real-time bidding and lottery in the prior art, the embodiments of the present application help to reduce the performance overhead of the server, reduce the computing pressure of the server, reduce the requirements for the network environment, improve the fairness of the allocation of game virtual resources, and improve the game experience of players.

[0070] In an embodiment of the present application, optionally, the preset allocation condition includes the number of vouchers collected corresponding to the first virtual resource to be allocated; "updating the target voucher collection record corresponding to the first virtual resource to be allocated" in step 101 may specifically include: determining the requested role information corresponding to the first voucher submission request, and querying whether the submitted role includes the requested role; if the submitted role does not include the requested role, deducting the target voucher from the game account of the requested role, and updating the target voucher collection record.

[0071] In this embodiment, taking the preset allocation condition as the number of vouchers collected as an example, in order to improve player participation and ensure the number of participants, it can be stipulated that each game character can only submit a voucher once. Specifically, it can be limited to only one voucher submitted each time or a maximum of n vouchers can be submitted. When the first voucher submission request is received and the target voucher collection record is updated, the requesting role information corresponding to the first voucher submission request is first determined, and then it is determined whether the requesting role has submitted the voucher based on the submitted role information in the record. If the requesting role has not submitted the voucher, that is, the submitted role does not include the requesting role, the corresponding target voucher is deducted from the game account of the requesting role, for example, one target voucher is deducted, and the target voucher collection record is updated.

[0072] Further, as a refinement and extension of the specific implementation of the above embodiment, in order to fully illustrate the specific implementation process of this embodiment, another method for allocating virtual resources is provided, such as Figure 2 As shown, the method includes:

[0073] Step 201: Determine a collection reminder time for the first to-be-allocated virtual resources according to the collection start time of the first to-be-allocated virtual resources.

[0074] Step 202: receiving a first credential submission request for a first virtual resource to be allocated, and updating a target credential collection record corresponding to the first virtual resource to be allocated.

[0075] Step 203, if the first virtual resource to be allocated has not been allocated when the collection reminder time arrives, then under the authorization of the target submission role, an inquiry message is sent to the authorization role corresponding to the target submission role to inquire whether the authorization role agrees to submit the target credential to participate in the first resource allocation activity of the first virtual resource to be allocated.

[0076] In step 201 to step 203, when the first resource allocation activity corresponding to the first virtual resource to be allocated starts, the collection reminder time can be determined according to the collection start time corresponding to the activity. After the activity starts, the game server can receive the first credential submission request in real time and update the target credential collection record. If the time reaches the collection reminder time, but the virtual resource does not meet the corresponding preset allocation conditions, under the authorization of the submitting character, an inquiry message can be sent to the friends of the submitting character, the same sect, family, etc. and the authorized role corresponding to the submitting character to ask whether the authorized role participates in the first resource allocation activity, so as to avoid the activity being unable to meet the allocation conditions for a long time. The authorization of the submitting character can be authorized at the same time as the first credential is submitted, for example, when submitting the request to participate in the activity, the option of allowing friends to be asked whether to participate in the activity is checked. The authorization of the submitting character can also be authorized after the collection reminder time when the server sends the authorization inquiry message to the submitting character, and the authorization is realized under the confirmation of the submitting character.

[0077] Step 204, receiving a second credential submission request from the authorization role, and updating the target credential collection record, wherein the target credential collection record also includes associated role information corresponding to the submitting role, the authorization role is an associated role of the target submitting role and / or the target submitting role is an associated role of the authorization role.

[0078] Step 205, based on the target credential collection record, verify whether the collected target credential meets the preset allocation condition corresponding to the first virtual resource to be allocated; if so, determine the target allocation role in the submitted role according to the preset resource allocation rule, and allocate the first virtual resource to be allocated to the target allocation role.

[0079] Step 206: If the target assigned role corresponds to an associated role, a first participation reward resource is allocated to the associated role corresponding to the target assigned role.

[0080] In step 204 to step 206, after receiving the second credential submission request of the authorized role, the target credential collection record is updated, and the associated role corresponding to the submitted role can also be recorded in the target credential record. In the actual application scenario, in order to encourage users to invite each other to participate in the activity, if the authorized role corresponding to the submitted role participates in the activity under the invitation of the submitted role, the authorized role can be recorded as the associated role of the submitted role, or the submitted role can be recorded as the associated role of the authorized role. After determining the target assigned role, if the target assigned role corresponds to an associated role, a certain reward can be issued to the associated role, that is, the first participation reward resource is allocated to the associated role. For example, game character A participates in the first resource allocation activity. When the collection start time arrives, the resource has not been allocated. With the authorization of game character A, an inquiry message is sent to its corresponding friend game character B, and game character B participates in the first resource allocation activity based on the inquiry message. If it is finally confirmed that game character A is the target allocation character, then a certain reward can also be issued to game character B to reward game character B for its contribution to the achievement of the allocation conditions. Of course, if it is finally confirmed that game character B is the target allocation character, then a certain reward can also be issued to game character A to reward game character A for its contribution to the achievement of the activity.

[0081] Step 207, allocate a second participation reward resource to other roles among the submitted roles except the target assigned role, wherein the value of the second participation reward resource is less than the value of the first participation reward resource; and / or, obtain the usage income information of the first virtual resource to be allocated by the target assigned role, and allocate additional income to other roles among the submitted roles except the target assigned role based on the usage income information, wherein the additional income is less than the usage income.

[0082] In step 207, after the first virtual resource to be allocated meets the allocation conditions, while allocating the first virtual resource to be allocated to the target allocation role, a certain reward, i.e., the second participation reward resource, can also be allocated to other roles in the record except the target allocation role. In addition, after the target allocation role uses the first virtual resource to be allocated, a certain additional income can be allocated to other roles according to the income obtained by using the resource. For example, if the first virtual resource to be allocated is a "medicine bag", and the target allocation role can get 100 healing medicines by using the "medicine bag", then after the target allocation role uses the "medicine bag", the target allocation role gets 100 healing medicines, and 1 healing medicine will be allocated to each of the other roles. In this way, players in the game server are encouraged to participate in activities, server utilization is improved, and player gaming experience is enhanced.

[0083] Step 208: remove the first virtual resource to be allocated from the preset virtual resource set, obtain the second virtual resource to be allocated in the preset virtual resource set, and publish a second resource allocation activity corresponding to the second virtual resource to be allocated.

[0084] In step 208, all virtual resources planned to be allocated can be constructed as a preset virtual resource set. After the first virtual resource to be allocated is successfully allocated, the resource is removed from the set, and the next resource to be allocated, i.e., the second virtual resource to be allocated, is determined. Specifically, the allocation order of each virtual resource in the set can be limited (which can be set by the game developer or determined based on the player's historical participation in each virtual resource), or virtual resources can be randomly selected from the set for allocation. After the second virtual resource to be allocated is selected, the corresponding second resource allocation activity can be published in the game. The allocation method of the second virtual resource to be allocated in the game server can refer to the above-mentioned allocation method of the first virtual resource to be allocated.

[0085] Step 209: If all the virtual resources to be allocated are allocated within the preset resource allocation cycle, the resource allocation activity within the preset resource allocation cycle is terminated, and the preset virtual resource set is reset when the next resource allocation cycle arrives.

[0086] In step 209, the virtual resources to be allocated in each resource allocation cycle can be set. For example, one week is used as a resource allocation cycle. If all virtual resources to be allocated are allocated within one week, the resource allocation activity of this week ends, and the preset virtual resource set is reset in the next week, and the allocation activity of the virtual resources to be allocated in the preset virtual resource set is re-published. The preset virtual resource set corresponding to each preset allocation cycle can be the same, or different sets can be configured as the game is developed.

[0087] In the embodiment of the present application, optionally, before step 202, the following may also be included:

[0088] Step 210: Determine an end time for collecting the first virtual resources to be allocated according to the start time for collecting the first virtual resources to be allocated.

[0089] Step 211, if the first resource to be allocated is not allocated when the collection end time is reached, the first virtual resource to be allocated is removed from the preset virtual resource set, and according to the target credential collection record, the target credential is allocated to each submitting role or the target credential collection information is sent to each submitting role.

[0090] Step 212: Acquire a third virtual resource to be allocated in the preset virtual resource set, and publish a third resource allocation activity corresponding to the third virtual resource to be allocated.

[0091] In this embodiment, the collection end time of the first virtual resource to be allocated can also be determined. When the collection end time is reached, if the first virtual resource to be allocated has not been allocated, it is possible that the resource is not of interest to the player and the player is unwilling to participate in the activity. Therefore, the first resource allocation activity can be canceled, the first resource to be allocated is removed from the preset virtual resources, and the next allocated resource is selected from the set again, that is, the third virtual resource to be allocated, and the third resource allocation activity is released. In addition, when the first resource allocation activity is canceled, for the submitted character who has participated in the activity, the target voucher submitted by the submitted character can be compensated. Specifically, the target voucher can be directly allocated to the character backpack, or the target voucher collection information can be sent to the submitted character, and the submitted character can collect the target voucher according to the instructions of the target voucher collection information, such as collecting compensation at a designated NPC.

[0092] In an embodiment of the present application, optionally, step 210 also includes: if the first resource to be allocated is not allocated when the collection end time is reached, sending allocation failure information of the first resource to be allocated to the game client; the game client outputs secondary participation inquiry information for the first resource to be allocated, and based on the player's confirmation operation on the secondary participation inquiry information, generates secondary participation confirmation information corresponding to the first resource to be allocated; when the game client receives the resource allocation activity of the first resource to be allocated issued by the game server next time, sending a first credential submission request for the first virtual resource to be allocated to the game server.

[0093] In this embodiment, for a failed resource allocation activity, the client can record the failure and pop up a message asking the player whether he wants to participate in the activity next time it is released. After the user clicks to confirm, the submitted certificate is locked. The next time the server starts the crowdfunding activity for the first virtual resource to be allocated, the client can directly and automatically submit the target certificate. In this way, the player can automatically participate in the allocation activity of the first virtual resource to be allocated again without having to re-operate.

[0094] In the embodiment of the present application, optionally, before step 202, the following may also be included:

[0095] S1, determining at least one voucher adjustment time of the first virtual resource to be allocated according to the collection start time of the first virtual resource to be allocated;

[0096] S2, if the first resource to be allocated is not allocated when any voucher adjustment time is reached, adjusting the voucher collection quantity corresponding to the first virtual resource to be allocated according to a preset voucher adjustment rule, and verifying whether the collected target vouchers reach the adjusted voucher collection quantity, wherein the preset voucher adjustment rule includes at least one voucher reduction scale corresponding to the voucher adjustment time;

[0097] S3, if the collected target vouchers do not reach the adjusted voucher collection quantity, then when the first to-be-allocated resource is not allocated when the next voucher adjustment time arrives, the voucher collection quantity is readjusted according to the preset voucher adjustment rule until the first to-be-allocated resource is allocated or the collection end time is reached.

[0098] In the above embodiment, in order to further improve the success rate of the activity, at least one voucher adjustment time can be determined according to the collection start time of the first virtual resource to be allocated. For example, if the collection end time is 2 pm, three voucher adjustment times can be set, namely 1:30, 1:40, and 1:50. When the first voucher adjustment time is reached, for example, 1:30, if the first resource to be allocated has not been allocated, the voucher collection quantity corresponding to the preset allocation condition can be adjusted according to the preset voucher adjustment rule, and it can be verified whether the corresponding allocation condition is met after the adjustment, for example, by reducing 1%, or reducing 2 vouchers, etc. When the second voucher adjustment time is reached, for example, 1:40, if the first resource to be allocated has not been allocated, the voucher collection quantity can be adjusted continuously, and it can be verified whether the allocation condition is met. This is until the first resource to be allocated is allocated, or the collection end time is reached, or all voucher adjustment times have been adjusted in accordance with the voucher collection quantity. This reduces the cost of achieving the activity and improves the success rate of the activity.

[0099] In an embodiment of the present application, optionally, it may also include: sending pre-release information of resource allocation activity to a game client, wherein the pre-release information of resource allocation activity includes a plurality of virtual resources to be allocated that are planned to be allocated within a preset resource allocation cycle and a participation voucher identifier corresponding to each virtual resource to be allocated; receiving activity reservation information fed back by the game client, wherein the activity reservation information includes a target reservation role and a reserved virtual resource; when the allocation activity corresponding to the reserved virtual resource is released, deducting the participation voucher matching the reserved virtual resource from the target reservation role account, and updating the voucher collection record corresponding to the reserved virtual resource to record that the target reservation role information has participated in the allocation activity of the reserved virtual resource.

[0100] In this embodiment, the credentials required to be submitted for participating in each allocation activity of the resources to be allocated may be different. The game server may notify the client in advance of all virtual resources to be allocated in a preset resource allocation cycle (e.g., one week). Players may make activity reservations based on their existing credentials and the credentials required for these virtual resources to be allocated. Specifically, the existing credentials may be marked as a reservation state. When the server starts the allocation activity of this week, the client automatically submits the credentials in the reservation state to the server to participate in the activity based on the activity reservation information previously set by the player. For example, the virtual resources to be allocated in this week's virtual resource activity include props a, props b, and props c. Props a, b, and c require credentials 1, 2, and 3 to participate, respectively. The player already has credentials 2 and 3. When the player sees in the client that this week's activity is an allocation activity for props a, props b, and props c, the status of credentials 2 and 3 can be set to reservation. In this way, when the server releases the allocation activity of props b and c, the client can automatically submit credentials 2 and 3 to participate in the allocation activity of props b and c.

[0101] Further, as Figure 1 The specific implementation of the method, the embodiment of the present application provides a virtual resource allocation device, such as Figure 3 As shown, the device comprises:

[0102] a credential submission module, configured to receive a first credential submission request for a first virtual resource to be allocated, and update a target credential collection record corresponding to the first virtual resource to be allocated, wherein the target credential collection record includes the collected target credentials and their corresponding submission role information;

[0103] A verification module, configured to verify, based on the target credential collection record, whether the collected target credential satisfies a preset allocation condition corresponding to the first virtual resource to be allocated;

[0104] The resource allocation module is used to determine the target allocation role in the submitted role according to the preset resource allocation rule if the conditions are met, and allocate the first virtual resource to be allocated to the target allocation role.

[0105] Optionally, the preset allocation condition includes the number of vouchers collected corresponding to the first virtual resource to be allocated; the voucher submission module is specifically used to:

[0106] Determine the request role information corresponding to the first credential submission request, and query whether the submission role includes the request role;

[0107] If the submitted character does not include the requested character, the target credential is deducted from the game account of the requested character, and the target credential collection record is updated.

[0108] Optionally, the method further comprises:

[0109] An inquiry module is used to determine a collection reminder time for the first virtual resource to be allocated based on the collection start time of the first virtual resource to be allocated before receiving a first credential submission request for the first virtual resource to be allocated; if the first virtual resource to be allocated is not allocated when the collection reminder time arrives, then, under the authorization of the target submission role, an inquiry message is sent to the authorized role corresponding to the target submission role to inquire whether the authorized role agrees to submit the target credential to participate in the first resource allocation activity of the first virtual resource to be allocated.

[0110] Optionally, the credential submission module is further used to: after sending inquiry information to the authorization role corresponding to the target submission role under the authorization of the target submission role, receive a second credential submission request from the authorization role, and update the target credential collection record, wherein the target credential collection record also includes the associated role information corresponding to the submission role, the authorization role is the associated role of the target submission role and / or the target submission role is the associated role of the authorization role;

[0111] Accordingly, the device further comprises:

[0112] The reward allocation module is used for allocating the first participation reward resource to the associated role corresponding to the target allocation role after determining the target allocation role in the submitted role, if the target allocation role corresponds to an associated role.

[0113] Optionally, the reward allocation module is further used to:

[0114] After determining the target assigned role among the submitted roles, allocating a second participation reward resource to other roles among the submitted roles except the target assigned role, wherein the value of the second participation reward resource is less than the value of the first participation reward resource; and / or,

[0115] After allocating the first virtual resource to be allocated to the target allocation role, obtaining the usage income information of the first virtual resource to be allocated by the target allocation role, and allocating additional income to other roles in the submitted role except the target allocation role based on the usage income information, wherein the additional income is less than the usage income.

[0116] Optionally, the device further comprises:

[0117] The activity publishing module is used to remove the first virtual resource to be allocated from the preset virtual resource set after allocating the first virtual resource to be allocated to the target allocation role, and obtain the second virtual resource to be allocated in the preset virtual resource set; and publish a second resource allocation activity corresponding to the second virtual resource to be allocated.

[0118] Optionally, the activity publishing module is further used to:

[0119] Before receiving the first credential submission request for the first virtual resource to be allocated, determining the collection end time of the first virtual resource to be allocated according to the collection start time of the first virtual resource to be allocated;

[0120] If the first resource to be allocated is not allocated when the collection end time is reached, the first virtual resource to be allocated is removed from the preset virtual resource set, and according to the target credential collection record, the target credential is allocated to each submitting role or target credential collection information is sent to each submitting role;

[0121] A third virtual resource to be allocated in the preset virtual resource set is acquired, and a third resource allocation activity corresponding to the third virtual resource to be allocated is published.

[0122] Optionally, the preset virtual resource set includes a plurality of virtual resources to be allocated that are planned to be allocated within a preset resource allocation cycle; and the device further includes:

[0123] The reset module is used to terminate the resource allocation activity in the preset resource allocation cycle if all the virtual resources to be allocated are allocated in the preset resource allocation cycle, and reset the preset virtual resource set when the next resource allocation cycle is reached.

[0124] It should be noted that for other corresponding descriptions of the functional units involved in the virtual resource allocation device provided in the embodiment of the present application, reference can be made to Figure 1 to Figure 2 The corresponding description in the method will not be repeated here.

[0125] Based on the above Figure 1 to Figure 2 The method shown in the embodiment of the present application is accordingly provided with a storage medium on which a computer program is stored, and when the computer program is executed by a processor, the above-mentioned Figure 1 to Figure 2 The virtual resource allocation method shown.

[0126] Based on this understanding, the technical solution of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.), and includes a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each implementation scenario of the present application.

[0127] Based on the above Figure 1 to Figure 2 The method shown, and Figure 3 In order to achieve the above-mentioned purpose, the embodiment of the present application further provides a computer device, which can be a personal computer, a server, a network device, etc. The computer device includes a storage medium and a processor; the storage medium is used to store a computer program; the processor is used to execute the computer program to achieve the above-mentioned Figure 1 to Figure 2 The virtual resource allocation method shown.

[0128] Optionally, the computer device may further include a user interface, a network interface, a camera, a radio frequency (RF) circuit, a sensor, an audio circuit, a WI-FI module, etc. The user interface may include a display, an input unit such as a keyboard, etc., and the optional user interface may also include a USB interface, a card reader interface, etc. The network interface may optionally include a standard wired interface, a wireless interface (such as a Bluetooth interface, a WI-FI interface), etc.

[0129] Those skilled in the art will appreciate that the computer device structure provided in this embodiment does not limit the computer device, and may include more or fewer components, or a combination of certain components, or different component arrangements.

[0130] The storage medium may also include an operating system and a network communication module. The operating system is a program that manages and saves the hardware and software resources of the computer device, and supports the operation of information processing programs and other software and / or programs. The network communication module is used to realize communication between the components inside the storage medium, and communication with other hardware and software in the physical device.

[0131] Through the description of the above implementation methods, those skilled in the art can clearly understand that the present application can be implemented by means of software plus a necessary general hardware platform, or by means of hardware, when the game server receives a first credential submission request corresponding to the first virtual resource to be allocated, the target credential collection record corresponding to the resource is updated to realize the storage of the collected target credentials and submitted role information, and after the target credential collection record is updated, it is verified based on the record whether the first virtual resource to be allocated meets the corresponding preset allocation conditions, so that when the first virtual resource to be allocated meets the preset allocation conditions, according to the preset resource allocation rules, the target allocation role is selected from the submitted roles and the resource allocation is performed. Compared with the virtual resource allocation methods such as real-time bidding and lottery in the prior art, the embodiments of the present application help to reduce the performance overhead of the server, reduce the computing pressure of the server, reduce the requirements for the network environment, improve the fairness of the allocation of game virtual resources, and improve the game experience of the players.

[0132] Those skilled in the art will appreciate that the accompanying drawings are only schematic diagrams of a preferred implementation scenario, and the modules or processes in the accompanying drawings are not necessarily necessary for implementing the present application. Those skilled in the art will appreciate that the modules in the devices in the implementation scenario can be distributed in the devices of the implementation scenario according to the description of the implementation scenario, or can be changed accordingly and located in one or more devices different from the present implementation scenario. The modules of the above-mentioned implementation scenario can be combined into one module, or can be further split into multiple submodules.

[0133] The above serial numbers of this application are only for description and do not represent the advantages and disadvantages of the implementation scenarios. The above disclosure is only a few specific implementation scenarios of this application, but this application is not limited to them, and any changes that can be thought of by technicians in this field should fall within the scope of protection of this application.

Claims

1. A method for allocating virtual resources, characterized in that: The method comprises: Determining a collection reminder time for the first to-be-allocated virtual resource according to the collection start time of the first to-be-allocated virtual resource; receiving a first credential submission request for a first virtual resource to be allocated, and updating a target credential collection record corresponding to the first virtual resource to be allocated, wherein the target credential collection record includes the collected target credentials and their corresponding submission role information; Verifying, based on the target credential collection record, whether the collected target credential meets a preset allocation condition corresponding to the first virtual resource to be allocated; If the conditions are met, determining the target allocation role in the submitted role according to the preset resource allocation rule, and allocating the first virtual resource to be allocated to the target allocation role; If the first virtual resource to be allocated has not been allocated when the collection reminder time arrives, then, under the authorization of the target submission role, an inquiry message is sent to the authorization role corresponding to the target submission role to inquire whether the authorization role agrees to submit the target credential to participate in the first resource allocation activity of the first virtual resource to be allocated.

2. The method according to claim 1, characterized in that The preset allocation condition includes the number of voucher collections corresponding to the first virtual resource to be allocated; and updating the target voucher collection record corresponding to the first virtual resource to be allocated specifically includes: Determine the request role information corresponding to the first credential submission request, and query whether the submission role includes the request role; If the submitted character does not include the requested character, the target credential is deducted from the game account of the requested character, and the target credential collection record is updated.

3. The method according to claim 1, characterized in that After sending the inquiry information to the authorization role corresponding to the target submission role under the authorization of the target submission role, the method further includes: receiving a second credential submission request from the authorization role, and updating the target credential collection record, wherein the target credential collection record further includes associated role information corresponding to the submission role, the authorization role is an associated role of the target submission role and / or the target submission role is an associated role of the authorization role; Accordingly, after determining the target assigned role in the submitted role, the method further includes: If the target assigned role corresponds to an associated role, the first participation reward resource is allocated to the associated role corresponding to the target assigned role.

4. The method according to claim 3, characterized in that After determining the target assigned role in the submitted role, the method further includes: Allocating a second participation reward resource to other roles among the submitted roles except the target allocation role, wherein the value of the second participation reward resource is less than the value of the first participation reward resource; and / or, After allocating the first virtual resource to be allocated to the target allocation role, the method further includes: Obtain usage revenue information of the target allocation role on the first virtual resource to be allocated, and allocate additional revenue to other roles in the submitting role except the target allocation role according to the usage revenue information, wherein the additional revenue is less than the usage revenue.

5. The method according to any one of claims 1 to 4, characterized in that After allocating the first virtual resource to be allocated to the target allocation role, the method further includes: Removing the first virtual resource to be allocated from the preset virtual resource set, and acquiring a second virtual resource to be allocated in the preset virtual resource set; A second resource allocation activity corresponding to the second virtual resource to be allocated is published.

6. The method according to claim 5, characterized in that Before receiving the first credential submission request for the first virtual resource to be allocated, the method further includes: Determining an end time of collecting the first virtual resources to be allocated according to a start time of collecting the first virtual resources to be allocated; If the first virtual resource to be allocated is not allocated when the collection end time is reached, the first virtual resource to be allocated is removed from the preset virtual resource set, and according to the target credential collection record, the target credential is allocated to each submitting role or target credential collection information is sent to each submitting role; A third virtual resource to be allocated in the preset virtual resource set is acquired, and a third resource allocation activity corresponding to the third virtual resource to be allocated is published.

7. The method according to claim 5, characterized in that The preset virtual resource set includes a plurality of virtual resources to be allocated that are planned to be allocated within a preset resource allocation cycle; the method further includes: If all the virtual resources to be allocated are allocated within the preset resource allocation cycle, the resource allocation activity within the preset resource allocation cycle is terminated, and when the next resource allocation cycle arrives, the preset virtual resource set is reset.

8. A virtual resource allocation device, characterized in that: The device comprises: a credential submission module, configured to receive a first credential submission request for a first virtual resource to be allocated, and update a target credential collection record corresponding to the first virtual resource to be allocated, wherein the target credential collection record includes the collected target credentials and their corresponding submission role information; A verification module, configured to verify, based on the target credential collection record, whether the collected target credential satisfies a preset allocation condition corresponding to the first virtual resource to be allocated; A resource allocation module, configured to determine a target allocation role in the submitted role according to a preset resource allocation rule if the conditions are met, and allocate the first virtual resource to be allocated to the target allocation role; An inquiry module is used to determine a collection reminder time for the first virtual resource to be allocated based on the collection start time of the first virtual resource to be allocated before receiving a first credential submission request for the first virtual resource to be allocated; and if the first virtual resource to be allocated is not allocated when the collection reminder time is reached, then, under the authorization of the target submission role, send an inquiry message to the authorized role corresponding to the target submission role to inquire whether the authorized role agrees to submit the target credential to participate in the first resource allocation activity of the first virtual resource to be allocated.

9. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.

10. A computer device comprising a storage medium, a processor, and a computer program stored in the storage medium and executable on the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Game machine

    CN103021092A

  • Data processing method and device for internet game

    CN104715131A