WO2022105435A1 - 游戏资源数据的处理方法及装置 - Google Patents

游戏资源数据的处理方法及装置 Download PDF

Info

Publication number
WO2022105435A1
WO2022105435A1 PCT/CN2021/121091 CN2021121091W WO2022105435A1 WO 2022105435 A1 WO2022105435 A1 WO 2022105435A1 CN 2021121091 W CN2021121091 W CN 2021121091W WO 2022105435 A1 WO2022105435 A1 WO 2022105435A1
Authority
WO
WIPO (PCT)
Prior art keywords
resource data
game
download
subpackage
data
Prior art date
Application number
PCT/CN2021/121091
Other languages
English (en)
French (fr)
Inventor
龚鹏
王昱程
刘北辰
Original Assignee
完美世界(重庆)互动科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 完美世界(重庆)互动科技有限公司 filed Critical 完美世界(重庆)互动科技有限公司
Publication of WO2022105435A1 publication Critical patent/WO2022105435A1/zh

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/60Generating or modifying game content before or while executing the game program, e.g. authoring tools specially adapted for game development or game-integrated level editor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation

Definitions

  • the present invention relates to the technical field of data processing, in particular to a method and device for processing game resource data.
  • the game installation package is a collection of self-compressible files, which includes all game resource data required for game installation, and the game can be experienced by starting the game program after obtaining the game installation package.
  • all the game resource data of the game installation package takes up a lot of space. After many players pay attention to the game through advertisements or other means, it takes a long time to download the game package, and some players are even affected by the space occupied by the package. Abandon the download of the game resource pack directly.
  • the game installation package does not contain or contains a small amount of game resource data required for game installation.
  • start the game program before starting to download the game resource data.
  • the player still needs to spend time waiting for the resource to be downloaded, which affects the processing efficiency of the game resource data, and makes the player's game experience poor during the resource download.
  • the present invention provides a method and device for processing game resource data, the main purpose of which is to solve the problem that in the prior art, players need to spend time waiting for resource download, which affects the processing efficiency of game resource data, and makes the player's game during resource download. Bad experience.
  • a method for processing game resource data including: acquiring installation package data of a game program, where the installation package data includes basic resource data and a compressed package list carrying a coding sequence, the The compressed package list records the download sequence of the sub-package resource data, the basic resource data and the sub-package resource data form the game resource data of the game program; in response to the running instruction of the game program, the basic resource data is loaded, and start the download instruction of the subpackaged resource data; and based on the download instruction of the subpackaged resource data, sequentially download the subpackaged resource data in the compressed package list according to the encoding sequence.
  • a device for processing game resource data comprising: a first obtaining unit configured to obtain installation package data of a game program, wherein the installation package data includes basic resource data and a code carrying a code.
  • a sequential compressed package list the compressed package list records the download sequence of the sub-package resource data, the basic resource data and the sub-package resource data form the game resource data of the game program;
  • the running unit is used to respond to the The running instruction of the game program loads the basic resource data and starts the download instruction of the subpackaged resource data; the download unit is used for downloading the compressed package in sequence according to the encoding sequence based on the download instruction of the subpackaged resource data Subcontracted resource data in the list.
  • a computer device comprising a memory, a processor, and a computer program stored on the memory, the processor implementing the steps of the method in any of the foregoing embodiments when the processor executes the computer program .
  • a computer-readable medium is provided on which a computer program is stored, and when the computer program is executed by a processor, implements the steps of the method described in any of the foregoing embodiments.
  • a computer program product comprising a computer program, which implements the steps of the method described in any of the above embodiments when the computer program is executed by a processor.
  • a method and device for processing game resource data according to some embodiments of the present invention are different from the existing methods that require time to wait for the game resource data to be downloaded after the game resource data is downloaded.
  • the present invention obtains the installation package data of the game program, the game installation package data includes the basic resource data and the compressed package list carrying the coding sequence, and the size of the basic resources can be increased or decreased at will,
  • the installation package data of different sizes is formed to improve the flexibility of game resource allocation. Then, after the game program runs, by loading the basic resource data and starting the download command of the subpackage resource data, the basic resource data retains the resource data in the early stage of the game.
  • the sub-package resource data forms a compressed package list according to the encoding order, making When loading basic resource data, the game preferentially downloads the compressed package with the highest coding, forming an ecological cycle of game resources, which can reduce the space occupation of game resource data and improve the processing efficiency of game resource data.
  • FIG. 1 schematically shows a schematic flowchart of a method for processing game resource data according to an embodiment of the present invention
  • FIG. 2 schematically shows a schematic flowchart of another method for processing game resource data according to an embodiment of the present invention
  • FIG. 3 schematically shows a schematic structural diagram of game resource data according to an embodiment of the present invention
  • FIG. 4 schematically shows a flowchart of a process for downloading subpackage resource data according to an embodiment of the present invention
  • FIG. 5 schematically shows a flowchart of a process of switching resource data of subcontracting according to an embodiment of the present invention
  • FIG. 6 schematically shows a flowchart of a process for processing game resource data according to an embodiment of the present invention
  • FIG. 7 schematically shows a schematic structural diagram of an apparatus for processing game resource data according to an embodiment of the present invention.
  • FIG. 8 schematically shows a schematic structural diagram of another apparatus for processing game resource data according to an embodiment of the present invention.
  • FIG. 9 schematically shows a schematic structural diagram of another apparatus for processing game resource data according to an embodiment of the present invention.
  • FIG. 10 schematically shows a schematic diagram of an apparatus structure of a computer device according to an embodiment of the present invention.
  • Figure 11 schematically shows a block diagram of a computer device for implementing the method according to the invention.
  • Figure 12 schematically shows a block diagram of a computer program product implementing the method according to the invention.
  • a method for processing game resource data is provided, as shown in FIG.
  • the installation package data of the game program is acquired.
  • the installation package data of the game program may be data that needs to be loaded during the running of the game, and can usually be downloaded from an application platform or an application website, and the installation package data includes basic resource data and a compressed file with a coding sequence.
  • Package list, the compression table list records the download sequence of subpackage resource data.
  • the basic resource data and subpackage resource data are the resource data that needs to be used in the game process. The two form the game resource data.
  • the number of basic resources involves the early stage. Game resources, for example, the user logs in to the game interface, registers the game account, enters the game homepage and other resources, and the subcontracted resource data is the resource data of the game resource data except the basic resource data.
  • each game character will perform various operations such as game tasks according to the game guide process, so as to experience different functional gameplay in the game, because the resource data of each functional gameplay in the game will take up a lot of Space, in the early stage of downloading the installation package of the game program, players do not need to experience all the functional gameplay, or some gameplay cannot be experienced in the initial stage.
  • the resource data related to the functional gameplay in the early stage of the game is put into the game program as the basic resource data.
  • Installation package data put the resource data of other functional gameplay as subpackage resource data into the compressed package list, which can be downloaded later during the running of the game program, saving the space occupied by the installation package data, and does not affect the player's game during the game resource download period. experience.
  • the size of the basic resource data in the game resource data can be adjusted according to the actual application scenario requirements.
  • the data capacity corresponding to the basic resource data in the game resource data can be appropriately increased, and conversely, the data capacity corresponding to the basic resource data in the game resource data can be appropriately reduced.
  • the download order of the subpackaged resource data in the process of putting the subpackaged resource data into the compressed package list, in order to improve the download efficiency, can be determined according to the loading order of the subpackaged resource data corresponding to the gameplay function, here
  • the sub-package resource data can be compressed into multiple compressed packages in advance, and a compressed package list with coding order can be formed, so that in the process of running the game program, the sub-package resource data with higher loading order priority will be downloaded first. .
  • the execution body may be a processing device or device for game resource data, which may be configured on the client of the game application, and the client may obtain the installation package data of the game program from the application platform or the game platform, and the installation package data includes the early stage
  • the basic resource data involved in the gameplay, and the scattered sub-package resource data in the later stage of the game is compressed into multiple compressed packages to form a compressed package list, which reduces the space occupation of the resource data that needs to be loaded, and solves the problem of slow download speed caused by multiple files. Let players experience the basic resource data in the early stage of the game to the maximum extent.
  • the basic resource data can support the gameplay functions in the early stage of the game
  • the subcontracted resource data involves other gameplay functions.
  • players can experience the gameplay in the early stage of the game, and experience the gameplay functions in the early stage of the game.
  • starting the download of subcontracted resource data can supplement the resource data of other gameplays with the fastest download speed without affecting the player's experience of the previous gameplay functions, ensuring the processing efficiency of game resource data.
  • the downloading instructions for loading the basic resource data and starting the subcontracting resource data are executed at the same time. Since a lot of operation behaviors are involved in the game process, each operation behavior will involve different resource data. Usually, In this case, the basic resource data can satisfy the player's operation behavior in the early stage of downloading the game. For the operation behavior involving subcontracted resource data, it cannot be determined that the corresponding subcontracted resource data has been downloaded. After starting the download command of the subcontracted resource data , monitor the download status of the subpackage resource data, load the corresponding subpackage resource data according to the download status of the subpackage resource data, or adjust the download priority order of the subpackage resource data.
  • the encoding sequence of the subpackaged resource data may be the download sequence of the subpackaged resource data, taking into account the triggering sequence of the game scene and/or the loading sequence of the resource objects during the running of the game, the preferentially triggered game scene and/or Or priority loaded resource objects should be downloaded first.
  • the download status of the sub-package resource data determines the gameplay functions that players can experience.
  • the downloaded sub-package resource data it can be decompressed to the local directory, so that when triggering the game resources of the corresponding scene, the local directory can be used.
  • the basic resource data allows the player to enter the game scene A1 and A2
  • the downloaded subcontract resource data allows the player to enter the game scene B2 and B3, the game scene A3 has not been downloaded yet, if the player triggers the game scene A3 in the game scene A2
  • the client will intercept the entry of the game scene A3, and let the player stay in the current game scene A2 or jump to the game scene A1.
  • the download priority order can also be adjusted for the game scene A3 to speed up the player's entry into the game scene A3.
  • a reminder may be sent to the player to inform the player that the game scene A3 has been downloaded.
  • the game scene jumps from A1 to A3, it is determined that the map resource of the A3 scene has not been loaded, that is, the scene resource of the A3 scene has not been loaded.
  • the confirmation box from the scene to the A3 scene pops up, and the resource loading progress table of the A3 scene pops up to remind the user of the resource download situation.
  • the priority of the A3 scene in the sub-package download is activated, and the sub-package corresponding to the A3 scene is adjusted to the state with the highest priority.
  • the present invention obtains the installation package data of the game program by obtaining the installation package data of the game program.
  • the game installation package data includes basic resource data and a list of compressed packages carrying the coding order, and the size of the basic resources can be increased or decreased at will to form installation package data of different sizes, improve the flexibility of game resource allocation, and then in After the game program is running, by loading the basic resource data and starting the download command of the subcontracted resource data, the basic resource data retains the resource data in the early stage of the game, and there is no need to wait for the resources to download. Players can experience the early game resources and follow the coding.
  • the sub-package resource data is continuously downloaded in sequence, which does not affect the player's game experience during the resource download.
  • the sub-package resource data forms a compressed package list according to the encoding order, so that the game downloads the compressed package with the highest encoding priority while loading the basic resource data.
  • the ecological cycle of game resources can reduce the space occupation of game resource data and improve the processing efficiency of game resource data.
  • FIG. 2 Another method for processing game resource data is provided, as shown in FIG. 2 , The method may include the following steps 201 , 202 , 203 , 204 , 205 and 206 .
  • the loading sequence of game resource data during the running of the game is acquired.
  • the game resource data may be all data that needs to be loaded during the running of the game, which usually occupies a large storage space. Since the game resource data involves a large number of game scenes and resource objects in the game scene, the game scene It can include page scenes involved in the game process, such as login scenes, field scenes, special scenes, etc. Each game scene contains different resource objects, such as game characters, character effects, textures, game videos, sounds, etc. .
  • the game scene and the resource objects in the game scene will perform the corresponding game tasks according to the guiding process when the game is running, such as game login tasks, game learning tasks, game upgrade tasks, etc.
  • the guidance process information can determine the resource objects that the game scene depends on and the sequence relationship in which the resource objects are loaded when the game is running, and further define the loading sequence of game resource data during the game running process based on the sequence relationship in which the resource objects are loaded when the game is running. For example, in the game scene, background images, game characters, etc. are loaded first, and then character special effects, sounds, etc. are loaded.
  • the game resource data is split into basic resource data and subpackage resource data, and a download sequence of the subpackage resource data is defined.
  • the basic resource data can be the resource data with the highest order of game experience, it is usually loaded first during the game running process, while the sub-package resource data is loaded in the later order, and can be loaded in the game running process. Loading occurs later in the process.
  • the loading order of the resource objects can be used to select the game resource data whose loading order is before the preset value as the basic resource data, and use the data part of the game resource data other than the basic resource data as the subcontracted resource data; further determine the download sequence of the subpackaged resource data based on the loading sequence of the game resource data, and form the download sequence of the subpackaged resource data into a compressed package list carrying the coding sequence.
  • the subpackaged resource data in the process of forming the download sequence of the subpackaged resource data into a compressed package list carrying the coding sequence, may be split into multiple A resource data package with a fixed capacity value; a plurality of resource data packets with a fixed capacity value are compressed to form a compressed package list carrying the coding order.
  • the loading sequence list of game resources can be formed and exported, and the exported list file can be analyzed. Take the map resource as the game scene, regard the resource object loaded after entering the map as the object resource that the game scene depends on, and define the sequence of resource objects in the map.
  • map A contains resource data as A1, A2, A3, ...
  • the map resource itself is placed at the end as An, other resource objects and so on, and further and the special rules of the game to determine which basic resource data in the game resource data includes, here you can set the basic resource data according to the time limit of the game, you can also Set the base resource data according to the upgrade limit of the game.
  • the game is upgraded every day, when the main task is completed and reaches a certain stage, the task cannot be claimed, and it can only be continued on the next day, or the daily activities in the game are fixed, and other game activities can only be second
  • the next stage of the game task can be executed after the game task needs to reach the next level.
  • the resource data required by the game content on the first day can be used as the basic resource data, or the game level lower than the preset game level can be used as the basic resource data.
  • the resource data required by the game content of the game is used as the basic resource data, and other resource data in the game resource data is used as the subcontracted resource data.
  • the content of the basic resource data is not limited here, and can be adjusted according to actual needs.
  • the subcontracted resource data may include scene resource data and map resource data.
  • the priority of the scene resource data is higher, and the download sequence of the scene resources in the subcontracted resource data can be defined based on the priority order of the scenes during the running of the game,
  • the priority of the map resource data is later, the map resource data can be used as the tail resource, and the download sequence of the map resource data in the subpackage resource data is defined after the scene resource data.
  • the download sequence of the scene resource data is before the map resource data.
  • the scene resource data includes the public resource data of the game characters and each game character.
  • the public resource data of the game characters and the loading sequence of the attribute resource data of each game character in the scene can be obtained based on the priority order of the scene during the running of the game, and further use the game character's attribute resource data.
  • the loading sequence of the common resource data and the attribute resource data of each game character in the scene defines the downloading sequence of the scene resource data in the subpackage resource data.
  • game characters A1-A3 share game resource data M, which can be used by game characters A1-A3 after the public resource data is loaded, and game resource data N is attribute resource data specific to game character A2.
  • game resource data M is attribute resource data specific to game character A2.
  • public resources The loading order of the data M is before the attribute resource data N. If the loading order of the game character A4 in the scene is before the game characters A1-A3, then the loading order of the common resource data of the game character A4 is before the public resource data M.
  • each compressed package takes 100M as the standard, and according to the priority order of resource data loading, the subpackaged resource data is compressed in ZIP mode to obtain an ordered list of compressed packages and multiple zip file.
  • the basic resource data contains: A1,A2,A3,...,An,B1,B2
  • Number N compressed package the last unordered resource (less than 100M)
  • the installation package data of the game program is acquired.
  • the installation package data here only contains the basic resource data and the compressed package list with the coding order to support the execution of the gameplay functions in the early stage of the game.
  • the sub-package resource data is downloaded according to the coding sequence in , which improves the download efficiency of game resources.
  • the basic resource data is in the installation package data of the game program, it can be directly loaded and used without downloading, while the subpackage resource data is not in the installation package data of the game program, and the subpackage resource can be started during the process of loading the basic resource data.
  • the data download instruction downloads the compressed package formed by the subpackaged resource data according to the coding sequence.
  • the size of the resources to be loaded is reduced, and the problem of slow download caused by too many files is solved, and the download efficiency of subpackage resource data is improved,
  • the basic resource data is completed to the maximum extent, the compressed package with the highest number has been downloaded, and the player can continue to experience the new gameplay functions, forming an ecological cycle of game experience.
  • a breakpoint resuming mechanism in order to improve the download efficiency of the sub-package resource data, can be used in the process of downloading the compressed package. to continue the progress of the last compressed package to download.
  • the subpackage resource data in the compressed package list may encounter various situations during the downloading process, the subpackage resource data will form different download states.
  • the download status record of the data is used to process the subcontracted resource data in different download states, and trigger the corresponding processing logic to improve the flexibility of subcontracted resource data download.
  • the sub-package resource data can be stored at any time during the download process of the sub-package resource data, and the download status of the sub-package resource data can be obtained when the game program is restarted.
  • the processing logic of the game scene jump can be triggered, so that the game flow can continue to be executed, and the sub-package resource data of the game play will jump to the corresponding game scene after the download of the sub-package resource data is completed, and the player does not need to pay attention to the download status of the sub-package resources at all times.
  • the game scene can be adaptively adjusted according to the download progress of the sub-package resource data.
  • a jump prompt can be set for the corresponding gameplay when the sub-package resource data is downloaded, so that the player can know the download status of the game resources at the first time. And experience the game resources of the latest gameplay in time.
  • the subpackaged resource data in the compressed package list will encounter various situations during the download process, the subpackaged resource data will have different download states.
  • the subpackaged resources in the compressed package list can be traversed in the encoding order. Data, check the download flag bit in the download status record. The download flag bit can indicate whether the sub-package resource data has been downloaded. If the download flag is downloaded, it means that the sub-package resource data has been downloaded.
  • the download status of the subpackage resource data can be determined by comparing the digital difference between the version number of the package body and the subpackage version number;
  • the package resource data also needs to continue to be downloaded, start the download instruction of the subpackage resource data, and monitor the download status of the subpackage resource data.
  • the version number of the package body is the version number set by the installation package data of the game program
  • the version number of the subpackage is the version number of the package body recorded when all the subpackage resource data is downloaded.
  • the digital difference formed by the version number is greater than the preset threshold, indicating that the subpackage resource data needs to be downloaded again, further start the download command of the subpackage resource data, and monitor the download status of the subpackage resource data; If the digital difference formed by the package version number is less than or equal to the preset threshold, it means that the download of the subpackaged resource data has been completed, and the operation command of the subpackaged resource data is started.
  • the download status record of the subpackaged resource data is read, and the download flag is detected.
  • the download flag indicates that the download is complete, then compare the digital difference between the version number of the package body and the version number of the subpackage. If the difference is large, you need to download the subpackage resource data again, and start the download command of the subpackage resource data. If the value is not large, the running command of the sub-package resource data is started. If the download flag is not completed, the download command of the sub-package resource data is started until all the sub-package resource data is downloaded.
  • the game resource when the game resource needs to be switched during the game, it is usually pre-judged whether the game resource is downloaded, and the download can enter the corresponding game scene. , or experience other game scenarios that have been downloaded, in order to ensure the accuracy of the game, you can respond to the loading instruction of the preset sub-package resource data in the game program, according to the download process of the sub-package resource data, to determine whether the preset resource data is Indicates that the download has been completed; if it is, it means that the current sub-package resource data has been downloaded, and further displays the map resource data in the preset sub-package resource data; otherwise, it indicates that the sub-package resource has not been downloaded, and intercepts the preset sub-package resource data.
  • the entry of map resources and display the map resources in other sub-package resource data that have been downloaded during the download process.
  • the player when the player needs to switch the map in the game, he can judge whether the download of the map resource is completed. If the download is completed, he can enter the map resource. Jump to other downloaded map resources.
  • the game running process here can be understood as a tree-like structure. The root of the tree is the game, the branches are the map, and the leaves are the gameplay functions. The gameplay functions depend on the map resources, so the map resources It is a tail resource, and it can be determined whether the corresponding scene resource data has been downloaded by judging whether there is map resource data.
  • a game resource when a game resource needs to be loaded during the game operation, and the compressed package to which the game resource belongs has not been downloaded, it may be because the loading sequence of the game resource data has not been reached, or the game resource data may not be downloaded.
  • the loading order is later, so that the sub-package resource data in the corresponding compressed package has not been downloaded during the game running process, such as the game scene where a new player encounters an old player and needs to display the role of the old player, and the equipment resources on the old player. It may be the gameplay resources in the later stage of the game. For example, after the old players install the new subcontracting resources, they need to load the gameplay resources in the middle and later stages of the game program.
  • the download process of the preset subpackage resource data reaches the preset subpackage resource according to the download process of the subpackage resource data.
  • the download sequence of the data if so, load the preset subpackage resource data after the download of the preset subpackage resource data is completed, otherwise, it means that the preset subpackage resource data is the subpackage resource whose game program has not yet reached the download sequence.
  • a resource downloader is further created to perform separate download of the preset subpackage resource data through the resource downloader, and then download the preset subpackage resource data in advance.
  • the download sequence of the sub-package resource data is adjusted adaptively according to the requirements, and after the download of the preset sub-package resource data is completed, the preset sub-package resource data is loaded to improve the flexibility of the download process of the game resource data.
  • the resource downloader may download the preset resource as a compressed package separately, or download the compressed package where the preset resource is located, which is not limited here.
  • the player can switch game resources, and can also perform other operations on the current game resources.
  • switching game resources For example, when switching map operations, it is judged whether the switched game resources exist. If so, enter the switched map resources. If not, stay in the current map resources, and perform player operations to experience the corresponding game resources. When other operations are performed on the current map resource, the corresponding resource objects are fed back for other operations.
  • the processing process of game resource data may include, but is not limited to, the following implementations.
  • Process the basic resource data data log in to the account, if there is no character, enter the character creation interface, enter the default map for birth, experience the basic resource data in the early stage, if there is a character, enter the casting interface, and after selecting the character, judge that the character is on the map Whether the resource exists, if it exists, enter the default map of birth, otherwise, enter the previous map to experience the basic resource data in the early stage.
  • FIG. 7 shows an apparatus for processing game resource data according to some embodiments of the present invention.
  • the apparatus includes: a first acquiring unit 301 , an operating unit 302 , and a downloading unit 303 .
  • the first obtaining unit 301 can be used to obtain the installation package data of the game program.
  • the installation package data includes basic resource data and a compressed package list carrying the coding sequence, and the compressed package list records the download of the subpackage resource data. sequence, the basic resource data and the subcontracted resource data form game resource data of the game program;
  • the running unit 302 can be configured to load the basic resource data in response to the running instruction of the game program, and start the download instruction of the subcontracted resource data;
  • the downloading unit 303 may be configured to sequentially download the subpackaged resource data in the compressed package list according to the encoding sequence based on the download instruction of the subpackaged resource data.
  • the present invention obtains the installation package of the game program by obtaining the installation package of the game program.
  • the game installation package data includes basic resource data and a list of compressed packages carrying the coding sequence, and the size of the basic resources can be increased or decreased at will to form installation package data of different sizes, improve the flexibility of game resource allocation, and then After the game program runs, by loading the basic resource data and starting the download command of the subcontracted resource data, the basic resource data retains the resource data in the early stage of the game, and there is no need to wait for the resources to download.
  • the sub-package resource data is continuously downloaded in the coding order, which does not affect the player's game experience during the resource download.
  • the sub-package resource data forms a compressed package list according to the coding order, so that the game downloads the compressed package with the highest coding priority while loading the basic resource data. Forming an ecological cycle of game resources can reduce the space occupation of game resource data and improve the processing efficiency of game resource data.
  • the apparatus for processing game resource data further includes:
  • the second obtaining unit 304 may be configured to obtain the loading sequence of the game resource data during the running of the game before the obtaining of the installation package data of the game program;
  • the defining unit 305 may be configured to use the loading sequence of the game resource data to split the game resource data into basic resource data and subpackage resource data, and define the download sequence of the subpackage resource data.
  • the subcontracted resource data includes scene resource data and map resource data
  • the defining unit 305 may include:
  • the first definition module 3051 can be used to define the download order of the scene resource data in the subpackage resource data based on the priority order of the scene during the game running process;
  • the second definition module 3052 can be configured to use the map resource data as a tail resource, and define that the download sequence of the map resource data in the subpackage resource data is after the scene resource data.
  • the apparatus for processing game resource data may further include:
  • the first judging unit 306 can be configured to download the subpackage resource data in the compressed package list in sequence according to the encoding sequence according to the download instruction based on the subpackage resource data, and respond to the subpackage in the game program.
  • a loading instruction of resource data which judges whether the map resource data in the preset subcontracted resource data has been loaded;
  • the first judging unit 306 may also be configured to judge that the loading of the scene resource data in the preset subcontracting resource data is completed.
  • the scene resource data includes public resource data of game characters and attribute resource data of each game character.
  • the second definition module 3052 Can include:
  • the acquisition sub-module 30521 can be used to acquire the public resource data of the game character and the loading sequence of the attribute resource data of each game character in the scene based on the priority order of the scene during the running of the game;
  • the definition sub-module 30522 can be used to define the download sequence of the scene resource data in the subpackage resource data by using the loading sequence of the common resource data of the game character and the attribute resource data of each game character in the scene.
  • the downloading unit 303 may include:
  • the reading module 3031 can be used to read the download status record of the subpackaged resource data in the compressed package list based on the download instruction of the subpackaged resource data;
  • the downloading module 3032 may be configured to traverse the subpackage resource data in the compression list according to the encoding sequence, and download the subpackage resource data in the compressed package list according to the download flag bit in the download status record.
  • the download module 332 may include:
  • the detection submodule 30321 can be used to traverse the subpackage resource data in the compression list according to the encoding sequence, and detect the download flag bit in the download status record;
  • Determining submodule 30322 can be used to determine the download status of the subpackage resource data by comparing the digital difference between the package body version number and the subpackage version number if the download flag is downloaded;
  • the monitoring submodule 30323 can be used to detect that if the download flag is not completed downloading, then start the download instruction of the subpackage resource data, and monitor the download status of the subpackage resource data;
  • the determining submodule 30322 can be specifically configured to start the download instruction of the subpackage resource data and monitor the subpackage resource if the digital difference formed by the package body version number and the subpackage version number is greater than a preset threshold. the download status of the data;
  • the determining sub-module 30322 may be further configured to start the running instruction of the subcontracting resource data if the digital difference formed by the version number of the packet body and the subcontracting version number is less than or equal to a preset threshold.
  • the apparatus for processing game resource data may further include:
  • the second judging unit 307 can be configured to, after the download instruction based on the sub-package resource data sequentially downloads the sub-package resource data in the compressed package list according to the encoding sequence, in response to a preset in the game program The loading instruction of the subpackaged resource data, according to the download process of the subpackaged resource data, to determine whether the download of the preset subpackaged resource data is completed;
  • the display unit 308 can be configured to display the map resource data in the preset subcontracted resource data, if so;
  • the display unit 308 can also be used to display the map resource data in other subpackage resource data already downloaded in the downloading process.
  • the apparatus for processing game resource data may further include:
  • the third judging unit 309 may be configured to, after the download instruction based on the sub-package resource data sequentially downloads the sub-package resource data in the compressed package list according to the encoding sequence, in response to a preset in the game program Loading instructions for subpackaged resource data, to determine whether the download process of the game program has reached the download sequence of the preset subpackaged resource data;
  • the loading unit 310 can be configured to, if so, load the preset subpackage resource data after the download of the preset subpackage resource data is completed;
  • the creating unit 311 can be configured to, otherwise, create a resource downloader, so as to perform the separate download of the preset subpackage resource data through the resource downloader, and after the download of the preset subpackage resource data is completed, load all the resources. Describe the preset subcontracting resource data.
  • Various component embodiments of the present invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof.
  • a microprocessor or a digital signal processor (DSP) may be used in practice to implement some or all functions of some or all components of the apparatus for processing game resource data according to embodiments of the present invention.
  • DSP digital signal processor
  • the present invention can also be implemented as a program/instruction (eg, computer program/instruction and computer program product) for an apparatus or apparatus for performing some or all of the methods described herein.
  • Such programs/instructions implementing the present invention may be stored on a computer readable medium, or may exist in the form of one or more signals, such signals may be downloaded from an Internet website, or provided on a carrier signal, or in any form Available in other formats.
  • a computer-readable medium on which a computer program is stored, and when the computer program is executed by a processor, the above-mentioned steps as described above are implemented.
  • Fig. 1-Fig. 2 show the processing method of game resource data.
  • Computer-readable media includes both persistent and non-permanent, removable and non-removable media, and storage of information may be implemented by any method or technology.
  • Information may be computer readable instructions, data structures, modules of programs, or other data.
  • Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), Flash Memory or other memory technology, Compact Disc Read Only Memory (CD-ROM), Digital Versatile Disc (DVD) or other optical storage, Magnetic tape cartridges, disk storage, quantum memory, graphene-based storage media or other magnetic storage devices or any other non-transmission media can be used to store information that can be accessed by computing devices.
  • PRAM phase-change memory
  • SRAM static random access memory
  • DRAM dynamic random access memory
  • RAM random access memory
  • ROM read only memory
  • EEPROM Electrically Erasable Programm
  • the technical solution of the present invention can be embodied in the form of a software product, and the software product can be stored in a non-volatile storage medium (which can be a CD-ROM, U disk, mobile hard disk, etc.), which can include Several instructions are used to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in various implementation scenarios of the present invention.
  • a non-volatile storage medium which can be a CD-ROM, U disk, mobile hard disk, etc.
  • a computer device which may be a personal computer, a server, or a network device, etc.
  • the physical device in some embodiments, may be a computer, a smart phone, a tablet computer, a smart watch, a server, or a network device, etc.
  • the physical device may include a storage medium and a processor; a storage medium for storing computer programs; processing The device is used to execute a computer program to realize the above-mentioned processing method of game resource data as shown in FIG. 1 to FIG. 2 .
  • the physical device may further include a user interface, a network interface, a camera, a radio frequency (Radio Frequency, RF) circuit, a sensor, an audio circuit, a WI-FI module, and the like.
  • the user interface may include a display screen (Display), an input unit such as a keyboard (Keyboard), etc., and the optional user interface may also include a USB interface, a card reader interface, and the like.
  • Optional network interfaces may include standard wired interfaces, wireless interfaces (such as WI-FI interfaces), and the like.
  • the above-mentioned physical device 400 may include a communication bus, a processor, a memory and a communication interface, and may also include an input/output interface and a display device.
  • the communication with each other is completed through the bus.
  • the memory stores a computer program and a processor, which is used for executing the program stored in the memory and executing the painting mounting method in the above-mentioned embodiment.
  • FIG. 11 schematically shows a computer device that can implement the method for processing game resource data according to the present invention.
  • the computer device includes a processor 1110 and a memory computer-readable media in the form of 1120.
  • the memory 1120 is an example of a computer-readable medium having a storage space 1130 for storing the computer program 1131 .
  • the computer program 1131 is executed by the processor 1110, each step in the method for processing game resource data described above can be implemented.
  • Figure 12 schematically shows a block diagram of a computer program product implementing the method according to the invention.
  • the computer program product includes a computer program 1210 that, when executed by a processor such as the processor 1110 shown in FIG. 11 , can implement each of the above-described methods for processing game resource data. step.
  • the physical device structure for processing game resource data does not constitute a limitation on the physical device, and may include more or less components, or combine certain components, Or a different component arrangement.
  • the storage medium may also include an operating system and a network communication module.
  • the operating system is a program that manages the hardware and software resources of the physical device for processing the above-mentioned store search information, and supports the operation of the information processing program and other software and/or programs.
  • the network communication module is used to realize the communication between various components in the storage medium, as well as the communication with other hardware and software in the information processing entity device.
  • the present invention can be implemented by means of software plus a necessary general hardware platform, and can also be implemented by hardware.
  • the basic resource data retains the resource data in the early stage of the game. , there is no time-consuming waiting for resource download, which allows players to experience the early game resources while continuing to download sub-package resource data according to the encoding sequence, without affecting the player's game experience during resource download.
  • the sub-package resource data forms a compressed package list according to the encoding order. This allows the game to download the compressed package with the highest coding priority while loading the basic resource data, forming an ecological cycle of game resources, which can reduce the space occupation of the game resource data and improve the processing efficiency of the game resource data.
  • the accompanying drawing is only a schematic diagram of a preferred implementation scenario, and the modules or processes in the accompanying drawing are not necessarily necessary to implement the present invention.
  • the modules in the device in the implementation scenario may be distributed in the device in the implementation scenario according to the description of the implementation scenario, or may be located in one or more devices different from the implementation scenario with corresponding changes.
  • the modules of the above implementation scenarios may be combined into one module, or may be further split into multiple sub-modules.

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本发明公开了一种游戏资源数据的处理方法及装置,涉及数据处理技术领域,能够在保留基础游戏资源的情况下让玩家体验前期游戏资源,无需玩家耗费时间等待所有游戏资源数据的下载,提高资源下载期间玩家的游戏体验。其中方法包括:获取游戏程序的安装包数据,所述安装包数据中包括基础资源数据和携带有编码顺序的压缩包列表,所述压缩包列表记录有分包资源数据的下载顺序,所述基础资源数据和所述分包资源数据形成游戏程序的游戏资源数据;响应于所述游戏程序的运行指令,加载所述基础资源数据,并启动分包资源数据的下载指令;基于所述分包资源数据的下载指令,按照所述编码顺序依次下载所述压缩包列表中的分包资源数据。

Description

游戏资源数据的处理方法及装置
交叉引用
本申请要求于2020年11月19日提交、申请号为202011303911.3,发明名称为“游戏资源数据的处理方法及装置”的中国专利申请的优先权,其全部内容通过引用合并于本申请中。
技术领域
本发明涉及数据处理技术领域,尤其是涉及到一种游戏资源数据的处理方法及装置。
背景技术
随着网络游戏的不断发展,越来越丰富的游戏资源不断被开发,使得网络游戏吸引越来越多的用户使用。
相关技术中,游戏安装包为可自行压缩文件的集合,其包括游戏安装所需要的所有游戏资源数据,通过获取游戏安装包后启动游戏程序,即可体验游戏。通常情况下,游戏安装包所有的游戏资源数据占用空间非常大,很多玩家通过广告或者其他途径关注到游戏后,需要耗费很长时间下载游戏包体,甚至有些玩家受到包体占用空间的影响,直接放弃游戏资源包的下载。为了让用户能够更快地获取到游戏安装包,游戏安装包不包含或者包含少量游戏安装所需要的游戏资源数据,通过获取游戏安装包后启动游戏程序,才开始下载游戏资源数据。然而,由于游戏资源数据的空间占用,玩家仍然需要耗费时间等待资源下载,影响游戏资源数据的处理效率,使得资源下载期间玩家的游戏体验较差。
发明内容
有鉴于此,本发明提供了一种游戏资源数据的处理方法及装置,主要目的在于解决现有技术中玩家需要耗费时间等待资源下载,影响游戏资源数据的处理效率,使得资源下载期间玩家的游戏体验较差的问题。
根据本发明的一个方面,提供了一种游戏资源数据的处理方法,包括:获取游戏程序的安装包数据,所述安装包数据中包括基础资源数据和携带有编码顺序的压缩包列表,所述压缩包列表记录有分包资源数据的下载顺序,所述基础资源数据和所述分包资源数据形成游戏程序的游戏资源数据;响应于所述游戏程序的运行指令,加载所述基础资源数据,并启动分包资源数据的下载指令;以及基于所述分包资源数据的下载指令,按照所述编码顺序依次下载所述压缩包列表中的分包资源数据。
根据本发明的另一个方面,提供了一种游戏资源数据的处理装置,包括:第一获取单元,用于获取游戏程序的安装包数据,所述安装包数据中包括基础资源数据和携带有编码顺序的压缩包列表,所述压缩包列表记录有分包资源数据的下载顺序,所述基础资源数据和所述分包资源数据形成游戏程序的游戏资源数据;运行单元,用于响应于所述游戏程序的运行指令,加载所述基础资源数据,并启动分包资源数据的下载指令;下载单元, 用于基于所述分包资源数据的下载指令,按照所述编码顺序依次下载所述压缩包列表中的分包资源数据。
根据本发明的又一个方面,提供了一种计算机设备,包括存储器和处理器及存储在存储器上的计算机程序,所述处理器执行所述计算机程序时实现上述任一实施例所述方法的步骤。
根据本发明的再一个方面,提供了一种计算机可读介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现上述任一实施例所述的方法的步骤。
根据本发明的再一个方面,提供了一种计算机程序产品,包括计算机程序,所述计算机程序被处理器执行时实现上述任一实施例所述的方法的步骤。
本发明的有益效果为:借由上述技术方案,根据本发明一些实施方式的一种游戏资源数据的处理方法及装置,与目前现有方式中需要耗费时间等待游戏资源数据下载完成后对游戏资源数据进行处理的方式相比,本发明通过获取游戏程序的安装包数据,该游戏安装包数据中包括基础资源数据和携带有编码顺序的压缩包列表,并且可随意增加或者减少基础资源的大小,形成不同大小的安装包数据,提高游戏资源分配的灵活性,进而在游戏程序运行后,通过加载基础资源数据并启动分包资源数据的下载指令,该基础资源数据保留了游戏前期的资源数据,无需耗时等待资源下载,可以让玩家体验前期游戏资源的同时按照编码顺序持续下载分包资源数据,不影响资源下载期间玩家的游戏体验,该分包资源数据按照编码顺序形成压缩包列表,使得游戏在加载基础资源数据的同时优先下载编码靠前的压缩包,形成游戏资源的生态循环,可以降低游戏资源数据的空间占用,提高游戏资源数据的处理效率。
上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。
附图说明
此处所说明的附图用来提供对本发明的进一步理解,构成本发明的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:
图1示意性地示出了根据本发明实施例的一种游戏资源数据的处理方法的流程示意图;
图2示意性地示出了根据本发明实施例的另一种游戏资源数据的处理方法的流程示意图;
图3示意性地示出了根据本发明实施例的游戏资源数据的结构示意图;
图4示意性地示出了根据本发明实施例的分包资源数据下载过程的流程框图;
图5示意性地示出了根据本发明实施例的分包资源数据切换过程的流程框图;
图6示意性地示出了根据本发明实施例的游戏资源数据的处理过程的流程框图;
图7示意性地示出了根据本发明实施例的一种游戏资源数据的处理装置的结构示意图;
图8示意性地示出了根据本发明实施例的另一种游戏资源数据的处理装置的结构示意图;
图9示意性地示出了根据本发明实施例的另一种游戏资源数据的处理装置的结构示意图;
图10示意性地示出了根据本发明实施例的一种计算机设备的装置结构示意图;
图11示意性地示出了用于实现根据本发明的方法的计算机设备的框图;以及
图12示意性地示出了实现根据本发明的方法的计算机程序产品的框图。
具体实施方式
现在将参照若干示例性实施例来论述本发明的内容。应当理解,论述了这些实施例仅是为了使得本领域普通技术人员能够更好地理解且因此实现本发明的内容,而不是暗示对本发明的范围的任何限制。
如本文中所使用的,术语“包括”及其变体要被解读为意味着“包括但不限于”的开放式术语。术语“基于”要被解读为“至少部分地基于”。术语“一个实施例”和“一种实施例”要被解读为“至少一个实施例”。术语“另一个实施例”要被解读为“至少一个其他实施例”。
通常情况下,游戏安装包所有的游戏资源数据占用空间非常大,很多玩家通过广告或者其他途径关注到游戏后,需要耗费很长时间下载游戏包体,甚至有些玩家受到包体占用空间的影响,直接放弃游戏资源包的下载。为了让用户能够更快地获取到游戏安装包,游戏安装包不包含或者包含少量游戏安装所需要的游戏资源数据,通过获取游戏安装包后启动游戏程序,才开始下载游戏资源数据。然而,由于游戏资源数据的空间占用,玩家仍然需要耗费时间等待资源下载,影响游戏资源数据的处理效率,使得资源下载期间玩家的游戏体验较差。
为了解决该问题,根据本发明的实施例,提供了一种游戏资源数据的处理方法,如图1所示,该方法应用于游戏应用程序的客户端,包括如下步骤:101、102和103。
在101中、获取游戏程序的安装包数据。
在一些实施方式中,游戏程序的安装包数据可为游戏运行过程中需要加载的数据,通常可以从应用平台或者应用网站上下载,该安装包数据中包括基础资源数据和携带有编码顺序的压缩包列表,该压缩表列表记录有分包资源数据的下载顺序,这里基础资源数据和分包资源数据均为游戏过程中需要使用的资源数据,两者形成游戏资源数据,基础资源数涉及到前期游戏资源,例如,用户登录游戏界面、注册游戏账户、进入游戏主页等资源,分包资源数据为游戏资源数据中除了基础资源数据的资源数据。
通常情况下,游戏程序的运行过程中,每一个游戏角色都会按照游戏指引流程,执行游戏任务等各种操作,以体验游戏中不同的功能玩法,由于游戏中各个功能玩法的资源数据会占用大量空间,在游戏程序的安装包下载初期,玩家并不需要体验所有功能玩法,或者有些游戏玩法并非是初期能够体验的,这里将涉及游戏前期功能玩法的资源数据作为基础资源数据放入游戏程序的安装包数据,将其他功能玩法的资源数据作为分包资源数据放入压缩包列表,可在游戏程序运行期间后续下载,节省安装包数据的空间占用的同时,不影响游戏资源下载期间玩家的游戏体验。
可以理解的是,为了提高游戏前期玩法功能的灵活性,游戏资源数据中基础资源数据的大小可以根据实际应用场景需求进行调整,例如,游戏应用场景较复杂,需要前期功能玩法类型较多,可以适量增加游戏资源数据中基础资源数据对应的数据容量,反之,可以适量减少游戏资源数据中基础资源数据对应的数据容量。
在一些实施方式中,在将分包资源数据放入压缩包列表的过程中,为了提高下载 效率,可以根据分包资源数据对应游戏玩法功能的加载顺序,确定分包资源数据的下载顺序,这里可以预先将分包资源数据压缩为多个压缩包,并形成有编码顺序的压缩包列表,以使得后续在运行游戏程序的过程中,加载顺序优先级较高的分包资源数据会被优先下载。
对于本实施例的执行主体可以为游戏资源数据的处理装置或设备,可以配置在游戏应用的客户端,客户端可以从应用平台或者游戏平台获取游戏程序的安装包数据,该安装包数据包含前期玩法涉及到的基础资源数据,并将游戏后期分散的分包资源数据压缩成多个压缩包形成压缩包列表,降低需要加载资源数据的空间占用,解决了多个文件导致下载速度缓慢的问题,最大限度让玩家体验游戏前期的基础资源数据。
在102中、响应于所述游戏程序的运行指令,加载所述基础资源数据,并启动分包资源数据的下载指令。
由于基础资源数据能够支撑游戏前期玩法功能,分包资源数据涉及其他游戏玩法功能,在游戏程序的运行过程中,通过加载基础资源数据,玩家可以体验游戏前期玩法,并且在玩家体验游戏前期玩法功能的同时,启动分包资源数据的下载,能够在不影响玩家体验前期玩法功能的情况,以最快下载速度来补足其他游戏玩法的资源数据,保证游戏资源数据的处理效率。
在本发明实施例中,加载基础资源数据和启动分包资源数据的下载指令为同时执行的,由于游戏过程中会涉及到很多操作行为,每一个操作行为都会涉及到不同的资源数据,通常情况下,基础资源数据可以满足玩家在下载游戏初期的操作行为,对于操作行为涉及到分包资源数据的情况,无法确定相应分包资源数据已被下载,可以在启动分包资源数据的下载指令后,监控分包资源数据的下载状态,根据分包资源数据的下载状态来加载相应分包资源数据,或者调整分包资源数据的下载优先级顺序。
在103中、基于所述分包资源数据的下载指令,按照所述编码顺序依次下载所述压缩包列表中的分包资源数据。
在一些实施方式中,分包资源数据的编码顺序可为分包资源数据的下载顺序,考虑到游戏运行过程中游戏场景的触发顺序和/或资源对象的加载顺序,优先触发的游戏场景和/或优先加载的资源对象应被优先下载。
应说明的是,分包资源数据的下载状态决定玩家可以体验的游戏玩法功能,对于已下载的分包资源数据,可以通过解压到本地目录,以便在触发相应场景的游戏资源时,利用本地目录加载已下载的分包资源数据,进入相应游戏场景,对于未下载的分包资源数据,玩家无法体验相应场景的游戏资源,可以针对相应场景的游戏资源,调整下载优先级顺序,还可以停留在已下载分包资源数据的当前游戏场景或者跳转至已下载分包资源的其他游戏场景,待分包资源数据下载完成后跳转至相应游戏场景。例如,基础资源数据使得玩家可以进入游戏场景A1和A2,已下载分包资源数据使玩家可以进入游戏场景B2和B3,对于游戏场景A3还未下载完成,如果玩家在游戏场景A2触发游戏场景A3的情况,客户端会拦截游戏场景A3的进入,并让玩家停留在当前游戏场景A2或者跳转到游戏场景A1,当然针对游戏场景A3还可以调整下载优先级顺序,以加快玩家进入游戏场景A3的速度,并可以在游戏场景A3对应的分包资源数据下载完成后,向玩家发送提醒,以告知玩家游戏场景A3已下载完成。
本发明一些实施例中,当游戏场景从A1跳转到A3时,判定A3场景的地图资源 没有加载完毕,也就是A3场景的场景资源没有加载完毕,本发明会采用玩法拦截的方式,拦截A1场景到A3场景的确认框弹出,同时弹出A3场景的资源加载进度表,以提示用户资源下载的情况。另外,采用玩法拦截逻辑的同时启动A3场景在分包下载中的优先级,并将A3场景对应的分包调整为优先级最高的状态。
本发明一些实施例的游戏资源数据的处理方法,与目前现有方式中需要耗费时间等待游戏资源数据下载完成后对游戏资源数据进行处理的方式相比,本发明通过获取游戏程序的安装包数据,该游戏安装包数据中包括基础资源数据和携带有编码顺序的压缩包列表,并且可随意增加或者减少基础资源的大小,形成不同大小的安装包数据,提高游戏资源分配的灵活性,进而在游戏程序运行后,通过加载基础资源数据并启动分包资源数据的下载指令,该基础资源数据保留了游戏前期的资源数据,无需耗时等待资源下载,可以让玩家体验前期游戏资源的同时按照编码顺序持续下载分包资源数据,不影响资源下载期间玩家的游戏体验,该分包资源数据按照编码顺序形成压缩包列表,使得游戏在加载基础资源数据的同时优先下载编码靠前的压缩包,形成游戏资源的生态循环,可以降低游戏资源数据的空间占用,提高游戏资源数据的处理效率。
作为上述实施例具体实施方式的细化和扩展,为了完整说明本实施例的具体实施过程,根据本发明的一些实施例,提供了另一种游戏资源数据的处理方法,如图2所示,该方法可包括下列步骤201,202,203,204,205和206。
在201中、获取游戏运行过程中游戏资源数据的加载顺序。
在一些实施方式中,游戏资源数据可为游戏运行过程中需要加载的所有数据,通常占用较大的存储空间,由于游戏资源数据中涉及到大量游戏场景和游戏场景中的资源对象等,游戏场景可以包含游戏过程中涉及的页面场景,例如,登录场景、野外场景、特殊场景等,每个游戏场景中都包含有不同的资源对象,例如,游戏人物、人物特效、贴图、游戏视频、声音等。
通常情况下,游戏场景和游戏场景中的资源对象在游戏运行时都会按照引导流程,执行相应的游戏任务,例如,游戏登录任务、游戏学习任务、游戏升级任务等,利用游戏运行时游戏对象的指引流程信息,可确定游戏场景依赖的资源对象以及资源对象在游戏运行时加载的顺序关系,进一步基于资源对象在游戏运行时加载的顺序关系,定义游戏运行过程中游戏资源数据的加载顺序。例如,游戏场景中优先加载背景图片、游戏角色等,随后加载人物特效、声音等。
在202中、利用所述游戏资源数据的加载顺序,将所述游戏资源数据拆分为基础资源数据和分包资源数据,并定义所述分包资源数据的下载顺序。
在本发明一些实施方式中,由于基础资源数据可为游戏体验顺序最靠前的资源数据,通常为游戏运行过程中最先加载的,而分包资源数据的加载顺序靠后,可以在游戏运行过程中后续进行加载。在一些实施方式中,可以利用资源对象的加载顺序,选取加载顺序排在预设数值之前的游戏资源数据作为基础资源数据,并将游戏资源数据中除基础资源数据外的数据部分作为分包资源数据;进一步基于游戏资源数据的加载顺序确定分包资源数据的下载顺序,并将分包资源数据的下载顺序形成携带有编码顺序的压缩包列表。
在一些实施方式中,在将分包资源数据的下载顺序形成携带有编码顺序的压缩包列表的过程中,可以利用所述分包资源数据的下载顺序,将分包资源数据拆分为多个具有 固定容量值的资源数据包;对多个具有固定容量值的资源数据包进行压缩,形成携带有编码顺序的压缩包列表。
根据本发明的一些实施方式,在实际应用场景中,如图3所示,可以按照游戏运行过程中游戏资源数据的加载顺序,形成游戏资源的加载顺序列表导出,并分析到导出的列表文件,以地图资源作为游戏场景,将进入到地图后加载的资源对象当作游戏场景依赖的对象资源,定义地图中资源对象的先后顺序,例如,地图A包含资源数据为A1、A2、A3,…,地图资源本身放在最后为An,其他资源对象以此类推,进一步以及游戏特殊实则定来确定游戏资源数据中的基础资源数据包括哪些,这里可以根据游戏的时间限制来设置基础资源数据,还可以根据游戏的升级限制来设置基础资源数据。例如,由于游戏每天都有升级,当主线任务执行完成后到某一阶段,任务不可领取,只能是第二天继续执行,或者游戏中每天的活动都是固定,其他游戏活动只能第二天继续执行,或者当游戏任务需要达到多少级别后才可以执行下一阶段的游戏任务,这里可以将第一天游戏内容所需要的资源数据作为基础资源数据,还可以将低于预设游戏级别的游戏内容所需要的资源数据作为基础资源数据,游戏资源数据中其他的资源数据作为分包资源数据,这里对基础资源数据的内容不进行限定,可以根据实际需求进行调整。
在本发明的一些实施方式中,分包资源数据可包括场景资源数据和地图资源数据。根据一些实施方式,在定义分包资源数据的下载顺序过程中,场景资源数据的优先级靠前,可以基于游戏运行过程中场景的优先级顺序,定义分包资源数据中场景资源的下载顺序,地图资源数据的优先级靠后,可将地图资源数据作为尾部资源,定义分包资源数据中地图资源数据的下载顺序在场景资源数据之后。
可以理解的是,场景资源数据的下载顺序排在地图资源数据之前,根据本发明的一些实施方式,在游戏运行过程中,可以根据地图资源数据的加载状态来判定相应场景资源数据是否加载完毕,若地图资源数据未加载完,则相应的场景资源数据也无法展示,若地图资源数据加载完成,下载顺序在地图资源数据之前的场景资源数据必然下载完成,可以展示相应场景资源数据。
作为定义分包资源数据加载顺序的一种实施场景,由于游戏加载时需要考虑不同游戏角色的公共资源和各个游戏角色特有的属性资源,场景资源数据中包括游戏角色的公共资源数据和各个游戏角色的属性资源数据,在一些实施方式中,可以基于游戏运行过程中场景的优先级顺序,获取游戏角色的公共资源数据和各个游戏角色的属性资源数据在场景中的加载顺序,进一步利用游戏角色的公共资源数据和各个游戏角色的属性资源数据在场景中的加载顺序,定义所述分包资源数据中场景资源数据的下载顺序。例如,游戏角色A1-A3公用游戏资源数据M,公共资源数据加载完成后可供游戏角色A1-A3使用,游戏资源数据N为游戏角色A2特有的属性资源数据,针对角色A1-A3,公共资源数据M的加载顺序在属性资源数据N之前,如果游戏角色A4在场景中的加载顺序在游戏角色A1-A3之前,那么游戏角色A4的公共资源数据的加载顺序在公共资源数据M之前。
以上述游戏资源数据为例进行说明,可以规定每个压缩包以100M为标准,按照资源数据进行加载的优先级顺序,以ZIP的方式压缩分包资源数据,得到有序的压缩包列表和多个压缩包文件。
假设基础资源数据包含:A1,A2,A3,…,An,B1,B2
那么分包资源数据的下载顺序:B3,B4,…,Bn,C1,C2,C3,…,Cn,…,无序资源
编号1压缩包:B3,B4,…,Bn,C1(约100M)
编号2压缩包:C2,C3,…,C10(约100M)
编号3压缩包:C11,C23,…,Cn,…(约100M)
编号N-1压缩包:无序资源(约100M)
编号N压缩包:最后无序资源(小于100M)
在203中、获取游戏程序的安装包数据。
应说明的是,这里安装包数据中仅包含基础资源数据和携带有编码顺序的压缩包列表,以支撑游戏初期玩法功能的执行,对于后期玩法功能可以在运行游戏程序的过程中按照压缩包列表中的编码顺序对分包资源数据进行下载,提高游戏资源的下载效率。
在204中、响应于所述游戏程序的运行指令,加载所述基础资源数据,并启动分包资源数据的下载指令。
由于基础资源数据在游戏程序的安装包数据中,无需下载,可直接加载使用,而分包资源数据并不在游戏程序的安装包数据中,可在加载基础资源数据的过程中,启动分包资源数据的下载指令,以按照编码顺序对分包资源数据形成的压缩包进行下载。
本发明实施例中,通过将分散的分包资源数据压缩成多个压缩包,降低需要加载资源的大小,并且解决了文件数量过多导致下载缓慢的问题,提高分包资源数据的下载效率,最大限度让玩家体验完成基础资源数据时,编号靠前的压缩包已下载完成,玩家可继续体验新增玩法功能,形成游戏体验的生态循环。
在一些实施方式中,为了提高分包资源数据的下载效率,可以在压缩包下载的过程中使用断点续传机制,当压缩包的下载中断后,已下载的压缩包保存到本地,重新下载时接续上次的压缩包进度进行下载。
可以理解的是,如果下载速度过快,频繁I/O读写占用太多设备资源,可以在压缩包下载时限制下载速度,并根据玩家设备的不同配置设置相应的限速,保证玩家游戏体验的流畅性。
在205中、基于所述分包资源数据的下载指令,读取压缩包列表中分包资源数据的下载状态记录。
在本发明实施例中,由于压缩包列表中的分包资源数据在下载过程中会遇到各种情况,使得分包资源数据会形成不同的下载状态,通过读取压缩包列表中分包资源数据的下载状态记录,以针对不同下载状态的分包资源数据进行处理,并触发相应的处理逻辑,提高分包资源数据下载的灵活性。
在一些实施方式中,可在分包资源数据的下载过程中随时存储,重新启动游戏程序时获取分包资源数据的下载状态,当分包资源数据下载进度缓慢时,导致玩家卡在某一游戏玩法功能上,可通过触发游戏场景跳转的处理逻辑,以使得游戏流程继续执行,并该游戏玩法的分包资源数据下载完成后跳转至相应游戏场景,无需玩家时刻关注分包资源的下载状态,以实现游戏场景根据分包资源数据的下载进度自适应调整,这里可在分包资源数据的下载时针对相应游戏玩法设置跳转提示,以便于玩家在第一时间了解游戏资源的下载状态,并及时体验最新玩法的游戏资源。
在206中、按照所述编码顺序遍历所述压缩列表中的分包资源数据,根据所述下载状态记录中的下载标志位下载所述压缩包列表中的分包资源数据。
由于压缩包列表中的分包资源数据在下载过程中会遇到各种情况,使得分包资源数据产生不同的下载状态,在一些实施方式中,可以按照编码顺序遍历压缩列表中的分包资源数据,检测下载状态记录中的下载标志位,该下载标志位能够表明分包资源数据是否已下载完成,若下载标志位为已完成下载,则说明分包资源数据已全部下载完成,但为了对分包资源数据的下载状态进行验证,可通过比较包体版本号与分包版本号形成的数字差值,确定分包资源数据的下载状态;检测若下载标志位为未完成下载,则说明分包资源数据还需要继续下载,启动分包资源数据的下载指令,并监控分包资源数据的下载状态。
可以理解的是,包体版本号为游戏程序的安装包数据设定的版本号,分包版本号为分包资源数据全部下载完成时记录的包体版本号,若包体版本号与分包版本号形成的数字差值大于预设阈值,则说明分包资源数据还需要重新下载,进一步启动分包资源数据的下载指令,并监控分包资源数据的下载状态;若包体版本号与分包版本号形成的数字差值小于或等于预设阈值,则说明分包资源数据已下载完成,启动分包资源数据的运行指令。
根据本发明的一些实施方式,在分包资源数据的下载场景,如图4所示,当启动分包资源数据的下载指令后,读取分包资源数据的下载状态记录,检测下载标志,若下载标志位为下载完成,则比较包体版本号与分包版本号形成的数字差异值,若差异值较大,则需要重新下载分包资源数据,启动分包资源数据的下载指令,若差异值不大,则启动分包资源数据的运行指令,若下载标志位为未下载完成,则启动分包资源数据的下载指令,直至分包资源数据全部下载完成。
在一些实施方式中,当游戏过程中需要切换游戏资源时,通常会预判游戏资源是否下载完成,下载完成可进入相应游戏场景,未完成则拦截相应游戏场景的进入,并停留在当前游戏场景,或者体验已下载完成的其他游戏场景,为了保证游戏运行的准确性,可以响应于游戏程序中预设分包资源数据的加载指令,根据分包资源数据的下载进程,判断预设资源数据是否为已完成下载;若是,则说明当前分包资源数据已完成下载,进一步展示预设分包资源数据中的地图资源数据;否则,说明分包资源未完成下载,拦截预设分包资源数据中地图资源的进入,并展示下载进程中已下载其他分包资源数据中的地图资源。
根据本发明的一些实施方式,在应用场景中,当玩家在游戏中需要切换地图的情况,可以通过判断地图资源是否下载完成,若下载完成可进入该地图资源,未完成则停留在当前地图或者跳转至其他已下载的地图资源,这里的游戏运行过程可以理解为一种树状结构,树根为游戏,枝为地图,叶为游戏玩法功能,游戏玩法功能依托于地图资源,所以地图资源为尾部资源,可通过判定是否存在地图资源数据来判定相应场景资源数据是否下载完毕。
在一些实施方式中,当游戏运行中需要加载一个游戏资源时,而该游戏资源所属的压缩包并未下载完成,可能是由于还未到达游戏资源数据的加载顺序,还有可能该游戏资源数据的加载顺序靠后,使得游戏运行过程中还未下载到相应压缩包内的分包资源数据,比如新玩家遇到老玩家,需要显示老玩家角色的游戏场景,还比如老玩家身上的装备资源可能是游戏后期玩法资源,还比如老玩家安装新的分包资源后需要加载游戏程序中后期游戏玩法资源。为了保证游戏逻辑的正确性,可以响应于游戏程序中预设分包资源数据的加 载指令,根据分包资源数据的下载进程,判断预设分包资源数据的下载进程是否达到预设分包资源数据的下载顺序,若是,则在预设分包资源数据下载完成后,加载预设分包资源数据,否则,说明预设分包资源数据为游戏程序的运行还未达下载顺序的分包资源数据,为了尽快让玩家体验该分包资源数据的玩法,进一步创建资源下载器,以通过资源下载器执行预设分包资源数据的单独下载,进而提前下载预设分包资源数据,以根据玩家需求自适应调整分包资源数据的下载顺序,并在预设分包资源数据下载完成后,加载预设分包资源数据,提高游戏资源数据下载过程的灵活性。所述资源下载器可以将预设的资源单独做为压缩包分包下载,也可以将预设资源所在的压缩包下载,这里不做限制。
根据本发明的一些实施方式,在分包资源数据的切换场景,如图5所示,游戏运行过程中,玩家可以切换游戏资源,也可以执行当前游戏资源的其他操作,当切换游戏资源时,例如,切换地图操作时,判断切换的游戏资源是否存在,若存在,则进入切换的地图资源,若不存在,则停留在当前的地图资源,并通过执行玩家操作以体验相应游戏资源,当执行当前地图资源的其他操作时,针对其他操作反馈相应的资源对象。
根据本发明的一些实施方式,在实际应用场景中,如图6所示,游戏资源数据的处理过程可以包括但不局限于如下实现方式,当启动游戏程序后,一方面加载基础资源数据,对基础资源数据数据进行处理,登录账号,如果没有角色,进入创建角色界面,进入出生默认地图,体验前期的基础资源数据,如果已有角色,进入选角界面,并在选取角色后判断角色在地图资源中是否存在,若存在,则进入出生默认地图,否则,进入上一次的地图,体验前期的基础资源数据,另一方面,持续下载分包资源数据,并将分包资源数据保存到本地,并在体验前期基础资源数据的同时,加载已完成分包资源数据和下载未完成分包资源数据,以提高资源下载期间玩家的游戏体验。
作为图1和图2方法的具体实现,图7示出了根据本发明一些实施例的游戏资源数据的处理装置,该装置包括:第一获取单元301、运行单元302、下载单元303。
第一获取单元301,可以用于获取游戏程序的安装包数据,所述安装包数据中包括基础资源数据和携带有编码顺序的压缩包列表,所述压缩包列表记录有分包资源数据的下载顺序,所述基础资源数据和所述分包资源数据形成游戏程序的游戏资源数据;
运行单元302,可以用于响应于所述游戏程序的运行指令,加载所述基础资源数据,并启动分包资源数据的下载指令;
下载单元303,可以用于基于所述分包资源数据的下载指令,按照所述编码顺序依次下载所述压缩包列表中的分包资源数据。
根据本发明一些实施例的游戏资源数据的处理装置,与目前现有方式中需要耗费时间等待游戏资源数据下载完成后对游戏资源数据进行处理的方式相比,本发明通过获取游戏程序的安装包数据,该游戏安装包数据中包括基础资源数据和携带有编码顺序的压缩包列表,并且可随意增加或者减少基础资源的大小,形成不同大小的安装包数据,提高游戏资源分配的灵活性,进而在游戏程序运行后,通过加载基础资源数据并启动分包资源数据的下载指令,该基础资源数据保留了游戏前期的资源数据,无需耗时等待资源下载,可以让玩家体验前期游戏资源的同时按照编码顺序持续下载分包资源数据,不影响资源下载期间玩家的游戏体验,该分包资源数据按照编码顺序形成压缩包列表,使得游戏在加载基础资源数据的同时优先下载编码靠前的压缩包,形成游戏资源的生态循环,可以降低游戏 资源数据的空间占用,提高游戏资源数据的处理效率。
根据本发明的一些实施方式,在具体的应用场景中,如图8所示,所述游戏资源数据的处理装置还包括:
第二获取单元304,可以用于在所述获取游戏程序的安装包数据之前,获取游戏运行过程中游戏资源数据的加载顺序;
定义单元305,可以用于利用所述游戏资源数据的加载顺序,将所述游戏资源数据拆分为基础资源数据和分包资源数据,并定义所述分包资源数据的下载顺序。
根据本发明的一些实施方式,在具体的应用场景中,如图8所示,所述分包资源数据包括场景资源数据和地图资源数据,所述定义单元305可包括:
第一定义模块3051,可以用于基于游戏运行过程中场景的优先级顺序,定义所述分包资源数据中场景资源数据的下载顺序;
第二定义模块3052,可以用于将所述地图资源数据作为尾部资源,定义所述分包资源数据中地图资源数据的下载顺序在所述场景资源数据之后。
根据本发明的一些实施方式,在具体的应用场景中,如图8所示,所述游戏资源数据的处理装置还可包括:
第一判断单元306,可以用于在所述基于所述分包资源数据的下载指令,按照所述编码顺序依次下载所述压缩包列表中的分包资源数据之后,响应于游戏程序中分包资源数据的加载指令,判断所述预设分包资源数据中地图资源数据是否加载完成;
所述第一判断单元306,还可以用于若是,则判定所述预设分包资源数据中场景资源数据加载完成。
根据本发明的一些实施方式,在具体的应用场景中,如图8所示,所述场景资源数据中包括游戏角色的公共资源数据和各个游戏角色的属性资源数据,所述第二定义模块3052可包括:
获取子模块30521,可以用于基于游戏运行过程中场景的优先级顺序,获取所述游戏角色的公共资源数据和各个游戏角色的属性资源数据在场景中的加载顺序;
定义子模块30522,可以用于利用所述游戏角色的公共资源数据和各个游戏角色的属性资源数据在场景中的加载顺序,定义所述分包资源数据中场景资源数据的下载顺序。
根据本发明的一些实施方式,在具体的应用场景中,如图8所示,所述下载单元303可包括:
读取模块3031,可以用于基于所述分包资源数据的下载指令,读取压缩包列表中分包资源数据的下载状态记录;
下载模块3032,可以用于按照所述编码顺序遍历所述压缩列表中的分包资源数据,根据所述下载状态记录中的下载标志位下载所述压缩包列表中的分包资源数据。
根据本发明的一些实施方式,在具体的应用场景中,如图8所示,所述下载模块332可包括:
检测子模块30321,可以用于按照所述编码顺序遍历所述压缩列表中的分包资源数据,检测所述下载状态记录中的下载标志位;
确定子模块30322,可以用于若所述下载标志位为已完成下载,则通过比较包体版本号与分包版本号形成的数字差值,确定分包资源数据的下载状态;
监控子模块30323,可以用于检测若所述下载标志位为未完成下载,则启动所述分包资源数据的下载指令,并监控所述分包资源数据的下载状态;
所述确定子模块30322,具体可以用于若包体版本号与分包版本号形成的数字差值大于预设阈值,则启动所述分包资源数据的下载指令,并监控所述分包资源数据的下载状态;
所述确定子模块30322,具体还可以用于若包体版本号与分包版本号形成的数字差值小于或等于预设阈值,则启动所述分包资源数据的运行指令。
根据本发明的一些实施方式,在具体的应用场景中,如图8所示,所述游戏资源数据的处理装置还可包括:
第二判断单元307,可以用于在所述基于所述分包资源数据的下载指令,按照所述编码顺序依次下载所述压缩包列表中的分包资源数据之后,响应于游戏程序中预设分包资源数据的加载指令,根据所述分包资源数据的下载进程,判断所述预设分包资源数据是否下载完成;
展示单元308,可以用于若是,则展示所述预设分包资源数据中的地图资源数据;
所述展示单元308,还可以用于否则,展示所述下载进程中已下载其他分包资源数据中的地图资源数据。
根据本发明的一些实施方式,在具体的应用场景中,如图9所示,所述游戏资源数据的处理装置还可包括:
第三判断单元309,可以用于在所述基于所述分包资源数据的下载指令,按照所述编码顺序依次下载所述压缩包列表中的分包资源数据之后,响应于游戏程序中预设分包资源数据的加载指令,判断所述游戏程序的下载进程是否到达所述预设分包资源数据的下载顺序;
加载单元310,可以用于若是,则在所述预设分包资源数据下载完成后,加载所述预设分包资源数据;
创建单元311,可以用于否则,创建资源下载器,以通过所述资源下载器执行所述预设分包资源数据的单独下载,并在所述预设分包资源数据下载完成后,加载所述预设分包资源数据。
需要说明的是,根据本发明实施例的游戏资源数据的处理装置所涉及各功能单元的其它相应描述,可以参考图1-图2中的对应描述,在此不再赘述。
本发明的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本发明实施例的游戏资源数据的处理装置中的一些或者全部部件的一些或者全部功能。本发明还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置的程序/指令(例如,计算机程序/指令和计算机程序产品)。这样的实现本发明的程序/指令可以存储在计算机可读介质上,或者可以一个或者多个信号的形式存在,这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。
基于上述如图1-图2所示方法,相应的,根据本发明的实施例,还提供了一种计算机可读介质,其上存储有计算机程序,该计算机程序被处理器执行时实现上述如图1-图2所示的游戏资源数据的处理方法。
计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带、磁盘存储、量子存储器、基于石墨烯的存储介质或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。
基于这样的理解,本发明的技术方案可以以软件产品的形式体现出来,该软件产品可以存储在一个非易失性存储介质(可以是CD-ROM,U盘,移动硬盘等)中,可包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施场景所述的方法。
基于上述如图1-图2所示的方法,以及图7-图9所示的虚拟装置实施例,为了实现上述目的,根据本发明的实施例,还提供了一种游戏资源数据的处理的实体设备,在一些实施方式中,可以为计算机,智能手机,平板电脑,智能手表,服务器,或者网络设备等,该实体设备可包括存储介质和处理器;存储介质,用于存储计算机程序;处理器,用于执行计算机程序以实现上述如图1-图2所示的游戏资源数据的处理方法。
在一些实施方式中,该实体设备还可以包括用户接口、网络接口、摄像头、射频(Radio Frequency,RF)电路,传感器、音频电路、WI-FI模块等等。用户接口可以包括显示屏(Display)、输入单元比如键盘(Keyboard)等,可选用户接口还可以包括USB接口、读卡器接口等。网络接口可选的可以包括标准的有线接口、无线接口(如WI-FI接口)等。
在一些实施方式中,参见图10,上述实体设备400可包括通信总线、处理器、存储器和通信接口,还可以包括、输入输出接口和显示设备,在一些实施方式中,各个功能单元之间可以通过总线完成相互间的通信。该存储器存储有计算机程序,处理器,用于执行存储器上所存放的程序,执行上述实施例中的画作挂载方法。
在一些实施方式中,参见图11,图11示意性地示出了可以实现根据本发明的游戏资源数据的处理方法的计算机设备,在一些实施方式中,该计算机设备包括处理器1110和以存储器1120形式的计算机可读介质。存储器1120是计算机可读介质的一个示例,其具有用于存储计算机程序1131的存储空间1130。当所述计算机程序1131由处理器1110执行时,可实现上文所描述的游戏资源数据的处理方法中的各个步骤。
图12示意性地示出了实现根据本发明的方法的计算机程序产品的框图。所述计算机程序产品包括计算机程序1210,当所述计算机程序1210被诸如图11所示的处理器1110之类的处理器执行时,可实现上文所描述的游戏资源数据的处理方法中的各个步骤。
本领域技术人员可以理解,根据本发明的一些实施方式的游戏资源数据的处理的实体设备结构并不构成对该实体设备的限定,可以包括更多或更少的部件,或者组合某些部件,或者不同的部件布置。
存储介质中还可以包括操作系统、网络通信模块。操作系统是管理上述店铺搜索 信息处理的实体设备硬件和软件资源的程序,支持信息处理程序以及其它软件和/或程序的运行。网络通信模块用于实现存储介质内部各组件之间的通信,以及与信息处理实体设备中其它硬件和软件之间通信。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到本发明可以借助软件加必要的通用硬件平台的方式来实现,也可以通过硬件实现。与目前现有方式相比,采用依据本发明实施例的技术方案,在游戏程序运行后,通过加载基础资源数据并启动分包资源数据的下载指令,该基础资源数据保留了游戏前期的资源数据,无需耗时等待资源下载,可以让玩家体验前期游戏资源的同时按照编码顺序持续下载分包资源数据,不影响资源下载期间玩家的游戏体验,该分包资源数据按照编码顺序形成压缩包列表,使得游戏在加载基础资源数据的同时优先下载编码靠前的压缩包,形成游戏资源的生态循环,可以降低游戏资源数据的空间占用,提高游戏资源数据的处理效率。
本领域技术人员可以理解附图只是一个优选实施场景的示意图,附图中的模块或流程并不一定是实施本发明所必须的。本领域技术人员可以理解实施场景中的装置中的模块可以按照实施场景描述进行分布于实施场景的装置中,也可以进行相应变化位于不同于本实施场景的一个或多个装置中。上述实施场景的模块可以合并为一个模块,也可以进一步拆分成多个子模块。
上文对本说明书特定实施例进行了描述,其与其它实施例一并涵盖于所附权利要求书的范围内。在一些情况下,在权利要求书中记载的动作或步骤可以按照不同于实施例中的顺序来执行并且仍然可以实现期望的结果。另外,在附图中描绘的过程不一定遵循示出的特定顺序或者连续顺序才能实现期望的结果。在某些实施方式中,多任务处理和并行处理也是可行的或者有利的。
还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。
应可理解,以上所述实施例仅为举例说明本发明之目的而并非对本发明进行限制。在不脱离本发明基本精神及特性的前提下,本领域技术人员还可以通过其他方式来实施本发明。本发明的范围当以后附的权利要求为准,凡在本说明书一个或多个实施例的精神和原则之内所做的任何修改、等同替换、改进等,皆应涵盖其中。

