Game resource downloading method and device

By downloading the game resource package in advance before the user installs the game and copying it during installation, the problem of users waiting for download is solved, which improves the user experience and conversion rate and avoids the waste of network traffic and advertising costs.

CN119052230APending Publication Date: 2024-11-29SHANGHAI HODE INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411305714.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-18
Publication Date
2024-11-29

AI Technical Summary

Technical Problem

Users wait for the game resources to be downloaded in a poor network, which affects the user experience and leads to waste of advertising costs and reduced user conversion rates.

Method used

Through multi-application collaboration, before the user has installed the game, the game resource package is downloaded in advance in the appropriate network environment, and the resource package is copied to the specified directory of the game file through cross-process communication during game installation.

Benefits of technology

Eliminates the need for users to download resource packages after waiting for installation, improves the conversion rate and gaming experience of users downloading and installing to game activation, and avoids the waste of mobile network traffic overhead and advertising costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119052230A_ABST
    Figure CN119052230A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a game resource downloading method which is applied to a client, and the game resource downloading method comprises the steps that in response to a reservation operation for a target game, a collaborative application obtains resource configuration information of the target game from a background server; under the condition that the network condition meets the condition, the collaborative application downloads a resource bundle of the target game according to the resource configuration information and stores the resource bundle to a public downloading directory; and when the target game is installed and started, copying the resource bundle from the public download directory. According to the technical scheme provided by the embodiment of the invention, before the game is started, the resource package required by the game can be downloaded into other collaborative applications in a proper network environment in advance, so that the game can be started without waiting for downloading of the resource package after the game is installed, and the game experience of a user is greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of data downloading technology, and in particular, to a method, apparatus, computer device, computer-readable storage medium, and computer program product for downloading game resources. Background Art

[0002] As users' requirements for game quality become higher and higher, the size of a mobile game installation package is also getting larger and larger. In particular, the resource packages of some top-notch games are even close to 30GB in size. When the game resource package is too large and the user's network is poor, it takes a long time to wait for the resource download to complete before entering the official chapter of the game, which affects the user experience. In some advertising scenarios, users attracted by game marketing at huge advertising costs may easily choose to uninstall the game because they need to download a huge resource package, resulting in a waste of advertising costs and a decrease in user conversion rate.

[0003] It should be noted that the above content is not necessarily prior art, nor is it intended to limit the scope of patent protection of this application. Summary of the invention

[0004] Embodiments of the present application provide a method, apparatus, computer device, computer-readable storage medium, and computer program product for downloading game resources to solve or alleviate one or more of the technical problems raised above.

[0005] One aspect of an embodiment of the present application provides a method for downloading game resources, which is applied to a client, and the method includes: In response to the reservation operation for the target game, the collaborative application obtains resource configuration information of the target game from the background server; When the network condition meets the conditions, the collaborative application downloads the resource package of the target game according to the resource configuration information and saves it to the public download directory; When the target game is installed and started, the resource pack is copied from the public download directory.

[0006] Optionally, the obtaining resource configuration information of the target game includes: Obtain the basic information of the target game, the resource package download link, the resource package file size and the verification code, wherein the verification code is used to verify the integrity of the resource package after the download is completed.

[0007] Optionally, the collaborative application is an application program in the client that has been connected to a collaborative SDK, and the collaborative SDK includes a cross-process file transfer protocol.

[0008] Optionally, copying the resource package from the public download directory includes: The target game reads the download information of the resource package from the collaborative application through a cross-process file transfer protocol; The target game copies the resource package from the public download directory according to the download information, and saves it to a designated directory in the target game.

[0009] Optionally, when there are multiple collaborative applications in the client, the collaborative application downloading the resource package of the target game according to the resource configuration information includes: Before downloading the resource package, each collaborative application reads the size of the downloaded file of the resource package from the public download directory; According to the size of the downloaded file, continue downloading the undownloaded part of the resource package.

[0010] Optionally, the collaborative application downloads the resource package of the target game according to the resource configuration information, further comprising: The download speed of the collaborative application when downloading the resource package of the target game is controlled by dynamic current limiting to ensure the normal operation of the collaborative application itself.

[0011] Optionally, controlling the download speed of the resource package of the target game downloaded by the collaborative application by means of dynamic current limiting includes: A plurality of different gears are set for the download speed, and when the actual download speed of the resource package of the target game reaches one of the gears, the current limiting threshold is automatically adjusted to the next higher gear; In the case where the actual download speed cannot reach the current gear, the final download speed threshold is limited to a preset ratio corresponding to the current gear.

