Ranking list updating method, device and electronic equipment in game

By simultaneously updating the leaderboards for the current and next seasons in the game, acquiring score change data, and saving snapshots of the old seasons, the problem of poor player experience during season transitions has been solved, achieving seamless transitions and rapid updates.

CN115837166BActive Publication Date: 2026-03-20NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-10
Publication Date
2026-03-20

AI Technical Summary

Technical Problem

The current game leaderboard settlement method can easily lead to a poor player experience when the season changes, and there may be problems such as excessively long off-season or copying time.

Method used

By updating the leaderboards simultaneously in the current and next seasons, capturing score change data, and saving snapshots of the old seasons, the leaderboards for the new season are ensured to be directly inherited from the old leaderboards, avoiding off-season and blocked copying.

Benefits of technology

It achieves seamless transitions during season changes, enhances the player experience, avoids delays during off-seasons and copying, and ensures timely updates to leaderboard data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115837166B_ABST
    Figure CN115837166B_ABST
Patent Text Reader

Abstract

The application provides a game ranking list updating method and device and electronic equipment, score change data in a current season, a first ranking list of the current season and a second ranking list of a last season of the current season are acquired; the first ranking list and the second ranking list save the same data; based on the score change data and the second ranking list, the first ranking list and a third ranking list of a next season of the current season are updated, to obtain an updated first ranking list and an updated third ranking list; when the current season ends, the updated first ranking list and the updated third ranking list are saved, and the updated first ranking list and the updated third ranking list save the same data. The method writes the current season and the next season at the same time when the ranking list is updated, so that there is a snapshot of the old season when the season is switched, and the ranking list of the new season directly inherits from the old ranking list, there is no off-season, and the original old season ranking list does not need to be blocked and copied.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of game data updating, in particular to a game ranking list updating method, device and electronic equipment. BACKGROUND

[0002] In a game, a ranking list is generally provided to record the strength of a player and the season points, so as to stimulate players to compete with each other for the top of the ranking list. Generally, the ranking list is settled once every season, and relevant rewards are sent to players according to the ranking of the players in the ranking list at the time of settlement.

[0003] In related technologies, there are three settlement modes of the season ranking list. The first mode is to use a separate ranking list for each season, but when the season cycle is relatively short, the experience of players is poor. The second mode is to have a break period between every two seasons, so that the ranking list rewards are issued during the break period, but some game playings are expected to be started without interruption, and the existence of the break period will cause a loss of the experience of players. The third mode is to copy a copy of the entire ranking list as a snapshot at the end of the season, and the settlement thereafter is based on the snapshot, and when the ranking list is large, the copying of the entire ranking list takes a long time, which affects the game experience of players. Therefore, the settlement modes of the season ranking list provided in related technologies will reduce the game experience of players. SUMMARY

[0004] The purpose of the present application is to provide a game ranking list updating method, device and electronic equipment, so that the ranking list of a new season directly inherits the ranking list of the last season, there is no break period, and the ranking list of the last season does not need to be blocked and copied, thereby improving the game experience of players.

[0005] In a first aspect, the present application provides a game ranking list updating method, which comprises: obtaining score change data in a current season, a first ranking list of the current season and a second ranking list of the last season of the current season which are pre-saved; wherein the score change data comprises: a target game account whose score changes in the current season, and the current score of the target game account; the first ranking list and the second ranking list save the same data; based on the score change data and the second ranking list, updating the first ranking list and a third ranking list of the next season of the current season, to obtain an updated first ranking list and an updated third ranking list; if the current season ends, saving the updated first ranking list and the updated third ranking list, so as to take the updated first ranking list as the second ranking list of the last season of the next current season, and take the updated third ranking list as the first ranking list of the next current season; wherein the updated first ranking list and the updated third ranking list save the same data.

[0006] In a second aspect, the present application provides a device for updating a ranking list in a game, the device comprising: a data acquisition module configured to acquire score change data in a current season, a first ranking list of the current season and a second ranking list of a previous season of the current season, wherein the score change data comprises target game accounts whose scores have changed in the current season and the current scores of the target game accounts, and the first ranking list and the second ranking list store the same data; a ranking list updating module configured to update the first ranking list and a third ranking list of a next season of the current season based on the score change data and the second ranking list to obtain an updated first ranking list and an updated third ranking list; and a data storage module configured to store the updated first ranking list and the updated third ranking list when the current season ends, so as to take the updated first ranking list as the second ranking list of a previous season of a next current season and take the updated third ranking list as the first ranking list of the next current season, wherein the updated first ranking list and the updated third ranking list store the same data.

[0007] In a third aspect, the present application provides an electronic device, which comprises a processor and a memory, the memory storing machine executable instructions capable of being executed by the processor, and the processor executes the machine executable instructions to implement the above-mentioned method for updating a ranking list in a game.

[0008] In a fourth aspect, the present application provides a computer readable storage medium, which stores computer executable instructions, and the computer executable instructions, when called and executed by a processor, cause the processor to implement the above-mentioned method for updating a ranking list in a game.

[0009] The embodiments of the present application bring the following beneficial effects:

[0010] The application provides a game ranking list updating method, device and electronic equipment, which comprises the following steps: acquiring score change data in a current season, a first ranking list of the current season and a second ranking list of a last season of the current season, the first ranking list and the second ranking list storing the same data; updating the first ranking list and a third ranking list of a next season of the current season based on the score change data and the second ranking list to obtain an updated first ranking list and an updated third ranking list; if the current season ends, saving the updated first ranking list and the updated third ranking list, taking the updated first ranking list as the second ranking list of a last season of a next current season and taking the updated third ranking list as the first ranking list of the next current season; wherein the updated first ranking list and the updated third ranking list store the same data. In the method, the ranking list is written in the current season and the next season at the same time, so that a snapshot of the old season is obtained when the season is switched, and the time of the whole season is released to keep the ranking list of the next season the same as that of the current season, so that the ranking list of the new season directly inherits from the old ranking list, there is no off-season period, and the original old season ranking list does not need to be blocked and copied.

