CN109908585A - A kind of document handling method and system calculate equipment and storage medium - Google Patents

A kind of document handling method and system calculate equipment and storage medium Download PDF

Info

Publication number
CN109908585A
CN109908585A CN201910169501.5A CN201910169501A CN109908585A CN 109908585 A CN109908585 A CN 109908585A CN 201910169501 A CN201910169501 A CN 201910169501A CN 109908585 A CN109908585 A CN 109908585A
Authority
CN
China
Prior art keywords
file
resource file
additional resource
packet
index
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
CN201910169501.5A
Other languages
Chinese (zh)
Other versions
CN109908585B (en
Inventor
崔珑
梁斌
罗富文
高勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhuhai Kingsoft Online Game Technology Co Ltd
Original Assignee
Zhuhai Kingsoft Online Game Technology Co Ltd
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 Zhuhai Kingsoft Online Game Technology Co Ltd filed Critical Zhuhai Kingsoft Online Game Technology Co Ltd
Priority to CN201910169501.5A priority Critical patent/CN109908585B/en
Publication of CN109908585A publication Critical patent/CN109908585A/en
Application granted granted Critical
Publication of CN109908585B publication Critical patent/CN109908585B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The application provides a kind of document handling method and system, calculates equipment and storage medium, wherein includes multiple necessary resource files in the necessary resource file packet the described method includes: obtaining necessary resource file packet and index file from server end;At least one corresponding additional resource file subpackage in additional resource file packet is obtained from server according to user information, includes multiple corresponding additional resource files in each additional resource file subpackage;According to the necessary resource file packet of acquisition and additional resource file subpackage, the queue of file packet is generated;According to the index file in the file packet queue necessary resource file and additional resource file verify, will verification failure additional resource file damage is marked;The file packet queue is run, in the case where the first additional resource file to be loaded is labeled damage, acquisition request is sent to server, the first additional resource file is reacquired according to the index file.

Description

A kind of document handling method and system calculate equipment and storage medium
Technical field
This application involves Internet technical field, in particular to a kind of document handling method and system calculate equipment and deposit Storage media.
Background technique
During the operation of online game, the reparation and update of game data are two problems that can not avoid, existing Repair process include that Client-Prompt user downloading needs to repair the file packet of part, installed according to operation indicating, and Existing version is covered, the update of game data is then unlimitedly related to client and updates the downloading of packet and to the original trip of client Relevant portion is replaced in actor's part or lines part, however when it come to arrives reparation and update of the game developer to entire game, problem It can then complicate, sometimes developer only has modified line code, it is also desirable to packing is compiled to entire game file, with And publication publicity and prompt operation are carried out, the rehabilitation cost of developer side is high, and in client-side, then needs user to wait and rise The downloading and installation of grade packet, user can not carry out game before update is installed successfully.
With the increase of the game scale of construction, the renewal amount of game and the complexity of reparation are risen with it, and then user needs The time of waiting is elongated, and the following failure rate can also rise, and then user's game experiencing is caused to be deteriorated.Therefore for needing It is updated relatively frequently or the game of the big scale of construction, gives certain attention for updating and repairing needs.
Summary of the invention
In view of this, the embodiment of the present application provides document handling method and system, calculates equipment and storage medium, with solution Technological deficiency certainly existing in the prior art.
Present invention also provides a kind of document handling methods, comprising:
Obtain necessary resource file packet and index file from server end, include in the necessary resource file packet it is multiple must Want resource file;
At least one corresponding additional resource file point in additional resource file packet is obtained from server according to user information It wraps, includes multiple corresponding additional resource files in each additional resource file subpackage;
According to the necessary resource file packet of acquisition and additional resource file subpackage, the queue of file packet is generated;
According to the index file in the file packet queue necessary resource file and additional resource file carry out school It tests, damage is marked in the additional resource file of verification failure;
The file packet queue is run, in the case where the first additional resource file to be loaded is labeled damage, to Server sends acquisition request, reacquires the first additional resource file according to the index file.
Optionally, before running the file packet queue, further includes:
The necessary resource file of verification failure is reacquired and covered from server by index file.
Optionally, damage is marked in the additional resource file of verification failure includes:
Obtain the additional resource file for verifying failure corresponding index information in the index file;
Identification field in the index information of the additional resource file of the verification failure is labeled as not downloading.
Optionally, it after the additional resource file that the labeled damage is reacquired according to the index file, also wraps It includes:
By the first additional resource file addition of reacquisition at the end of the file packet queue, and covers and marked It is denoted as the first additional resource file of damage.
Optionally, after generating the queue of file packet, further includes:
Necessary resource file, which is obtained, from the server updates packet;
Additional resource file, which is obtained, from server according to user information updates at least one additional resource file in wrapping more New subpackage;
Index patch file is obtained, the index file is updated according to the index patch file.
Optionally, after being updated according to the index patch file to the index file, further includes:
The necessary resource file that will acquire update packet and at least one additional resource file described in getting more New subpackage is added to the end of the file packet queue, obtains updated file packet queue;
Run the updated file packet queue.
Optionally, after running the updated file packet queue, further includes:
According to the user information of update by updated index file from the server obtain it is corresponding at least one Additional resource file corresponding with the user information of update updates subpackage;
The additional resource file corresponding with user information that is updating is updated into subpackage and is added to the updated text The end of part packet queue.
Optionally, the user information includes the Role Information of the instruction of user, the class information of user or user.
Optionally, according to the index file to the necessary resource file and additional resource file in the file packet queue Carrying out verification includes:
The necessary resource file is verified using message digest algorithm;
The additional resource file subpackage is verified using 32 cyclic redundancy check methods or message digest algorithm.
Optionally, include: in the case where the first additional resource file to be loaded is labeled damage
Receive user read the labeled damage the first additional resource file instruction or determine user will read Take the first additional resource file of the labeled damage.
Present invention also provides a kind of document handling systems, comprising:
Module is obtained, is configured as obtaining necessary resource file packet and index file, the necessary resource from server end It include multiple necessary resource files in file packet;
The acquisition module is additionally configured to be obtained according to user information from server corresponding in additional resource file packet At least one additional resource file subpackage includes multiple corresponding additional resource files in each additional resource file subpackage;
Execution module is configured as necessary resource file packet and additional resource file subpackage according to acquisition, generates file Packet queue;
Correction verification module is configured as according to the index file to necessary resource file in the file packet queue and attached Add resource file to be verified, damage is marked in the additional resource file of verification failure;
First repair module is configured as running the file packet queue, is in the first additional resource file to be loaded In the case where labeled damage, acquisition request is sent to server, it is additional to reacquire described first according to the index file Resource file.
Optionally, further includes:
Second repair module, be configured as verifying the necessary resource file of failure by index file from server again It obtains and covers.
Optionally, the correction verification module includes:
Indexing units, the additional resource file for being configured as obtaining the verification failure are corresponding in the index file Index information;
Marking unit is configured as the identifier word segment mark in the index information of the additional resource file of the verification failure It is denoted as and does not download.
Optionally, further includes:
Additional module is configured as the first additional resource file that will be reacquired addition in the file packet queue End, and cover be marked as damage the first additional resource file.
Optionally, further includes:
First update module is configured as obtaining necessary resource file update packet from the server;
First update module is additionally configured to obtain additional resource file update packet from server according to user information In at least one additional resource file update subpackage;
First update module is additionally configured to obtain index patch file, according to the index patch file to described Index file is updated.
Optionally, further includes:
First sorting module, be configured as the necessary resource file that will acquire update packet and described in getting extremely A few additional resource file updates the end that subpackage is added to the file packet queue, obtains updated file packet queue;
Module is run, is configured as running the updated file packet queue.
Optionally, further includes:
Second update module is configured as according to the user information of update through updated index file from the service Device obtains at least one corresponding additional resource file corresponding with the user information of update and updates subpackage;
Second sorting module is configured as the additional resource file corresponding with user information that is updating updating subpackage It is added to the end of the updated file packet queue.
Optionally, the correction verification module includes:
First verification unit is configured as verifying the necessary resource file using message digest algorithm;
Second verification unit is configured as using 32 cyclic redundancy check methods or message digest algorithm to described additional Resource file subpackage is verified.
Optionally, first repair module includes:
It repairs trigger unit, is configured as receiving the first additional resource file that user reads the labeled damage Instruction determines that user will read the first additional resource file of the labeled damage.
Present invention also provides a kind of calculating equipment, including memory, processor and storage on a memory and can located The step of computer instruction run on reason device, the processor realizes the document handling method when executing described instruction.
Present invention also provides a kind of computer readable storage mediums, are stored with computer instruction, and the instruction is processed The step of device realizes the document handling method when executing.
A kind of document handling method provided by the present application and system calculate equipment and storage medium, by by file system The additional resource file packet that interior file is divided into the necessary resource file packet that must be downloaded and can selectively be downloaded, and The additional resource file packet is divided into for multiple additional resource file subpackages, any client can be according to user information from clothes Business device obtains one or several additional resource file subpackages in multiple additional resource file subpackages, customization, pipe convenient for client The deletion of reason and file, meanwhile, when repairing to file system, pressure reparation only is carried out to the necessary resource file, And damage is marked for the additional resource file and postpones reparation, and judges that user needs to be marked using this in client It is repaired when remembering the additional resource file of damage, to reduce the data volume for needing to obtain and waiting time, is accelerated again The speed of file reparation and a possibility that reduce file system crash, and client is carrying out the reparation of additional resource file The operation that can continue holding game in the process, improves the experience of user, suitable for following big game.
Detailed description of the invention
Fig. 1 is the block schematic illustration of the calculating equipment of the embodiment of the present application;
Fig. 2 is the flow chart of the document handling method of the embodiment of the present application;
Fig. 3 is the flow chart of the document handling method of another embodiment of the application;
Fig. 4 is the flow chart of the document handling method of another embodiment of the application;
Fig. 5 is the flow chart of the document handling method of another embodiment of the application;
Fig. 6 is the structural schematic diagram of the document handling system of the embodiment of the present application;
Fig. 7 is the structural schematic diagram of the document handling system of another embodiment of the application.
Specific embodiment
Many details are explained in the following description in order to fully understand the application.But the application can be with Much it is different from other way described herein to implement, those skilled in the art can be without prejudice to the application intension the case where Under do similar popularization, therefore the application is not limited by following public specific implementation.
The term used in this specification one or more embodiment be only merely for for the purpose of describing particular embodiments, It is not intended to be limiting this specification one or more embodiment.In this specification one or more embodiment and appended claims The "an" of singular used in book, " described " and "the" are also intended to including most forms, unless context is clearly Indicate other meanings.It is also understood that term "and/or" used in this specification one or more embodiment refers to and includes One or more associated any or all of project listed may combine.
It will be appreciated that though may be retouched using term first, second etc. in this specification one or more embodiment Various information are stated, but these information should not necessarily be limited by these terms.These terms are only used to for same type of information being distinguished from each other It opens.For example, first can also be referred to as second, class in the case where not departing from this specification one or more scope of embodiments As, second can also be referred to as first.Depending on context, word as used in this " if " can be construed to " ... when " or " when ... " or " in response to determination ".
In this application, a kind of document handling method is provided, is described in detail one by one in the following embodiments.
Fig. 1 is to show the structural block diagram of the calculating equipment 100 according to one embodiment of this specification.The calculating equipment 100 Component include but is not limited to memory 110 and processor 120.Processor 120 is connected with memory 110 by bus 130, Database 150 is for saving data.
Calculating equipment 100 further includes access device 140, access device 140 enable calculate equipment 100 via one or Multiple networks 160 communicate.The example of these networks includes public switched telephone network (PSTN), local area network (LAN), wide area network (WAN), the combination of the communication network of personal area network (PAN) or such as internet.Access device 140 may include wired or wireless One or more of any kind of network interface (for example, network interface card (NIC)), such as IEEE802.11 wireless local area Net (WLAN) wireless interface, worldwide interoperability for microwave accesses (Wi-MAX) interface, Ethernet interface, universal serial bus (USB) connect Mouth, cellular network interface, blue tooth interface, near-field communication (NFC) interface, etc..
In one embodiment of this specification, other unshowned portions in the above-mentioned component and Fig. 1 of equipment 100 are calculated Part can also be connected to each other, such as pass through bus.It should be appreciated that calculating device structure block diagram shown in FIG. 1 merely for the sake of Exemplary purpose, rather than the limitation to this specification range.Those skilled in the art can according to need, and increases or replaces it His component.
Calculating equipment 100 can be any kind of static or mobile computing device, including mobile computer or mobile meter Calculate equipment (for example, tablet computer, personal digital assistant, laptop computer, notebook computer, net book etc.), movement Phone (for example, smart phone), wearable calculating equipment (for example, smartwatch, intelligent glasses etc.) or other kinds of shifting Dynamic equipment, or the static calculating equipment of such as desktop computer or PC.Calculating equipment 100 can also be mobile or state type Server.
Wherein, processor 120 can execute the step in method shown in Fig. 2.Fig. 2 is to show to be implemented according to the application one The schematic flow chart of the document handling method of example is applied to client, including step 201 to step 205.
Step 201: obtaining necessary resource file packet and index file from server end, wrapped in the necessary resource file packet Include multiple necessary resource files.
Step 202: at least one corresponding additional money in additional resource file packet is obtained from server according to user information Source file subpackage includes multiple corresponding additional resource files in each additional resource file subpackage.
In the embodiment of the present application, the server can be the server of online game, contain in the server memory Game resource file, under the catalogue of game resource file include necessary resource file and additional resource file, it is described must It wants to include the necessary file resource for maintaining game to operate normally in resource folder, such as logic configuration data file, login field Scape resource data file, basic role data file, basic UI data file and new hand village map resource file etc., it is described additional Including the appended document resource in game running, such as map resource, role's resource, NPC resource, audio sound in resource folder Happy resource, high definition textures resource etc..
Game developer is packaged game resource file by strapping tool according to allocation list in server-side lateral root, most Obtain a complete game resource packet eventually, include in the game resource packet necessary resource file packet, additional resource file packet and Index file, wherein concentrating compression to be stored with multiple necessary resource files, the additional resource in the necessary resource file packet File packet includes multiple additional resource file subpackages, concentrates compression to be stored in each additional resource file subpackage specific additional Resource file, record has the file being stored in game resource packet and is stored in game resource file in the index file The mapping relations of All Files, so that transmitting the feelings of the routing information of specific file to the file system of the application in upper-level system Under condition, present specification system can accurately return data to upper-level system.
In the embodiment of the present application, all clients are required to download the necessary resource file during installation, and user can be with Manually select at least one corresponding additional resource file subpackage in additional resource file packet to be downloaded, or by each Client according to the characteristic, such as grade, occupation or school etc. of player, it is automatic download in additional resource file packet it is corresponding at least One additional resource file subpackage, so that the number and/or type of the resource file subpackage downloaded between each client can With different.
Step 203: according to the necessary resource file packet of acquisition and additional resource file subpackage, generating the queue of file packet.
In the embodiment of the present application, the necessary resource file packet and additional resource file subpackage that the client will acquire are raw At a file packet queue, i.e. the initial game file list of client, the client by load this document packet queue from And it allows users to carry out game.
Step 204: according to the index file to the necessary resource file and additional resource text in the file packet queue Part is verified, and damage is marked in the additional resource file of verification failure.
In the embodiment of the present application, all entries traversed in index file go verifying each entry corresponding data just respectively True property, for the first additional resource file of verification failure, client is temporarily without repairing but by the of verification failure The damage of one additional resource file mark, after having repaired the data in all necessary resource files, user can start game.
Optionally, the client can verify the necessary resource file using message digest algorithm (MD5), For example, pulling corresponding MD5 verification file, presetting comprising necessary resource file in the MD5 verification file from server side Hashed value (MD5 check value), while the client executes hash operations to the necessary resource file of acquisition and is calculated Hashed value, by the way that the default hash verifies the necessary resource file with calculating hashed value Polarity comparision, If illustrating that the data of transmission are completely errorless if two obtained values are identical, being not tampered with.
Optionally, the client can carry out additional resource file subpackage using cyclic redundancy check (CRC) method Verification saves the additional money for example, each additional resource file includes an additional data head in the data head 32 CRC check values of source file, when client is attempted to open additional resource file, the client can quickly calculate local 32 CRC numerical value of file data, and 32 CRC check values that it is saved with the data head compare, if additional money 32 CRC check values that 32 CRC numerical value of source file are saved with the data head are consistent, then determine additional resource file It is lossless, if 32 CRC numerical value of additional resource file and 32 CRC check values that the data head saves are inconsistent, determine The additional resource file corruption.
It certainly, is the application for carrying out one of the preferred embodiment of file corruption self-test using 32 CRC check values, As other preferred embodiments, MD5 value also can be selected, 32 CRC check values is replaced to be compared self-test or other modes Carry out self-test.
Step 205: the file packet queue is run, in the feelings that the first additional resource file to be loaded is labeled damage Under condition, acquisition request is sent to server, the first additional resource file is reacquired according to the index file.
In the embodiment of the present application, when the first additional resource that games read labeled damage to file system requests is literary In the case where part, the file system reacquires described the from the game resource file of server end according to the index file One additional resource file, completes actual reparation.Wherein, games read the first of labeled damage to file system requests The judgment criteria of additional resource file may include two kinds: one is in gaming, client reads additional money to bottom request When source file, the first additional resource file for being marked as damage may be read;Another kind is the resource management in game The first additional resource file of labeled damage may also be triggered when downloading resource in device.
In another embodiment of the application, before running the file packet queue, further includes:
The necessary resource file of verification failure is reacquired and covered from server by index file.
In the embodiment of the present application, for the necessary resource file of verification failure, client is directly corresponding from server pull Necessary resource file and repaired.
In another embodiment of the application, as shown in figure 3, damage is marked in the additional resource file of verification failure Rascal includes step 301 to step 302.
Step 301: obtaining the additional resource file for verifying failure corresponding index information in the index file.
In the embodiment of the present application, the index file includes the location information of file, the remote location information of file, file Size and tag field etc., position of the location information, that is, each necessary resource file of the file in necessary resource file packet The location information of information or each additional resource file in additional resource file packet, the remote location information of the file, that is, every The position of a necessary resource file or each additional resource file record in server side, the tag field, which changes file, is It is no local or whether compress.
Step 302: under the identification field in the index information of the additional resource file of the verification failure is labeled as not It carries.
In the embodiment of the present application, file system will verification failure additional resource file mark damage, without horse back by its It repairs, carries out delay reparation again in the case where additional resource file to be loaded is labeled damage, wherein described to be added The the first additional resource file carried be read the labeled damage including receiving user in the case where labeled damage the The instruction of one additional resource file determines that user will read the first additional resource file of the labeled damage.For example, One is labeled the cartographic information in somewhere in the additional resource file record damaged game, when the game role of user does not enter At this when region, file system does not repair the additional resource file, when the file system receives user into map at this When instruction or determining user will enter region at this, that is, start the reparation for carrying out the additional resource file.
In another embodiment of the application, the first additional resource file is reacquired according to the index file Later, further includes:
By the first additional resource file addition of reacquisition at the end of the file packet queue, and covers and marked It is denoted as the first additional resource file of damage.
In embodiments herein, the file system is not deleted immediately and is marked using additional mode, file system Remember the resource file subpackage of damage but marked damage, then adds the first additional resource file of reacquisition At the end of the file packet queue, and the first additional resource file for being marked as damage is covered, to be different from existing There is the processing mode for the corresponding position that newly-increased file is filled into original in technology, the file structure using additional form subtracts A possibility that memory fragmentation generated inside small client, meanwhile, entire repair process only expends about a few tens of milliseconds, so that objective Family end can synchronize during the progress of game executes file reparation.
Optionally, the user information includes the Role Information of the instruction of user, the class information of user or user.
File in file system by being divided into the necessary resource file packet that must be downloaded and can carried out by the application The additional resource file packet selectively downloaded, and the additional resource file packet is divided into for multiple additional resource file subpackages, Any client can obtain one or several additional moneys in multiple additional resource file subpackages from server according to user information Source file subpackage, convenient for the deletion of the customization of client, management and file, meanwhile, it is only right when being repaired to file system The necessary resource file carries out pressure reparation, and damage is marked for the additional resource file and postpones reparation, and It is repaired again when client judges that user needs the additional resource file using the labeled damage, to reduce needs The data volume of acquisition and waiting time, a possibility that accelerating the speed of file reparation and reduce file system crash, and Client improves the experience of user in the operation for carrying out to continue to keep game during the reparation of additional resource file, Suitable for following big game.
In another embodiment of the application, the step in method shown in Fig. 4 is can also be performed in processor 120.Fig. 4 is to show The schematic flow chart of the document handling method according to one embodiment of the application is gone out, including step 401 is to step 406.
Step 401: obtaining necessary resource file packet and index file from server end, wrapped in the necessary resource file packet Include multiple necessary resource files.
Step 402: at least one corresponding additional money in additional resource file packet is obtained from server according to user information Source file subpackage includes multiple corresponding additional resource files in each additional resource file subpackage.
In the embodiment of the present application, the server can be the server of online game, contain in the server memory Game resource file, under the catalogue of game resource file include necessary resource file and additional resource file, it is described must It wants to include the necessary file resource for maintaining game to operate normally in resource folder, such as logic configuration data file, login field Scape resource data file, basic role data file, basic UI data file and new hand village map resource file etc., it is described additional Including the appended document resource in game running, such as map resource, role's resource, NPC resource, audio sound in resource folder Happy resource, high definition textures resource etc..
Game developer is packaged game resource file by strapping tool according to allocation list in server-side lateral root, most Obtain a complete game resource packet eventually, include in the game resource packet necessary resource file packet, additional resource file packet and Index file, wherein concentrating compression to be stored with multiple necessary resource files, the additional resource in the necessary resource file packet File packet includes multiple additional resource file subpackages, concentrates compression to be stored in each additional resource file subpackage specific additional Resource file, record has the file being stored in game resource packet and is stored in game resource file in the index file The mapping relations of All Files, so that transmitting the feelings of the routing information of specific file to the file system of the application in upper-level system Under condition, present specification system can accurately return data to upper-level system.
In the embodiment of the present application, all clients are required to download the necessary resource file during installation, and user can be with Manually select at least one corresponding additional resource file subpackage in additional resource file packet to be downloaded, or by each Client according to the characteristic, such as grade, occupation or school etc. of player, it is automatic download in additional resource file packet it is corresponding at least One additional resource file subpackage, so that the number and/or type of the resource file subpackage downloaded between each client can With different.
Step 403: according to the necessary resource file packet of acquisition and additional resource file subpackage, generating the queue of file packet.
In the embodiment of the present application, the necessary resource file packet and additional resource file subpackage that the client will acquire are raw At a file packet queue, i.e. the initial game file list of client, the client by load this document packet queue from And it allows users to carry out game.
Step 404: obtaining necessary resource file from the server and update packet.
Step 405: additional resource file being obtained from server according to user information and updates the additional money of at least one of packet Source file updates subpackage.
In the embodiment of the present application, game developer updates patch, the game money from service end side configuration game resource Source update patch include corresponding with necessary resource file packet necessary resource file update packet and with additional resource file packet Corresponding additional resource file updates packet, and wherein additional resource file update includes corresponding with the additional resource file subpackage Additional resource file update subpackage, the necessary resource file packet be force update file, the additional resource file is more New packet is the file of optional update, therefore the additional resource file updates packet and will not be directly downloaded to local, but is stored In server side.
Step 406: obtaining index patch file, the index file is updated according to the index patch file.
In the embodiment of the present application, it further includes index patch file that the game resource, which updates patch, is being updated every time most The index file is updated by the index patch file afterwards, so that the necessary resource file and additional resource The situation of change of file can update in the index file in file.
Optionally, the user information includes the Role Information of the instruction of user, the class information of user or user.
In another embodiment of the application, it is being updated to the index file according to the index patch file It afterwards, further include step 501 to step 504.
Step 501: the necessary resource file that will acquire updates packet and at least one additional money described in getting Source file updates the end that subpackage is added to the file packet queue, obtains updated file packet queue.
Step 502: the operation updated file packet queue.
Step 503: corresponding from server acquisition by updated index file according to the user information of update At least one additional resource file corresponding with the user information of update updates subpackage.
In the embodiment of the present application, user can choose in additional resource file packet the more amount of new data of oneself, extreme case Under can necessary resource file packet update after be directly entered client, by the I/O system of game determines load update it is specific Additional resource file update subpackage, for example, some additional resource file update subpackage have recorded somewhere in game map letter Breath does not update the additional resource file subpackage when region at player does not enter this, is detecting that player enters when games At this instruction of map or by calculate judge that player very likely enters at this in the case where region, that is, start to be updated this Additional resource file subpackage.
Step 504: by it is described update with the corresponding additional resource file of user information that is updating subpackage be added to it is described more The end of file packet queue after new.
The application only forces game resource file to update necessary resource file packet, add by updating index file Resource bundle can not force to update, and additional resource file is updated packet and issued with the structure of subpackage, while each version Update can all store complete game resource on the server and update patch so that client produce cross-version update can Can, to reduce the more amount of new data of client and the redundancy of resource file.
The document handling method of the application, it is intended to break the whole up into parts, reduce interrupted because updating or repairing game running when Between, when carrying out file reparation and updating, system carries out the reparation and update of selectivity automatically according to the needs of user, rather than Whole reparations or update are carried out like that with the prior art, to further improve the specific aim and effect repaired with or updated Rate.
Corresponding with above method embodiment, this specification additionally provides the embodiment of document handling system, and Fig. 6 and 7 shows The module map of the document handling system of one embodiment of this specification is gone out.As shown in fig. 6, this document processing system includes:
Module 601 is obtained, is configured as obtaining necessary resource file packet and index file from server end, the necessary money It include multiple necessary resource files in source file packet.
The acquisition module 601 is additionally configured to be obtained according to user information from server corresponding in additional resource file packet At least one additional resource file subpackage, include multiple corresponding additional resource files in each additional resource file subpackage.
Execution module 602 is configured as necessary resource file packet and additional resource file subpackage according to acquisition, generates text Part packet queue.
Correction verification module 603 is configured as according to the index file to the necessary resource file in the file packet queue It is verified with additional resource file, damage is marked in the additional resource file of verification failure.
First repair module 604 is configured as running the file packet queue, in the first additional resource file to be loaded In the case where for labeled damage, acquisition request is sent to server, it is attached to reacquire described first according to the index file Add resource file.
In embodiments herein, further includes:
Second repair module 605, the necessary resource file for being configured as to verify failure pass through index file from server It reacquires and covers.
In embodiments herein, the correction verification module 603 includes:
Indexing units, the additional resource file for being configured as obtaining the verification failure are corresponding in the index file Index information.
Marking unit is configured as the identifier word segment mark in the index information of the additional resource file of the verification failure It is denoted as and does not download.
In embodiments herein, further includes:
Additional module 606 is configured as the first additional resource file that will be reacquired addition in the file packet The end of queue, and cover the first additional resource file for being marked as damage.
In another embodiment of the application, as shown in fig. 7, the file system of the application further include:
First update module 701 is configured as obtaining necessary resource file update packet from the server.
First update module 701 is additionally configured to obtain the update of additional resource file from server according to user information At least one additional resource file in packet updates subpackage.
First update module 701 is additionally configured to obtain index patch file, according to the index patch file pair The index file is updated.
In embodiments herein, further includes:
First sorting module 702 is configured as the institute that the necessary resource file that will acquire updates packet and gets It states at least one additional resource file and updates the end that subpackage is added to the file packet queue, obtain updated file packet team Column.
Module 705 is run, is configured as running the updated file packet queue.
In embodiments herein, further includes:
Second update module 703 is configured as according to the user information of update through updated index file from described Server obtains at least one corresponding additional resource file corresponding with the user information of update and updates subpackage.
Second sorting module 704 is configured as updating the additional resource file corresponding with user information that is updating Subpackage is added to the end of the updated file packet queue.
Optionally, the user information includes the Role Information of the instruction of user, the class information of user or user.
One embodiment of the application also provides a kind of computer readable storage medium, is stored with computer instruction, the instruction The step of document handling method as previously described is realized when being executed by processor.
A kind of exemplary scheme of above-mentioned computer readable storage medium for the present embodiment.It should be noted that this is deposited The technical solution of storage media and the technical solution of above-mentioned document handling method belong to same design, the technical solution of storage medium The detail content being not described in detail may refer to the description of the technical solution of above-mentioned document handling method.
The computer instruction includes computer program code, the computer program code can for source code form, Object identification code form, executable file or certain intermediate forms etc..The computer-readable medium may include: that can carry institute State any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic disk, CD, the computer storage of computer program code Device, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), Electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that the computer-readable medium include it is interior Increase and decrease appropriate can be carried out according to the requirement made laws in jurisdiction with patent practice by holding, such as in certain jurisdictions of courts Area does not include electric carrier signal and telecommunication signal according to legislation and patent practice, computer-readable medium.
It should be noted that for the various method embodiments described above, describing for simplicity, therefore, it is stated as a series of Combination of actions, but those skilled in the art should understand that, the application is not limited by the described action sequence because According to the application, certain steps can use other sequences or carry out simultaneously.Secondly, those skilled in the art should also know It knows, the embodiments described in the specification are all preferred embodiments, and related actions and modules might not all be this Shen It please be necessary.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment Point, it may refer to the associated description of other embodiments.
The application preferred embodiment disclosed above is only intended to help to illustrate the application.There is no detailed for alternative embodiment All details are described, are not limited the invention to the specific embodiments described.Obviously, according to the content of this specification, It can make many modifications and variations.These embodiments are chosen and specifically described to this specification, is in order to preferably explain the application Principle and practical application, so that skilled artisan be enable to better understand and utilize the application.The application is only It is limited by claims and its full scope and equivalent.

Claims (22)

1. a kind of document handling method, which is characterized in that be applied to client, comprising:
Necessary resource file packet and index file are obtained from server end, includes multiple necessary moneys in the necessary resource file packet Source file;
At least one corresponding additional resource file subpackage in additional resource file packet is obtained from server according to user information, often It include multiple corresponding additional resource files in a additional resource file subpackage;
According to the necessary resource file packet of acquisition and additional resource file subpackage, the queue of file packet is generated;
According to the index file in the file packet queue necessary resource file and additional resource file verify, will Damage is marked in the additional resource file of verification failure;
The file packet queue is run, in the case where the first additional resource file to be loaded is labeled damage, to service Device sends acquisition request, reacquires the first additional resource file according to the index file.
2. the method according to claim 1, wherein before running the file packet queue, further includes:
The necessary resource file of verification failure is reacquired and covered from server by index file.
3. the method according to claim 1, wherein damage is marked in the additional resource file of verification failure Include:
Obtain the additional resource file for verifying failure corresponding index information in the index file;
Identification field in the index information of the additional resource file of the verification failure is labeled as not downloading.
4. the method according to claim 1, wherein it is additional to reacquire described first according to the index file After resource file, further includes:
By the first additional resource file addition of reacquisition at the end of the file packet queue, and covers and be marked as The first additional resource file of damage.
5. the method according to claim 1, wherein after generating the queue of file packet, further includes:
Necessary resource file, which is obtained, from the server updates packet;
It obtains additional resource file from server according to user information and updates at least one additional resource file in wrapping and update and divide Packet;
Index patch file is obtained, the index file is updated according to the index patch file.
6. according to the method described in claim 5, it is characterized in that, according to the index patch file to the index file After being updated, further includes:
The necessary resource file that will acquire updates packet and at least one additional resource file described in getting updates point Packet is added to the end of the file packet queue, obtains updated file packet queue;
Run the updated file packet queue.
7. according to the method described in claim 6, it is characterized in that, being gone back after running the updated file packet queue Include:
According to the user information of update by updated index file from the server obtain it is corresponding at least one with more The corresponding additional resource file of new user information updates subpackage;
The additional resource file corresponding with user information that is updating is updated into subpackage and is added to the updated file packet The end of queue.
8. according to claim 1 or method described in 5-7 any one, which is characterized in that the user information includes user Instruction, the class information of user or the Role Information of user.
9. the method according to claim 1, wherein according to the index file in the file packet queue Necessary resource file and additional resource file carry out verification
The necessary resource file is verified using message digest algorithm;
The additional resource file subpackage is verified using 32 cyclic redundancy check methods or message digest algorithm.
10. the method according to claim 1, wherein being labeled in the first additional resource file to be loaded Include: in the case where damage
Receive user read the labeled damage the first additional resource file instruction or determine user will read institute State the first additional resource file of labeled damage.
11. a kind of document handling system characterized by comprising
Module is obtained, is configured as obtaining necessary resource file packet and index file, the necessary resource file from server end It include multiple necessary resource files in packet;
The acquisition module be additionally configured to according to user information from server obtain additional resource file packet in it is corresponding at least One additional resource file subpackage includes multiple corresponding additional resource files in each additional resource file subpackage;
Execution module is configured as necessary resource file packet and additional resource file subpackage according to acquisition, generates file packet team Column;
Correction verification module is configured as providing the necessary resource file in the file packet queue with additional according to the index file Source file is verified, and damage is marked in the additional resource file of verification failure;
First repair module is configured as running the file packet queue, is to be marked in the first additional resource file to be loaded In the case where note damage, acquisition request is sent to server, first additional resource is reacquired according to the index file File.
12. system according to claim 11, which is characterized in that further include:
Second repair module, the necessary resource file for being configured as to verify failure are reacquired by index file from server And it covers.
13. system according to claim 11, which is characterized in that the correction verification module includes:
Indexing units are configured as obtaining the additional resource file of the verification failure corresponding index in the index file Information;
Marking unit is configured as the identification field in the index information of the additional resource file of the verification failure being labeled as It does not download.
14. system according to claim 11, which is characterized in that further include:
Additional module is configured as the first additional resource file that will be reacquired addition at the end of the file packet queue Tail, and cover the first additional resource file for being marked as damage.
15. system according to claim 11, which is characterized in that further include:
First update module is configured as obtaining necessary resource file update packet from the server;
First update module is additionally configured to be obtained in additional resource file update packet according to user information from server At least one additional resource file updates subpackage;
First update module is additionally configured to obtain index patch file, according to the index patch file to the index File is updated.
16. system according to claim 15, which is characterized in that further include:
First sorting module is configured as the necessary resource file that will acquire and updates packet and at least one described in getting A additional resource file updates the end that subpackage is added to the file packet queue, obtains updated file packet queue;
Module is run, is configured as running the updated file packet queue.
17. system according to claim 16, which is characterized in that further include:
Second update module is configured as being obtained by updated index file from the server according to the user information of update At least one corresponding additional resource file corresponding with the user information of update is taken to update subpackage;
Second sorting module is configured as the additional resource file corresponding with user information that is updating updating subpackage addition To the end of the updated file packet queue.
18. file system described in 1 or 15-17 any one according to claim 1, which is characterized in that the user information The class information of instruction, user including user or the Role Information of user.
19. system according to claim 11, which is characterized in that the correction verification module includes:
First verification unit is configured as verifying the necessary resource file using message digest algorithm;
Second verification unit is configured as using 32 cyclic redundancy check methods or message digest algorithm to the additional resource File subpackage is verified.
20. system according to claim 11, which is characterized in that first repair module includes:
Trigger unit is repaired, is configured as receiving the instruction for the first additional resource file that user reads the labeled damage Or determine that user will read the first additional resource file of the labeled damage.
21. a kind of calculating equipment including memory, processor and stores the calculating that can be run on a memory and on a processor Machine instruction, which is characterized in that the processor realizes claim 1-10 any one the method when executing described instruction Step.
22. a kind of computer readable storage medium, is stored with computer instruction, which is characterized in that the instruction is held by processor The step of claim 1-10 any one the method is realized when row.
CN201910169501.5A 2019-03-06 2019-03-06 File processing method and system, computing device and storage medium Active CN109908585B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910169501.5A CN109908585B (en) 2019-03-06 2019-03-06 File processing method and system, computing device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910169501.5A CN109908585B (en) 2019-03-06 2019-03-06 File processing method and system, computing device and storage medium

