CN105635264B - A kind of file system based on online game application - Google Patents
A kind of file system based on online game application Download PDFInfo
- Publication number
- CN105635264B CN105635264B CN201510995137.XA CN201510995137A CN105635264B CN 105635264 B CN105635264 B CN 105635264B CN 201510995137 A CN201510995137 A CN 201510995137A CN 105635264 B CN105635264 B CN 105635264B
- Authority
- CN
- China
- Prior art keywords
- file
- module
- information
- download
- downloading
- 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.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/04—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
- H04L63/0428—Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1095—Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/131—Protocols for games, networked simulations or virtual reality
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Information Transfer Between Computers (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a kind of file system based on online game application, including memory module, search module, unified download platform module and downloading sharing module, wherein the memory module is used to store the file information of the file system;Described search module from memory module for retrieving corresponding the file information;The unified download platform module retrieves corresponding the file information for receiving the downloading request for the respective file that game client issues in one or more client process environment, and according to downloading request command deployment module;The downloading sharing module is used for while unified download platform module receives downloading request, and whether analysis download address is identical download address, when for identical download address, returns to the shared information for having downloaded file.The present invention makes game load resource faster, keeps resource file safer, increases the illegal difficulty for obtaining resource, and it is smaller, more transparent that game file edition upgrading is influenced caused by player.
Description
Technical field
The present invention relates to internet gaming application field, especially a kind of file system based on online game application.
Background technique
Online game in recent years rapidly develops, wherein completely the client game quantity of installation version is gradually decreasing instead,
The online stepping-stone to success of game promptly can be had become into game.Game client is required to dynamically download thus
Thus resource needed for game process brings a series of relevant issues.
Heap file is read in online game program operation process, in windows system, if these files are direct
It is placed in windows file directory, not only access speed is slower, is unable to efficient application system cache, and it is empty can not to compress saving
Between, also it is unfavorable for the safety of resource, is easy to make that resource file is stolen, modification.
Then the game of marquee account end has a demand, is exactly that file is packaged compression encryption reading.First guarantee that safety is steady
It is fixed, then speed is biased toward, finally take compression into account and the variation of file updates.
The game largely to improve grade both at home and abroad at present has all carried out packing processing to its resource file, but can be online
Dynamic updates actually rare, and the country seems that the network game for having imperial rifle, despot's knife etc. to occur recently uses similar techniques.External game
Middle application it is less, it may be possible to because the reason that external network bandwidth is big, downloads the reason that entire game will not be very time-consuming.No
By be it is both domestic and external, at present temporarily it is all available for download without Open Source Code.
Therefore, current technology producer file system all new in active development, this file system need to be suitble to a large amount of
Client resource file integration management, and have less strict safety requirements, have download online demand, file data does not have
There is the occasion that demand is modified when operation.Based on this system, client is easier to install and movement, reduction resource file expose machine
Data can be made to be difficult to more safely steal and distort, read time-consuming, support network using compression to reduce data size and hard disk
Resource needed for dynamic download, and do not need to re-download the data that client has cached when part resource updates.Not
Performance can also pellucidly be optimized to application layer by continuing to optimize internal system implementation.
Summary of the invention
To solve the above problems, being mentioned the purpose of the present invention is to provide a kind of file system based on online game application
The speed of high game load resource allows multiple processes to the same packet while reading and downloading resource, allows online backstage same
The resource on server is walked, and guarantees the safety of resource to a certain extent.
Technical solution used by the present invention solves the problems, such as it is:
The preferred embodiment of the present invention provides a kind of file system based on online game application, includes at least storage mould
Block, search module, unified download platform module, downloading sharing module, in which:
The memory module is used to store the file information of the file system;
Described search module from memory module for retrieving corresponding the file information;
The downloading for the respective file that the unified download platform module is used to receive game client sending is requested, and according to
Downloading request command deployment module retrieves corresponding the file information;
The downloading sharing module is used to analyze download address while unified download platform module receives downloading request
Whether it is identical download address, when for identical download address, returns to the shared information for having downloaded file.
Further, the file system further include:
Compression and encrypting module, for the file information stored in memory module to be compressed or/and is encrypted, the pressure
When contracting and encrypting module compress corresponding document information, the text of the compression ratio of setting only can achieve to compressed file
Part information is compressed.
Further, the memory module stores corresponding the file information, while spanning tree index text in a manner of multistage tree
Part, the tree index file are individually stored or are stored together with corresponding the file information.
Further, the file system further include:
Compression and encrypting module, for the file information stored in memory module to be compressed or/and is encrypted, the pressure
When contracting and encrypting module compress corresponding document information, the compressed package of generation includes:
Main document, the main document include packet header, file data area and the tree information area;Or
Main document and tree index file, the main document includes packet header and file data area, and the tree index file includes
Packet header and tree index file;
The packet header includes at least the length and version information of file header, and the position of the corresponding tree information area is stored in packet header
Confidence breath, the file data area store corresponding the file information, and the tree information area stores corresponding tree index file.
Further, the unified download platform module includes:
Multiprocessing unit, for being ranked up to process, and according to sequence to the process for receiving game client transmission
Column processing process;
Information identificating unit, for reading matching under the process catalogue in some thread of Multiprocessing cell processing
File is set, quantity, path and the download address of respective file information are obtained according to configuration information, and is back to Multiprocessing list
Member.
Further, the unified download platform module further includes download online recognition unit, for identification Multiprocessing
Whether the received process of unit institute is download online process, and when being identified as download online process, Gao You is arranged for corresponding process
First grade weight.
Further, the unified download platform module further include:
Management of process unit, for the shared information and downloading when multiple processes are downloaded simultaneously, in unified management downloading
Flow, the shared information include multiple game client downloading same file information and the same same text of user terminal repeated downloads
Part information.
Further, the file system further includes Online release module, and the Online release module includes:
Packet generation unit is updated, for generating the complete data packet for needing to update by way of re-creating or updating;
Separation tree unit obtains corresponding tree index text for carrying out separation tree index file operation to complete data packet
Part;
Uploading unit, for rename set index file after it is uploaded to download server together with data packet.
The beneficial effects of the present invention are:
The present invention is realized in the underlying basis of game, is allowed more using a kind of file system based on online game application
A process allows the resource on online background synchronization server, game can be made to add to the same packet while reading and downloading resource
It carries resource faster, keeps resource file safer, increase the illegal difficulty for obtaining resource, and make game file edition upgrading pair
It is influenced caused by player smaller, more transparent.
Detailed description of the invention
The invention will be further described with example with reference to the accompanying drawing.
Fig. 1 is the structural schematic diagram of file system in the preferred embodiment of the present invention;
Fig. 2 is the structure composition schematic diagram of the unified download platform module of the present invention;
Fig. 3 is the processing schematic of the present invention unified download platform module and process;
Fig. 4 is the specific internal structure of file system of the present invention and workflow schematic diagram;
Fig. 5 is the thread relationship and processing flow schematic diagram of file system of the present invention.
Specific embodiment
Following embodiment of the present invention is only represented to specific explanation of the invention, and the present invention is not limited to certain system or game
Application.The game that the present invention is mentioned, not for certain a special game, application belonging to the present invention is in the present invention
Technical solution illustrate.
File system of the present invention provides the library FPC and its online version FPCO (online compressing file to upper layer programmer
Wrap File Pack with Compression Online) library and the library DownloadClient (Client of Download
Service unifies download service client) library, and it has been attached to DownloadServer program (Server of Download
Service unifies download service platform) and management of file packet tool and a console example procedure, one be based on .Net
The Visualization Demo program of platform C++/CLI language.The specific implementation of file system of the present invention is referring in following embodiment
It is specific described.
Embodiment 1:
Shown referring to Fig.1 as the preferred embodiment of the present invention, file system of the invention includes at least memory module
100, search module 101, unified download platform module 102, downloading sharing module 103, in which:
The memory module 100 is used to store the file information of the file system;
Described search module 101 from memory module 100 for retrieving corresponding the file information;
The unified download platform module 102 is used to receive the downloading request of the respective file of game client sending, and
Corresponding the file information is retrieved according to downloading request command deployment module 101;
The downloading sharing module 103 is used for while unified download platform module 102 receives downloading request, under analysis
Whether set address is identical download address, when for identical download address, returns to the shared information for having downloaded file.
System above structure constitutes the most basic component units of the present invention, all processes that game client is issued
The distribution that downloading requests the flow handled by unified download platform module 102, to the downloading of process and carries out resource
Blocking and other abnormal conditions can be avoided with the control of rational and orderly.
The preferred embodiment of the present invention joined compression and encrypting module 104 in file system, for memory module
The file information stored in 100 is compressed or/and is encrypted, and the compression and encrypting module 104 carry out corresponding document information
When compression, the file information for the compression ratio that only can achieve setting to compressed file is compressed.Herein, set pressure
Shrinkage can be configured according to practical application, and the present invention is not limited to a certain single fixed value, value can also be with pressure
The Different Dynamic of contracting file is arranged.Compression of the present invention and encipherment scheme, can be with currently used conventional scheme, can also
To be advanced compression and cipher mode, in file system of the invention, mode used by compression and encryption is to of the invention
Realize do not have substantive influence.
The general preferable binary file of scalability has a file header (packet header), the length for specified document head
Degree and FileVersion etc., can be enhanced fault-tolerance and edition compatibility ability using packet header.In order to be compatible with FPC and FPCO to file
The different demands of tree structure information (referred to as tree information), file tree structure information can be collectively stored in main document with file data
It is interior, it can also be separately separated out and save into a file (referred to as tree index file).It may indicate that tree information is deposited in the header
Storage is in which file.Since the length of main document may dynamically increase, so when using FPCO, it is necessary to make to set index file.
For this purpose, in a preferred embodiment of the invention, the memory module 100 stores corresponding text in a manner of multistage tree
Part information, while spanning tree index file, the tree index file are individually stored or are stored together with corresponding the file information.
No matter tree index file is individually stored or stored always with corresponding the file information, the compression and encrypting module are to corresponding text
When part information is compressed, there are two types of the compressed package of generation includes:
Compressed package only includes main document, and the main document includes packet header, file data area and the tree information area;Or
Compressed package includes main document and tree index file, and the main document includes packet header and file data area, the tree rope
Quotation part includes packet header and tree index file;
The packet header includes at least the length and version information of file header, and the position of the corresponding tree information area is stored in packet header
Confidence breath, the file data area store corresponding the file information, and the tree information area stores corresponding tree index file.
From in the narration above to memory module 100 it is found that present invention employs the structure in Windows file system,
I.e. multistage file tree system, correspondingly, positive back slash, and case-insensitive are supported in the path in memory module 100.It is corresponding
, the attribute of the file information therein includes filename, file size, modification time, compression information, parent directory index, storage
Information etc., the information of each catalogue then include path, file/directory quantity, parent directory index, can also include directory path
Hash etc..It is corresponding, search module 101 support to carried out under specified directory traversal subdirectory and subfile, judge specified path
File directory with the presence or absence of equal operation, also information such as the name, size of available specified file and modification date.
In the preferred embodiment of the present invention, referring to shown in Fig. 2, the unified download platform module 102 includes:
Multiprocessing unit 200, for being ranked up to process, and press to the process for receiving game client transmission
According to series processing process;
Information identificating unit 201, for reading the process catalogue when Multiprocessing unit 200 handles some thread
Under configuration file, quantity, path and the download address of respective file information are obtained according to configuration information, and is back to multi-process
Processing unit;
Download online unit 202, whether the received process of Multiprocessing unit institute is download online process for identification,
When being identified as download online process, high priority weight is set for corresponding process;
Management of process unit 203, for multiple processes simultaneously download when, unified management downloading in shared information and under
Current-carrying capacity, the shared information include that multiple game client downloading same file information and same user terminal repeated downloads are same
The file information.
The Multiprocessing unit 200, information identificating unit 201, download online unit 202 and management of process unit
203 be the specific implementation process of unified download platform module 102 of the present invention, and the present invention passes through unified download platform module
102 realize the unified planning and management to file system.First is that planning and management to multithreading, the received multithreading system of institute
One is handled by Multiprocessing unit 200, can be in the way of time priority or the stack of first in first out when sequence
Column mode or other way, stringent limitary permutation mode do not have significant meaning to realization of the invention, therefore, adopt
It takes other approach to realize the management to process, is also that concrete mode or method of the invention can be achieved.Second is that handling some line
Planning and management when journey, when handling some thread, information identificating unit 201 can be read under the process catalogue present invention
Configuration file needs the information such as address, the quantity of file downloaded to obtain this process, later, by search module 101 from depositing
It stores up and is searched in module 100.Third is that planning and management to download online process, due to download online process directly with
User is related to the experience of game, and therefore, application must carry out priority processing, and the present invention is knowing according to most conventional mode
Not after line process, higher priority is assigned to it, it should be pointed out that when, the present invention only specifically elaborates a kind of realization
A kind of quick-downloading mode of online process, for other processing modes, such as the exclusivity processing of download online process etc.,
For the present invention it is achievable within the scope of.Fourth is that multiple processes simultaneously download planning and management, the present invention for it is multiple into
Journey is downloaded simultaneously, to take into account the speed of different process downloadings, reasonably controls the flow of downloading, such as corresponding downloading software
(sudden peal of thunder, BT etc.) settable corresponding speed of download, to avoid the other normal online of user, management of process unit 203 is influenced
Multiple processes can be carried out while be managed according to the specific requirement of user, multiple process downloaded file contents are identical sometimes,
Such as in Internet bar, same user may download the file of repeatability, and (large size trip is mostly group game, and more people is needed to form a team group
Close, single user often triggers same process downloading same file in game, or triggering it is different process downloading it is same
File), the present invention can identify the identical process of downloading content, avoid repeated downloads, equally, different processes is possible to simultaneously
Identical file is downloaded, management of process unit 203 also allows multiple processes while downloading same file.
Referring to shown in Fig. 3, multiple processes of multiple game or a game are carried out by connecting unified download platform module
Resource downloading.Multiple processes of the same game, can be with the content of sharing download, i.e. process A requested resource file, process
B is not necessarily to repeated downloads.When the present invention realizes, the same download platform process is can be used in multiple game, is born with reaching whole
Carry control.Due to catalogue difference, packet document is independent mutually for different game, and URL can be respectively configured, even if bearing the same name there will not be punching
It is prominent.In terms of scalability, by expanding, the downloading that local area network grade may be implemented in file system of the invention completely is shared, can have
Effect improves the experience of network bar users, can also improve speed of download using P2P transmission.Above specific implementation, according to the above institute
State the explanation to 2 particular content of attached drawing.
The update of online game, it is of the present invention in order to further enhance the experience of user usually in linear update
File system further includes Online release module, and the Online release module includes:
Packet generation unit is updated, for generating the complete data packet for needing to update by way of re-creating or updating
xxx.fpc;
Separation tree unit obtains corresponding tree for carrying out separation tree index file operation to complete data packet xxx.fpc
Index file xxx.fpci;
Uploading unit, for (being xxx.server.fpci) after renaming by itself and data packet one after renaming and setting index file
It rises and is uploaded to HTTP download server.
When generating data packet in a manner of update, file size and modification time are identical, it is believed that and it is unchanged file,
It need not be updated.
If version updating is not critical update, without that will take player entirely and kick out of client, then cannot directly it replace at this time
Otherwise existing server file will appear the unmatched situation of version.The present invention connects different editions client different
Catalogue, and the resource file of legacy version is deleted in due course.By more new configuration file simultaneously when version updating, do not restart
Client will continue to connect old data source.
When game client uses online resource, in first time starting game or version updating, newest tree rope is downloaded
Quotation part x.server.fpci carries out creation packet or tree construction updates to obtain x.fpc and x.fpci later, later, the library FPCO
It is loaded into packet document, and gradually downloads the data in x.fpc and modify xxx.fpci in use.
In order to further be illustrated to invention and sufficiently realize concrete application of the invention, the text in memory module 100
After part is compressed and encrypting module 104 compresses, the space size of whole packet less than 1G to be advisable, it is contemplated that it is convenient that file wraps biography
To be advisable less than 500M;The size of single file is advisable in packet with being no more than 16 bit digitals (binary system) i.e. 65535, when single text
When part is greater than 16 bit digital, then unpack.(the file resource quantity of common middle and small scale MMORPG game less than 3000, greatly
The MMORPG of type scale is less than 30000.)
Referring to shown in Fig. 4, FPCO layers as shown in the figure be FPC derived class, more multiplex roles can be provided.Game process and
Same a configuration file that unified download platform process will be read under the game process catalogue, the number of packet document is determined according to configuration
Amount and path and corresponding download address.Multiple processes of the same game can be the sharing of resources;The packet of different game
Document is independent mutually, will not clash.
The library FPC of bottom is shared using Memory Mapping File to the same packet document, and unified download platform process will be downloaded
To data write in packet document in, what be new can be read directly without notifying between IO or process in game process.
Game logic, which uses " downloading client library " connection download platform and obtains resource, reads interface.
Connection of the client library processing to download platform is downloaded, multiple packet documents are managed and connecing for acquisition packet object is provided
Mouthful.
It is responsible for the read operation to packet document data in the library FPC.
Download service end library handles packet document initial work (in the absence of packet document), the connection of game process and disconnected
Event is completed in the creation work and release, resource data updating, notice game process trigger request for opening, requesting object.
Download service end library calls FPCO layers, and FPCO layers are called cURL to download library by call-back manner.
After resource reaches, the write operation to packet document data is responsible in the library FPC.
In the following, the present invention is further described file system of the present invention from the angle of thread, referring to Fig. 5 institute
Show the relationship and process flow of each thread:
1) firstly for a resource requirement thread (thread for needing to read file data), judge that resource needs to download
Afterwards, apply for a request object (explicitly can create or be packaged in obstruction to read in calling);
2) request processing thread creates an empty request object and returns to resource requirement thread;
3) resource requirement thread is set after solicited message (request may include multiple file requests), is sent to system
Request processing thread processing in one download platform process, and an event object Mutex is obtained, obstruction is detected or synchronized at any time
Mode waits Mutex;
4) after (and when thinking to need to download) request processing thread checked solicited message, to document space manager application
The memory space of resource file, and use download thread pond downloading data.
5) after download thread has handled downloading, one resource file of notice request processing thread completes downloading, if game into
Journey has log-in window file request completion notice message, then sends the message;
6) request processing thread enumerates all requests in relation to this resource file, updates their progress, if request
Interior all resource files are all completed to download, then the event object Mutex of request is arranged;If game process has log-in window to request
At notification message, then the message is sent;
7) after resource requirement thread realizes that event handling is complete, request object can be discharged, and file resource can be used;
8) after request processing thread realizes that request object is released, request object is destroyed.
Embodiment 2:
How demonstration is started download service by following code, and is found MapFile/1.wbf.ter and requested to download.
#include"DownloadClient.h"
#include"FilePackOnline.h"
usingnamespaceFilePack;
usingnamespaceDownloadService;
usingnamespaceDownloadService::DownloadClient;
#include<stdio.h>
#include<conio.h>
//ErrExit prompts mistake, waits key backed off after random program
#defineErrExit(text) do{ printf(text); returngetch(); }while(0)
intmain(intargc, wchar_t* argv[]){
// 1. connection service
CDownloadClientclient (123/* game number * /);// game number
if(!Client.Connect ()) ErrExit (" connection serv-fail n ");
// 2. load packet document
std::vector<CFilePackOnline*>packols = client.LoadPacks(654321
/ * packet document cipher * /);
if(packols.empty() || !packols[0] || !packols[0]->IsOpened())
ErrExit (" loading error of packet document n ");
// MapFile/1.wbf.ter file object is 3. found, and judge whether to need to download
SFile* file=packols [0] -> GetFile (L " MapFile/1.wbf.ter "/* file
Location * /);// obtain file object
if(!File) ErrExit (" can not find resource file n ");
If (CFilePack::IsFileStored (file)) ErrExit (" file downloaded completion n ");
// 4. according to single file object, it creates and sends request
(file, 100/* request are excellent by Query* query=client.CreateAndSendFileQuery
First grade */, 0/* File Privilege * /);
// the request that 5. waits for downloads is completed
while(true){
// every equal 0.5s just export a line log also in processing file download:
(query, 0/* are waited boolprocessing=client.IsProcessingQuery
0ms*/);// test whether handling
while(processing){
Printf (" downloading do not complete, continue waiting for most 0.5s n ");
processing = client.IsProcessingQuery(query,
500);// whether handling, wait most 0.5s
}
// 6. downloading request completion, judges success or failure, and be further processed
If (query- > Files [0] .Downloaded) // can also directly judge whether it is readable:
CFilePack::IsFileStored(file)
Printf (" file download success n ");
client.ReleaseQuery(query);// use finishes release
Request object
break;// regardless of whether actively discharging, it disconnects or process terminates
It will be released
}
elseif(query->Files[0].Failed){
Printf (" file download failure, retry n ");
client.SendQuery(query);// primary request is retransmited,
It re-downloads
}
}
// closing packet is 7. disconnected, and all requests not discharged can be all released
client.CloseConnection();As long as // in fact this process exit, system can be properly
Resource is discharged, without deliberately disconnecting
returngetch();
}
Therefore, file system according to the present invention can be provided for the host software software of this document system (call) with
Lower function:
1. being that host software reads (read-only in host software operation not change) resource file providing method approach;
2. enable host software and can be run as early as possible in resource file not yet in place (the locally downloading hard disk) of non-urgent need,
Starting, and the resource file for constantly downloading necessary urgent need as needed in the process of running (postpones the data of non-urgent need
Downloading, the game that original 20 minutes 500MB that could have been downloaded are shown as in field of network game now can be at 30 seconds first
Row starts);
3. providing support its progress file-level essence for the file of the host software and its respective version that there is edition upgrading to need
The edition upgrading of degree (any one resource file needs more new capital only to need to download it without being forced downloading alternative document)
The method and approach for being easy to operation management;
4. not losing downloading data when having multiple host software processes while running, when downloading resource file, not repeating
Downloading waste network bandwidth;
5. even if be successfully completed when downloading mistake or program error collapse during when guaranteeing downloading data or having a power failure
Resource file is still available;
6. providing the compression transparent to host software author, encryption function, resource file is improved to a certain extent
The speed of safety and downloading, and hard-disc storage space is saved to a certain degree (especially to the text files compression effectiveness such as xml
Significantly);
7. providing (locally downloading hard disk) file in place than commonly (unoptimizable is crossed) reading Windows
The form of file may faster reading speed.
The above, only presently preferred embodiments of the present invention, the invention is not limited to above embodiment, as long as
It reaches technical effect of the invention with identical means, all should belong to protection scope of the present invention.
Claims (7)
1. a kind of file system, which is characterized in that the file system includes memory module, search module, unified download platform
Module, downloading sharing module, Online release module, in which:
The memory module is used to store the file information and data of the file system;
Described search module from memory module for retrieving corresponding the file information and storage location for reading;
The unified download platform module is used to receive the downloading request of the respective file of game client sending, and according to downloading
Corresponding file is downloaded in request;
The downloading sharing module is used for while unified download platform module receives downloading request, and whether analysis download address
The shared information for having downloaded file is returned when for identical download address for identical download address;
The Online release module includes: to update packet generation unit, for generating needs by way of re-creating or updating
The complete data packet of update;Separation tree unit obtains corresponding for carrying out separation tree index file operation to complete data packet
Set index file;Uploading unit, for rename set index file after it is uploaded to download server together with data packet;
Whether data packet described in the system detection is critical update, if not critical update, then make all players keep online,
Different editions client is connected different catalogues so that the client not restarted continues to connect old number by the system
According to source.
2. file system according to claim 1, which is characterized in that the file system further include:
Compression and encrypting module, for the file information stored in memory module to be compressed or/and is encrypted, it is described compression and
When encrypting module compresses corresponding document information, the file that only can achieve the compression ratio of setting to compressed file is believed
Breath is compressed.
3. file system according to claim 1, which is characterized in that the memory module is stored pair in a manner of multistage tree
The file information answered, while spanning tree index file, the tree index file individually store or with corresponding the file information one
Play storage.
4. file system according to claim 3, which is characterized in that the file system further include:
Compression and encrypting module, for the file information stored in memory module to be compressed or/and is encrypted, it is described compression and
When encrypting module compresses corresponding document information, the compressed package of generation includes:
Main document, the main document include packet header, file data area and the tree information area;Or
Main document and tree index file, the main document includes packet header and file data area, and the tree index file includes packet header
With tree index file;
The packet header includes at least the length and version information of file header, and the position letter of the corresponding tree information area is stored in packet header
Breath, the file data area store corresponding the file information, and the tree information area stores corresponding tree index file.
5. file system according to claim 1, which is characterized in that the unified download platform module includes:
Multiprocessing unit, for receive game client send process, process is ranked up, and according to sequence at
Reason process;
Information identificating unit, in some thread of Multiprocessing cell processing, reading the text of the configuration under the process catalogue
Part, quantity, path and the download address of respective file packet are obtained according to configuration information, and are back to Multiprocessing unit.
6. file system according to claim 5, which is characterized in that under the unified download platform module further includes online
Recognition unit is carried, whether the received process of Multiprocessing unit institute is download online process for identification, is being identified as online
When downloading process, for corresponding management of process download relevant information.
7. file system according to claim 5 or 6, which is characterized in that the unified download platform module further include:
Management of process unit, for multiple processes simultaneously download when, unified management downloading in shared information and downloading flow,
The shared information includes multiple game client downloading same file information and same user terminal repeated downloads same file letter
Breath.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510995137.XA CN105635264B (en) | 2016-03-28 | 2016-03-28 | A kind of file system based on online game application |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510995137.XA CN105635264B (en) | 2016-03-28 | 2016-03-28 | A kind of file system based on online game application |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105635264A CN105635264A (en) | 2016-06-01 |
CN105635264B true CN105635264B (en) | 2019-08-20 |
Family
ID=56049736
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510995137.XA Active CN105635264B (en) | 2016-03-28 | 2016-03-28 | A kind of file system based on online game application |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105635264B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP6473252B1 (en) * | 2018-02-27 | 2019-02-20 | 株式会社ドワンゴ | GAME EXECUTION DEVICE AND GAME PROGRAM |
CN110109687B (en) * | 2019-04-26 | 2023-06-30 | 腾讯科技(成都)有限公司 | Application installation package generation method and device |
CN113384872B (en) * | 2021-05-12 | 2024-07-12 | 网易(杭州)网络有限公司 | Method and device for processing information resource in micro-terminal, electronic equipment and storage medium |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101604358B (en) * | 2009-07-13 | 2011-01-26 | 优万科技(北京)有限公司 | Method, device and system for updating resources |
CN103259819B (en) * | 2012-02-20 | 2017-12-15 | 腾讯科技(深圳)有限公司 | The method and system of file-sharing |
CN104104645B (en) * | 2013-04-01 | 2017-08-25 | 北京畅游天下网络技术有限公司 | A kind of cross-platform method for managing resource and system |
CN103259802A (en) * | 2013-06-03 | 2013-08-21 | 贝壳网际(北京)安全技术有限公司 | Media file downloading method and device and client device |
US9256484B2 (en) * | 2013-06-09 | 2016-02-09 | Apple Inc. | Dynamic adjustment of mobile device based on user activity |
CN105327508B (en) * | 2015-11-17 | 2019-03-08 | 盛趣信息技术(上海)有限公司 | Online game operating system and method |
-
2016
- 2016-03-28 CN CN201510995137.XA patent/CN105635264B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN105635264A (en) | 2016-06-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105740418B (en) | A kind of real-time synchronization system pushed based on file monitor and message | |
CN106156359B (en) | A kind of data synchronization updating method under cloud computing platform | |
CN106027647B (en) | The cluster distributed document storage system of LXPFS | |
US7529778B1 (en) | System and method for providing access to consistent point-in-time file versions | |
CN102779185B (en) | High-availability distribution type full-text index method | |
US8606886B2 (en) | System for conversion between physical machines, virtual machines and machine images | |
CN103116618B (en) | Based on Telefile mirror method and the system of the lasting buffer memory of client | |
US9317509B2 (en) | Pro-active self-healing in a distributed file system | |
US20150381725A1 (en) | Service plan tiering, protection, and rehydration strategies | |
CN100553328C (en) | The demand stream media system of intelligent access data | |
US20200387480A1 (en) | Path resolver for client access to distributed file systems | |
CN106506587A (en) | A kind of Docker image download methods based on distributed storage | |
US20070094348A1 (en) | BITS/RDC integration and BITS enhancements | |
US20060253501A1 (en) | Fast and reliable synchronization of file system directories | |
US20100042719A1 (en) | Content access to virtual machine resource | |
JP2018511884A (en) | System and method for automatic cloud-based full data backup and restore on mobile devices | |
CN113626286B (en) | Multi-cluster instance processing method and device, electronic equipment and storage medium | |
CN105635264B (en) | A kind of file system based on online game application | |
CN108092936A (en) | A kind of Host Supervision System based on plug-in architecture | |
US7080102B2 (en) | Method and system for migrating data while maintaining hard links | |
US7281012B2 (en) | System and method for implementing multiple application server clusters using a common binary directory structure | |
Fan et al. | Gear: Enable efficient container storage and deployment with a new image format | |
CN106919470A (en) | A kind of data reconstruction method and device | |
EP2402861A1 (en) | Storage system | |
AU2011293014B2 (en) | Method and system for extending data storage system functions |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |