A kind of system and method for resource heat load iteratively faster game making
Technical field
The present invention relates to a kind of system and method for resource heat load iteratively faster game making, belong to computer game and open
Hair and testing field.
Background technique
It in order to make a game products worked with great care, needs constantly to iterate, constantly practice examination is played, can be with
Make product more perfect.Although the technical level of content production personnel largely controls the quality of final game,
Their effort is often limited by workflow very troublesome.It is intended merely to have a look the line code of artificial intelligence script
What kind of effect changes can generate, and game plan would have to first exit game, re-create one several hundred million resource file,
Then this game is reruned again.If art designing and project staff can be allowed quickly, easily to carry out tune repeatedly to game
It is whole, so that it may to bring better content, more experimental datas, and to be finally to bring a more perfect game products.
Summary of the invention
In view of the deficiencies of the prior art, technical solution of the present invention provides a kind of resource heat load iteratively faster game system
The system and method for work load iteratively faster game making for realizing efficient resource heat.
Technical solution of the present invention includes a kind of system of resource heat load iteratively faster game making, which is characterized in that
The system includes: resource conversion module, for the source file that game developer provides to be identified and is converted, and will identification
It is loaded onto memory block with the file data of conversion;File monitors module, and the file data for that will be loaded onto memory block makes
It is indicated with listed files, and listed files is monitored in real time, obtained when listed files changes and change information
And it is sent;It executes and monitors module, produce mapping table for the unique identification to the data file and data file monitored,
Further, the change information that the file monitors the listed files variation that module is sent is received, variation is obtained by mapping table
Data file, and it is loaded onto memory block again, and issue reload instruction to game actuator;Module is tied up again, is executed for receiving
The reload instruction that module issues is monitored, new data file is obtained and the file resource for being included by data file re-bind to
In game system.
According to the system of the resource heat load iteratively faster game making, the resource conversion module includes: to know
Small pin for the case module, for being identified by file format to the data file for comparing specified format, the data file class identified
Type can carry out customized setting;Submodule is checked, for further being analyzed into the data file for meeting format, for examining
It measures in the presence of mistake or/and nonsynchronous file data, and is shown using obvious mark;Transform subblock is used for logarithm
The data file of specified type is converted to according to file, and is loaded into memory block, not to file data in conversion process
Data analysis, Memory Allocation are carried out, wherein data file mainly includes game resource and corresponding dependence;Submodule is relied on,
For being checked in conversion process dependence according to the dependence of game resource, simultaneously, corresponding creation is needed
The dependence to be re-created.
According to the system of the resource heat load iteratively faster game making, it includes: money that the file, which monitors module,
Source directory submodule, for the data file and the creation file monitor list of corresponding game resource to monitoring;Monitor submodule,
For creating the corresponding device of a corresponding event using monitor for each file monitor list, the corresponding device of the event for pair
File set carries out the poll of regularity, changes when being polled to corresponding file data, generates the corresponding simultaneously feedback information of event
To monitor, the monitor, which is used to monitor module to the execution by internet message to send, executes request instruction.
According to the system of the resource heat load iteratively faster game making, the monitoring module includes: port prison
Submodule is listened, continues monitoring for carrying out to the specified network port, is asked when receiving the execution that the file monitoring module is sent
Instruction is asked to issue the reload instruction to respective file data;Heavily loaded submodule, for being reflected according to heavy duty is specified from mapping table acquisition
Relationship is penetrated, the unique identification and its game resource of corresponding data file are further obtained, and then original is loaded onto the trip of memory block
Play resource replaces with the game resource after change.
According to the system of the resource heat load iteratively faster game making, the module of tying up again includes: to tie up again
Stator modules, the reload instruction for being issued according to the monitoring module transfer the game that the heavily loaded submodule reloads
Resource is replaced game resource to be replaced;Adjusting submodule, for after former game resource is replaced, new game to be provided
The dependence in source is re-established or/and is handled, and further includes that the dependence established to needs re-establishes.
Technical solution of the present invention further includes a kind of resource heat load iteratively faster game making method, which is characterized in that
This method comprises: the source file provided game developer is identified and is converted, and the file data that will be identified and convert
It is loaded onto memory block;The file data being loaded onto memory block is indicated using listed files, and to listed files into
Row real time monitoring obtains when listed files changes and changes information and sent;To the data file and number monitored
Mapping table is produced according to the unique identification of file, further, receives the change that the file monitors the listed files variation that module is sent
Change information, the data file of variation is obtained by mapping table, and is loaded onto memory block again, and issue heavy duty to game actuator
Instruction;It receives to execute and monitors the reload instruction that module issues, the file for obtaining new data file and being included by data file
Resource re-bind in game system.
Further, this method further include: the data file for comparing specified format is identified by file format, is known
Other data file class can carry out customized setting;It is further analyzed into the data file for meeting format, for examining
It measures in the presence of mistake or/and nonsynchronous file data, and is shown using obvious mark;Data file is converted to specified
The data file of type, and be loaded into memory block, data analysis, memory are not carried out to file data in conversion process
Distribution, wherein data file mainly includes game resource and corresponding dependence;It is being converted according to the dependence of game resource
Dependence is checked in the process, simultaneously, the dependence that corresponding creation needs to re-create.
Further, this method further include: data file and corresponding game resource to monitoring create file monitor list;
The corresponding device of a corresponding event is created using monitor for each file monitor list, and the corresponding device of the event is used for file
Collection carries out the poll of regularity, changes when being polled to corresponding file data, generates the corresponding simultaneously feedback information of event to prison
Device is controlled, the monitor, which is used to monitor module to the execution by internet message to send, executes request instruction.
Further, this method further include: the specified network port is carried out to continue monitoring, monitors mould when receiving the file
The execution request instruction that block is sent issues the reload instruction to respective file data;It is mapped according to specified obtained from mapping table of heavy duty
Relationship further obtains the unique identification and its game resource of corresponding data file, and then original is loaded onto the game of memory block
Resource replaces with the game resource after change.
Further, this method further include: according to the reload instruction that the monitoring module issues, transfer the heavily loaded submodule
The game resource reloaded is replaced game resource to be replaced;After former game resource is replaced, new game money
The dependence in source is re-established or/and is handled, and further includes that the dependence established to needs re-establishes.
The invention has the benefit that greatly shortening the development of games period;Enhance the experience and performance of game;Facilitate various
The personnel of position share out the work and help one another, Optimizing Flow.
Detailed description of the invention
Fig. 1 show the overall construction drawing of embodiment according to the present invention;
Fig. 2 show embodiment data file modified flow figure according to the present invention;
Fig. 3 show the heat load workflow composing schematic diagram of embodiment according to the present invention.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, right in the following with reference to the drawings and specific embodiments
The present invention is described in detail.The system of resource heat load iteratively faster game making of the invention and side are suitable for development of games
And test.
Fig. 1 show the overall construction drawing of embodiment according to the present invention.Wherein resource conversion module, for data text
Part is converted and is loaded;File monitors module, monitors listed files and timely responds to change file;It executes and monitors mould
Block produces mapping table for the unique identification to the data file and data file monitored, and is added again according to modification information
Corresponding data file is carried to memory;Module is tied up again, and heavy duty is carried out to file and readjusts dependence.
Fig. 2 show embodiment data file modified flow figure according to the present invention.For indicating modified data
File by conversion, memory block load, game loader tie up again and reconstruction of relations after counterweight is tied up, complete data file and arrive
The transformation of game resource, and on the way without carrying out parsing and Memory Allocation to data file.
Fig. 3 show the heat load workflow composing schematic diagram of embodiment according to the present invention.In this drawing, it can see
It is how to be integrated into workflow and how interactively with each other each different part of system is to the load of resource heat.Phase
The step of pass, shown in following (1)-(7).
(1) game art designing has modified a texture in Photoshop, i.e., is modified to file;
(2) then, he clicks " export " button of customization, saves the source file of texture, and trigger resource conversion program, will
TGA file is converted to more optimized binary format, other increasingly complex operations can also be performed in resource conversion program, all
Such as: changing color depth (i.e. bit depth) and compressed format, or generate texture mapping using appropriate filter;
(3) at this time, file monitoring device (it monitors relevant file always in running background) can detect
There is one to be altered (namely that is by the newly created texture file of resource conversion program) in the file that it is monitored, so
Afterwards, by network channel, file monitoring device can contact game actuator, and notify it, this texture file needs again
Load;
(4) game actuator receives this message by network.Then, it just retrieves this money from this message
The filename in source then just starts the process really reloaded;
(5) texture of this new change is loaded onto content.It does not need to be converted in this operation.Because
In the step of front, while exporting this texture file, oneself is through being converted into binary format;
(6) it when that original old texture file has been subjected to, is removed by system, and by this new texture file come generation
For its position;
(7) in a next frame, system begins to use this new texture file when being rendered.From
That game art designing clicks " export " button, and the texture new to this shows that the time used is very short in gaming
, that is, the time (used time of conversion operation+network communication used time+load time) less than 1 second.For large-scale trip
The overhead that resource of playing or conversion operation need is excessive, this time, opposite meeting was longer, but also seldom can be more than several seconds
Clock.
According to the above implementation, embodiment of the present invention also proposed following 3 kinds of modes, following (a) ~ (c) institute
Show, comprising:
(a) TGA file resource conversion program: is converted into binary system texture.In this way, passing through a simple header file lattice
Formula, OpenGL can be loaded directly into this texture.
(b) file monitoring device: monitor whether the file in some particular category changes.
(c) show program (actuator): a simple GLUT application program, display 3 added the teacup of texture.It
Some port is also monitored, the notice transmitted from file monitoring device is seen if there is.
In order to which test resource heat loads function, this display program can be run first.Then restart file monitoring
Device, and indicate that it goes which catalogue monitored, and report to the network address of actuator." textureX.tga " file is modified,
Or direct copying is gone over, it is covered.Then operation " Make " is clicked, to trigger resource conversion program.This can also trigger file
Then monitor shows as soon as issuing a notice and will do it heavy duty in program at once.
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.In protection model of the invention
Its technical solution and/or embodiment can have a variety of different modifications and variations in enclosing.