Publications (2)

Publication Number Publication Date
CN109908585A true CN109908585A (en) 2019-06-21
CN109908585B CN109908585B (en) 2022-12-27

Family

ID=66963565

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910169501.5A Active CN109908585B (en) 2019-03-06 2019-03-06 File processing method and system, computing device and storage medium

Country Status (1)

Country Link
CN (1) CN109908585B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110297633A (en) * 2019-06-28 2019-10-01 百度在线网络技术(北京)有限公司 Code conversion method, device, equipment and storage medium
CN110908958A (en) * 2019-11-22 2020-03-24 珠海豹趣科技有限公司 File processing method, device, terminal and storage medium
CN112261388A (en) * 2020-09-07 2021-01-22 中国电影器材有限责任公司 Redundancy recovery method, device and system for satellite transmission digital film packet
CN113407213A (en) * 2021-06-21 2021-09-17 平安银行股份有限公司 Resource package updating method, device, equipment and storage medium
WO2023217086A1 (en) * 2022-05-09 2023-11-16 维沃移动通信有限公司 Resource file updating method and apparatus, and device and readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1999045482A1 (en) * 1998-03-03 1999-09-10 Siebel Systems, Inc. Method, apparatus, system, and program product for attaching files and other objects to a partially replicated database
US20080256640A1 (en) * 2006-10-13 2008-10-16 Kabushiki Kaisha Toshiba Playback apparatus and playback method
CN106326310A (en) * 2015-07-06 2017-01-11 北京壹平台科技有限公司 Resource encryption updating method for mobile phone client software

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO1999045482A1 (en) * 1998-03-03 1999-09-10 Siebel Systems, Inc. Method, apparatus, system, and program product for attaching files and other objects to a partially replicated database
US20080256640A1 (en) * 2006-10-13 2008-10-16 Kabushiki Kaisha Toshiba Playback apparatus and playback method
CN106326310A (en) * 2015-07-06 2017-01-11 北京壹平台科技有限公司 Resource encryption updating method for mobile phone client software

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
怡丹科技工作室编著: "《魔法手册windows xp操作技巧》", 30 April 2006 *
田翠华编著: "《基于GT4的物联网交通信息服务仿真研究》", 31 January 2017 *
路朝龙编著: "《Unity 3D游戏开发从入门到精通》", 30 November 2013 *
远望图书部编: "《电脑故障排除速查1000例》", 30 November 2002 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110297633A (en) * 2019-06-28 2019-10-01 百度在线网络技术(北京)有限公司 Code conversion method, device, equipment and storage medium
CN110297633B (en) * 2019-06-28 2023-05-23 百度在线网络技术(北京)有限公司 Transcoding method, device, equipment and storage medium
CN110908958A (en) * 2019-11-22 2020-03-24 珠海豹趣科技有限公司 File processing method, device, terminal and storage medium
CN110908958B (en) * 2019-11-22 2023-11-24 珠海豹趣科技有限公司 File processing method, device, terminal and storage medium
CN112261388A (en) * 2020-09-07 2021-01-22 中国电影器材有限责任公司 Redundancy recovery method, device and system for satellite transmission digital film packet
CN113407213A (en) * 2021-06-21 2021-09-17 平安银行股份有限公司 Resource package updating method, device, equipment and storage medium
WO2023217086A1 (en) * 2022-05-09 2023-11-16 维沃移动通信有限公司 Resource file updating method and apparatus, and device and readable storage medium