[0012] Optionally, before responding to the reservation operation for the target game, the method further includes: Displaying the information and reservation portal of each game in the front-end interface of the collaborative application; or The active game types are determined according to the historical game data in the client, and the same type of games are recommended to the user and a reservation entrance is provided according to the active game types.

[0013] Another aspect of the embodiment of the present application provides a game resource downloading device, which is applied to a client, and the device includes: An acquisition module, configured to acquire resource configuration information of the target game from a background server in the collaborative application in response to a reservation operation for the target game; A download module, used to download the resource package of the target game according to the resource configuration information in the collaborative application when the network condition meets the conditions, and save it to a public download directory; A copy module is used to copy the resource package from the public download directory within the target game when the target game is installed and started.

[0014] Another aspect of an embodiment of the present application provides a computer device, including: at least one processor; and a memory communicatively coupled to the at least one processor; Wherein: the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method as described above.

[0015] Another aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and when the computer instructions are executed by a processor, the method described above is implemented.

[0016] Another aspect of an embodiment of the present application provides a computer program product, including a computer program, which implements the above-mentioned method when executed by a processor.

[0017] The above technical solution adopted in the embodiment of the present application may have the following advantages: Through multi-application collaboration, the resource packages required for the game are downloaded to other collaborative applications in advance under a suitable network environment before the user installs the game. After the user installs the game, the downloaded resource packages are directly copied from the collaborative application to the designated directory of the game files through cross-process communication within the game, eliminating the defect that the user needs to wait until the game is installed before downloading the resource package. The game can be started as soon as the game is installed, which greatly improves the conversion rate from user download and installation to game activation and the user's gaming experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] The accompanying drawings exemplarily illustrate the embodiments and constitute a part of the specification, and together with the text description of the specification, are used to explain the exemplary implementation of the embodiments. The embodiments shown are for illustrative purposes only and do not limit the scope of the claims. In all drawings, the same reference numerals refer to similar but not necessarily identical elements.

[0019] Figure 1 A diagram schematically shows an operating environment of a method for downloading game resources according to Embodiment 1 of the present application; Figure 2 A flowchart of a method for downloading game resources according to Embodiment 1 of the present application is schematically shown; Figure 3 A schematic diagram of a game reservation interface in the first embodiment of the present application is schematically shown; Figure 4Schematically shows Figure 2 A detailed flow chart of step S204; Figure 5 Schematically shows Figure 2 A detailed flow chart of step S202; Figure 6 A detailed flow chart of step S400 of the first embodiment of the present application is schematically shown; Figure 7 A schematic diagram of a process flow of a method for downloading game resources according to the first embodiment of the present application, in which a server of a target game and a server of a collaborative application perform pre-download preparation through communication interaction; Figure 8 A schematic diagram of a process flow of an exemplary application according to the first embodiment of the present application is shown; Fig. 9 A block diagram schematically shows a game resource downloading device according to the second embodiment of the present application; and Fig.10 The hardware architecture diagram of the computer device according to the third embodiment of the present application is schematically shown. DETAILED DESCRIPTION

[0020] In order to make the purpose, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.

[0021] It should be noted that the descriptions involving "first", "second", etc. in the embodiments of the present application are only for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by this application.

[0022] In the description of the present application, it should be understood that the numerical labels before the steps do not indicate the order in which the steps are executed, but are only used to facilitate the description of the present application and to distinguish each step, and therefore should not be understood as a limitation on the present application.

[0023] First, the following terms are explained: Game server launch: refers to the opening of a game server by various online game developers or operating platforms. To open a game, it must go through closed beta testing, and an activation code is required to enter the game. Players provide loopholes, and the official will correct them. Server launch is public beta testing, and you can enter the game without an activation code, which means that the game has been officially opened to the public.

[0024] Game resource package: refers to the pictures, audio, video and other related resources required for the game. The file size ranges from a few GB to dozens of GB.

[0025] Game installation package: refers to the installation file of the game, such as the apk file of an Android device. The file size is much smaller than the resource package, generally less than 1GB. Because the game installation package itself is small, this application is mainly aimed at pre-downloading game resource packages with larger files.

[0026] Pre-download of game resources: refers to downloading the resource packages required for the game to the local computer before the game is launched.

[0027] SDK (Software Development Kit): Generally refers to a collection of development tools used by software engineers to build application software for specific software packages, software frameworks, hardware platforms, operating systems, etc.

[0028] Collaborative application: an application (APP) that has been connected to the collaborative SDK, which includes functions such as reading pre-downloaded resource configuration information, background silent download of resource packages, and cross-process file transfer protocol. Specifically, collaborative applications mainly refer to market applications or game community applications used for game releases that support game reservations and downloads.

[0029] MD5 (Message-Digest Algorithm 5): A widely used cryptographic hash function that can generate a 128-bit (16-byte) hash value to ensure the integrity and consistency of information transmission. MD5 is developed from MD2, MD3 and MD4. Its function is to "compress" large amounts of information into a confidential format before signing a private key with a digital signature, that is, to transform a byte string of any length into a large integer of a certain length.

[0030] Secondly, in order to facilitate those skilled in the art to understand the technical solutions provided in the embodiments of the present application, the relevant technologies are described below: Whether you need to download the resource package before entering the game after installation, or experience the novice guide after installation and then "download while playing", when the game resource package is too large and the user's network is poor, you need to wait for the resource download to be completed before entering the official chapter of the game. In some advertising scenarios, users attracted by huge advertising costs may easily choose to uninstall the game because they need to download a huge resource package, resulting in a waste of advertising costs and a decrease in user conversion rate. In addition, when the user is currently in a mobile network environment, downloading the game resource package will also generate a very large network traffic overhead.

[0031] To this end, the embodiment of the present application provides a technical solution for downloading game resources. In this technical solution, through the collaboration of multiple applications, the resource packages required for the game are downloaded to other collaborative applications in advance under a suitable network environment before the user installs the game. After the user installs the game, the downloaded resource packages are directly copied from the collaborative application to the designated directory of the game file through cross-process communication in the game. See below for details.

[0032] Finally, for ease of understanding, an exemplary operating environment is provided below.

[0033] like Figure 1 As shown, the operating environment diagram may include a service platform 2 , one or more clients 4 , and a network 6 .

[0034] The service platform 2 and one or more clients 4 may be coupled via a network 6 to achieve information transmission interaction.

[0035] The service platform 2, the client 4, and the network 6 are respectively described in detail below.

[0036] The service platform 2 may be composed of a single or multiple computing devices. The one or more computing devices may include virtualized computing instances. The virtualized computing instances may include virtual machines, such as simulations of computer systems, operating systems, servers, and the like. The computing device may load a virtual machine based on a virtual image and / or other data defining specific software (e.g., operating system, dedicated application, server) for simulation. As the demand for different types of processing services changes, different virtual machines may be loaded and / or terminated on one or more computing devices. A hypervisor may be implemented to manage the use of different virtual machines on the same computing device. The service platform 2 may run one or more services or software applications that enable execution of the methods described herein. The service platform 2 may also provide other services or software applications, which may include non-virtual environments and virtual environments. In some embodiments, these services may be provided as web-based services or cloud services, such as provided to users of the client 4 under a software as a service (SaaS) model.

[0037] The service platform 2 may include one or more components that implement the functions performed by the service platform 2. These components may include software components, hardware components, or a combination thereof that can be executed by one or more processors. In some embodiments, the service platform 2 may provide services such as storage, reading, writing, querying, and deletion, such as sending resource configuration information of the target game to the client 4, providing the client 4 with a resource package download service for the target game, etc. In other embodiments, the user operating the client 4 may sequentially use one or more client applications to interact with the service platform 2 to utilize the services provided by these components.

[0038] The client 4 may include various types of computer devices, such as portable handheld devices, general-purpose computers (such as personal computers and laptops), workstation computers, wearable devices, smart screen devices, self-service terminal devices, service robots, game systems, thin clients, various messaging devices, sensors or other electronic devices, etc. These computer devices may run various types and versions of software applications and operating systems, such as MICROSOFT Windows, APPLE iOS, UNIX-like operating systems, Linux or Linux-like operating systems (such as GOOGLE ChromeOS); or include various mobile operating systems, such as MICROSOFT Windows, Mobile OS, iOS, Windows Phone, Android. Portable handheld devices may include cellular phones, smart phones, tablet computers, personal digital assistants, etc. Wearable devices may include head-mounted displays (such as smart glasses), etc. Game systems may include various handheld game devices, Internet-enabled game devices, etc. Client devices are capable of executing a variety of different applications, such as various Internet-related applications, communication applications (such as email applications), short message service (SMS) applications, and may use various communication protocols.

[0039] Based on the operating system described above, the client 4 may also be installed with one or more application programs, and each application program needs to use corresponding system resources when running.

[0040] The client 4 may include an input / output interface. The input interface may include a touch pad, a touch screen, a mouse, a keyboard, or other sensing elements. The input interface may be configured to receive user instructions, which may enable the client 4 to perform various operations. The output interface is used to output information to the user, such as display information.

[0041] The service platform 2 and the client 4 may use a network 6 as a transmission medium. The network 6 includes various network devices, such as routers, switches, multiplexers, hubs, modems, bridges, repeaters, firewalls, proxy devices, and / or the like. The network may include physical links, such as coaxial cable links, twisted pair cable links, optical fiber links, combinations thereof, or wireless links, such as cellular links, satellite links, Wi-Fi links, and the like.

[0042] It should be noted that the above devices are exemplary, and the number and type of devices are adjustable in different scenarios or according to different needs.

[0043] The following describes the technical solution of the present application through multiple embodiments, taking the client as the execution subject. It should be noted that these embodiments can be implemented in a variety of different forms and should not be interpreted as being limited to the embodiments described here.

[0044] Embodiment 1 Figure 2 The flowchart of the method for downloading game resources according to the first embodiment of the present application is schematically shown.

[0045] like Figure 2 The method for downloading game resources may include steps S200 to S204, wherein: Step S200, in response to a reservation operation for a target game, the collaborative application obtains resource configuration information of the target game from a background server.

[0046] The target game is a game to be launched, that is, a game that has prepared installation packages and resource packages but has not yet been officially launched. For such games, a reservation portal can be provided to users in the collaborative application, and in response to the user's reservation operation, the collaborative application obtains the resource configuration information of the target game from the background server, so as to download the resource package of the target game in advance.

[0047] In this embodiment, not all users who start the collaborative application need to pre-download the game resource package. The following two methods can be used to provide users with reservation portals for each game to be launched: In the first optional embodiment, the information and reservation portals of each game are displayed in the front-end interface of the collaborative application, and users can select the game they are interested in and make reservations based on the game information. For example, assuming that the front-end interface of collaborative application A displays the information and reservation portal of game B to be launched, as shown in FIG. Figure 3 If the user is interested in game B, he can make a reservation for game B through the reservation portal, and then collaborative application A will obtain the resource configuration information of game B and automatically download the resource package of game B in advance.

[0048] In a second optional embodiment, the active game type is determined based on the historical game data in the client, and the same type of games are recommended to the user and a reservation entry is provided based on the active game type. For example, for a certain type of game, if the user has played it for 5 days or more in the past 7 days, it can be regarded as an active game type. Assuming that a certain game platform currently has thousands of different types of games online, if the active game type that the user has played in the past is consistent with the type of the target game, the target game is recommended to the user and a reservation entry is provided.

[0049] In another optional embodiment, for games of the same type, the user may not need to make a reservation operation, but after determining that the type of the target game is consistent with the type of the active game, the resource configuration information of the target game is directly obtained for automatic download. For example, if the game C to be launched is an action role playing game (ARPG), and the user has recently been active in playing ARPG games on the game platform, the game application will obtain the resource configuration information of game C during the user's game on the game platform to silently download the resource package of game C in the game background.

[0050] It should be noted that not every application installed on the client has collaborative download capabilities. For an application to have collaborative download capabilities, it needs to complete the access to the corresponding collaborative SDK. The collaborative SDK includes functions such as reading pre-download resource configuration information, background silent download of resource packages, and cross-process file transfer protocol. After the application accesses the collaborative download SDK, each time it is started or receives a platform push message, it will actively read the resource configuration information sent by the background server corresponding to the application to determine whether there is a resource package that needs to be downloaded. The resource configuration information includes information such as the basic information of the target game, the resource package download link, the resource package file size, and the verification code. The verification code is an MD5 verification code, which is used to verify the integrity of the resource package after the download is complete.

[0051] For example, the APP corresponding to the platform to which the target game belongs, various application store APPs, and all other game APPs under the platform can be connected to the collaborative SDK and have the ability to collaboratively download the resource package of the target game.

[0052] Step S202: When the network condition meets the requirements, the collaborative application downloads the resource package of the target game according to the resource configuration information and saves it to the public download directory.

[0053] In this embodiment, the network condition meeting the condition may mean that the current network environment is a wireless network environment, such as a Wi-Fi network environment. When the user makes a reservation operation for the target game through the reservation portal, the user may further select a network condition for downloading, such as selecting the option of "start downloading under Wi-Fi network".

[0054] After the collaborative application obtains the resource configuration information, it first determines whether the current network environment meets the conditions, such as whether it is in a Wi-Fi network environment. If the client is currently in a Wi-Fi network, the collaborative application will start the download service according to the resource configuration information, and start silently downloading the resource package file corresponding to the download link in the background, and save it to the system public download directory (Download directory). After the download is completed, the verification code is compared. If the verification code is consistent, the download is successful.

[0055] Step S204: when the target game is installed and started, copy the resource package from the public download directory.

[0056] When the target game is officially launched, if the user downloads the installation package of the target game and completes the installation, the target game can communicate with the collaborative application through the inter-process file transfer protocol to obtain the downloaded resource package and directly copy it for use. In other words, the user can quickly enter the game without downloading any game resources in the target game.

[0057] Further reading Figure 4 , is a detailed flow chart of the above step S204. In this embodiment, the step S204 specifically includes: Step S2040: reading the download information of the resource package from the collaborative application through an inter-process file transfer protocol.

[0058] The cross-process file transfer of this embodiment is implemented by the cross-process communication capability based on the content provider (ContentProvider). First, define the unique identifier of ContentProvider, then register and declare ContentProvider in Mainfest, and set exported to true, indicating that the component can be called and accessed by other applications. Among them, Mainfest is a kind of software, which belongs to the AndroidManifest.xml file. It puts forward important information in the simple Android system application, and it can run the code of any application. Then register the cross-application query permission and define the resource package query uniform resource identifier (Uniform Resource Identifier, URI).

[0059] When the target game is installed and started, the download information of the resource package is read from the collaborative application through the URI. Specifically, the designated URI is passed in the target game through ContentProvider to read the resource package information downloaded by the collaborative application.

[0060] Step S2042: the target game copies the resource package from the public download directory according to the download information, and saves it to a designated directory in the target game.

[0061] It is worth noting that the collaborative application in this embodiment can be one or more. If there are multiple collaborative applications in the client, the multiple collaborative applications can jointly complete the pre-download of the resource package of the target game. Figure 5 , is a detailed flow chart of the above step S202 when there are multiple collaborative applications in the client. Figure 5 In the above step S202, the collaborative application downloads the resource package of the target game according to the resource configuration information, specifically including: S300: Before downloading the resource package, each of the coordinated applications reads the size of the downloaded file of the resource package from the public download directory.

[0062] S302: Continue downloading the undownloaded portion of the resource package according to the size of the downloaded file.

[0063] When multiple collaborative applications are installed in the client at the same time, each collaborative application will first read whether there are downloaded or partially downloaded resource packages in the public download directory (Download directory) before starting to download the resource package of the target game. If the resource package has been fully downloaded, it will not be downloaded again; if the resource package is only partially downloaded, the current downloaded file size is read, that is, which byte has been downloaded, and then continue to download from that byte until the download is successful. For example, assuming that the complete size of the resource package is 9985524334Byte, when the first collaborative application downloads to 500000000Byte, the user exits the first collaborative application. When the user starts the second collaborative application, the second collaborative application will first read the file size of the locally downloaded resource package, and then continue to download from 5000000001Byte.

[0064] In an optional embodiment, in order to ensure the normal operation of the collaborative application itself while downloading the resource package, that is, to ensure that the network usage of the collaborative application itself is not affected, the above step S202 may also include: S400, controlling the download speed of the collaborative application when downloading the resource package of the target game by dynamic current limiting. Figure 6 , is a detailed flow chart of step S400. Figure 6 In the step S400, the step S400 specifically includes: Step S4000, setting a plurality of different gears for the download speed.

[0065] Step S4002, when the actual download speed of the resource package of the target game reaches one of the gears, the current limiting threshold is automatically adjusted to the next higher gear.

[0066] Step S4004: When the actual download speed cannot reach the current gear, the final download speed threshold is limited to a preset ratio corresponding to the current gear.

[0067] In this embodiment, a dynamic current limiting method is adopted for the resource package downloader within the collaborative download SDK to ensure that not all bandwidth is used for downloading the resource package. Specifically, the download speed is divided into different gears such as 1Mb / s, 2Mb / s, and 3Mb / s. When the actual download speed of the resource package of the target game reaches a certain gear, the current limiting threshold is automatically adjusted to the next higher gear. When it is adjusted to a certain gear, the actual download speed cannot reach the download speed of that gear, then the final threshold of the download speed is limited to 70% of that gear.

[0068] For example, if the downloading threshold is set to 1Mb / s at the beginning, and the actual download speed reaches 1.2Mb / s, the downloading threshold is raised to 2Mb / s. If the actual download speed is greater than 2Mb / s, the capacity is further expanded to 3Mb / s, and so on. When the downloading threshold is raised to 15Mb / s, the actual download speed does not reach 15Mb / s, and the final downloading threshold is 15Mb / s * 70% = 10.5Mb / s. At this time, if a network request occurs in the collaborative application and the bandwidth is occupied, the actual download speed drops to 5Mb / s (less than the final threshold of 10.5Mb / s), and the downloading threshold is adjusted to 5Mb / s * 70% = 3.5Mb / s. Then repeat the threshold raising logic. If the actual download speed is greater than 3Mb / s, the downloading threshold is raised to 4Mb / s, and so on. Assuming that the actual download speed is less than 6Mb / s when it is finally increased to 6Mb / s, the final download threshold is set to 6Mb / s * 70% = 4.2Mb / s.

[0069] like Figure 7As shown, it is a flowchart of the method for downloading game resources proposed in the first embodiment of the present application. Before the above step S200, the server of the target game and the server of the collaborative application perform pre-download preparation through communication interaction. It can be understood that this flowchart is not used to limit the order of executing steps. Some steps in the flowchart can also be added or deleted as needed. Figure 7 Included: S500: The server of the target game constructs the resource package.

[0070] Specifically, when the target game development test is completed and before the service is about to be launched, the audio, video, picture, Bundle and other files required by the target game are stripped from the game installation package, encrypted and built into a resource package. The original game installation package only retains the shell project required for installation. The so-called shell project refers to an empty shell installation package that has stripped all game resources and only retains the resource copy logic code and configuration files that meet the installation requirements, so the file size can be controlled at a few hundred Mb or even smaller. At this time, the installation package can be installed normally, but if the resource package is not copied, the game cannot be played directly. For example, the complete game installation package is 10Gb, and the complete installation package is split into a 9.8Gb resource package (zip file) and a 0.2Gb installation package (apk file) by stripping.

[0071] S502, the server of the target game submits the installation package to the server of the collaborative application for review.

[0072] The server of the target game submits the game installation package (for example, 0.2Gb) to the server of the collaborative application for review. After the target game is officially launched, the server of the target game will also release the installation package to the market or official channels for users to download and install.

[0073] S504, the server of the collaborative application enables the reservation function of the target game after passing the review.

[0074] For example, the information and reservation entrance of the target game are displayed on the front-end page of the collaborative application.

[0075] S506: The server of the target game uploads the resource package to the server of the collaborative application.

[0076] The server of the target game uploads the resource package (eg, 9.8 Gb) to the server of the collaborative application having collaborative downloading capability.

[0077] S508: After verifying that the resource package is available, the collaborative application server generates resource configuration information of the target game.

[0078] The resource configuration information includes basic information of the target game, a resource package download link, a resource package file size, a verification code, and the like.

[0079] S510, after receiving the reservation operation of the user for the target game, the server of the collaborative application sends the resource configuration information when the collaborative application is started.

[0080] If the user makes a reservation for the target game through the reservation portal, the server of the collaborative application will send the resource configuration information when the collaborative application is started, so that the collaborative application can download the resource package of the target game in advance.

[0081] In order to make this application easier to understand, the following Figure 8 An exemplary application is provided.

[0082] In this exemplary application, the implementation of the game resource downloading method includes the following steps: (1) Before the target game is launched, the server of the target game submits a review of the target game to the server of the collaborative application.

[0083] (2) The collaborative application server enables the reservation function of the target game after passing the review.

[0084] (3) The server of the target game uploads the resource package to the server of the collaborative application.

[0085] (4) After verifying that the resource package is available, the collaborative application server generates resource configuration information for the target game.

[0086] (5) The client of the collaborative application receives a reservation operation from the user for the target game.

[0087] In addition, users can further select network conditions for downloading, such as selecting the "Start downloading under Wi-Fi network" option.

[0088] (6) Whenever the client of the collaborative application is started, determine whether the current network environment is a Wi-Fi network environment.

[0089] (7) If it is a Wi-Fi network environment, the client of the collaborative application obtains the resource configuration information of the target game from the server.

[0090] It is worth noting that here, you can first determine the network environment and then obtain the resource configuration information, or you can first obtain the resource configuration information and then determine the network environment to determine whether to download. The order does not affect the implementation of the solution of this embodiment.

[0091] (8) After successful acquisition, the client of the collaborative application starts to pre-download the resource package of the target game in the background.

[0092] (9) After the target game is officially launched and installed, the client of the target game obtains the resource package of the target game from the client of the collaborative application.

[0093] (10) The client of the target game directly copies the resource package and decompresses it, thereby entering the target game.

[0094] The game resource downloading method provided in this embodiment uses a multi-application collaboration method to download the resource packages required for the game to other collaborative applications in advance in a Wi-Fi network environment before the user installs the game. After the user installs the game, the downloaded resource packages are directly copied from the collaborative application to the designated directory of the game files through cross-process communication within the game, eliminating the defect that the user needs to wait until the game is installed before downloading the resource package. The game can be started as soon as the game is installed, greatly improving the conversion rate from user download and installation to game activation and the user's gaming experience. In addition, since the resource package is downloaded by the collaborative application using idle bandwidth in a Wi-Fi network environment, it will not consume the user's mobile network traffic overhead, nor will it affect the normal operation of the collaborative application's own functions.

[0095] Embodiment 2 Fig. 9 The block diagram of the game resource downloading device according to the second embodiment of the present application is schematically shown. The device can be divided into one or more program modules, one or more program modules are stored in a storage medium, and are executed by one or more processors to complete the embodiment of the present application. The program module referred to in the embodiment of the present application refers to a series of computer program instruction segments that can complete specific functions. The following description will specifically introduce the functions of each program module in this embodiment. Fig. 9 As shown, the device 60 may include: an acquisition module 600, a download module 602, and a copy module 604, wherein: An acquisition module 600 is used to acquire resource configuration information of the target game from a background server in the collaborative application in response to a reservation operation for the target game; An estimation module 602 is used to download the resource package of the target game according to the resource configuration information in the collaborative application and save it to a public download directory when the network condition meets the conditions; The copy module 604 is used to copy the resource package from the public download directory within the target game when the target game is installed and started.

[0096] The specific implementation process of the above module functions can be found in the description of the above embodiment 1, which will not be repeated here.

[0097] Embodiment 3 Fig.10 The schematic diagram of the hardware architecture of a computer device 10000 suitable for implementing a method for downloading game resources according to the third embodiment of the present application is shown. In some embodiments, the computer device 10000 may be a terminal device such as a smart phone, a wearable device, a tablet computer, a personal computer, a vehicle-mounted terminal, a game console, a virtual device, a workbench, a digital assistant, a set-top box, a robot, etc. In other embodiments, the computer device 10000 may be a rack server, a blade server, a tower server, or a cabinet server (including an independent server, or a server cluster composed of multiple servers), etc. Fig.10 As shown, the computer device 10000 includes but is not limited to: a memory 10010, a processor 10020, and a network interface 10030 that can communicate with each other through a system bus. Among them: The memory 10010 includes at least one type of computer-readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (such as SD or DX memory), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the memory 10010 can be an internal storage module of the computer device 10000, such as a hard disk or memory of the computer device 10000. In other embodiments, the memory 10010 can also be an external storage device of the computer device 10000, such as a plug-in hard disk equipped on the computer device 10000, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. Of course, the memory 10010 can also include both the internal storage module of the computer device 10000 and its external storage device. In this embodiment, the memory 10010 is generally used to store the operating system and various application software installed in the computer device 10000, such as program code of the game resource download method, etc. In addition, the memory 10010 can also be used to temporarily store various data that have been output or will be output.

[0098] In some embodiments, the processor 10020 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other chips. The processor 10020 is generally used to control the overall operation of the computer device 10000, such as performing control and processing related to data interaction or communication with the computer device 10000. In this embodiment, the processor 10020 is used to run the program code stored in the memory 10010 or process data.

[0099] The network interface 10030 may include a wireless network interface or a wired network interface, and the network interface 10030 is generally used to establish a communication link between the computer device 10000 and other computer devices. For example, the network interface 10030 is used to connect the computer device 10000 to an external terminal through a network, and to establish a data transmission channel and a communication link between the computer device 10000 and the external terminal. The network may be a wireless or wired network such as an intranet, the Internet, the Global System of Mobile communication (GSM), Wideband Code Division Multiple Access (WCDMA), 4G network, 5G network, Bluetooth, Wi-Fi, etc.

[0100] It should be pointed out that Fig.10 Only a computer device having components 10010 - 10030 is shown, but it should be understood that implementing all of the components shown is not a requirement, and more or fewer components may alternatively be implemented.

[0101] In this embodiment, the game resource downloading method stored in the memory 10010 can also be divided into one or more program modules and executed by one or more processors (such as processor 10020) to complete the embodiment of the present application.

[0102] Embodiment 4 An embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, wherein when the computer program is executed by a processor, the steps of the game resource downloading method in the embodiment are implemented.

[0103] In this embodiment, the computer-readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, etc. In some embodiments, the computer-readable storage medium can be an internal storage unit of a computer device, such as a hard disk or memory of the computer device. In other embodiments, the computer-readable storage medium can also be an external storage device of a computer device, such as a plug-in hard disk equipped on the computer device, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. Of course, the computer-readable storage medium can also include both the internal storage unit of the computer device and its external storage device. In this embodiment, the computer-readable storage medium is generally used to store an operating system and various application software installed on the computer device, such as the program code of the game resource download method in the embodiment. In addition, the computer-readable storage medium can also be used to temporarily store various types of data that have been output or are to be output.

[0104] Embodiment 5 An embodiment of the present application also provides a computer program product, including a computer program, which implements the method in the above embodiment when executed by a processor.

[0105] Obviously, those skilled in the art should understand that the modules or steps of the above-mentioned embodiments of the present application can be implemented by general-purpose computer devices, they can be concentrated on a single computer device, or distributed on a network composed of multiple computer devices, optionally, they can be implemented by executable program codes of computer devices, so that they can be stored in a storage device and executed by the computer device, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. In this way, the embodiments of the present application are not limited to any specific combination of hardware and software.

[0106] It should be noted that the above are only preferred embodiments of the present application, and the patent protection scope of the present application is not limited thereto. Any equivalent structure or equivalent process transformation made using the contents of the specification and drawings of the present application, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A method for downloading game resources, applied to a client, It is characterized in that The method comprises: In response to the reservation operation for the target game, the collaborative application obtains resource configuration information of the target game from the background server; When the network condition meets the conditions, the collaborative application downloads the resource package of the target game according to the resource configuration information and saves it to the public download directory; When the target game is installed and started, the resource pack is copied from the public download directory.

2. The method according to claim 1, It is characterized in that The step of obtaining the resource configuration information of the target game includes: Obtain the basic information of the target game, the resource package download link, the resource package file size and the verification code, wherein the verification code is used to verify the integrity of the resource package after the download is completed.

3. The method according to claim 1, It is characterized in that The collaborative application is an application program in the client that has been connected to the collaborative SDK, and the collaborative SDK includes a cross-process file transfer protocol.

4. The method according to claim 1 or 3, It is characterized in that The copying of the resource package from the public download directory comprises: The target game reads the download information of the resource package from the collaborative application through a cross-process file transfer protocol; The target game copies the resource package from the public download directory according to the download information, and saves it to a designated directory in the target game.

5. The method according to claim 1, It is characterized in that In the case where there are multiple coordinated applications in the client, the coordinated application downloads the resource package of the target game according to the resource configuration information, including: Before downloading the resource package, each collaborative application reads the size of the downloaded file of the resource package from the public download directory; According to the size of the downloaded file, continue downloading the undownloaded part of the resource package.

6. The method according to claim 1, It is characterized in that The collaborative application downloads the resource package of the target game according to the resource configuration information, and further includes: The download speed of the collaborative application when downloading the resource package of the target game is controlled by dynamic current limiting to ensure the normal operation of the collaborative application itself.

7. The method according to claim 6, It is characterized in that The controlling the download speed of the resource package of the target game downloaded by the collaborative application by means of dynamic current limiting includes: A plurality of different gears are set for the download speed, and when the actual download speed of the resource package of the target game reaches one of the gears, the current limiting threshold is automatically adjusted to the next higher gear; In the case where the actual download speed cannot reach the current gear, the final download speed threshold is limited to a preset ratio corresponding to the current gear.

8. The method according to claim 1, It is characterized in that Before responding to the reservation operation for the target game, the method further includes: Displaying the information and reservation portal of each game in the front-end interface of the collaborative application; or The active game types are determined according to the historical game data in the client, and the same type of games are recommended to the user and a reservation entrance is provided according to the active game types.

9. A game resource downloading device, applied to a client, It is characterized in that The device comprises: An acquisition module, configured to acquire resource configuration information of the target game from a background server in the collaborative application in response to a reservation operation for the target game; A download module, used to download the resource package of the target game according to the resource configuration information in the collaborative application when the network condition meets the conditions, and save it to a public download directory; A copy module is used to copy the resource package from the public download directory within the target game when the target game is installed and started.

10. A computer device, It is characterized in that include: at least one processor; and a memory communicatively connected to the at least one processor; wherein: The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 8.

11. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores computer instructions, and when the computer instructions are executed by a processor, the method according to any one of claims 1 to 8 is implemented.

12. A computer program product comprising a computer program, It is characterized in that When the computer program is executed by a processor, the steps of the method according to claims 1 to 8 are implemented.