Game event management method and apparatus, computer program product, and electronic device
By automatically calculating league results during the game's league process, the problems of inefficiency and inaccuracy in existing technologies have been solved, enabling timely and accurate publication of league results and saving development and maintenance costs.
Patent Information
- Application Number
- CN202510249531.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-04
- Publication Date
- 2025-11-28
- Estimated Expiration
- 2045-03-04
AI Technical Summary
Current technologies for statistical analysis of game league results are inefficient and inaccurate, and are prone to data errors due to human factors, increasing organizational costs and time.
By identifying the technical problems related to the current league stage of the target game league after the target game league process is started, and determining the end time of the current league stage by using the target league configuration information, the wake-up time of the league result statistics logic of the target game league process is determined based on the end time. After the wake-up time arrives, the league result statistics logic is executed according to the league battle data of the target game league updated by the game logic process to obtain the league results of the current league stage of the target game league.
It enables automatic statistics of game league results, improves management efficiency and the timeliness of result announcement, avoids accuracy problems caused by manual data entry, and saves development and maintenance costs.
Smart Images

Figure CN119838228B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present disclosure relates to the technical field of computer, and in particular, to a game event management method, a game event management apparatus, a computer program product and an electronic device. BACKGROUND
[0002] Game league refers to a competitive sports activity in the field of electronic sports, in which a team composed of multiple game players participates.
[0003] In the related art, the game data such as the game result and the score of the participating team is recorded and counted manually. This way is not only inefficient, but also inevitably leads to inconsistency between the manually recorded data and the actual result due to human factors, thereby affecting the accuracy of the counted game result.
[0004] It should be noted that the information disclosed in the above background section is only used to strengthen the understanding of the background of the present disclosure, and therefore can include information that does not constitute prior art known to those of ordinary skill in the art. SUMMARY
[0005] The purpose of the present disclosure is to provide a game event management method and apparatus, a computer program product and an electronic device, thereby at least to some extent improving the efficiency and accuracy of game event result statistics.
[0006] Other characteristics and advantages of the present disclosure will become apparent from the following detailed description, or will be learned by practice of the present disclosure.
[0007] According to a first aspect of the present disclosure, a game event management method is provided, comprising: determining a current league stage in which a target game league corresponding to a target game league process is currently located after the target game league process is started; determining an end time of the current league stage based on league configuration information, and determining a wake-up time of league result statistics logic of the target game league process according to the end time; after the wake-up time is reached, executing the league result statistics logic according to the league battle data of the target game league updated by the game logic process, to obtain the league result of the current league stage of the target game league.
[0008] According to a second aspect of the present disclosure, a game event management apparatus is provided, comprising: a current league stage determination module configured to determine a current league stage in which a target game league process corresponds to after the target game league process is started; a wake-up time determination module configured to determine an end time of the current league stage based on league configuration information, and determine a wake-up time of a league result statistics logic of the target game league process according to the end time; and a league result statistics module configured to execute the league result statistics logic according to league battle data of the target game league updated by a game logic process to obtain a league result of the current league stage of the target game league after the wake-up time is reached.
[0009] According to a third aspect of the present disclosure, a computer program product containing instructions which, when executed on a computer, cause the computer to perform the steps of the game event management method according to the first aspect is provided.
[0010] According to a fourth aspect of the present disclosure, a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the game event management method according to the first aspect of the above-mentioned embodiments is provided.
[0011] According to a fifth aspect of the present disclosure, an electronic device is provided, comprising: a processor; and a storage device for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement the game event management method according to the first aspect of the above-mentioned embodiments.
[0012] According to the above technical solutions, the game event management method, the game event management apparatus, and the computer program product and the electronic device implementing the game event management method according to the exemplary embodiments of the present disclosure have at least the following advantages and positive effects:
[0013] In the technical solution provided in some embodiments of the present disclosure, after a target game league process is started, a current league stage in which a game league corresponding to the target game league process is currently located can be determined, then an end time of the current league stage is determined based on league configuration information, a wake-up time of league result statistical logic of the target game league process is determined according to the end time, and after the wake-up time arrives, the league result statistical logic is executed according to league battle data of the game league updated by a game logic process, so as to obtain a league result of the current league stage of the target game league. Compared with the related art, the present disclosure can realize automatic statistics of the league result of each stage of the game league through control of the target game league process, improve the management efficiency of the game event, and ensure the timeliness of the publication of the game league result. In addition, the present disclosure avoids the problem of low accuracy of the publication of the game league result caused by data entry errors, and improves the accuracy of the publication of the game league result. Further, the method of the present disclosure has reusability, and can greatly save development time and maintenance cost in the later stage.
[0014] It should be understood that the foregoing general description and the following detailed description are only exemplary and explanatory, and are not limiting to the present disclosure. BRIEF DESCRIPTION OF DRAWINGS
[0015] The accompanying drawings, which are incorporated into and form part of the specification, illustrate an embodiment consistent with the present disclosure and, together with the specification, serve to explain the principles of the present disclosure. Obviously, the drawings in the following description are only some embodiments of the present disclosure, and other drawings can be obtained by those skilled in the art without creative labor on the basis of these drawings.
[0016] Figure 1 A flowchart of a game event management method in an exemplary embodiment of the present disclosure is shown;
[0017] Figure 2 A flowchart of a method for determining a target game league process in an exemplary embodiment of the present disclosure is shown;
[0018] Figure 3 A flowchart of a method for updating battle data of a game league by a game logic process in an exemplary embodiment of the present disclosure is shown;
[0019] Figure 4 A flowchart of a method for determining a battle relationship in an exemplary embodiment of the present disclosure is shown;
[0020] Figure 5 A schematic diagram of a process for a client to view a league result in an exemplary embodiment of the present disclosure is shown;
[0021] Figure 6A constituent diagram of a game event management system in an embodiment of the present disclosure is shown.
[0022] Figure 7 A constituent diagram of a game event management apparatus in an exemplary embodiment of the present disclosure is shown.
[0023] Figure 8 A structural diagram of an electronic device in an exemplary embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0024] Example implementations will now be described more fully with reference to the accompanying drawings. Example implementations can be implemented in any
[0025] In this specification, the use of the phrases "one", "a", "the", and "said” is used to mean that there are one or more of the features / components / etc.; the use of the phrases “include” and “have” is used to mean an open-ended inclusion, and that there can be additional features / components / etc. beyond those listed; the use of the phrases “first” and “second” etc. is merely as labels and does not limit the quantities of their objects.
[0026] In addition, the accompanying drawings are merely schematic and are not necessarily drawn to scale. Like reference numerals in the drawings denote like or similar parts, and thus their repeated description will be omitted. Some of the block diagrams shown in the drawings are functional entities, and do not necessarily have to correspond to physically or logically independent entities. These functional entities can be implemented in software, or in one or more hardware modules or integrated circuits, or in different network and / or processor devices and / or microcontroller devices.
[0027] In the related art, the management of a game league is to announce the game results of the game league to users after the game results of the game league are obtained, by manually entering the game results, game points, and other game data.
[0028] However, this way is not only inefficient, resulting in that the participants and the audience cannot obtain the latest competition result data in time. Moreover, in the face of a large amount of statistical data, it is inevitable that errors will occur, thereby resulting in that the accuracy of the game league result is low. In other words, the existing game league process needs a large amount of human resources, increases the organization cost, and each league and different stages of the league need to re-enter the battle information, player win-lose information and the like by manual, the accuracy and efficiency of the league management are relatively low.
[0029] To solve the above problems, the present disclosure provides a game event management method. Exemplarily, Figure 1 A flowchart of a game event management method in an exemplary embodiment of the present disclosure is shown. Referring to Figure 1 The method comprises:
[0030] Step S110, after the target game league process is started, determining a current league stage in which a target game league corresponding to the target game league process is currently located;
[0031] Step S120, determining an end time of the current league stage based on league configuration information, and determining a wake-up time of league result statistical logic of the target game league process according to the end time;
[0032] Step S130, after the wake-up time is reached, executing the league result statistical logic according to the league battle data of the target game league updated by the game logic process, to obtain the league result of the current league stage of the target game league.
[0033] In Figure 1 In the technical scheme provided by the embodiment shown, after the target game league process is started, the current league stage in which the game league corresponding to the target game league process is currently located can be determined, then the end time of the current league stage is determined based on the league configuration information, the wake-up time of the league result statistical logic of the target game league process is determined according to the end time, after the wake-up time is reached, the league result statistical logic is executed according to the league battle data of the game league received by the game logic process, to obtain the league result of the current league stage of the game league. Compared with the related art, the present disclosure can realize the automatic statistics of the league result of each stage of the game league through the control of the target game league process, improve the management efficiency of the game event, and ensure the timeliness of the publication of the game league result. Moreover, the present disclosure avoids the problem that the accuracy of the publication of the league result is low due to the errors caused by manual data entry, and improves the accuracy of the publication of the league result. Furthermore, the method of the present disclosure has reusability, and can greatly save the development time and the maintenance cost in the later period.
[0034] In an exemplary embodiment, the game event management method in the present disclosure can be executed through a target game league process. The target game league process is mainly used to execute the statistical logic of the game league result, realize the automatic statistics of the game league result, and generate the league result of each league stage of the game league. The specific game battle logic in the present disclosure is processed by a game logic process.
[0035] In an exemplary embodiment, the game league process and the game logic process can belong to different processes of the same server, or can correspond to different servers, for example, the game league process corresponds to a game league server, and the game logic process corresponds to a game logic server. The present exemplary embodiment does not make special limitation on this.
[0036] Next, the specific embodiment of "step S110, after the target game league process is started, determining the current league stage in which the target game league corresponding to the target game league process is currently located" will be described in detail.
[0037] In an exemplary embodiment, the game league can be understood as a large-scale competition organized by a game operator or a game community, usually involving multiple participating teams or individuals. The game league usually has fixed schedule and rules, including regular season, playoffs and championship stages, and can also include preliminary competition, 32 strong to 16 strong, 16 strong to 8 strong, 8 strong to 4 strong, 4 strong to 2 strong, championship competition, etc. The specific game league stages included in the game league can be customized according to the needs, and the game league stage is used to indicate the progress of the game league.
[0038] In an exemplary embodiment, the game event management method in the present disclosure can be applied to a distributed game system. For example, the same game league logic can be deployed in multiple nodes of a distributed game system, for example, there are 100 servers in a distributed game system, and a game league logic is deployed in each of the 100 servers. The server where the game league logic is deployed is a game league process, and each game league process is configured with a unique league process identifier.
[0039] In an exemplary embodiment, for each game league process, locking is performed at all places where league data can be changed. The specific embodiment of locking can refer to the prior art, and the purpose is to ensure the smooth execution of the game league logic and the integrity of the league data.
[0040] For example, the interface for starting the league, the interface for initiating the cancelation of the match by the opponent player, the interface for the elimination stage, the interface for the rejection of the match by the initiating player, the interface for updating the battlefield information to the database after the match, the interface for updating the result of the match after the match, the interface for checking whether the current league stage can be initiated (for example, whether the 16-elimination stage is started), the interface for triggering the end time (for example, the first stage of the 16-elimination stage is started at 8:00 on January 7, at which time the players can start the match, and the first stage is ended at 8:00 on February 7, at which time the result of the first stage is announced, if the initiating player A initiates the match in the 16-elimination stage, but the responding player B gives up, the initiating player A is considered to win, if both players give up, one team will be eliminated in the 16-elimination stage, at which time one team will be eliminated in the 8-elimination stage), the interface for clearing the match data after the player cancels the match, and the like are locked.
[0041] In an exemplary embodiment, the game league process can be addressed by the league identifier, each league identifier corresponds to a game league process, which is used to process the game battle result of the game league indicated by the league identifier, so as to generate the league result of the game league.
[0042] For example, in order to protect the game hardware device and the service stability, the game logic process needs to be closed regularly for maintenance, and the game league process is also closed when the game logic process is closed. When the game logic process is started, the corresponding game league process is also started, so as to continue to count the result of the game league which is being started by the target game league process.
[0043] For example, Figure 2 A flowchart for determining a target game league process in an exemplary embodiment of the present disclosure is shown. Referring to FIG. 2, Figure 2 The method can include steps S210 to S220. Wherein:
[0044] In step S210, in response to the start of the game logic process, each game league process matches the league process identifier corresponding to the game league process and the target league process identifier.
[0045] In an example embodiment, each game league process can include a league logic driver and a league result statistics logic, in other words, the game league logic in the present disclosure can include a league logic driver and a league result statistics logic. The league logic driver in each game league process is used to drive the game league process to execute the league result statistics logic according to the end time of each stage of the game league, so as to statistically analyze the battle data of the game league and obtain the league result of each stage of the game league. The league logic driver can be understood as a timer which will be timed according to the end time of the current league stage. After the timing is successful, the league result statistics logic in the game league process will be notified to enter a dormant state. When the end time of the current league stage is reached, the league logic driver will wake up and drive the game league process to execute the league result statistics logic.
[0046] For example, when the game logic server is open to the outside world, the league logic driver of each game league process will be started. For example, when the game logic server is started, an instruction will be sent to each game league process, which indicates each game league process to match its own league process identifier with a target league process identifier.
[0047] In an example embodiment, the target league process identifier is determined according to the league identifier corresponding to the game league that is currently being started. The target game league can be understood as the game league that is currently being started.
[0048] For example, the game league planner can configure the league identifier of the game league to be started, the league stages included in the league identifier, the start time and end time of each league stage, and other league configuration information in the league configuration table. The related information of multiple game leagues to be started can be configured in the league configuration table at one time. The configuration information of different game leagues is distinguished by the league identifier, and each league identifier is associated with the configuration information of the game league indicated by the league identifier. The overall start time of each game league can be obtained according to the minimum value of the start time of each league stage of the game league, and the overall end time of the game league can be obtained according to the maximum value of the end time of each league stage of the game league. The league whose overall start time is less than or equal to the current time and whose overall end time is greater than or equal to the current time is the game league that is currently being started. Therefore, the league identifier corresponding to the game league whose overall start time is less than or equal to the current time and whose overall end time is greater than or equal to the current time in the game league configured by the planner can be determined as the target league identifier. Then, the target league process identifier is determined according to the target league identifier.
[0049] The current time can be the time when the game logic process is started. For example, the time when the game logic process is started is time 1, and time 1 is the current time. The game logic process can compare time 1 with the overall start time and the overall end time of each game league in the league configuration table, and obtain the league identifier corresponding to the game league that is currently starting according to the comparison result, that is, the target game league identifier. Then, according to the first mapping relationship between the preset league identifier and the league process identifier, the target game league identifier corresponding to the target game league identifier is obtained.
[0050] In another exemplary embodiment, the first data record table can be used to record the league identifier corresponding to the league that is currently starting and the league stage that is currently being played in the league. For example, the game league planner configures three game leagues with league identifiers 10000, 20000 and 30000. The first data record table can record the league identifier corresponding to the league that is currently starting and the league stage that is currently being played in the league.
[0051] No matter whether the league or the league stage changes, the corresponding league identifier corresponding to the league that is currently being played or the league stage that is currently being played in the first data record table will be automatically updated. For example, field 1 in the first data record table represents the league identifier corresponding to the league that is currently starting, and field 2 represents the current league stage of the league that is currently starting. When the overall end time of the league that is currently starting is reached, the update logic of the corresponding league identifier of the league that is currently being played is automatically triggered, and the corresponding league identifier of the league that is currently being played is determined again through the above method (the current time at this time can be the trigger time of the update logic of the corresponding league identifier of the league that is currently being played), so that the value of field 1 is updated. Similarly, when the end time of the current league stage of the game league that is currently starting is reached, the update logic of the current league stage is automatically triggered, and the next league stage is found in the league configuration information, so that the stage identifier of the next league stage is determined as the value of field 2, and the value of field 2 is updated. In this way, the game logic process can directly determine the target league identifier through the value of field 1 each time the target league identifier needs to be determined, so as to obtain the target league process identifier according to the first mapping relationship.
[0052] As mentioned above, in the present disclosure, data of a league type can be set, and the value of the data of the league type is a league identifier, which is used as an addressing basis of a game league process. For example, the first mapping relationship mentioned above is that a result of taking a modulus of the league identifier with a preset value is a target game league process identifier corresponding to the league identifier. The target game league process indicated by the target game league process identifier is used to count battle results of a target game league indicated by the league identifier, so as to obtain a league result of the target game league indicated by the league identifier. Of course, the first mapping relationship can also be other mapping relationships, and the present exemplary embodiment does not specially limit this.
[0053] For example, for a league with a league identifier of 10000, taking a modulus of the league identifier with 100 (the preset value mentioned above), the target game league process identifier corresponding to the league identifier is 0. Then, the battle results of the game league with the league identifier of 10000 are counted by the target game league process with the league process identifier of 0, so as to obtain the league result of the game league with the league identifier of 10000. For the same game, only one league is usually in progress in a time period. Then, during the opening period of the game logic server of the game, all the clients and the game logic server access the league node, and are connected to the target game league process with the league process identifier of 0. In this way, no matter which game logic process the game player is in, if he wants to access the league result through the page of the game client, it is the same result, and no delay and error will occur.
[0054] Continuing to take the league identifier of the game league currently being opened as 10000 and the first mapping relationship as an example, the result of taking a modulus of the league identifier with 100 is the target game league process identifier corresponding to the league identifier, that is, the result of taking a modulus of 10000 with 100 is 0, that is, the target game league process identifier is 0. After the game logic process determines the target game league process identifier, the game logic process can send the target game league process identifier 0 to the nodes where the game league processes are located, so as to instruct the game league processes to match their own league process identifiers with the target game league process identifier. If the league process identifiers are the same, the matching is successful. If the league process identifiers are different, the matching fails.
[0055] In step S220, the target game league process is determined according to the game league process indicated by the league process identifier that matches successfully.
[0056] For example, if a certain league process identifier matches successfully with the target game league process identifier, it is indicated that the game league process indicated by the league process identifier is the game league process corresponding to the game league currently being opened, that is, the target game league process.
[0057] In the present disclosure, the league driver is pulled up in each game league process at each game logic process startup, but the league driver and the league result statistics logic are actually executed only in the target game league process corresponding to the currently opened game league.
[0058] In other words, all game league processes are started at each game logic server opening, but only the target game league process corresponding to the currently opened game league actually executes the game league logic, and other servers deploying the game league logic do not execute the game league logic. In this way, through the addressing process, when the method in the present disclosure is applied to a distributed game system, the server resources can be saved, and only the league result statistics logic of the game league process is executed in the target game league process node indicated by the league identifier of the currently opened game league, and other nodes deploy the game league logic but do not execute the specific game league logic, saving CPU and memory, and ensuring the uniqueness of the game league related logic through addressing.
[0059] For example, after the target game league process is started, the target game league process can obtain the league identifier corresponding to the currently opened game league according to the currently opened league configuration, and then obtain the current league stage through the league identifier corresponding to the currently opened game league.
[0060] For example, the target game league process can determine the league identifier corresponding to the currently opened game league according to the league configuration information, and the database or the cache of the target game league process can store the current league stage corresponding to each league identifier, which is automatically updated as the current league stage changes. For example, field 2 in the first data record table described above is used to record the current league stage. Therefore, the target game league process can directly find the value of field 2 corresponding to the league identifier in the first data record table according to the league identifier, thereby obtaining the current league stage of the currently opened game league.
[0061] Next, the specific implementation of "step S120, determining the end time of the current league stage based on the league configuration information, and determining the wake-up time of the league result statistics logic of the target game league process according to the end time" is described in detail.
[0062] In an exemplary embodiment, the league configuration information includes one or more of the league identifier of the game league, the league stage included in the game league, and the start time and end time of each league stage. The league stage is used to indicate the progress of the game league.
[0063] In an exemplary embodiment, the league configuration information can be stored in a database, in a game logic server corresponding to the game logic process, or in a game league server corresponding to the game league process.
[0064] For example, after obtaining the current league stage of the game league that is currently being started, the end time of the current league stage of the game league that is currently being started can be found in the league configuration information. The end time is determined as the wake-up time of the league result statistics logic of the target game league process corresponding to the game league.
[0065] As mentioned above, the target game league process also includes the league logic driver and the league result statistics logic. After the wake-up time of the league result statistics logic is determined, the wake-up time can be monitored by the league logic driver. For example, the league logic driver can function like a timer, which drives the execution of the league result statistics logic after the timing time arrives. Therefore, after the wake-up time is determined, the timing time of the timing task of the league logic driver can be set as the wake-up time, and the league logic driver goes to sleep, and the league result statistics logic also goes to sleep, and the league logic driver is automatically woken up when the timing time arrives.
[0066] For example, the current league stage is the 16-strong competition, and the end time of the current league stage is tomorrow at 12 o'clock. The timing time of the league logic driver is set as tomorrow at 12 o'clock, and then the league logic driver goes to sleep, and the league logic driver is automatically woken up when the time of tomorrow at 12 o'clock arrives.
[0067] Next, the specific implementation of "step S130, after the wake-up time arrives, the league result statistics logic is executed according to the league battle data of the target game league updated by the game logic process, to obtain the league result of the current league stage of the target game league" will be described in detail.
[0068] For example, after the wake-up time arrives, the league logic driver is woken up, and the league logic driver after being woken up drives the league result statistics logic to be woken up, so as to drive the target game league process to execute the league result statistics logic according to the league battle data of the target game league updated by the game logic process, to obtain the league result of the current league stage of the target game league, such as the list of the current 16-strong competition.
[0069] Exemplarily, Figure 3 A flowchart showing a method for updating the battle data of a game league by a game logic process in an exemplary embodiment of the present disclosure is shown. Referring to Figure 3 The method can include steps S310 to S340.
[0070] In step S310, after any game battle ends, the type of the game battle is determined.
[0071] During a game league, the game server needs to provide game service not only to the participating parties of the game league, but also to the non-participating parties. The target game league process only needs to count the battle result data of the participating parties of the game league, and does not need to count the battle result of the ordinary battle.
[0072] In an exemplary embodiment, the entrance for the ordinary game players to conduct the ordinary game battle is different from the entrance for the league participating party players to conduct the league battle, so that the type of the game battle can be determined according to the entrance of the game through which the two parties of the game battle enter the game.
[0073] The type of the game battle includes the ordinary battle and the game league battle. In the case where the type of the game battle is the ordinary battle, the battle result is only sent to the database by the game logic process, so that the two parties of the battle can view the battle result conveniently.
[0074] In step S320, in the case where the type of the game battle is determined to be the game league battle, the league identifier of the game league battle is obtained.
[0075] For example, in the case where the type of the game battle is determined to be the game league battle, the game logic process needs to send the result of the game battle to the database and the target game league process at the same time. The two parties of the battle can view the result of the battle in time through the database, and the target game league process can count and analyze the result of each game league battle after the wake-up time arrives, to obtain the league result of the current league stage.
[0076] In an exemplary embodiment, the game logic process can determine the league identifier of the game league that is currently being started as the league identifier of the game league battle, that is, the league identifier in step S320 is the league identifier corresponding to the game league that is currently being started.
[0077] For example, the game logic process can obtain the league identifier of the game league battle in step S320 according to the manner of determining the league identifier of the game league that is currently being started mentioned in step S210.
[0078] For example, the A army and the B army conduct a battle in the game logic process, the battle conducted by the A army and the B army is battle 2, after the end of the battle 2, the game logic process determines that the battle 2 is the game league battle according to the game entrance of the A army and the B army, and then the game logic process obtains the league identifier of the game league that is currently being started, for example, 10000, and then takes 10000 as the league identifier of the battle 2.
[0079] In step S330, according to the league identification, the game league process corresponding to the target game league to which the game battle belongs is determined.
[0080] For example, the league process identification corresponding to the league identification obtained in step S320 can be determined through the first mapping relationship described above, so as to address the target game league process indicated by the league process identification.
[0081] In step S340, the data updating interface of the target game league process is called, and the league battle data of the game league is updated according to the battle result of the game battle.
[0082] For example, after addressing the corresponding target game league process, the game logic server can call the data updating interface of the target game league process, send the game battle in the battle result to the target game league process, so as to update the league battle data of the game league.
[0083] During the game league, the battle data of the league battle of each game league can be sent to the corresponding target game league process by the game logic process through the steps S310 to S340 described above. For example, 32 teams participate in the 16-team competition, and the 32 teams are divided into 16 groups of competing teams, and two teams compete against each other. The competition results of the 16 groups of competing teams will be updated to the corresponding target game league process. Then, the target game league process will summarize the competition results of the 16 groups of competing teams after the 16-team competition, so as to obtain the results of the 16-team competition, such as the 16-team list.
[0084] In an exemplary embodiment, the league battle result includes the winning team identification, the losing team identification, etc. If one party initiates the competition and the other party gives up, the initiating party is directly determined to win. If both parties give up, both parties are determined to be losing parties.
[0085] In an exemplary embodiment, the league battle result is also uploaded to the database through the game logic server at the same time, so that the participating parties can see their competition results in time.
[0086] In an exemplary embodiment, after obtaining the league result of the current league stage of the target game league, the game event management method in the present disclosure can further include: updating the current league stage according to the next league stage of the current league stage of the target game league; and determining the next wake-up time of the league result statistical logic according to the end time of the updated current league stage.
[0087] For example, the next game stage of the current game stage can be obtained from the game configuration information, and then the next game stage is reset as the current game stage. For example, the field 2 in the first data record table is used to indicate the current game stage. After the 16-team game stage ends, the value of the field 2 is set as the 8-team game stage identifier, and the current game stage becomes the 8-team game stage. Then, the end time of the 8-team game stage is obtained from the game configuration information, the timing time of the game logic driver is modified as the end time of the 8-team game stage, and then the target game progresses into the sleep state. After the end time of the 8-team game stage is reached, the game logic driver is woken up to drive the execution of the game result statistics logic, and the result statistics of the 8-team game stage is performed. The process is repeated until the result statistics of the last game stage is completed, and then the game logic driver is ended and the memory is released. After the end time of the last game stage is reached, the game results of each stage can be summarized to generate the overall game result table.
[0088] In an exemplary embodiment, after the game result of the current game stage is obtained, the competition relationship of the next game stage can be determined according to the winning sides of the current game stage.
[0089] Based on this, in an exemplary embodiment of the present disclosure, Figure 4 A flowchart of a method for determining the competition relationship in an exemplary embodiment of the present disclosure is shown. Referring to FIG. 4, Figure 4 The method can include steps S410 to S420. In step S410, the start time of the next game stage of the current game stage of the game is determined according to the game configuration information. In step S420, the competition relationship of each winning side in the next game stage is determined according to the winning sides in the game result of the current game stage before the start time of the next game stage is reached.
[0090] For example, at any time before the start time of the next game stage after the result statistics of the current game stage is completed, the competition relationship of the winning sides in the next game stage can be determined according to the preset rules, such as random competition, score competition, etc., according to the winning sides in the game result of the current game stage. The competition relationship is stored in the database, and the user can view the competition relationship of the next game stage from the database. Of course, the determination process of the competition relationship can also be live broadcasted to the user.
[0091] For example, after the 16-team competition, there is an 8-team competition. After the 16-team competition, the winning teams in the 16-team competition can be determined to obtain the match relationship of the 16 winning teams. Before the 8-team competition starts, the match relationship is announced. After the match relationship is announced, the user can check the match relationship at any time. If there are only 15 winning teams in the statistical results of the 16-team competition, one team will be directly entered into the 8-team competition. If the target game league process finds that there are not enough teams, the league is automatically ended.
[0092] In an exemplary embodiment, the participants can also be checked for registration. For example, the participants connect to the league server mounted on the local game logic server. The league server reads the league identifier corresponding to the league that is currently being started. The parameter team information of the parameter personnel in the parameter team is obtained through the registration information sent by the participant team client. Then, the participant information is checked according to the registration rules and the like to check whether it meets the registration conditions. The players or teams that pass the check are processed for successful registration.
[0093] In an exemplary embodiment, the game event management method in the present disclosure can also include uploading the league results of the current league stage of the target game league to a database, so that any client can access the database through a local server to view the league results.
[0094] For example, the league results are uploaded to the database. In this way, no matter which process node the player is in the distributed system, the player can obtain the league results from the database through the league server mounted under the local server of the process in which the player is. That is, although the game league logic is only driven and executed at a specific node, the client can view the league results at any time, regardless of which process the client is in. The client will first connect to the league logic mounted by the local server. Then, the local server will check the league results from the database and return them to the client. In this way, each client can view the league results in a timely manner.
[0095] An exemplary, Figure 5 A schematic diagram showing a process in which a client views the league results in an exemplary embodiment of the present disclosure is shown. Referring to Figure 5 The client 51, the client 52, and the client 53 can all obtain the league results from the database 57 through the local server 54, the local server 55, and the local server 56, respectively.
[0096] An exemplary, Figure 6 A schematic diagram showing a game event management system in an embodiment of the present disclosure is shown. Referring to Figure 6The game event management system can include a distributed game logic server 61, a database 62, a league server 63, and a client 64. For example, the distributed game logic server 61 includes a game logic server 1, a game logic server 2, a game logic server 3, and a game logic server 4, which are used to process game battle logic and send game battle results to the database 62. The game battle results of the league type of game battle are sent to the league server 63, which can count the game battle results of the league type of game battle sent by the distributed game logic server 61 to obtain league results and send the counted league results to the database 62 for storage. The client 64 accesses the database 62 through the league logic mounted by the local server to view the league results.
[0097] In the present disclosure, the league results of each league stage or the game battle results of a certain type of game battle can also be pushed through a website, an APP (application), or an instant messaging tool, so that other clients can timely obtain the latest league situation.
[0098] In the present disclosure, the automatic entry and update of the competition data are synchronized with the competition management system to realize a double-audit mechanism, in which two parts independently enter and check the data and publish the event results. The game league results and the match schedule can be automatically generated to improve the management efficiency of the game league. The game event management method in the present disclosure has reusability, which can save development time and maintenance cost. A new season schedule can be configured by a planner throughout the process, without the need to add new developers and testers. The planner only needs to configure different league identifiers and start and end times of different seasons, which improves the work efficiency. Through addressing, the league results can be stable and error-free, and players can view the league results in a timely manner, which saves server resources. Addressing solves the problem of driving a specific game league process according to a league identifier to drive a specific game league process. In the cluster deployment, all processes can view the results and can register.
[0099] In addition, it should be noted that the above-described figures are only schematic illustrations of the processes included in the method according to the exemplary embodiments of the present disclosure, and are not for limiting purposes. It is easy to understand that the processes shown in the above-described figures do not indicate or limit the time sequence of the processes. In addition, it is also easy to understand that the processes can be executed synchronously or asynchronously, for example, in multiple modules.
[0100] Further, the exemplary embodiments of the present disclosure also provide a game event management device. Referring to Figure 7As shown, the game event management apparatus 700 comprises the following program modules: a current league stage determination module 710 configured to determine a current league stage in which a target game league process corresponds to after the target game league process is started; a wake-up time determination module 720 configured to determine an end time of the current league stage based on league configuration information, and determine a wake-up time of a league result statistics logic of the target game league process according to the end time; a league result statistics module 730 configured to execute the league result statistics logic according to game logic process updated league battle data of the target game league after the wake-up time is reached, to obtain a league result of the current league stage of the target game league.
[0101] In an exemplary embodiment, the game logic process updates the league battle data of the target game league in the following manner: after any game battle ends, determining a type of the game battle; in a case where it is determined that the type of the game battle is a game league battle, obtaining a league identifier of the game league battle; determining a target game league process corresponding to the target game league to which the game battle belongs according to the league identifier; and calling a data update interface of the target game league process to update the league battle data of the target game league according to a battle result of the game battle.
[0102] In an exemplary embodiment, the target game league process is determined in the following manner: in response to a start of a game logic process, each game league process matches a league process identifier corresponding to the game league process and a target league process identifier; and the target game league process is determined according to the game league process indicated by the league process identifier that is successfully matched; wherein the target league process identifier is determined according to a league identifier corresponding to the game league that is currently started.
[0103] In an exemplary embodiment, after the league result of the current league stage of the target game league is obtained, the apparatus further comprises a first update module configured to update the current league stage according to a next league stage of the current league stage of the game league; and determine a next wake-up time of the league result statistics logic according to an end time of the updated current league stage.
[0104] In an exemplary embodiment, after obtaining the match result of the current match stage of the target game match, the apparatus further comprises a match relationship determining module, which can be configured to: determine, according to the match configuration information, the start time of the next match stage of the current match stage of the game match; and determine, according to the winning parties in the match result of the current match stage, the match relationship of the winning parties in the next match stage before the start time of the next match stage arrives.
[0105] In an exemplary embodiment, the match configuration information comprises one or more of the match identification of the game match, the match stages included in the game match, the start time and the end time of each match stage, which are used to indicate the progress of the game match.
[0106] In an exemplary embodiment, the apparatus further comprises a result uploading module, which can be configured to upload the match result of the current match stage of the target game match to a database, so that any client can access the database through a local server to view the match result.
[0107] The specific details of the parts of the apparatus described above have been described in detail in the method embodiment, and the undisclosed details can be referred to the embodiment content of the method part, thus no further elaboration is needed.
[0108] It should be noted that although several modules or units of the device for action execution are mentioned in the above detailed description, such division is not mandatory. In fact, according to the exemplary embodiments of the present disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided into several modules or units.
[0109] In addition, although the steps of the method of the present disclosure are described in a specific order in the accompanying drawings, this is not required or implied that the steps must be performed in this specific order, or that all the steps shown must be performed to achieve the desired result. Additionally or alternatively, some steps can be omitted, several steps can be combined into one step, and / or one step can be divided into several steps, etc.
[0110] The exemplary embodiments of the present disclosure also provide a computer program product. The computer program product comprises a computer program which, when executed by a processor, implements the game event management method described above.
[0111] In an embodiment, the computer program product can be a tangible product that contains the computer program, such as a computer-readable storage medium that stores the computer program. The computer-readable storage medium can be a storage medium based on electric, magnetic, optical, electromagnetic, infrared, etc. signals, including but not limited to random access memory (RAM), read-only memory (ROM), magnetic tape, floppy disk, flash memory (Flash), mechanical hard disk (HDD), solid state disk (SSD), etc. For example, the computer program product can be implemented as a non-volatile storage medium that stores the computer program, such as a read-only memory (ROM), a Nand Flash, etc.
[0112] In an embodiment, the computer program product can be an intangible product that contains the computer program. For example, the computer program product can be implemented as a virtual digital product, such as an executable file, an installation package, etc. digital file that stores the computer program.
[0113] The code of the computer program can be written in one or more programming languages. The programming language can be, for example, C, Java, C++, Python, etc. The program code can be executed entirely on the user computing device, or partially on the user computing device, or as a separate software package, or partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In the case involving a remote computing device, the remote computing device can be connected to the user computing device through any kind of network, such as a local area network (LAN), a wide area network (WAN), etc., or can be connected to an external computing device (for example, through an Internet connection provided by an operator).
[0114] The computer program can be carried or transmitted by electronic, magnetic, optical, electromagnetic, infrared, etc. signals. The electronic device can convert the signals carrying the computer program into digital signals, and then run the computer program. When the computer program is running on the electronic device, its code is used to make the electronic device execute (more specifically, can make the processor of the electronic device execute) the method steps of various exemplary embodiments of the present disclosure, such as the game event management method described above, which includes the following steps: determining the current league stage of the target game league corresponding to the target game league process after the target game league process is started; determining the end time of the current league stage based on the league configuration information, determining the wake-up time of the league result statistics logic of the target game league process according to the end time; after the wake-up time arrives, executing the league result statistics logic according to the league battle data of the target game league updated by the game logic process to obtain the league result of the current league stage of the target game league.
[0115] By executing the above method steps through a computer program, automatic statistics of the game league result of each stage of the game league based on the control of the target game league process can be achieved, the management efficiency of the game event is improved, the timeliness of the game league result publication is ensured, the problem of low accuracy of the game league result publication caused by data entry errors is avoided, and the accuracy of the game league result publication is improved. Further, the method of the present disclosure has reusability, which can greatly save development time and maintenance cost in the later stage.
[0116] The exemplary embodiments of the present disclosure also provide an electronic device, which can be the terminal device 110 or the server 120 described above. The electronic device can include a processor and a memory. The memory stores executable instructions of the processor, which can be a computer program. The processor executes the method steps of various exemplary embodiments of the present disclosure by executing the executable instructions. In addition, the electronic device can also include a display for displaying a graphical user interface.
[0117] The following will be described with reference to Figure 8 The electronic device is exemplarily illustrated in the form of a general computing device. It should be understood that Figure 8 The electronic device 800 shown is only an example and should not limit the function and use range of the embodiments of the present disclosure.
[0118] As Figure 8 The electronic device 800 can include a processor 810, a memory 820, a bus 830, an I / O (input / output) interface 840, a network adapter 850, and a display 860, as shown.
[0119] The memory 820 can include a volatile memory, such as a RAM 821, a cache unit 822, and a non-volatile memory, such as a ROM 823. The memory 820 can also include one or more program modules 824, which include but are not limited to an operating system, one or more application programs, other program modules, and program data, each of which or some combination thereof can include implementation of a network environment. For example, the program modules 824 can include the modules in the above-described apparatus.
[0120] The processor 810 can include one or more processing units, for example: the processor 810 can include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, an encoder, a decoder, a digital signal processor (DSP), a baseband processor, a neural-network processing unit (NPU), and / or the like.
[0121] The processor 810 can be configured to execute executable instructions stored in the memory 820, for example: the processor 810 can execute the game event management method described above, which includes the following steps: determining a current competition stage of a target game league corresponding to a target game league process after the target game league process is started; determining an end time of the current competition stage based on competition configuration information, and determining a wake-up time of competition result statistics logic of the target game league process according to the end time; and executing competition result statistics logic according to game logic process updated game battle data of the target game league to obtain a competition result of the current competition stage of the target game league after the wake-up time is reached.
[0122] By implementing the above method through a computer program, the automatic statistics of the competition result of each stage of the game league can be realized based on the control of the target game league process, the management efficiency of the game event is improved, and the timeliness of the publication of the game league result is ensured; and the problem of low accuracy of the publication of the competition result caused by the data entry error of the manual operation is avoided, and the accuracy of the publication of the competition result is improved; further, the method of the present disclosure has reusability, and can greatly save the development time and the maintenance cost in the later period.
[0123] The bus 830 is configured to realize the connection between different components of the electronic device 800, and can include a data bus, an address bus, and a control bus.
[0124] The electronic device 800 can communicate with one or more external devices 900 (for example, a keyboard, a mouse, an external controller, and the like) through the I / O interface 840.
[0125] The electronic device 800 can communicate with one or more networks through the network adapter 850, for example: the network adapter 850 can provide a mobile communication solution such as 3G / 4G / 5G, or provide a wireless communication solution such as a wireless local area network, Bluetooth, near field communication, and the like. The network adapter 850 can communicate with other modules of the electronic device 800 through the bus 830.
[0126] The electronic device 800 can display a graphical user interface, such as a showcase interface displaying league results, etc., through the display 860.
[0127] Although Figure 8 Other hardware and / or software modules not shown in FIG. 8 can also be deployed in the electronic device 800, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID systems, tape drives, and data archival storage systems, etc.
[0128] Further, the above-described diagrams are only schematic illustrations of the processes included in the method according to the exemplary embodiments of the present disclosure, and are not for limiting purposes. It is easily understood that the processes shown in the above-described diagrams do not indicate or limit the time sequence of the processes. In addition, it is also easily understood that the processes can be executed synchronously or asynchronously, for example, in a plurality of modules.
[0129] As can be seen from the above, the technical solutions of the present disclosure can be implemented as a method, an apparatus, a system, a computer program product, a storage medium, an electronic device, etc. Those skilled in the art can understand that each aspect of the present disclosure can be specifically implemented as follows: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or an implementation combining hardware and software aspects, such as can be respectively referred to as "circuitry", "module" or "system".
[0130] It should be understood that the present disclosure is not limited to the specific method steps or structures described above and shown in the drawings, and various modifications and changes can be made without departing from the scope thereof. Those skilled in the art, based on the specific embodiments provided by the present disclosure, will easily think of other embodiments. Therefore, the specific embodiments provided by the present disclosure are only exemplary, and the scope and spirit of the present disclosure are indicated by the claims, and should cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure, and include common knowledge or conventional technical means in the technical field that are not disclosed by the present disclosure.
Claims
1. A method for managing game events, characterized in that, include: After the target game league process is started, the current league stage of the target game league corresponding to the target game league process is determined; The end time of the current league stage is determined based on the league configuration information, and the wake-up time of the league result statistics logic of the target game league process is determined based on the end time. After the wake-up time arrives, the league result statistics logic is executed based on the league battle data of the target game league updated according to the game logic process, so as to obtain the league result of the current league stage of the target game league.
2. The method according to claim 1, characterized in that, The game logic process updates the league battle data of the target game league in the following ways: After any game battle ends, determine the type of the game battle; If the type of game battle is determined to be a game league battle, obtain the league identifier of the game league battle; Based on the league identifier, the target game league process corresponding to the target game league to which the game battle belongs is determined; The data update interface of the target game league process is invoked to update the league battle data of the target game league based on the battle results of the game battle.
3. The method according to claim 1, characterized in that, The methods for determining the progress of the target game league include: In response to the start of the game logic process, each game league process matches the league process identifier corresponding to the game league process with the target league process identifier; The target game league process is determined based on the game league process indicated by the successfully matched league process identifier; The target league process identifier is determined based on the league identifier corresponding to the currently running game league.
4. The method according to claim 1, characterized in that, After obtaining the league results for the current league stage of the target game league, the method further includes: Update the current league stage according to the next league stage of the current league stage of the target game league; The next wake-up time for the league result statistics logic is determined based on the updated end time of the current league stage.
5. The method according to claim 1, characterized in that, After obtaining the league results for the current league stage of the target game league, the method further includes: Based on the league configuration information, determine the start time of the next league stage of the target game league from the current league stage. Before the start time of the next league stage arrives, the matchups of the winning teams in the next league stage are determined based on the results of the current league stage.
6. The method according to claim 1, characterized in that, The league configuration information includes one or more of the following: the league identifier of the game league, the league stages included in the game league, and the start and end times of each league stage. The league stages are used to indicate the progress of the game league.
7. The method according to claim 1, characterized in that, The method further includes: The league results of the current league stage of the target game league are uploaded to the database so that any client can access the database through the local server to view the league results.
8. A game event management device, characterized in that, include: The current league stage determination module is configured to determine the current league stage of the target game league corresponding to the target game league process after the target game league process is started; The wake-up time determination module is configured to determine the end time of the current league stage based on the league configuration information, and determine the wake-up time of the league result statistics logic of the target game league process based on the end time. The league results statistics module is configured to execute the league results statistics logic based on the league battle data of the target game league updated by the game logic process after the wake-up time arrives, so as to obtain the league results of the current league stage of the target game league.
9. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the method described in any one of claims 1 to 7.
10. An electronic device, characterized in that, include: One or more processors; A storage device for storing one or more programs, which, when executed by one or more processors, cause the one or more processors to implement the method as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Terminal alarm clock setting method and terminal
CN110191237A
Competition management method and device, computer readable storage medium and computer equipment
CN114768259A