Also Published As

Publication number Publication date
CN109908585B (en) 2022-12-27

Similar Documents

Publication Publication Date Title
CN109908585A (en) A kind of document handling method and system calculate equipment and storage medium
CN110058873B (en) Application page updating method, device, equipment and storage medium
US9696981B2 (en) Incremental deployment of computer software program logic
US8108536B1 (en) Systems and methods for determining the trustworthiness of a server in a streaming environment
KR101422563B1 (en) Method and system for efficient download of data package
US9087156B2 (en) Application version release management
CN106933614B (en) Single-page application upgrading method and device
KR102044046B1 (en) Telemetry file hash and conflict detection
CN104219198B (en) A kind of tamper resistant method of WebApp
EP2616949A2 (en) Reputation checking obtained files
WO2007054129A1 (en) A system for maintaining data
CN111897846B (en) Cache data verification method, device, equipment and storage medium
CN109513213A (en) A kind of hand trip subpackage download technology method
CN108415714A (en) The method for upgrading system and device of mobile terminal
US20170177316A1 (en) Mobile application deployment for distributed computing environments
US9749295B2 (en) Systems and methods for internet traffic analysis
CN110457628A (en) Webpage edition correcting method, device, equipment and storage medium
US20170177395A1 (en) Embedded architecture based on process virtual machine
CN107368513A (en) The method and device of client database renewal
CN106990988A (en) The method and device that a kind of program updates
CN110046000A (en) Small routine operation method and device
CN110874445A (en) Webpage loading method, client and business service center
CN106569841A (en) File loading method and device
CN107305522A (en) The apparatus and method detected for the repetition collapse to application program
CN116069366A (en) Client application program updating method and device, storage medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 519000 Room 102, 202, 302 and 402, No. 325, Qiandao Ring Road, Tangjiawan Town, high tech Zone, Zhuhai City, Guangdong Province, Room 102 and 202, No. 327 and Room 302, No. 329

Applicant after: Zhuhai Jinshan Digital Network Technology Co.,Ltd.

Address before: Room 102, Room 202, Room 302, Room 402, Room 327, Room 102, Room 202, Room 329, Room 302, No. 325, Qiandao Ring Road, Tangjiawan Town, High-tech Zone

Applicant before: ZHUHAI KINGSOFT ONLINE GAME TECHNOLOGY Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant