Data processing method and related equipment

By separating the mini-game data package into engine files and other files, two data packages are generated, and the download content is determined based on the summary information of the client, which solves the problem of long startup time for mini-games and achieves the effect of accelerating startup speed and saving bandwidth. .

CN118677770APending Publication Date: 2024-09-20BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310274419.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-17
Publication Date
2024-09-20

Smart Images

  • Figure CN118677770A
    Figure CN118677770A
Patent Text Reader

Abstract

The embodiment of the invention provides a data processing method and related equipment. The method comprises the following steps: determining an engine file in a game data packet; generating a first data packet based on other files except the engine file in the game data packet; generating a second data packet based on the engine file in the game data packet; and in response to a request instruction of a client, sending the storage address of the first data packet and the summary information of the second data packet to the client. Therefore, the starting speed of the game can be increased, and meanwhile, the bandwidth of data transmission is saved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of Internet technology, and in particular to a data processing method and related equipment. Background Art

[0002] This section is intended to provide a background or context to the embodiments of the disclosure that are recited in the claims. No description herein is admitted to be prior art by inclusion in this section.

[0003] Usually, when a user starts a mini-game on the client, the client needs to download an initial data packet of the mini-game, and can enter the mini-game interface after the initial data packet is loaded and rendered. Therefore, the size of the initial data packet of the mini-game will directly affect the time required to start the mini-game. If the time required to start is long, it will greatly affect the user experience. Summary of the invention

[0004] In view of this, the present disclosure proposes a data processing method and related devices, which can speed up the startup of games and save bandwidth for data transmission.

[0005] The data processing method described in the embodiment of the present disclosure may include: determining the engine file in the game data packet; generating a first data packet based on other files in the game data packet except the engine file; generating a second data packet based on the engine file in the game data packet; and sending the storage address of the first data packet and the summary information of the second data packet to the client in response to a client request instruction.

[0006] In an embodiment of the present disclosure, the above method further includes: in response to a client request instruction, sending the storage address of the second data packet to the client.

[0007] In an embodiment of the present disclosure, the above-mentioned determination of the engine file in the game data packet includes: receiving the game data packet; matching the files in the game data packet with preset files; and using the files in the game data packet that match the preset files as the engine files.

[0008] In an embodiment of the present disclosure, the above method further includes: scanning multiple game data packets; determining an engine file from the files included in the multiple game data packets based on the identifiers of the files included in the multiple game data packets and the number of times each file is referenced; and recording the determined engine file into the preset file.

[0009] In an embodiment of the present disclosure, the above-mentioned generation of the first data packet based on other files in the data packet of the game except the engine file includes: separating the engine file from the game data packet; and compiling and packaging the remaining files in the game data packet to obtain the first data packet.

[0010] In an embodiment of the present disclosure, the generating of the second data packet based on the engine file includes: compiling and packaging the separated engine file to obtain the second data packet; and determining summary information of the second data packet.

[0011] In an embodiment of the present disclosure, the above method further includes: compiling and packaging the files in the game data packet to obtain a third data packet; and in response to the request instruction, feeding back the storage address of the third data packet to the client.

[0012] The data processing method described in other embodiments of the present disclosure may include: in response to detecting a user's operation of starting a game for the first time, sending a request instruction to a server; receiving the storage address of a first data packet and summary information of a second data packet sent by the server; determining whether the second data packet has been stored locally based on the summary information of the second data packet; in response to determining that the second data packet has been stored locally, downloading the first data packet based on the storage address of the first data packet, and loading the downloaded first data packet and the second data packet stored locally.

[0013] In an embodiment of the present disclosure, the above method further includes: receiving the storage address of the second data packet sent by the server; in response to determining that the second data packet is not stored locally, downloading the first data packet based on the storage address of the first data packet, downloading the second data packet based on the storage address of the second data packet, and loading the downloaded first data packet and second data packet.

[0014] In an embodiment of the present disclosure, the above-mentioned determining whether the second data packet has been stored locally based on the summary information of the second data packet includes: searching for a target file whose summary information is the same as the summary information of the second data packet in locally stored files; in response to determining that a target file whose summary information is the same as the summary information of the second data packet is found, determining that the second data packet has been stored locally, and using the target file as the second data packet stored locally; and in response to determining that no target file whose summary information is the same as the summary information of the second data packet is found, determining that the second data packet is not stored locally.

[0015] In an embodiment of the present disclosure, the summary information of the second data packet is a hash value of the second data packet.

[0016] In an embodiment of the present disclosure, the above-mentioned first data packet includes: a game file; wherein, the loading of the downloaded first data packet and the second data packet includes: loading the game file of the first data packet; during the loading process, in response to determining that the game file references an engine file, searching the engine file in the first data packet; in response to determining that the engine file is found in the first data packet, loading the engine file and rendering it; and in response to determining that the engine file is not found in the first data packet, searching the engine file in the second data packet, and loading the found engine file and rendering it.

[0017] In an embodiment of the present disclosure, the above-mentioned first data packet includes: a game file; wherein, the loading of the downloaded first data packet and the locally stored second data packet includes: loading the game file of the first data packet; during the loading process, in response to determining that the game file references an engine file, searching the engine file in the first data packet; in response to determining that the engine file is found in the first data packet, loading the engine file and rendering it; and in response to determining that the engine file is not found in the first data packet, searching the engine file in the locally stored second data packet, and loading the found engine file and rendering it.

[0018] In an embodiment of the present disclosure, the above method further includes: receiving the storage address of the third data packet sent by the server; and in response to determining based on the configuration information that the loading of the first data packet and the second data packet is not supported, downloading the third data packet based on the storage address of the third data packet, and loading the downloaded third data packet; in response to determining based on the configuration information that the loading of the first data packet and the second data packet is supported, executing the operation of determining whether the second data packet has been stored locally based on the summary information of the second data packet.

[0019] The data processing device described in the embodiment of the present disclosure includes:

[0020] A file determination module, used to determine the engine file in the game data packet;

[0021] A first packaging module, used to generate a first data packet based on other files in the game data packet except the engine file;

[0022] A second packaging module, configured to generate a second data packet based on the engine file; and

[0023] The information feedback module is used to feed back the storage address of the first data packet and the summary information of the second data packet to the client in response to determining the request instruction of the client.

[0024] The data processing device described in some other embodiments of the present disclosure includes:

[0025] An information request module, configured to send a request instruction to a server in response to detecting an operation of a user starting a game;

[0026] An information receiving module, used for receiving the storage address of the first data packet and the summary information of the second data packet sent by the server;

[0027] A file matching module, configured to determine whether the second data packet has been stored locally based on the summary information of the second data packet; and

[0028] The loading module is used for, in response to determining that the second data packet has been stored locally, downloading the first data packet based on the storage address of the first data packet, and loading the downloaded first data packet and the second data packet stored locally.

[0029] The computer device described in the embodiment of the present disclosure may include:

[0030] One or more processors, memory; and

[0031] one or more programs;

[0032] The one or more programs are stored in the memory and executed by the one or more processors, and the programs include instructions for executing the above-mentioned data processing method.

[0033] The non-volatile computer-readable storage medium containing a computer program described in an embodiment of the present disclosure enables the processor to execute the above-mentioned data processing method when the computer program is executed by one or more processors.

[0034] The computer program product described in the embodiment of the present disclosure includes computer program instructions. When the computer program instructions are executed on a computer, the computer executes the above data processing method.

[0035] It can be seen from the above data processing method and data processing device that after receiving the game data packet, the server can separate the game data packet into a first data packet and a second data packet, wherein the second data packet contains the engine file; the first data packet contains other files. In addition, when the client sends a request instruction for requesting game information, the storage address of the first data packet, the storage address of the second data packet and the summary information of the second data packet are provided to the client. In this way, when the user starts the game for the first time, the client can determine whether the second data packet has been stored locally based on the summary information of the second data packet returned by the server. In the case where the client determines that the second data packet has been stored locally, the client can only download the first data packet and reuse the second data packet stored locally to complete the loading and rendering of the game. Since in this case, the client does not need to download the second data packet, the amount of data download required to start the game will be greatly reduced, and since the client does not need to wait for the download of the second data packet, the game startup time can also be greatly shortened, thereby achieving the purpose of speeding up the startup speed and saving data transmission bandwidth. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] In order to more clearly illustrate the technical solutions in the present disclosure or related technologies, the drawings required for use in the embodiments or related technical descriptions are briefly introduced below. Obviously, the drawings described below are only embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0037] Figure 1 The functional structure of the system 100 for implementing the mini-game at this stage is shown;

[0038] Figure 2 The implementation process of the data processing method described in some embodiments of the present disclosure is shown;

[0039] Figure 3 The implementation process of the method for determining the engine file from the game data packet described in some embodiments of the present disclosure is shown;

[0040] Figure 4 The implementation process of the method for generating a preset file described in some embodiments of the present disclosure is shown;

[0041] Figure 5 The implementation process of the data processing method described in other embodiments of the present disclosure is shown;

[0042] Figure 6 The functional structure of the data processing device according to some embodiments of the present disclosure is shown;

[0043] Figure 7 The functional structure of the data processing device according to other embodiments of the present disclosure is shown; and

[0044] Figure 8 The hardware structure of an exemplary computer device provided by an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0045] In order to make the purpose, technical solutions and advantages of the present disclosure more clear, the principles and spirit of the present disclosure will be described with reference to several exemplary embodiments. It should be understood that these embodiments are provided only to enable those skilled in the art to better understand and implement the present disclosure, and are not intended to limit the scope of the present disclosure in any way. On the contrary, these embodiments are provided to make the present disclosure more thorough and complete, and to fully convey the scope of the present disclosure to those skilled in the art.

[0046] It should be understood herein that any number of elements in the drawings is for illustration rather than limitation, and any naming is only for distinction rather than having any limiting meaning.

[0047] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the embodiments of the present disclosure should be understood by people with ordinary skills in the field to which the present disclosure belongs. The "first", "second" and similar words used in the embodiments of the present disclosure do not indicate any order, quantity or importance, but are only used to distinguish different components. "Including" or "comprising" and similar words mean that the elements or objects appearing before the word cover the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.

[0048] It is understandable that before using the technical solutions of each embodiment of the present disclosure, the type, scope of use, usage scenarios, etc. of the personal information involved will be informed to the user in an appropriate manner, and the user's authorization will be obtained.

[0049] For example, in response to receiving an active request from a user, a prompt message is sent to the user to clearly remind the user that the operation requested to be performed will require obtaining and using the user's personal information. Thus, the user can independently choose whether to provide personal information to software or hardware such as an electronic device, application, server, or storage medium that performs the operation of the technical solution of the present disclosure according to the prompt message.

[0050] As an optional but non-limiting implementation, in response to receiving the user's active request, the prompt information may be sent to the user in the form of a pop-up window, in which the prompt information may be presented in text form. In addition, the pop-up window may also carry a selection control for the user to choose "agree" or "disagree" to provide personal information to the electronic device.

[0051] It is understandable that the above notification and the process of obtaining user authorization are merely illustrative and do not constitute a limitation on the implementation of the present disclosure. Other methods that meet relevant laws and regulations may also be applied to the implementation of the present disclosure.

[0052] To facilitate understanding, the terms involved in the embodiments of the present disclosure are first explained.

[0053] The mini-game described in the embodiments of the present disclosure refers to a game product implemented using Java script (JavaScript) that is attached to clients such as instant messaging clients, social network clients, and information stream playback clients. It can usually be produced and compiled by engines such as Cocos, Laya, and Egret. It usually has the characteristics of being small in size, requiring no installation, and being playable right after it is opened.

[0054] As mentioned above, when a user starts a mini-game on the client, the client only needs to download the initial data packet of the mini-game, and can enter the mini-game interface after completing the loading and rendering of the initial data packet. Therefore, the size of the initial data packet of the mini-game will directly affect the time required to start the mini-game, which will greatly affect the user experience.

[0055] Figure 1 Schematic diagram of the functional structure of the system 100 for implementing mini-games at this stage. Figure 1 The system shown above may include: a game development platform 102 , a server 104 , a client 106 and a database 108 .

[0056] The game developer creates a game data packet through the game development platform 102. After receiving the upload instruction from the game developer, the game development platform 102 uploads the game data packet created by the game developer to the server 104. In the embodiment of the present disclosure, the server 104 generally refers to a server that implements game services.

[0057] The server 104 may include: a compiler 1042 and a game service module 1044 .

[0058] The compiler 1042 is used to compile and package the game data packet uploaded by the game development platform 102 to obtain the initial data packet of the game. Then, the compiler 1042 submits the initial data packet of the game to the game service module 1044, and the game service module 1044 stores the initial data packet of the game in the database 108.

[0059] The game service module may also receive a request instruction for game information from the client 106, and provide the game information to the client 106. The game information may include the storage address of the initial data packet of the game.

[0060] The above-mentioned client 106 is used to send a request instruction to the server 104 to request game information when detecting the user's operation of starting the game; after receiving the storage address of the initial data packet of the game, download the initial data packet of the game according to the storage address; then, load the initial data packet and render it to enter the game interface.

[0061] The database 108 is used to store the initial data packet of the game.

[0062] In order to further reduce the size of the initial data packet of the above game, an embodiment of the present disclosure provides a data processing method, which can be executed by the above server 104.

[0063] Figure 2 The implementation process of the data processing method described in the embodiment of the present disclosure is shown. Figure 2 As shown, the above data processing method may include:

[0064] In step 202, the engine file in the game data package is determined.

[0065] In step 204, a first data packet is generated based on other files in the game data packet except the engine file.

[0066] In step 206, a second data packet is generated based on the engine file in the game data packet.

[0067] In step 208, in response to the request instruction of the client, the storage address of the first data packet and the summary information of the second data packet are fed back to the client.

[0068] In the embodiment of the present disclosure, the above step 208 may further include: in response to a request instruction from the client, feeding back the storage address of the second data packet to the client.

[0069] It can be seen that the above data processing method separates the engine files in the game data packet uploaded by the applet developer during the compilation process, and packages the other files and the engine files in the game data packet respectively, so as to obtain a first data packet including other files and a second data packet including the engine files. Then, when the client sends a request instruction for requesting the information of the game, the storage addresses of the two data packets are fed back to the client respectively, and the client chooses to download all two data packets or download the first data packet separately according to its own needs. This is in consideration of the fact that the vast majority of mini-games are currently developed using several existing game engines (for example, engines such as Cocos, Laya, and Egret), and the versions of the game engines used are also basically similar or identical. In addition, these engine files also account for a relatively large proportion in the code package. Based on the above considerations, when the game is first started, if the client already has a game engine file of the same category locally, the game data packet can be quickly downloaded by directly reusing or increasing, thereby improving the startup speed and saving the bandwidth required for downloading the data packet. The data processing method described in the embodiment of the present disclosure makes full use of the fact that most mini-games are produced and compiled through the same engine. Therefore, the client is more likely to have stored the actual situation of the engine files required to load the current game. Therefore, it can effectively reduce the bandwidth required to download data packets and improve the startup speed of the game.

[0070] The implementation method of each step in the above data processing method will be further described in detail below with reference to the accompanying drawings and specific examples.

[0071] In some embodiments of the present disclosure, the game data package described in the above step 202 may be a game data package created by a game developer through the above game development platform 102 and uploaded to the above server 104. That is, the above server 104 will receive the game data package from the game development platform 102. Generally, the above game data package may refer to a game data package of a mini game or a game data package of other games. The above game data package may include: game configuration files, game files, engine files and other files.

[0072] In the embodiment of the present disclosure, the engine file in the game data packet described in the above step 202 can be determined by Figure 3 The method shown is implemented. Figure 3 As shown, the method for determining the engine file may include the following steps:

[0073] In step 302, the files in the game data package are matched with the preset files.

[0074] In the embodiment of the present disclosure, the preset file may specifically be a file whitelist. The file whitelist records the identifiers of multiple files. Specifically, the identifier of the file may be the name of the file or other information that can identify the file. Therefore, in step 302, the identifiers of the files in the game data packet may be matched one by one with the identifiers of the files recorded in the file whitelist, so as to determine whether the files in the game data packet are included in the file whitelist. For the files in the game data packet that are included in the preset file, it can be considered that the file matches the preset file.

[0075] In step 304, the file in the game data packet that matches the preset file is used as the engine file.

[0076] In an embodiment of the present disclosure, in the above step 302, if the identifier of a file in the above game data packet matches the identifier of a file recorded in the above file whitelist, that is, it hits, the file in the above game data packet is used as an engine file.

[0077] In the embodiments of the present disclosure, a file whitelist can be used as the above-mentioned preset file in consideration of the fact that the general engine files of a game engine usually have a prefix or suffix of the corresponding engine. Therefore, whether a file is an engine file can be determined by the file identifier. Therefore, in some embodiments of the present disclosure, the administrator of the game service can directly configure a file whitelist containing the identifier of the engine file in the compiler 1042 in advance. In addition, it has been observed that in the data packets of games packaged by the same game engine, the paths of the engine files in the entire package are the same. Therefore, it is also possible to scan, analyze and count the game data packets of multiple games or mini-games that have been launched, and by matching the paths within the packages, it is also possible to find files with the same paths within the game data packets, the same file identifiers, and a higher frequency of citations, and determine these files as engine files. Specifically, in these embodiments, the server 104 can be configured as follows: Figure 4 The method shown generates the above preset file.

[0078] like Figure 4 As shown, the above preset file can be generated by the following steps:

[0079] In step 402, a plurality of game data packets are scanned.

[0080] The game data packets may be data packets of multiple existing games or mini-games that have been launched online. These game data packets may be developed through one or more game engines.

[0081] In step 404, engine files are determined from the files included in the multiple game data packets according to the identifiers of the files included in the multiple game data packets and the number of times each file is referenced.

[0082] In an embodiment of the present disclosure, files with the same file identifier and a high frequency of being referenced are found from multiple game data packets by matching the path in the packet, and these files are determined as engine files. Generally, the paths of these engine files in the game data packet are also the same, so files with the same path, the same file identifier, and a high frequency of being referenced can also be found in the game data packet, and these files are determined as engine files. Specifically, the above-mentioned reference frequency can specifically refer to the ratio of the number of times referenced to the number of scanned game data packets. Whether it is a file with a high frequency of being referenced can be determined according to a preset frequency threshold. If the frequency of the file being referenced is greater than or equal to the preset frequency threshold, it can be considered that the file is a file with a high frequency of being referenced. Moreover, since the scanned game data packet can be developed by one or more game engines, the files with the same path in the packet, the same file identifier, and a high frequency of being referenced determined in the above step 404 should also be engine files of one or more engines.

[0083] In step 406, the determined engine file is recorded into the above-mentioned preset file.

[0084] In the above method, by scanning, counting and analyzing the files in the data packets of multiple games or mini-games that have been launched, engine files with the same file identification and a higher frequency of citation can be quickly obtained, and the preset files generated based on the above statistical results are more accurate.

[0085] In the above steps 204 and 206, the received game data packets will be sub-packetized. Specifically, the determined engine files will be first separated from the above game data packets. Then, the remaining files in the game data packets except the engine files will be compiled and packaged to obtain the above first data packet. Further, the summary information of the above first data packet will be determined. The summary information of the above first data packet will be used to verify the downloaded first data packet after the client downloads the first data packet. The separated engine files will also be compiled and packaged to obtain the second data packet. Further, the summary information of the above second data packet will also be determined.

[0086] It should be noted that the embodiments of the present disclosure do not limit the execution order of the above steps 204 and 206. That is, the above steps 204 and 206 can be executed in parallel or in any order. For example, it is also possible to execute step 206 first and then step 204.

[0087] In addition, the present disclosure does not limit the method of compiling and packaging the two data packets from which the engine files are separated. The same method as the existing method of compiling and packaging the game or mini-game data packets can be used in the application, and will not be repeated here. The above packaging can refer to packaging in the format required by the server.

[0088] In an embodiment of the present disclosure, the summary information of the first data packet and the summary information of the second data packet may be a hash value of the first data packet and a hash value of the second data packet, which may be calculated by a hash algorithm. For example, the summary information may be the MD5 value of the first data packet and the MD5 value of the second data packet respectively calculated by a message digest algorithm (MD5) for the first data packet and the second data packet.

[0089] After obtaining the first data packet and the second data packet corresponding to the game data packet, the server 104 can store the first data packet and the second data packet in the database. Moreover, when receiving the game information request from the client, the storage address of the first data packet, the storage address of the second data packet and the summary information of the second data packet can be fed back to the client. Among them, the purpose of feeding back the storage address of the first data packet and the storage address of the second data packet is to allow the client to download the required data packet on demand. Among them, the first data packet is a data packet that the client must download when starting the game for the first time, which usually contains configuration files and game files. Because the second data packet contains the engine file, if the client has downloaded the same engine file in other games before, it does not need to be downloaded; if the client has not downloaded the same engine file before, it still needs to be downloaded. In addition, the purpose of feeding back the summary information of the second data packet before the client downloads the data packet is to allow the client to confirm whether the engine file contained in the second data packet has been stored locally. This is because the summary information of the second data packet is the hash value of the second data packet, such as the MD5 value. Generally, the hash values ​​of different files are different, and if the hash values ​​of two files are the same, the two files can be considered to be the same. Therefore, after receiving the summary information of the second data packet, the client can search for the files stored in itself according to the summary information of the received second data packet, so as to determine whether the second data packet has been stored.

[0090] It can be seen that through the above method, the game data packet can be separated into a first data packet and a second data packet. If the client has already downloaded the same engine file, the client can only download the first data packet when starting the game for the first time without downloading the second data packet, thereby reducing the bandwidth occupied by data transmission and reducing the delay in data downloading, thereby improving the startup speed of the game.

[0091] It should be noted that, in order to be compatible with client versions that do not support game sub-packaging, a traditional game data packet processing method can be provided for these client versions. In this case, the data processing method can further include compiling and packaging the files in the game data packet to obtain a third data packet; and in response to determining that the client requests the game, feeding back the storage address of the third data packet to the client.

[0092] That is to say, while the engine file separation process is performed on the game data packet, the existing compilation and packaging method of the game data packet is still retained to obtain a third data packet containing a complete file. At this time, the server 104 will also store the above-mentioned third data packet at the same time, and when receiving a request instruction from the client for game information, the storage address of the third data packet and other information will be fed back to the client. In this way, when the client determines through its own configuration information that it does not support the loading of the first data packet and the second data packet, it can download the third data packet based on the storage address of the third data packet, and load the downloaded third data packet, thereby ensuring the compatibility of the above-mentioned data processing method with different client versions.

[0093] Corresponding to the above-mentioned data processing method executed by the server, an embodiment of the present disclosure also provides a data processing method executed by the client. Figure 5 The implementation process of the data processing method executed by the client according to the embodiment of the present disclosure is shown. Figure 5 As shown, the above data processing method includes:

[0094] In step 502, in response to detecting the user's operation of starting the game for the first time, a request instruction is sent to the server.

[0095] Typically, for mini-games, users can find multiple mini-games through the mini-game list entrance of the client. When a user clicks a mini-game icon for the first time, that is, starts the mini-game for the first time, the client will send a request instruction to the server to request information about the mini-game.

[0096] In step 504, the storage address of the first data packet and the summary information of the second data packet sent by the server are received.

[0097] In an embodiment of the present disclosure, the above step 504 may further include: receiving a storage address of a second data packet sent by the server.

[0098] In an embodiment of the present disclosure, the game information received by the client from the server may include: the storage address of the first data packet and the summary information of the second data packet. The game information received by the client from the server may further include: the storage address of the second data packet. As mentioned above, the storage address of the first data packet and the storage address of the second data packet in the game information are used to download the first data packet and the second data packet. The summary information of the second data packet is used to query whether the second data packet has been stored locally.

[0099] In step 506, it is determined whether the second data packet has been stored locally based on the summary information of the second data packet.

[0100] In an embodiment of the present disclosure, the above step 506 may include: first, searching for a target file whose summary information is the same as the summary information of the above second data packet in a locally stored file; in response to determining that a target file whose summary information is the same as the summary information of the above second data packet is found, determining that the second data packet has been stored locally, and using the above target file as the second data packet stored locally; and in response to determining that a target file whose summary information is the same as the summary information of the above second data packet is not found, determining that the second data packet is not stored locally. The summary information of the above second data packet may be a hash value of the second data packet, for example, an MD5 value of the second data packet calculated by an MD5 algorithm. As mentioned above, the hash values ​​calculated based on different files are all different, so if the hash values ​​of two files are the same, the two files can be considered to be the same. Based on this, in the above step 506, the client can search for a file whose summary information is the same as the summary information of the above second data packet in its own stored files according to the summary information of the received second data packet, thereby determining whether the second data packet has been stored.

[0101] In step 508, in response to determining that the second data packet has been stored locally, the first data packet is downloaded based on the storage address of the first data packet, and the downloaded first data packet and the second data packet stored locally are loaded.

[0102] In an embodiment of the present disclosure, if a file with the same summary information as the summary information of the second data packet can be found in the locally stored files, it means that the client has previously downloaded and saved the same engine file. At this time, the client can only download the first data packet and reuse the stored second data packet. Since the first data packet includes the game file, the client will first load the game file of the first data packet. During the loading process, if the game file refers to the engine file, the engine file is first searched in the first data packet; if the engine file is found in the first data packet, the engine file is directly loaded and rendered; and if the engine file is not found in the first data packet, the engine file continues to be searched in the second data packet stored locally, and then the engine file found is loaded and rendered. Further, if the engine file is still not found in the second data packet stored locally, the client can report an error to the server or re-download the first data packet and the second data packet, etc.

[0103] In some other embodiments of the present disclosure, the above-mentioned data processing method may further include: in response to determining that the second data packet is not stored locally, downloading the first data packet based on the storage address of the first data packet, downloading the second data packet based on the storage address of the second data packet, and loading the downloaded first data packet and second data packet.

[0104] In an embodiment of the present disclosure, if a file whose summary information is the same as the summary information of the second data packet is not found in the locally stored files, it means that the client has not downloaded the same engine file as the current game data packet before. At this time, the client should download the first data packet and the second data packet concurrently. Since the first data packet includes the game file, the client should first load the game file of the first data packet. During the loading process, if the game file refers to the engine file, the engine file is first searched in the first data packet; if the engine file is found in the first data packet, the engine file is directly loaded and rendered; and if the engine file is not found in the first data packet, the engine file is continued to be searched in the downloaded second data packet, and then the found engine file is loaded and rendered. Further, if the engine file is still not found in the second data packet, the client can report an error to the server or re-download the first data packet and the second data packet, and so on.

[0105] It can be seen from the above data processing process that when the user starts the game for the first time, the client can determine whether the second data packet has been stored locally based on the summary information of the second data packet returned by the server. If the client determines that the second data packet has been stored locally, the client can only download the first data packet and reuse the second data packet stored locally to complete the loading and rendering of the game. Since in this case, the client does not need to download the second data packet, the amount of data required to start the game will be greatly reduced, and since the client does not need to wait for the download of the second data packet, the game startup time can also be greatly shortened, thereby achieving the purpose of accelerating the startup speed and saving data transmission bandwidth.

[0106] In some other embodiments of the present disclosure, the game information received from the server may further include: a storage address of a third data packet, wherein the third data packet includes all files required to start the game.

[0107] In this case, the client will first determine whether it supports the loading of the first data packet and the second data packet according to the configuration information, that is, whether it supports the loading of the sub-packets of the game. If it is determined that it does not support the loading of the first data packet and the second data packet, the client will download the third data packet based on the storage address of the third data packet and load the downloaded third data packet. If it is determined that it supports the loading of the first data packet and the second data packet, the operation of determining whether the second data packet has been stored locally based on the summary information of the second data packet described in step 506 can be continued.

[0108] It can be seen that by providing the third data packet, the needs of clients that do not support game sub-packet loading can be met, thereby improving the compatibility of the above data processing method with different client versions.

[0109] Based on the same inventive concept, corresponding to the method described in any of the above embodiments, the present disclosure further provides a data processing device. The above data processing device can be installed in a server. Figure 6 The functional structure of the data processing device described in the embodiment of the present disclosure is shown. Figure 6 As shown, the above-mentioned data processing device may include:

[0110] The file determination module 602 is used to determine the engine file in the game data packet;

[0111] A first packaging module 604, configured to generate a first data packet based on other files in the game data packet except the engine file;

[0112] A second packaging module 606, configured to generate a second data packet based on the engine file;

[0113] The information feedback module 608 is used to feedback the storage address of the first data packet and the summary information of the second data packet to the client in response to determining that the client requests the game.

[0114] The present disclosure also provides another data processing device. The above data processing device can be installed in a client. Figure 7 The functional structure of the data processing device described in the embodiment of the present disclosure is shown. Figure 7 As shown, the above-mentioned data processing device may include:

[0115] The information request module 702 is used to send a request instruction to the server in response to detecting the operation of the user starting the game;

[0116] The information receiving module 704 is used to receive the storage address of the first data packet and the summary information of the second data packet sent by the server;

[0117] A file matching module 706, configured to determine whether the second data packet has been stored locally based on the summary information of the second data packet; and

[0118] The loading module 708 is used to download the first data packet based on the storage address of the first data packet in response to determining that the second data packet has been stored locally, and load the downloaded first data packet and the second data packet stored locally.

[0119] It should be noted that the specific implementation methods of the above modules can refer to the above embodiments and will not be repeated here.

[0120] It can be seen from the above data processing device that after receiving the game data packet, the server can separate the game data packet into a first data packet and a second data packet, and when the client sends a request instruction for requesting game information, the server provides the storage address of the first data packet, the storage address of the second data packet and the summary information of the second data packet to the client. In this way, when the user starts the game for the first time, the client can determine whether the second data packet has been stored locally based on the summary information of the second data packet returned by the server. In the case where the client determines that the second data packet has been stored locally, the client can only download the first data packet and reuse the second data packet stored locally to complete the loading and rendering of the game. Since in this case, the client does not need to download the second data packet, the amount of data download required to start the game will be greatly reduced, and since the client does not need to wait for the download of the second data packet, the game startup time can also be greatly shortened, thereby achieving the purpose of accelerating the startup speed and saving data transmission bandwidth.

[0121] Figure 8A more specific schematic diagram of the hardware structure of an electronic device provided in this embodiment is shown, and the device may include: a processor 1010, a memory 1020, an input / output interface 1030, a communication interface 1040, and a bus 1050. The processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040 are connected to each other through the bus 1050 in the device.

[0122] The processor 1010 can be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this specification.

[0123] The memory 1020 may be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 1020 may store an operating system and other application programs. When the technical solutions provided in the embodiments of this specification are implemented by software or firmware, the relevant program codes are stored in the memory 1020 and are called and executed by the processor 1010.

[0124] The input / output interface 1030 is used to connect the input / output module to realize information input and output. The input / output module can be configured in the device as a component (not shown in the figure), or it can be externally connected to the device to provide corresponding functions. The input device may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output device may include a display, a speaker, a vibrator, an indicator light, etc.

[0125] The communication interface 1040 is used to connect a communication module (not shown) to realize communication interaction between the device and other devices. The communication module can realize communication through a wired mode (such as USB, network cable, etc.) or a wireless mode (such as mobile network, WIFI, Bluetooth, etc.).

[0126] The bus 1050 includes a path that transmits information between the various components of the device (eg, the processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040).

[0127] It should be noted that, although the above device only shows the processor 1010, the memory 1020, the input / output interface 1030, the communication interface 1040 and the bus 1050, in the specific implementation process, the device may also include other components necessary for normal operation. In addition, it can be understood by those skilled in the art that the above device may also only include the components necessary for implementing the embodiments of the present specification, and does not necessarily include all the components shown in the figure.

[0128] The electronic device of the above embodiment is used to implement the corresponding data processing method in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be described in detail here.

[0129] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, the present disclosure also provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the data processing method described in any of the above embodiments.

[0130] The above-mentioned non-transitory computer-readable storage medium can be any available medium or data storage device that can be accessed by a computer, including but not limited to magnetic storage (such as floppy disks, hard disks, magnetic tapes, magneto-optical disks (MO), etc.), optical storage (such as CD, DVD, BD, HVD, etc.), and semiconductor storage (such as ROM, EPROM, EEPROM, non-volatile memory (NAND FLASH), solid-state drive (SSD)), etc.

[0131] The computer instructions stored in the storage medium of the above embodiment are used to enable the computer to execute the data processing method described in any embodiment in the above exemplary method part, and have the beneficial effects of the corresponding method embodiment, which will not be repeated here.

[0132] Those skilled in the art will appreciate that the embodiments of the present disclosure may be implemented as a system, method, or computer program product. Therefore, the present disclosure may be specifically implemented in the following forms, namely: complete hardware, complete software (including firmware, resident software, microcode, etc.), or a combination of hardware and software, generally referred to herein as a "circuit," "module," or "system." In addition, in some embodiments, the present disclosure may also be implemented in the form of a computer program product in one or more computer-readable media, which contains computer-readable program code.

[0133] Any combination of one or more computer-readable media may be used. A computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive examples) of computer-readable storage media may include, for example: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device.

[0134] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0135] The program code embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0136] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0137] It should be understood that each box in the flowchart and / or block diagram and the combination of boxes in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer or other programmable data processing device to produce a machine, and these computer program instructions are executed by a computer or other programmable data processing device to produce a device that implements the functions / operations specified in the boxes in the flowchart and / or block diagram.

[0138] These computer program instructions may also be stored in a computer-readable medium that enables a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable medium produce a product including an instruction device that implements the functions / operations specified in the blocks in the flowchart and / or block diagram. The computer program instructions may also be loaded onto a computer, other programmable data processing device, or other device so that a series of operating steps are performed on the computer, other programmable data processing device, or other device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device can provide a process that implements the functions / operations specified in the blocks in the flowchart and / or block diagram.

[0139] In addition, although the operations of the disclosed method are described in a particular order in the accompanying drawings, this does not require or imply that the operations must be performed in this particular order, or that all the operations shown must be performed to achieve the desired results. On the contrary, the steps depicted in the flow chart can be performed in a different order. Additionally or alternatively, some steps can be omitted, multiple steps can be combined into one step, and / or one step can be decomposed into multiple steps.

[0140] The use of the verbs "comprise", "include" and their conjugations mentioned in the application documents does not exclude the presence of elements or steps other than those recorded in the application documents. The article "a" or "an" before an element does not exclude the presence of a plurality of such elements.

[0141] Although the spirit and principle of the present disclosure have been described with reference to several specific embodiments, it should be understood that the present disclosure is not limited to the disclosed specific embodiments, and the division of various aspects does not mean that the features in these aspects cannot be combined to benefit, and such division is only for the convenience of expression. The present disclosure is intended to cover various modifications and equivalent arrangements included in the spirit and scope of the attached claims. The scope of the attached claims conforms to the broadest interpretation, thereby including all such modifications and equivalent structures and functions.

Claims

1. A data processing method, executed by a server, comprising: Determine the engine files in the game data package; Generate a first data packet based on other files in the game data packet except the engine file; Generate a second data packet based on the engine file in the game data packet; In response to a request instruction from the client, the storage address of the first data packet and the summary information of the second data packet are sent to the client.

2. The method according to claim 1, wherein: Also includes: In response to a request instruction from the client, the storage address of the second data packet is sent to the client.

3. The method according to claim 1, wherein: Determining the engine file in the game data packet includes: Matching the files in the game data package with the preset files; and The file in the game data packet that matches the preset file is used as the engine file.

4. The method according to claim 3, further comprising: Scan multiple game data packages; Determining an engine file from the files included in the multiple game data packets according to the identifiers of the files included in the multiple game data packets and the number of times each file is referenced; as well as The determined engine file is recorded in the preset file.

5. The method according to claim 1, wherein: The generating of the first data packet based on other files in the data packet of the game except the engine file comprises: Separating the engine file from the game data packet; and Compile and package the remaining files in the game data packet to obtain the first data packet.

6. The method according to claim 5, wherein: Generating a second data packet based on the engine file in the game data packet comprises: Compiling and packaging the separated engine files to obtain the second data packet; and Determine summary information of the second data packet.

7. The method according to claim 1, further comprising: Compiling and packaging the files in the game data packet to obtain a third data packet; as well as In response to the request instruction, the storage address of the third data packet is fed back to the client.

8. A data processing method, executed by a client, comprising: In response to detecting the user's operation of launching the game for the first time, sending a request instruction to the server; Receive the storage address of the first data packet and the summary information of the second data packet sent by the server; determining whether the second data packet has been stored locally based on the summary information of the second data packet; In response to determining that the second data packet has been stored locally, the first data packet is downloaded based on the storage address of the first data packet, and the downloaded first data packet and the second data packet stored locally are loaded.

9. The method according to claim 8, further comprising: Receiving the storage address of the second data packet sent by the server; In response to determining that the second data packet is not stored locally, a first data packet is downloaded based on the storage address of the first data packet, a second data packet is downloaded based on the storage address of the second data packet, and the downloaded first data packet and second data packet are loaded.

10. The method according to claim 8, wherein: The determining, based on the summary information of the second data packet, whether the second data packet has been stored locally comprises: Searching for a target file whose summary information is the same as the summary information of the second data packet in the locally stored files; In response to determining that a target file having the same summary information as the summary information of the second data packet is found, determining that the second data packet has been stored locally, and using the target file as the second data packet stored locally; and In response to determining that no target file having the same summary information as the summary information of the second data packet is found, it is determined that the second data packet is not stored locally.

11. The method according to claim 10, wherein: The summary information of the second data packet is a hash value of the second data packet.

12. The method according to claim 9, wherein: The first data packet includes: game files; wherein, The first data packet and the second data packet loaded and downloaded include: Load the game file of the first data packet; During the loading process, in response to determining that the game file references an engine file, searching the first data packet for the engine file; In response to determining that the engine file is found in the first data packet, loading the engine file and performing rendering; and In response to determining that the engine file is not found in the first data packet, the engine file is searched in the second data packet, and the found engine file is loaded and rendered.

13. The method according to claim 8, wherein: The first data packet includes: game files; wherein, The loading of the downloaded first data packet and the locally stored second data packet includes: Load the game file of the first data packet; During the loading process, in response to determining that the game file references an engine file, searching the first data packet for the engine file; In response to determining that the engine file is found in the first data packet, loading the engine file and performing rendering; and In response to determining that the engine file is not found in the first data packet, the engine file is searched in the second data packet stored locally, and the found engine file is loaded and rendered.

14. The method according to claim 8, further comprising: Receive the storage address of the third data packet sent by the server; as well as In response to determining that loading of the first data packet and the second data packet is not supported based on the configuration information, downloading a third data packet based on a storage address of the third data packet, and loading the downloaded third data packet; In response to determining that loading of the first data packet and the second data packet is supported based on the configuration information, the operation of determining whether the second data packet is stored locally based on the summary information of the second data packet is performed.

15. A data processing device, comprising: A file determination module, used to determine the engine file in the game data packet; A first packaging module, used to generate a first data packet based on other files in the game data packet except the engine file; A second packaging module, used to generate a second data packet based on the engine file; as well as The information feedback module is used to feed back the storage address of the first data packet and the summary information of the second data packet to the client in response to a request instruction from the client.

16. A data processing device, comprising: An information request module, configured to send a request instruction to a server in response to detecting an operation of a user starting a game; An information receiving module, used for receiving the storage address of the first data packet and the summary information of the second data packet sent by the server; A file matching module, used for determining whether the second data packet has been stored locally based on the summary information of the second data packet; as well as The loading module is used for, in response to determining that the second data packet has been stored locally, downloading the first data packet based on the storage address of the first data packet, and loading the downloaded first data packet and the second data packet stored locally.

17. A computer device comprising: One or more processors, memory; as well as one or more programs; The one or more programs are stored in the memory and executed by the one or more processors, and the programs include instructions for executing the data processing method according to any one of claims 1 to 14.

18. A non-volatile computer-readable storage medium containing a computer program, which, when executed by one or more processors, enables the processors to execute the data processing method according to any one of claims 1 to 14.

19. A computer program product, comprising computer program instructions, which, when executed on a computer, enable the computer to execute the data processing method according to any one of claims 1 to 14.