[0011] Other features and advantages of the present application will be illustrated in the following description, or can be learned from the description, or can be determined without any doubt, or can be known by implementing the above-mentioned technologies of the present application.

[0012] In order to make the above-mentioned purposes, features and advantages of the present application more obvious and easy to understand, the following preferred embodiments are described in detail below, and the accompanying drawings are described as follows. BRIEF DESCRIPTION OF DRAWINGS

[0013] In order to more clearly illustrate the specific embodiments of the present application or the technical solutions in the prior art, the following will briefly introduce the drawings needed to be used in the specific embodiments or the prior art description. Obviously, the drawings in the following description are some embodiments of the present application, and those skilled in the art can also obtain other drawings according to these drawings without any creative labor.

[0014] Figure 1 A flowchart of a game ranking list updating method provided by an embodiment of the present application;

[0015] Figure 2 A flowchart of another game ranking list updating method provided by an embodiment of the present application;

[0016] Figure 3 A schematic diagram of ranking lists of a current season and a next season provided by an embodiment of the present application;

[0017] Figure 4A ranking list data updating schematic diagram provided for an embodiment of the present application;

[0018] Figure 5 A current season and next season ranking list updating schematic diagram provided for an embodiment of the present application;

[0019] Figure 6 A ranking list data copying schematic diagram provided for an embodiment of the present application;

[0020] Figure 7 Another ranking list data copying schematic diagram provided for an embodiment of the present application;

[0021] Figure 8 A flow chart of another in-game ranking list updating method provided for an embodiment of the present application;

[0022] Figure 9 A structural schematic diagram of an in-game ranking list updating device provided for an embodiment of the present application;

[0023] Figure 10 A structural schematic diagram of an electronic device provided for an embodiment of the present application. DETAILED DESCRIPTION

[0024] In order to make the objectives, technical solutions and advantages of the embodiments of the present application clearer, the following will be combined with the accompanying drawings of the embodiments of the present application to make a clear and complete description of the technical solutions in the embodiments of the present application. Obviously, the described embodiments are some of the embodiments of the present application, but not all the embodiments. The components of the embodiments of the present application described and shown in the accompanying drawings can be arranged and designed in various different configurations.

[0025] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the claimed present application, but only represents selected embodiments of the present application. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in the present application without creative labor are within the scope of protection of the present application.

[0026] A ranking list is generally provided in a game to record the battle power of a player and the season points, stimulate players to compete with each other for the top of the ranking list, and the ranking list is often accompanied by some related logic of awarding. For example, the ranking list of each season is settled once, and the players are sent relevant rewards according to the ranking of the ranking list at the time of settlement. The settlement of the existing game for this season ranking list is generally a combination of active and passive. Since there may be a large number of players on the ranking list, considering the bearing pressure of the database, it is impossible to complete the reward distribution to all players at once, so a ranking list snapshot that can reflect the moment when the season ends is often needed at the time of season settlement, and the players are given rewards according to the snapshot.

[0027] In the related art, the following three season settlement modes are provided:

[0028] The first mode is to use a separate ranking list for each season. In this mode, the players on the ranking list of the previous season are not reserved when the next season starts, and the players need to log in or participate again to be on the list. Therefore, the ranking list of the old season is not updated, thereby preserving a snapshot of the old season, and the rewards can be issued according to the ranking list of the old season. However, this mode will clear the ranking list of the previous season when the next season starts, and when the season cycle is relatively short, the experience will be relatively poor, for example, when the settlement is based on days, the player who is originally at the top of the ranking list will not be on the ranking list the next day because the player has not logged in, and the first player who logs in will suddenly appear at the top of the ranking list, resulting in a poor game experience for the players.

[0029] The second mode is that the game season ends and there is a break period, and no score change of the ranking list occurs during the break period. Therefore, the ranking list rewards are issued during the break period, and the ranking list is frozen for a period of time, which can be used to issue season rewards, and the original ranking list can be updated when the next season starts. However, some game modes are expected to start the season without interruption, and the break period will cause a loss of the player experience.

[0030] The third mode is to copy the entire ranking list as a snapshot at the end of the season, and the settlement thereafter is based on the snapshot. However, when the size of the ranking list is large, the copying of the entire ranking list is relatively time-consuming and may take several minutes. If the data of the new season cannot be written during the several minutes, the break period is actually caused, and if the data can be written, the snapshot copied from the ranking list cannot reflect the situation at the end of the season, thereby affecting the game experience of the players.

[0031] Based on the above problems, the embodiments of the present application provide a game ranking list updating method, device and electronic equipment, which can be applied to the season ranking list updating of any game and the scene of issuing rewards according to the ranking list. In order to facilitate the understanding of the embodiments of the present application, first, a game ranking list updating method disclosed by the embodiments of the present application is introduced in detail, such as Figure 1 The method comprises the following specific steps:

[0032] Step S102, acquiring score change data in the current season, a first ranking list of the current season and a second ranking list of the previous season of the current season, wherein the score change data comprises a target game account whose score changes in the current season and the current score of the target game account, and the first ranking list and the second ranking list save the same data.

[0033] In a specific implementation, the application can maintain multiple season rankings at the same time. When the player scores of the current season ranking change, the score change data in the current season is recorded, wherein one player corresponds to one game account. Specifically, when the player is in the previous season of the current season, the first ranking of the current season and the second ranking of the previous season of the current season are updated at the same time. When the previous season of the current season ends, the ranking of the previous season of the current season no longer receives new player score change updates, but is a snapshot of the old season, thereby saving the second ranking of the previous season of the current season and the first ranking of the current season at the same time. Since the first ranking and the second ranking are updated at the same time, the data saved in the first ranking and the second ranking is the same.

[0034] In actual application, the data saved in the first ranking and the second ranking is usually sorted in descending order of score value, and the data saved in the first ranking and the second ranking includes game account names and current scores corresponding to each game account name.

[0035] Step S104, based on the score change data and the second ranking, updating the first ranking and the third ranking of the next season of the current season to obtain the updated first ranking and the updated third ranking.

[0036] If the player scores of the current season ranking change, the first ranking of the current season and the third ranking of the next season of the current season are written at the same time, thereby updating the data in the first ranking and the third ranking. At this time, the data in the updated third ranking does not contain all the data in the updated first ranking, but only contains the updated data in the first ranking. In order to make the data in the updated third ranking contain complete data the same as the updated first ranking, during the current season, the player scores in the second ranking of the previous season of the current season are progressively copied to the updated third ranking.

[0037] Step S106, if the current season ends, saving the updated first ranking and the updated third ranking, so as to take the updated first ranking as the second ranking of the previous season of the next current season, and take the updated third ranking as the first ranking of the next current season; wherein the data saved in the updated first ranking and the updated third ranking is the same.

[0038] If the current season ends, the updated first ranking list and the updated third ranking list are saved, the updated first ranking list is provided as a snapshot to settle services (that is, the updated first ranking list is used to issue rewards for players), and the updated third ranking list is provided as a ranking list of the latest season to query services, that is, the updated third ranking list is used as the first ranking list of the newly started current season.

[0039] In a specific implementation, each season is updated according to the method of steps S102-S106, that is, when in the SNth season, the score update is simultaneously applied to the ranking list of the SNth season and the ranking list of the SN+1th season, and a background task is responsible for copying the ranking list data of the SN-1th season to the ranking list of the SN+1th season, so that the data saved in the ranking list of the SNth season and the ranking list of the SN+1th season are consistent before the SN+1th season starts.

[0040] The method provided by the embodiment of the application for updating a ranking list in a game first acquires score change data in a current season, a first ranking list of the current season and a second ranking list of a previous season of the current season, the first ranking list and the second ranking list save the same data; then, based on the score change data and the second ranking list, the first ranking list and a third ranking list of a next season of the current season are updated, to obtain an updated first ranking list and an updated third ranking list; if the current season ends, the updated first ranking list and the updated third ranking list are saved, the updated first ranking list is used as the second ranking list of the previous season of the next current season, and the updated third ranking list is used as the first ranking list of the next current season; wherein the updated first ranking list and the updated third ranking list save the same data. In this way, by simultaneously writing the current season and the next season when updating the ranking list, there is a snapshot of the old season when the season is switched, so that the time of the whole season is released to keep the ranking list of the next season the same as the current season, so that the ranking list of the new season directly inherits from the old ranking list, there is no off-season, and there is no need to block the copy of the original old-season ranking list.

[0041] The embodiment of the application also provides another method for updating a ranking list in a game, which is implemented based on the above embodiment, and mainly describes a specific process of updating the first ranking list and the third ranking list of the next season of the current season based on the score change data and the second ranking list, to obtain the updated first ranking list and the updated third ranking list (the specific process is implemented through steps S204-S206). Figure 2 As shown in the figure, the method comprises the following specific steps:

[0042] Step S202, obtaining score change data in the current season, a first ranking list of the current season and a second ranking list of the previous season of the current season; wherein the first ranking list and the second ranking list save the same data.

[0043] In the specific implementation, at the beginning of the first season S1, each time the score on the ranking list is updated, it is written into the current season (i.e. the first season S1) and the next season of the current season (i.e. the second season S2), so the data saved in the ranking list of the current season and the ranking list of the next season of the current season are the same. For example, Figure 3 a schematic diagram of the ranking list of the current season and the next season, Figure 3 a1, a2, a3 and a4 in the above table represent the player nickname or account name corresponding to the game account, and 100, 80, 70 and 60 represent the current score of the player; Figure 3 the table on the left side represents the ranking list of the current season, and the table on the right side represents the ranking list of the next season of the current season.

[0044] When in the current season, the score update of the subsequent ranking list is also written into the current season and the next season of the current season, so the data of the two seasons remains consistent at the beginning, for example, Figure 4 a disclosed ranking list data update schematic diagram, Figure 4 in the above table, player b1 updates his score of 50 to the ranking list, which will update the ranking list of the current season and the ranking list of the next season of the current season at the same time.

[0045] When a new season is started, the S1 season becomes the previous season, at this time, the ranking list of the S1 season as the ranking list of the previous season is fixed and will not be updated thereafter. At this time, the S2 season becomes the current season, the ranking list of the S2 season is used for the player to query, at this time, the ranking list of the next season S3 of the current season is empty, and the ranking list of the S3 season needs to be consistent with the ranking list of the S2 season before the S3 season comes, so as to realize seamless connection of the ranking list of the seasons.

[0046] Step S204, updating the first ranking list and the third ranking list according to the score change data, to obtain the updated first ranking list and the updated third ranking list.

[0047] The score change data includes the player nickname of the target game account whose score changes in the current season and the current score corresponding to the target game account, and according to the score change data, the data in the first ranking list of the current season and the third ranking list of the next season of the current season can be updated.

[0048] In a specific implementation, before updating the first ranking list and the third ranking list according to the score change data, the third ranking list is empty; when updating the ranking list, the step S204 can be implemented by the following steps 10-11:

[0049] Step 10, adjusting the score corresponding to the target game account in the first ranking list according to the score change data, to obtain an updated first ranking list.

[0050] The target game account contained in the score change data can already exist in the first ranking list, at this time, the current score of the target game account in the first ranking list needs to be updated to the corresponding score in the score change data; if the target game account contained in the score change data does not exist in the first ranking list, the data corresponding to the target game account needs to be written into the corresponding position in the first ranking list according to the current score of the target game account. Specifically, if the data in the first ranking list is sorted in descending order, the sorting of the game accounts in the first ranking list needs to be adjusted while adjusting the score corresponding to the target game account in the first ranking list.

[0051] Step 11, writing the target game account and the current score of the target game account in the score change data into the third ranking list, to obtain an updated third ranking list.

[0052] Since the data in the third ranking list is empty at the beginning, the target game account and the current score of the target game account in the score change data can be directly written into the third ranking list. As shown in FIG. 6, Figure 5 FIG. 6 shows a ranking list updating diagram of the current season and the next season provided by an embodiment of the present application, Figure 5 the score 80 of the player a2 is updated to the current score 95 in FIG. 6, and Figure 5 It can be seen from FIG. 6 that the score change of the player a2 will update the ranking list of the current season and the ranking list of the next season of the current season at the same time.

[0053] Step S206, based on the second ranking list, data supplement is performed on the updated third ranking list, to obtain an updated third ranking list.

[0054] When the player is in the current season, the first ranking list contains all the data of the second ranking list because the previous simultaneous update data simultaneously writes the first ranking list of the current season and the second ranking list of the last season of the current season, at this time, the first ranking list is provided to the player as the ranking list of the current season for viewing, the update of the player scores in the current season is simultaneously updated to the current season and the next season of the current season. At this time, the third ranking list of the next season of the current season does not contain all the data in the first ranking list, but only contains the updated data of the first ranking list, in order to make the third ranking list of the next season of the current season also contain the same data as the first ranking list of the current season, during the current season, the player scores in the second ranking list of the last season of the current season will be gradually copied to the third ranking list of the next season of the current season, and the copying follows the principle of priority of the next season of the current season, that is, if the player in the next season of the current season has appeared in the third ranking list of the next season of the current season, then the player does not need to be copied to the third ranking list of the next season of the current season.

[0055] Specifically, the specific process of the above step S206 includes: copying the target data in the second ranking list which is not contained in the updated third ranking list to the updated third ranking list to obtain an updated third ranking list. The gradual copying is performed slowly in a season, so there is no blocking situation, and the whole gradual copying is to ensure that the ranking list of the current season and the ranking list of the next season of the current season have the same data before the next season of the current season starts, so that the ranking list of the current season provides settlement service as a snapshot, and the next season of the current season provides query service as the ranking list of the latest season.

[0056] In specific implementation, the above step S206 can also be implemented through the following steps 20-22:

[0057] Step 20, judging whether the first data in the second ranking list is in the updated third ranking list; if yes, executing step 21; if not, executing step 22.

[0058] Step 21, determining the next data of the first data in the second ranking list as a new first data, and continuing to execute the step of judging whether the first data in the second ranking list is in the updated third ranking list until the last data in the second ranking list is judged.

[0059] Step 22, copying the first data to the updated third ranking list, and determining the next data of the first data in the second ranking list as a new first data, and continuing to execute the step of judging whether the first data in the second ranking list is in the updated third ranking list until the last data in the second ranking list is judged.

[0060] When the current season is in progress, a background task will copy the scores of the players in the second ranking list of the previous season of the current season to the third ranking list of the next season of the current season, and the main function of the background task is to keep the data saved in the updated first ranking list and the updated third ranking list consistent. If the data in the second ranking list is sorted in descending order of scores, the players can be continuously copied to the third ranking list of the next season of the current season from the highest score. Figure 6 As shown in FIG. 1, it is a schematic diagram of ranking list data copying provided by an embodiment of the present application. Figure 6 In the schematic diagram, the first data a1 in the second ranking list of the previous season of the current season is copied to the third ranking list of the next season of the current season.

[0061] After the first data in the second ranking list is copied, it is determined whether the second data in the second ranking list is in the third ranking list. If yes, the second data does not need to be copied, and it is directly determined whether the third data is in the ranking list. If no, the second data is directly copied to the third ranking list, and the last data in the second ranking list is determined in sequence.

[0062] It should be noted that the copying process does not affect the normal update of the third ranking list of the next season of the current season, and if the first ranking list of the current season has data being updated, the data will also be updated to the third ranking list of the next season of the current season.

[0063] In some embodiments, the data copying is not necessarily one player at a time, but can also be in batches. For example, Figure 7 As shown in FIG. 2, it is another schematic diagram of ranking list data copying, in which the data of a3, a4 and b1 are copied to the third ranking list of the next season of the current season at the same time. After this copying, the data saved in the first ranking list of the current season and the third ranking list of the next season of the current season are consistent, and the background task can be stopped.

[0064] Here, the copying is that the background task copies, for example, N (for example, 10000) players of data to the new season every second, and then the entire season cycle T seconds (for example, 86400 seconds per day) is added, so that finally as long as the size of the ranking list < T*N = 86400000 (800 million), the copying can be guaranteed to be completed. If the copying is not completed, it is mostly caused by server downtime, so the server can be restarted. If it is found that the season has crossed the cycle but has not been copied, the copying can be directly waited to be completed before starting, which is a fault-tolerant processing.

[0065] If the current season ends, the updated first ranking list and the updated third ranking list are saved, the updated first ranking list is taken as the second ranking list of the last season of the next current season, and the updated third ranking list is taken as the first ranking list of the next current season; wherein the updated first ranking list and the updated third ranking list save the same data.

[0066] When the player is in the current season, the player score is updated in the first ranking list of the current season and the third ranking list of the next season of the current season, and a background task is used to gradually copy the player score in the second ranking list of the last season of the current season to the third ranking list of the next season of the current season. When the season is switched to the next season of the current season, the player score is updated in the ranking list of the next season of the current season and the ranking list of the next season of the next season of the current season, and this process is continuously performed.

[0067] The above method for updating the ranking list in the game writes the current season and the next season at the same time when the ranking list is updated, so that a snapshot of the old season is obtained when the season is switched, thereby leaving a whole season to keep the ranking list of the next season the same as that of the current season. This method makes the ranking list not need to be emptied due to settlement when the season is switched, and does not need a rest period for settlement, and does not exist the blocking generation of the ranking list snapshot.

[0068] The embodiment of the application further provides another method for updating the ranking list in the game, which is implemented on the basis of the above embodiment, and mainly describes the specific process of saving the updated first ranking list and the updated third ranking list if the current season ends (which is specifically implemented through the following step S806). Figure 8 As shown in the figure, the method comprises the following specific steps:

[0069] In the specific implementation, the first ranking list of the current season and the second ranking list of the last season of the current season are saved in the preset data.

[0070] In the specific implementation, the first ranking list of the current season and the second ranking list of the last season of the current season are saved in the preset data.

[0071] In the specific implementation, the first ranking list of the current season and the second ranking list of the last season of the current season are saved in the preset data.

[0072] If the current season ends, the updated first ranking list and the updated third ranking list are saved in the preset database; wherein the updated first ranking list and the updated third ranking list save the same data.

[0073] If the current season ends, the updated first ranking list and the updated second ranking list need to be saved in the preset database for subsequent season calling.

[0074] In step S808, according to the score of the game account in the updated first ranking list, the game account is awarded.

[0075] In the specific implementation, when the current season ends, there is a time gap between the current season and the next season, and the game account is awarded according to the updated first ranking list, so that the game is avoided to have a suspension period.

[0076] In actual application, if the current season ends, when the game process meets a preset condition, the second ranking list of the previous season of the current season pre-stored in the preset database is deleted. The above-mentioned preset condition can be set according to the player's demand. Specifically, the ranking list of the previous season of the current season is mainly used as a ranking list snapshot to provide services, and in some game implementations, when the rewards in the previous season of the current season are all awarded to the players, the data of the previous season of the current season does not need to be stored any more and can be deleted. Some game ranking lists award rewards in a passive settlement mode, such as checking when the player logs in. Generally, such passive settlement needs to reserve at least one season, such as the current season, and the ranking list of the previous season of the current season needs to be reserved to enable the player to log in and still be able to receive the rewards of the previous season of the current season. When the season is switched to the next season of the current season, the ranking list of the previous season of the current season can be deleted.

[0077] The above-mentioned game ranking list updating method realizes the ranking list snapshot through the ranking list double writing and the rolling updating, can generate the snapshot of the corresponding ranking list when the season ends, and can continue to write the new season ranking list, so that the new season ranking list directly inherits from the old ranking list, there is no suspension period, and there is no need to block the copy of the original old season ranking list.

[0078] Corresponding to the above-mentioned method embodiment, the embodiment of the application provides a game ranking list updating device, as shown in Figure 9 The device comprises:

[0079] The data acquisition module 90 is configured to acquire score change data in the current season, a first ranking list of the current season and a second ranking list of the previous season of the current season, wherein the score change data comprises target game accounts whose scores change in the current season and the current scores of the target game accounts, and the first ranking list and the second ranking list store the same data.

[0080] The ranking list updating module 91 is configured to update the first ranking list and a third ranking list of the next season of the current season based on the score change data and the second ranking list, to obtain an updated first ranking list and an updated third ranking list.

[0081] The data storage module 92 is configured to store the updated first ranking list and the updated third ranking list when the current season ends, to take the updated first ranking list as the second ranking list of the previous season of the next current season and take the updated third ranking list as the first ranking list of the next current season, wherein the updated first ranking list and the updated third ranking list store the same data.

[0082] The above-mentioned game ranking list updating device firstly acquires score change data in the current season, a first ranking list of the current season and a second ranking list of the previous season of the current season, wherein the first ranking list and the second ranking list store the same data; then updates the first ranking list and a third ranking list of the next season of the current season based on the score change data and the second ranking list, to obtain an updated first ranking list and an updated third ranking list; and if the current season ends, stores the updated first ranking list and the updated third ranking list, to take the updated first ranking list as the second ranking list of the previous season of the next current season and take the updated third ranking list as the first ranking list of the next current season, wherein the updated first ranking list and the updated third ranking list store the same data. In this way, the ranking list of the next season is written at the same time when the ranking list is updated, so that there is a snapshot of the old season when the season is switched, and the time of the whole season is released to keep the ranking list of the next season the same as that of the current season, so that the ranking list of the new season directly inherits from the old ranking list, there is no off-season period, and the original old season ranking list does not need to be blocked and copied.

[0083] Further, the above-mentioned device further comprises a reward issuing module configured to, after the updated first ranking list and the updated third ranking list are stored when the current season ends, issue a reward to a game account according to the score of the game account in the updated first ranking list.

[0084] Specifically, the ranking list updating module 91 is configured to update the first ranking list and the third ranking list according to the score change data to obtain an updated first ranking list and an updated third ranking list; and perform data supplement on the updated third ranking list based on the second ranking list to obtain an updated third ranking list.

[0085] In a specific implementation, before updating the first ranking list and the third ranking list according to the score change data, the third ranking list is empty; and the ranking list updating module 91 is further configured to adjust the score of the target game account in the first ranking list according to the score change data to obtain an updated first ranking list; and write the target game account and the current score of the target game account in the score change data into the third ranking list to obtain an updated third ranking list.

[0086] Further, the ranking list updating module 91 is further configured to copy target data in the second ranking list that is not contained in the updated third ranking list into the updated third ranking list to obtain an updated third ranking list.

[0087] In actual application, the ranking list updating module 91 is further configured to determine whether the first data in the second ranking list is in the updated third ranking list; if yes, determine the next data of the first data in the second ranking list as a new first data, and continue to perform the step of determining whether the first data in the second ranking list is in the updated third ranking list until the last data in the second ranking list is determined; and if not, copy the first data into the updated third ranking list, and determine the next data of the first data in the second ranking list as a new first data, and continue to perform the step of determining whether the first data in the second ranking list is in the updated third ranking list until the last data in the second ranking list is determined.

[0088] Further, the data saving module 92 is configured to save the updated first ranking list and the updated third ranking list into a preset database if the current season ends.

[0089] In a specific implementation, the device further includes a data deleting module configured to delete the second ranking list of the previous season of the current season that is previously saved from the preset database when the game process meets a preset condition if the current season ends.

[0090] The device for updating a ranking list in a game provided in the embodiments of the present application has the same implementation principle and technical effects as the method embodiments, and for brevity, the part of the device embodiments not mentioned can be referred to the corresponding content in the method embodiments.

[0091] The embodiments of the present application further provide an electronic device, such as Figure 10As shown, the electronic device includes a processor and a memory having stored therein machine executable instructions executable by the processor to implement the above method for updating a game ranking list.

[0092] In particular, the above method for updating a game ranking list includes: obtaining score change data in a current season, a first ranking list of the current season and a second ranking list of a previous season of the current season, which are pre-stored; wherein the score change data includes target game accounts whose scores change in the current season and the current scores of the target game accounts; the first ranking list and the second ranking list store the same data; based on the score change data and the second ranking list, updating the first ranking list and a third ranking list of a next season of the current season to obtain an updated first ranking list and an updated third ranking list; if the current season ends, saving the updated first ranking list and the updated third ranking list, so as to take the updated first ranking list as the second ranking list of a previous season of a next current season and take the updated third ranking list as the first ranking list of the next current season; wherein the updated first ranking list and the updated third ranking list store the same data.

[0093] The above method for updating a game ranking list writes the current season and the next season at the same time when updating the ranking list, so that there is a snapshot of the old season when the season switches, thereby freeing the whole season to keep the ranking list of the next season the same as that of the current season, so that the ranking list of the new season directly inherits from the old ranking list, without a break period and without blocking copying the original old season ranking list.

[0094] In an optional embodiment, after the step of saving the updated first ranking list and the updated third ranking list if the current season ends, the above method further includes: according to the scores of the game accounts in the updated first ranking list, issuing rewards to the game accounts.

[0095] In an optional embodiment, the step of updating the first ranking list and the third ranking list of the next season of the current season based on the score change data and the second ranking list to obtain the updated first ranking list and the updated third ranking list includes: updating the first ranking list and the third ranking list according to the score change data to obtain the updated first ranking list and the updated third ranking list; based on the second ranking list, supplementing data to the updated third ranking list to obtain the updated third ranking list.

[0096] In an optional embodiment, before the first ranking list and the third ranking list are updated according to the score change data, the third ranking list is empty; the step of updating the first ranking list and the third ranking list according to the score change data to obtain the updated first ranking list and the updated third ranking list comprises: adjusting the score corresponding to the target game account in the first ranking list according to the score change data to obtain the updated first ranking list; and writing the target game account and the current score of the target game account in the score change data into the third ranking list to obtain the updated third ranking list.

[0097] In an optional embodiment, the step of supplementing the updated third ranking list with data based on the second ranking list to obtain the updated third ranking list comprises: copying target data in the second ranking list that is not contained in the updated third ranking list into the updated third ranking list to obtain the updated third ranking list.

[0098] In an optional embodiment, the step of copying target data in the second ranking list that is not contained in the updated third ranking list into the updated third ranking list to obtain the updated third ranking list comprises: determining whether the first data in the second ranking list is in the updated third ranking list; if yes, determining the next data of the first data in the second ranking list as new first data, and continuing to determine whether the first data in the second ranking list is in the updated third ranking list until the last data in the second ranking list is determined; and if no, copying the first data into the updated third ranking list, and determining the next data of the first data in the second ranking list as new first data, and continuing to determine whether the first data in the second ranking list is in the updated third ranking list until the last data in the second ranking list is determined.

[0099] In an optional embodiment, if the current season ends, the step of saving the updated first ranking list and the updated third ranking list comprises: if the current season ends, saving the updated first ranking list and the updated third ranking list into a preset database.

[0100] In an optional embodiment, the method further comprises: if the current season ends, deleting the second ranking list of the previous season of the current season that is previously saved from the preset database when the game process meets a preset condition.

[0101] Further, Figure 10 The electronic device shown further comprises a bus 102 and a communication interface 103, the processor 101, the communication interface 103 and the memory 100 are connected through the bus 102.

[0102] The memory 100 can include a high-speed random access memory (RAM), and can also include a non-volatile memory, such as at least one disk memory. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 103 (which can be wired or wireless), and the Internet, a wide area network, a local network, a metropolitan area network, etc. can be used. The bus 102 can be an ISA bus, a PCI bus, or an EISA bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 10 Only one bidirectional arrow is used to represent the system network element and at least one other network element, but it does not mean that there is only one bus or one type of bus.

[0103] The processor 101 can be an integrated circuit chip with signal processing capability. In the implementation process, each step of the above method can be completed by the integrated logic circuit of the hardware in the processor 101 or the instructions in the form of software. The processor 101 described 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 devices, discrete gates or transistor logic devices, discrete hardware components. Each method, step and logic block disclosed in the embodiment of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor. The steps of the method disclosed in combination with the embodiment of the present application can be directly embodied as a hardware code processor for execution, or a combination of hardware and software modules in the code processor for execution. The software module can be located in a random access memory, a flash memory, a read-only memory, a programmable read-only memory, an electrically erasable programmable memory, a register, etc. The storage medium in the art. The storage medium is located in the memory 100, and the processor 101 reads the information in the memory 100, and combines the hardware to complete the steps of the method of the above embodiment.

[0104] The embodiment of the present application also provides a computer readable storage medium, which stores computer executable instructions, and the computer executable instructions, when called and executed by a processor, cause the processor to implement the game ranking list updating method.

[0105] Specifically, the game ranking list updating method comprises the following steps: obtaining score change data in a current season, a first ranking list of the current season and a second ranking list of a previous season of the current season, wherein the score change data comprises target game accounts whose scores change in the current season and current scores of the target game accounts; the first ranking list and the second ranking list store the same data; updating the first ranking list and a third ranking list of a next season of the current season based on the score change data and the second ranking list to obtain an updated first ranking list and an updated third ranking list; if the current season ends, saving the updated first ranking list and the updated third ranking list, taking the updated first ranking list as the second ranking list of a previous season of a next current season and taking the updated third ranking list as the first ranking list of the next current season; and the updated first ranking list and the updated third ranking list store the same data.

[0106] The game ranking list updating method writes the current season and the next season at the same time when updating the ranking list, so that there is a snapshot of the old season when the season switches, thereby freeing the whole season to keep the ranking list of the next season the same as that of the current season, so that the ranking list of the new season directly inherits from the old ranking list, there is no off-season, and there is no need to block the copy of the original old season ranking list.

[0107] In an optional embodiment, if the current season ends, the method further comprises the following step after the step of saving the updated first ranking list and the updated third ranking list: according to the scores of the game accounts in the updated first ranking list, sending rewards to the game accounts.

[0108] In an optional embodiment, the step of updating the first ranking list and the third ranking list of the next season of the current season based on the score change data and the second ranking list to obtain the updated first ranking list and the updated third ranking list comprises the following steps: updating the first ranking list and the third ranking list according to the score change data to obtain the updated first ranking list and the updated third ranking list; and based on the second ranking list, supplementing data to the updated third ranking list to obtain the updated third ranking list.

[0109] In an optional embodiment, before the first ranking list and the third ranking list are updated according to the score change data, the third ranking list is empty; and the step of updating the first ranking list and the third ranking list according to the score change data to obtain the updated first ranking list and the updated third ranking list comprises: adjusting the score corresponding to the target game account in the first ranking list according to the score change data to obtain the updated first ranking list; and writing the target game account and the current score of the target game account in the score change data into the third ranking list to obtain the updated third ranking list.

[0110] In an optional embodiment, the step of supplementing the updated third ranking list with data based on the second ranking list to obtain the updated third ranking list comprises: copying target data in the second ranking list that is not contained in the updated third ranking list into the updated third ranking list to obtain the updated third ranking list.

[0111] In an optional embodiment, the step of copying target data in the second ranking list that is not contained in the updated third ranking list into the updated third ranking list to obtain the updated third ranking list comprises: determining whether the first data in the second ranking list is in the updated third ranking list; if yes, determining the next data of the first data in the second ranking list as new first data, and continuing to perform the step of determining whether the first data in the second ranking list is in the updated third ranking list until the last data in the second ranking list is determined; and if no, copying the first data into the updated third ranking list, and determining the next data of the first data in the second ranking list as new first data, and continuing to perform the step of determining whether the first data in the second ranking list is in the updated third ranking list until the last data in the second ranking list is determined.

[0112] In an optional embodiment, if the current season ends, the step of saving the updated first ranking list and the updated third ranking list comprises: if the current season ends, saving the updated first ranking list and the updated third ranking list into a preset database.

[0113] In an optional embodiment, the method further comprises: if the current season ends, deleting the second ranking list of the previous season of the current season that is previously saved from the preset database when a game process meets a preset condition.

[0114] If the functions are realized in the form of software function units and sold or used as independent products, they can be stored in a computer readable storage medium. Based on this understanding, the technical solutions of the present application or the parts of the present application that essentially contribute to the prior art or the parts 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 a plurality of instructions for causing a computer device (which can be a personal computer, a terminal device, or a network device, etc.) to execute all or part of the steps of the method described in the various embodiments of the present application. The aforementioned storage medium includes a U disk, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk, and various media that can store program codes.

[0115] In the description of the present application, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", and the like indicate the orientation or positional relationship shown in the drawings, and are only for the purpose of facilitating the description of the present application and simplifying the description, and do not indicate or imply that the devices or elements referred to must have a particular orientation, be constructed and operated in a particular orientation, and therefore cannot be understood as limiting the present application. In addition, the terms "first", "second", "third" are only for the purpose of description, and cannot be understood as indicating or implying relative importance.

[0116] Finally, it should be noted that: the above-described embodiments are only specific embodiments of the present application, which are used to illustrate the technical solutions of the present application, and are not limited thereto. Although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that any person skilled in the art can make modifications or easily think of changes to the technical solutions described in the foregoing embodiments within the technical scope disclosed by the present application, or make equivalent replacements to some of the technical features; and these modifications, changes or replacements do not cause the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be covered within the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

Claims

1. A method for updating a leaderboard in a game, characterized in that, The method includes: The system retrieves score change data for the current season, a pre-saved first leaderboard for the current season, and a second leaderboard from the previous season. The score change data includes the target game account whose score has changed in the current season, and the current score of the target game account. The first and second leaderboards store the same data. Based on the score change data and the second leaderboard, update the first leaderboard and the third leaderboard for the next season of the current season to obtain the updated first leaderboard and the updated third leaderboard. If the current season ends, save the updated first leaderboard and the updated third leaderboard, so that the updated first leaderboard is used as the second leaderboard of the previous season for the next current season, and the updated third leaderboard is used as the first leaderboard of the next current season; wherein, the updated first leaderboard and the updated third leaderboard save the same data; The step of updating the first ranking list and the third ranking list for the next season based on the score change data and the second ranking list to obtain the updated first ranking list and the updated third ranking list includes: updating the first ranking list and the third ranking list according to the score change data to obtain the updated first ranking list and the updated third ranking list; and supplementing the updated third ranking list with data based on the second ranking list to obtain the updated third ranking list. Before updating the first and third leaderboards based on the score change data, the third leaderboard is empty; the step of updating the first and third leaderboards based on the score change data to obtain the updated first and third leaderboards includes: adjusting the score corresponding to the target game account in the first leaderboard based on the score change data to obtain the updated first leaderboard; and writing the target game account and the current score of the target game account in the score change data into the third leaderboard to obtain the updated third leaderboard. The step of supplementing the updated third ranking list with data based on the second ranking list to obtain the updated third ranking list includes: copying target data not included in the updated third ranking list from the second ranking list to the updated third ranking list to obtain the updated third ranking list.

2. The method according to claim 1, characterized in that, After the step of saving the updated first leaderboard and the updated third leaderboard if the current season ends, the method further includes: Rewards are distributed to game accounts based on their scores in the updated first leaderboard.

3. The method according to claim 1, characterized in that, The step of copying the target data not included in the updated third ranking from the second ranking to the updated third ranking to obtain the updated third ranking includes: Determine whether the first data point in the second leaderboard is in the updated third leaderboard; If so, the next data in the second leaderboard is determined as the new first data, and the step of determining whether the first data in the second leaderboard is in the updated third leaderboard is continued until the last data in the second leaderboard is determined. If not, copy the first data to the updated third leaderboard, and determine the next data of the first data in the second leaderboard as the new first data. Continue to execute the step of determining whether the first data in the second leaderboard is in the updated third leaderboard until the last data in the second leaderboard is determined.

4. The method according to claim 1, characterized in that, The step of saving the updated first leaderboard and the updated third leaderboard if the current season ends includes: If the current season ends, the updated first leaderboard and the updated third leaderboard will be saved to the preset database.

5. The method according to claim 1, characterized in that, The method further includes: If the current season ends, and the game progress meets preset conditions, the second leaderboard of the previous season, which was saved in advance, will be deleted from the preset database.

6. A device for updating a leaderboard in a game, characterized in that, The device includes: The data acquisition module is used to acquire score change data in the current season, a pre-saved first leaderboard for the current season, and a second leaderboard from the previous season; wherein, the score change data includes: the target game account whose score has changed in the current season, and the current score of the target game account; the data stored in the first leaderboard and the second leaderboard is the same; The leaderboard update module is used to update the first leaderboard and the third leaderboard for the next season of the current season based on the score change data and the second leaderboard, so as to obtain the updated first leaderboard and the updated third leaderboard. The data storage module is used to save the updated first leaderboard and the updated third leaderboard at the end of the current season, so that the updated first leaderboard is used as the second leaderboard of the previous season for the next current season, and the updated third leaderboard is used as the first leaderboard of the next current season; wherein the updated first leaderboard and the updated third leaderboard store the same data. The ranking update module is used to: update the first ranking and the third ranking based on the score change data to obtain the updated first ranking and the updated third ranking; and supplement the updated third ranking with data based on the second ranking to obtain the updated third ranking. Before updating the first and third leaderboards based on the score change data, the third leaderboard is empty; the leaderboard update module is further configured to: adjust the score corresponding to the target game account in the first leaderboard based on the score change data to obtain the updated first leaderboard; and write the target game account and the current score of the target game account in the score change data into the third leaderboard to obtain the updated third leaderboard. The ranking update module is further configured to: copy target data not included in the updated third ranking in the second ranking to the updated third ranking to obtain the updated third ranking.

7. An electronic device, characterized in that, The system includes a processor and a memory, the memory storing machine-executable instructions that can be executed by the processor, the processor executing the machine-executable instructions to implement the game leaderboard update method according to any one of claims 1 to 5.

8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when invoked and executed by a processor, cause the processor to implement the game leaderboard update method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Player ranking method, player ranking device, storage medium and electronic equipment

    CN110833696A

  • Game ranking list generation method and device, electronic equipment and storage medium

    CN112190953A