Claims (13)

  1. 一种游戏资源数据的处理方法,包括:
    获取游戏程序的安装包数据,所述安装包数据中包括基础资源数据和携带有编码顺序的压缩包列表,所述压缩包列表记录有分包资源数据的下载顺序,所述基础资源数据和所述分包资源数据形成游戏程序的游戏资源数据;
    响应于所述游戏程序的运行指令,加载所述基础资源数据,并启动分包资源数据的下载指令;
    基于所述分包资源数据的下载指令,按照所述编码顺序依次下载所述压缩包列表中的分包资源数据。
  2. 根据权利要求1所述的方法,在所述获取游戏程序的安装包数据之前,所述方法还包括:
    获取游戏运行过程中游戏资源数据的加载顺序;
    利用所述游戏资源数据的加载顺序,将所述游戏资源数据拆分为基础资源数据和分包资源数据,并定义所述分包资源数据的下载顺序。
  3. 根据权利要求2所述的方法,所述分包资源数据包括场景资源数据和地图资源数据,所述定义所述分包资源数据的下载顺序,具体包括:
    基于游戏运行过程中场景的优先级顺序,定义所述分包资源数据中场景资源数据的下载顺序;
    将所述地图资源数据作为尾部资源,定义所述分包资源数据中地图资源数据的下载顺序在所述场景资源数据之后。
  4. 根据权利要求3所述的方法,在所述基于所述分包资源数据的下载指令,按照所述编码顺序依次下载所述压缩包列表中的分包资源数据之后,所述方法还包括:
    响应于游戏程序中分包资源数据的加载指令,判断所述预设分包资源数据中地图资源数据是否加载完成;
    若是,则判定所述预设分包资源数据中场景资源数据加载完成。
  5. 根据权利要求3所述的方法,所述场景资源数据中包括游戏角色的公共资源数据和各个游戏角色的属性资源数据,所述基于游戏运行过程中场景的优先级顺序,定义所述分包资源数据中场景资源数据的下载顺序,具体包括:
    基于游戏运行过程中场景的优先级顺序,获取所述游戏角色的公共资源数据和各个游戏角色的属性资源数据在场景中的加载顺序;
    利用所述游戏角色的公共资源数据和各个游戏角色的属性资源数据在场景中的加载顺序,定义所述分包资源数据中场景资源数据的下载顺序。
  6. 根据权利要求3所述的方法,在所述基于所述分包资源数据的下载指令,按照所述编码顺序依次下载所述压缩包列表中的分包资源数据之后,所述方法还包括:
    响应于游戏程序中预设分包资源数据的加载指令,根据所述分包资源数据的下载进程,判断所述预设分包资源数据是否下载完成;
    若是,则展示所述预设分包资源数据中的地图资源数据;
    否则,展示所述下载进程中已下载其他分包资源数据中的地图资源数据。
  7. 根据权利要求1-6中任一项所述的方法,在所述基于所述分包资源数据的下载指令,按照所述编码顺序依次下载所述压缩包列表中的分包资源数据之后,所述方法还包括:
    响应于游戏程序中预设分包资源数据的加载指令,判断所述游戏程序的下载进程是否到达所述预设分包资源数据的下载顺序;
    若是,则在所述预设分包资源数据下载完成后,加载所述预设分包资源数据;
    否则,创建资源下载器,以通过所述资源下载器执行所述预设分包资源数据的单独下载,并在所述预设分包资源数据下载完成后,加载所述预设分包资源数据。
  8. 根据权利要求1-6中任一项所述的方法,所述基于所述分包资源数据的下载指令,按照所述编码顺序依次下载所述压缩包列表中的分包资源数据,具体包括:
    基于所述分包资源数据的下载指令,读取压缩包列表中分包资源数据的下载状态记录;
    按照所述编码顺序遍历所述压缩列表中的分包资源数据,根据所述下载状态记录中的下载标志位下载所述压缩包列表中的分包资源数据。
  9. 根据权利要求8所述的方法,所述按照所述编码顺序遍历所述压缩列表中的分包资源数据,根据所述下载状态记录中的下载标志位下载所述压缩包列表中的分包资源数据,具体包括:
    按照所述编码顺序遍历所述压缩列表中的分包资源数据,检测所述下载状态记录中的下载标志位;
    若所述下载标志位为已完成下载,则通过比较包体版本号与分包版本号形成的数字差值,确定分包资源数据的下载状态;
    检测若所述下载标志位为未完成下载,则启动所述分包资源数据的下载指令,并监控所述分包资源数据的下载状态;
    所述通过比较包体版本号与分包版本号形成的数字差值,确定分包资源数据的下载状态,具体包括:
    若包体版本号与分包版本号形成的数字差值大于预设阈值,则启动所述分包资源数据的下载指令,并监控所述分包资源数据的下载状态;
    若包体版本号与分包版本号形成的数字差值小于或等于预设阈值,则启动所述分包资源数据的运行指令。
  10. 一种游戏资源数据的处理装置,包括:
    第一获取单元,用于获取游戏程序的安装包数据,所述安装包数据中包括基础资源数据和携带有编码顺序的压缩包列表,所述压缩包列表记录有分包资源数据的下载顺序,所述基础资源数据和所述分包资源数据形成游戏程序的游戏资源数据;
    运行单元,用于响应于所述游戏程序的运行指令,加载所述基础资源数据,并启动分包资源数据的下载指令;
    下载单元,用于基于所述分包资源数据的下载指令,按照所述编码顺序依次下载所述压缩包列表中的分包资源数据。
  11. 一种计算机设备,包括存储器、处理器及存储在存储器上的计算机程序,所 述处理器执行所述计算机程序时实现根据权利要求1-9中任一项所述的游戏资源数据的处理方法的步骤。
  12. 一种计算机可读介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现根据权利要求1-9中任一项所述的游戏资源数据的处理方法的步骤。
  13. 一种计算机程序产品,包括计算机程序,所述计算机程序被处理器执行时实现根据权利要求1-9中任一项所述的游戏资源数据的处理方法的步骤。
PCT/CN2021/121091 2020-11-19 2021-09-27 游戏资源数据的处理方法及装置 WO2022105435A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011303911.3A CN112473144A (zh) 2020-11-19 2020-11-19 游戏资源数据的处理方法及装置
CN202011303911.3 2020-11-19

Publications (1)

Publication Number Publication Date
WO2022105435A1 true WO2022105435A1 (zh) 2022-05-27

Family

ID=74932009

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/121091 WO2022105435A1 (zh) 2020-11-19 2021-09-27 游戏资源数据的处理方法及装置

Country Status (2)

Country Link
CN (1) CN112473144A (zh)
WO (1) WO2022105435A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117149160A (zh) * 2023-08-23 2023-12-01 浙江十勇士网络科技有限公司 一种手机游戏资源打包方法、系统与存储介质

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112473144A (zh) * 2020-11-19 2021-03-12 完美世界(重庆)互动科技有限公司 游戏资源数据的处理方法及装置
CN114082194A (zh) * 2021-11-29 2022-02-25 乐府互娱(上海)网络科技有限公司 一种移动游戏中缩小包体的实现方法
CN114327675B (zh) * 2021-12-23 2023-08-01 广东明创软件科技有限公司 小游戏应用的启动方法及相关装置
CN114296830A (zh) * 2021-12-30 2022-04-08 上海完美时空软件有限公司 应用程序运行方法、装置、存储介质及电子设备
CN114356566B (zh) * 2021-12-30 2022-11-25 许磊 一种基于相关性的游戏数据流媒体化方法
CN114553862A (zh) * 2022-03-09 2022-05-27 博雅网络游戏开发(深圳)有限公司 一种游戏资源包分配下载方法

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160080284A1 (en) * 2014-09-12 2016-03-17 Samsung Electronics Co., Ltd. Method and apparatus for executing application based on open computing language
CN110333947A (zh) * 2019-05-23 2019-10-15 深圳市腾讯网域计算机网络有限公司 一种游戏应用的分包资源加载方法、装置、设备及介质
CN111367558A (zh) * 2020-02-25 2020-07-03 网易(杭州)网络有限公司 一种应用程序的数据更新方法和装置
CN112473144A (zh) * 2020-11-19 2021-03-12 完美世界(重庆)互动科技有限公司 游戏资源数据的处理方法及装置

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103544025A (zh) * 2012-07-10 2014-01-29 腾讯科技(深圳)有限公司 一种网络游戏资源获取方法及装置
CN104503784A (zh) * 2014-12-16 2015-04-08 珠海金山网络游戏科技有限公司 一种利用脚本控制微端下载的方法和系统
CN108888951A (zh) * 2018-06-25 2018-11-27 网易(杭州)网络有限公司 游戏资源处理方法和装置
CN109513213A (zh) * 2018-11-13 2019-03-26 广州互爱信息科技有限公司 一种手游分包下载技术方法
CN109947438B (zh) * 2018-12-28 2022-09-13 广州卓动信息科技有限公司 基于机器学习的游戏安装方法及电子设备、可读存储介质
CN111111179A (zh) * 2019-12-26 2020-05-08 珠海金山网络游戏科技有限公司 一种基于Unity的图形资源加载的方法及装置
CN111897596A (zh) * 2020-07-21 2020-11-06 珠海剑心互动娱乐有限公司 Unity游戏资源加载优化方法及系统

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160080284A1 (en) * 2014-09-12 2016-03-17 Samsung Electronics Co., Ltd. Method and apparatus for executing application based on open computing language
CN110333947A (zh) * 2019-05-23 2019-10-15 深圳市腾讯网域计算机网络有限公司 一种游戏应用的分包资源加载方法、装置、设备及介质
CN111367558A (zh) * 2020-02-25 2020-07-03 网易(杭州)网络有限公司 一种应用程序的数据更新方法和装置
CN112473144A (zh) * 2020-11-19 2021-03-12 完美世界(重庆)互动科技有限公司 游戏资源数据的处理方法及装置

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117149160A (zh) * 2023-08-23 2023-12-01 浙江十勇士网络科技有限公司 一种手机游戏资源打包方法、系统与存储介质
CN117149160B (zh) * 2023-08-23 2024-04-02 浙江十勇士网络科技有限公司 一种手机游戏资源打包方法、系统与存储介质

Also Published As

Publication number Publication date
CN112473144A (zh) 2021-03-12

Similar Documents

Publication Publication Date Title
WO2022105435A1 (zh) 游戏资源数据的处理方法及装置
TWI693823B (zh) 資訊展示方法和裝置
WO2013152660A1 (zh) 加速操作系统启动的方法、装置、终端及计算机存储介质
US9619275B2 (en) Data processing method, apparatus and mobile terminal
JP2006351004A (ja) 携帯端末機のメモリ管理方法
US11907164B2 (en) File loading method and apparatus, electronic device, and storage medium
CN109710286B (zh) 系统升级方法、装置、设备和存储介质
CN109951494B (zh) 仿真数据处理方法、装置、仿真设备及存储介质
KR20180019158A (ko) 동적 이미지를 프리뷰하기 위한 방법 및 디바이스, 그리고 표현 패키지를 디스플레이하기 위한 방법 및 디바이스
JP2022516319A (ja) ゲーム内のリソースをファーミングする期間においてコンピュータシステムのリソースの利用を最適化する方法およびシステム
CN103186399A (zh) 大型游戏包的下载方法及装置
CN109710578B (zh) 一种日志记录方法及系统
CN117724852A (zh) 一种云电脑计算资源分配方法及装置
CN103677979A (zh) 应用软件和插件的交互方法及装置
CN106776056B (zh) 游戏数据处理方法、装置及服务器
CN113672757A (zh) 一种音频播放方法及装置
US11481142B2 (en) Method and device for downloading resources
CN110287077B (zh) 一种性能测试方法、电子设备及存储介质
US20210019130A1 (en) Method and apparatus for downloading installation-free application
CN113806197B (zh) 一种页面加载时长计算方法方法及装置
CN112559294A (zh) 一种应用页面资源消耗的确定方法和装置
CN109542531B (zh) 一种文件布局调整方法及装置
CN114327675A (zh) 小游戏应用的启动方法及相关装置
CN104375871A (zh) 一种基于eMMC加速系统开机的方法和装置
TW201905669A (zh) App應用展示介面的方法、裝置和電子設備

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21893586

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21893586

Country of ref document: EP

Kind code of ref document: A1