CN116932060A - Data loading method, related device and storage medium - Google Patents
Data loading method, related device and storage medium Download PDFInfo
- Publication number
- CN116932060A CN116932060A CN202210334771.9A CN202210334771A CN116932060A CN 116932060 A CN116932060 A CN 116932060A CN 202210334771 A CN202210334771 A CN 202210334771A CN 116932060 A CN116932060 A CN 116932060A
- Authority
- CN
- China
- Prior art keywords
- skill
- stream
- file
- flow
- description file
- 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.)
- Pending
Links
- 238000011068 loading method Methods 0.000 title claims abstract description 77
- 230000010354 integration Effects 0.000 claims abstract description 236
- 238000000034 method Methods 0.000 claims abstract description 61
- 238000006243 chemical reaction Methods 0.000 claims description 70
- 238000012545 processing Methods 0.000 claims description 63
- 238000004590 computer program Methods 0.000 claims description 31
- 230000008569 process Effects 0.000 claims description 30
- 238000004458 analytical method Methods 0.000 claims description 8
- 230000004044 response Effects 0.000 claims description 5
- 238000013501 data transformation Methods 0.000 claims description 2
- 238000010586 diagram Methods 0.000 description 10
- 238000013144 data compression Methods 0.000 description 7
- 238000012986 modification Methods 0.000 description 4
- 230000004048 modification Effects 0.000 description 4
- 230000009286 beneficial effect Effects 0.000 description 3
- 238000004891 communication Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 238000003491 array Methods 0.000 description 2
- 238000013524 data verification Methods 0.000 description 2
- 230000006837 decompression Effects 0.000 description 2
- 238000013473 artificial intelligence Methods 0.000 description 1
- 238000007906 compression Methods 0.000 description 1
- 230000006835 compression Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000018109 developmental process Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000002349 favourable effect Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 230000011218 segmentation Effects 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/445—Program loading or initiating
- G06F9/44521—Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/30—Interconnection arrangements between game servers and game devices; Interconnection arrangements between game devices; Interconnection arrangements between game servers
- A63F13/31—Communication aspects specific to video games, e.g. between several handheld game devices at close range
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/30—Interconnection arrangements between game servers and game devices; Interconnection arrangements between game devices; Interconnection arrangements between game servers
- A63F13/35—Details of game servers
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The embodiment of the application provides a data loading method, related equipment and a storage medium, wherein the method comprises the following steps: acquiring at least one skill flow description file of a target game; generating at least one skill stream integration file corresponding to the target game based on the at least one skill stream description file, wherein each skill stream integration file corresponds to one skill stream type, each skill stream integration file comprises a binary data sequence generated based on binary data of the target skill stream, and the skill stream description file describing the target skill stream belongs to the skill stream type corresponding to each skill stream integration file; and sending at least one skill stream integration file corresponding to the target game to the server, so that the server analyzes the at least one skill stream integration file to obtain binary data of each skill stream of the target game, and storing the binary data of each skill stream into a target storage space, thereby improving the skill stream data loading efficiency.
Description
Technical Field
The present application relates to the field of computer technologies, and in particular, to a data loading method, a related device, and a storage medium.
Background
Various game resources are needed to be loaded in the running process of various electronic games, skill flow data is taken as an example, skill flow refers to skill execution control flow description in the game process, at present, in the loading process, the game process needs to read skill flow description files corresponding to all skill flows, but the skill flow description files corresponding to all skill flows are XML (extensible markup language) files, when the game process is started, a large number of skill flow description files need to be read, and the read skill flow description files need to be analyzed in most time, so that the skill flow data loading efficiency is low.
Disclosure of Invention
The embodiment of the application provides a data loading method, related equipment and a storage medium, which can improve the efficiency of skill stream data loading.
In one aspect, an embodiment of the present application provides a data loading method, including:
acquiring at least one skill flow description file of a target game;
generating at least one skill flow integration file corresponding to the target game based on the at least one skill flow description file, wherein each skill flow integration file corresponds to a skill flow type, each skill flow integration file comprises a binary data sequence generated based on binary data of a target skill flow, and the skill flow description file describing the target skill flow belongs to the skill flow type corresponding to each skill flow integration file;
And sending at least one skill stream integration file corresponding to the target game to a server, so that the server analyzes the at least one skill stream integration file to obtain binary data of each skill stream of the target game, and storing the binary data of each skill stream into a target storage space.
In one aspect, an embodiment of the present application provides a data loading method, including:
acquiring at least one skill stream integration file corresponding to a target game, wherein each skill stream integration file corresponds to a skill stream type, each skill stream integration file comprises a binary data sequence generated based on binary data of a target skill stream, and a skill stream description file describing the target skill stream belongs to the skill stream type corresponding to each skill stream integration file;
analyzing the binary data sequence included in each skill stream integration file according to the data conversion description file to obtain binary data of each skill stream of the target game;
and storing the binary data of each skill stream into a target storage space.
In one aspect, an embodiment of the present application provides a data loading device, including:
The processing unit is used for acquiring at least one skill flow description file of the target game;
the processing unit is further configured to generate at least one skill flow integration file corresponding to the target game based on the at least one skill flow description file, where each skill flow integration file corresponds to a skill flow type, each skill flow integration file includes a binary data sequence generated based on binary data of a target skill flow, and the skill flow description file describing the target skill flow belongs to the skill flow type corresponding to each skill flow integration file;
and the sending unit is used for sending at least one skill stream integration file corresponding to the target game to a server, so that the server analyzes the at least one skill stream integration file to obtain binary data of each skill stream of the target game, and storing the binary data of each skill stream into a target storage space.
In one aspect, an embodiment of the present application provides a data loading device, including:
the system comprises an acquisition unit, a storage unit and a processing unit, wherein the acquisition unit is used for acquiring at least one skill flow integration file corresponding to a target game, each skill flow integration file corresponds to a skill flow type, each skill flow integration file comprises a binary data sequence generated based on binary data of a target skill flow, and a skill flow description file for describing the target skill flow belongs to the skill flow type corresponding to each skill flow integration file;
The processing unit is used for analyzing the binary data sequence included in each skill stream integration file according to the data conversion description file to obtain the binary data of each skill stream of the target game;
the processing unit is further configured to store binary data of the skill streams into a target storage space.
In one aspect, an embodiment of the present application provides a terminal device, where the terminal device includes an input device, an output device, a processor, and a computer storage medium, where the processor and the computer storage medium are connected to each other, and the computer storage medium is used to store a computer program, and the processor is configured to invoke the computer program to execute the data loading method described above.
In one aspect, an embodiment of the present application provides a server, where the server includes an input device, an output device, a processor, and a computer storage medium, where the processor and the computer storage medium are connected to each other, and the computer storage medium is used to store a computer program, and the processor is configured to invoke the computer program to perform the data loading method described above.
In one aspect, embodiments of the present application provide a computer readable storage medium having a computer program stored therein, which when executed by a processor, is configured to implement the above-described data loading method.
In one aspect, embodiments of the present application provide a computer program product comprising a computer program; the computer program is stored in a computer readable storage medium, which when executed by a processor of a server or a terminal device performs the above described data loading method.
In the embodiment of the application, after at least one skill flow description file of a target game is acquired, at least one skill flow integration file corresponding to the target game is generated based on the at least one skill flow description file, each skill flow integration file corresponds to a skill flow type, each skill flow integration file comprises a binary data sequence generated based on binary data of the target skill flow, and the skill flow description file describing the target skill flow belongs to the skill flow type corresponding to each skill flow integration file; and sending at least one skill stream integration file corresponding to the target game to the server, so that the server analyzes the at least one skill stream integration file to obtain binary data of each skill stream of the target game, and storing the binary data of each skill stream into a target storage space. By generating at least one skill stream integration file from some skill stream description files, the number of skill stream description files can be greatly reduced, so that a large number of skill stream description files are not required to be read in the subsequent skill stream data loading process, only a small number of skill stream integration files are required to be read, the IO calling time of a server can be shortened, the time for loading or reading files is well controlled, and the efficiency of the subsequent skill stream data loading is effectively improved. And the skill stream integration file comprises binary data, so that the loading efficiency of the skill stream data can be further improved.
Drawings
In order to more clearly illustrate the embodiments of the application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of a data loading system according to an embodiment of the present application;
FIG. 2 is a schematic flow chart of a data loading method according to an embodiment of the present application;
FIG. 3a is a schematic diagram of a skill flow profile conversion interface according to an embodiment of the present application;
FIGS. 3b and 3c are schematic diagrams of acquiring at least one skill flow profile provided by embodiments of the present application;
FIG. 3d is a schematic diagram of another exemplary acquisition skill flow profile provided by an embodiment of the present application;
FIG. 3e is a schematic diagram of a skill stream integration file generation according to an embodiment of the present application;
FIG. 3f is a schematic diagram of another skill stream integration file generation provided by an embodiment of the present application;
FIG. 4 is a schematic flow chart of a data loading method according to an embodiment of the present application;
FIG. 5 is a flowchart of a method for obtaining at least one skill stream integration file according to an embodiment of the present application;
FIG. 6 is a schematic diagram of a data loading device according to an embodiment of the present application;
FIG. 7 is a schematic diagram of another data loading device according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a terminal device according to an embodiment of the present application;
fig. 9 is a schematic structural diagram of a server according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The embodiment of the application provides a data loading scheme, which has the following general principle: a great deal of skills are required to be used in the game using process of the user, the skill streams can be diversified according to different skills, a great deal of skill stream description files can exist for describing different skill streams in the situation, and loading of a great deal of skill stream description files in the game process can increase the burden of a server and consume resources of a meter server, so that the skill stream description files are low in loading efficiency and the starting efficiency of the game process is low. In this case, the embodiment of the present application may generate at least one skill flow integration file corresponding to the target game based on at least one skill flow description file of the target game. In the actual process, at least one skill flow description file can be classified and integrated, namely skill flow description files belonging to the same category are processed to generate a skill flow integration file. In one embodiment, binary data of the skill stream described by the skill stream description file corresponding to the same skill stream type can be processed to obtain a binary data sequence, and the binary data sequence is used for generating a skill stream integration file corresponding to the skill stream type. That is, both the skill stream integration file and the binary data sequence correspond to the same skill stream type. The binary data of the skill stream described by the skill stream description file is obtained by analyzing the skill stream description file. After obtaining the at least one skill stream integration file, the at least one skill stream integration file corresponding to the target game may be sent to a server.
Further, before the game progress is started, the server may directly acquire a skill stream integration file corresponding to at least one skill stream type, where each skill stream integration file includes a binary data sequence generated based on binary data of a target skill stream, and the skill stream description file describing the target skill stream belongs to the skill stream type corresponding to each skill stream integration file, for example, the skill stream integration file 1 includes a binary data sequence generated based on binary data of a skill stream 1 (i.e., the target skill stream) and binary data of a skill stream 2 (i.e., the target skill stream), and the skill stream description file describing the skill stream 1 and the skill stream description file describing the skill stream 2 both belong to the skill stream type corresponding to the skill stream integration file 1; for another example, the skill stream integration file 2 includes a binary data sequence generated based on binary data of the skill stream 3 (i.e., the target skill stream) and binary data of the skill stream 4 (i.e., the target skill stream), and both the skill stream description file describing the skill stream 3 and the skill stream description file describing the skill stream 4 belong to skill stream types corresponding to the skill stream integration file 2; and then analyzing the binary data sequence included in each skill stream integration file to obtain binary data of each skill stream of the target game, and storing the binary data of each skill stream into a target storage space, so that the corresponding skill can be directly and quickly released from the binary data of the skill stream in the running process of the game progress of the server.
The data loading scheme provided by the above method has the following beneficial effects: converting at least one skill stream description file into at least one skill stream integration file, and when the skill stream integration file is loaded for processing to obtain binary data of the skill stream and the binary data is stored in a target storage space, only the at least one skill stream integration file is required to be read, and a large number of skill stream description files are not required to be read, so that the I/O (input/output) performance consumption of a server when the number of the read files is large can be reduced, and the skill stream data loading efficiency is improved; meanwhile, the binary data sequence included in each skill stream integration file can improve the speed of a server in acquiring at least one skill stream integration file, and further, the skill stream data loading is accelerated.
Based on the above data loading scheme, the present application provides a data loading system, referring to fig. 1, which includes a game device 101, a server 102, and a terminal device 103. A variety of game APPs (applications) can be run on the gaming device 101, and a user can log in a target game through the gaming device 101; the terminal device 103 may be a device used by a developer, such as a development device; the terminal device 103 provides a skill flow description file editing interface, a skill flow description file conversion interface, and the like related to the game; the developer may edit a skill flow description file of the target skill through the terminal device 103 and generate at least one skill flow integration file from the at least one skill flow description file, the skill flow description file being used to describe a skill flow of the target skill. The game device 101 and the server 102 may be directly or indirectly connected through a wired or wireless communication manner, and the terminal device 103 and the server 102 may be directly or indirectly connected through a wired or wireless communication manner, which is not limited in the embodiment of the present application. The game device 101 and the terminal device 103 may be a smart phone, a tablet computer, a notebook computer, a desktop computer, or the like; the server may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery networks (Content Delivery Network, CDN), basic cloud computing services such as big data and artificial intelligence platforms, and the like.
In one embodiment, the implementation flow of the data loading scheme is as follows: the developer edits and generates at least one skill flow description file of the target game through the terminal equipment 103, the terminal equipment 103 can acquire the at least one skill flow description file of the target game, classify and process the at least one skill flow description file of the target game based on at least one skill flow type, process binary data of skill flows described by the skill flow description files of the same skill flow type, and finally acquire a skill flow integration file corresponding to each skill flow type in the at least one skill type. Then, the terminal device 103 may send a skill stream integration file corresponding to each skill stream type to the server 102, and perform parsing processing based on the skill stream integration file corresponding to each skill stream type, to obtain binary data of each skill stream of the target game, and store the binary data of each skill stream in the target storage space. When the target game progress in the server provides the service, the binary data of each skill stream can be directly obtained from the target storage space, and the skill corresponding to each skill stream can be quickly released through the terminal device 101.
In the embodiment of the application, at least one skill stream description file can be converted into at least one skill stream integration file through the data loading scheme, when the skill stream integration file is loaded and processed to obtain binary data of skill streams, the binary data of the skill streams are stored in the target storage space, only the at least one skill stream integration file is required to be read, and a large number of skill stream description files are not required to be read, so that the I/O (input/output) performance consumption of a server when the number of the skill stream description files is more is reduced, and the efficiency of skill stream data loading is improved; meanwhile, the binary data sequence included in each skill stream integration file can improve the speed of a server in acquiring at least one skill stream integration file, and further, the skill stream data loading is accelerated. Meanwhile, the speed of loading the skill stream integration file by the server is improved, and when the game process is started, binary data of the corresponding skill stream can be rapidly loaded, the skill is released, and the game experience of a player is improved.
Based on the above data loading scheme, please refer to fig. 2, fig. 2 is a flow chart of a data loading method according to an embodiment of the present application. The data loading method may be performed by the terminal device 103 described above. The data loading method described in the present embodiment may include the following steps S201 to S203:
S201, at least one skill flow description file of the target game is acquired.
The target game may be a multiplayer online 3D role playing game, which is not limited in this regard by the present application. Since the terminal device uses XML language derived by a skill stream editor of a virtual engine (UE 4) to describe a skill stream of a certain skill, the obtained skill stream description file is an XML file (or referred to as text data).
In one embodiment, a skills flow description file conversion interface may be provided, which may be as shown in fig. 3a, in which a developer (also referred to as a skills flow plan) may edit a skills flow description file describing a skills flow using Actionflow (a way of performing a flow description of skills). The skill flow description file conversion interface may include a skill flow conversion button and at least one skill flow description file for the target game, such as the skill flow conversion button shown at 31 in fig. 3a, and the skill flow description file shown at 32. After the developer edits the skill stream description file, a skill stream conversion button can be triggered; accordingly, when a trigger operation for the skill flow conversion button occurs, at least one skill flow description file of the target game may be directly acquired (or derived), that is, the skill flow description file that may be finally acquired may be skilfly 1.Xml as shown in fig. 3b and skilfly 2.Xml as shown in fig. 3 c. The triggering operation can be clicking, double clicking, sliding and other operations; alternatively, the triggering operation may be an operation of inputting a specific gesture, for example, the specific gesture may be an "M" gesture, an "OK" gesture, or the like; alternatively, the triggering operation may be a voice input operation, for example, a voice input "skill stream conversion button", recognizing a voice, and triggering the skill stream conversion button in response to the voice recognition result.
In one embodiment, during the process of obtaining at least one skill flow description file of the target game, an information prompt window is displayed in the skill flow description file conversion interface, i.e. the information prompt window may be shown as 33 in fig. 3d, where the information prompt window includes log information and progress reminding information for obtaining at least one skill flow description file, and so on. And when the progress reminding information of the information reminding window indicates that the progress is 100%, at least one skill flow description file of the target game can be successfully obtained.
In one embodiment, the display position of the skill flow conversion button in the skill flow description file conversion interface is shown in fig. 3 a; alternatively, the display position of the skill flow conversion button in the skill flow description file conversion interface may be at a left side position, a right side position, an interface bottom position, etc. of the skill flow description file conversion interface, which is not limited in the present application.
S202, generating at least one skill stream integration file corresponding to a target game based on at least one skill stream description file, wherein each skill stream integration file corresponds to a skill stream type, each skill stream integration file comprises a binary data sequence generated based on binary data of a target skill stream, and the skill stream description file describing the target skill stream belongs to the skill stream type corresponding to each skill stream integration file. It can be understood that: for any skill stream integration file, the skill stream integration file comprises a binary data sequence generated based on binary data of a target skill stream, and the skill stream type of the skill stream description file describing the target skill stream is the same as the skill stream type corresponding to the skill stream integration file. For example, the skill stream integration file 1 includes a binary data sequence generated based on binary data of the skill stream 1 (i.e., the target skill stream) and binary data of the skill stream 2 (i.e., the target skill stream), and both the skill stream type to which the skill stream description file describing the skill stream 1 belongs and the skill stream type to which the skill stream description file describing the skill stream 2 belongs are the same as the skill stream type corresponding to the skill stream integration file 1.
In a specific implementation, the terminal device may perform classification processing on at least one skill flow description file, and generate at least one skill flow integration file corresponding to the target game based on the classification result and the at least one skill flow description file. Generating at least one skill stream integration file corresponding to the target game based on the at least one skill stream description file may include steps s11-s14:
and s11, analyzing each skill flow description file to obtain binary data of the skill flow described by each skill flow description file.
In a specific implementation, the skill flow description file is an XML file, and the terminal device may perform XML parsing on each skill flow description file to obtain binary data of a skill flow described by each skill flow description file. In one embodiment, XML parsing may be performed on each skill stream description file in turn to obtain binary data for the skill stream described by each skill stream description file. In another embodiment, XML parsing may be performed on multiple skill stream description files simultaneously, resulting in binary data for the skill stream described by each skill stream description file.
And s12, determining the skill flow type to which each skill flow description file belongs from a plurality of skill flow types.
In one embodiment, a skill stream type of the skill stream described by each skill stream description file is determined from a plurality of skill stream types, and the skill stream type of the skill stream described by each skill stream description file is used as the skill stream type to which each skill stream description file belongs. For example, the skill stream described by the skill stream description file is a skip, and the skill stream type of the skill stream described by the skill stream description file is determined to be a skip type from a plurality of skill stream types, namely, the skill stream type to which each skill stream description file belongs is a skip type.
In another embodiment, a first correspondence between a plurality of skill flow types and feature information of the skill flow description file may be preset, and a skill flow type to which each skill flow description file belongs is determined from the plurality of skill flow types based on the first correspondence between the plurality of skill flow types and the feature information of the skill flow description file. Wherein, the characteristic information may include: one or more of reference type (or independent module that can be referenced), creation time, and file name. The reference type may be determined based on the game type, e.g., the target game is multiplayer online 3D role playing, and the reference type may be: whether referenced by buff (a game gain effect); whether or not to be referenced by monster skills; whether or not to be referred to by the principal angle life skills; whether or not to be referenced by principal angle initiative skills; others, and so on.
For example, the feature information is a reference type, and the plurality of skill stream types include a first type and a second type; the first correspondence relationship includes: the reference type of the skill flow description file corresponding to the first type is reference type 1, and the reference type of the skill flow description file corresponding to the second type is reference type 2; the reference type of the skill flow description file 1 is a reference type 2; and determining that the skill flow type to which the skill flow description file 1 belongs is a second type from a plurality of skill flow types based on the first corresponding relation and the reference type 2.
For another example, the characteristic information is creation time, and the plurality of skill stream types includes a first type and a second type; the first correspondence relationship includes: the creation time of the first type corresponding skill flow description file is 2010/11/12-2010/11/15, and the creation time of the second type corresponding skill flow description file is 2011/11/12-2011/11/15; the creation time of the skill flow description file 1 is 2011/11/15; and determining that the skill stream type to which the skill stream description file 1 belongs is a second type from a plurality of skill stream types based on the first corresponding relation and 2011/11/15.
In one embodiment, a plurality of skill stream types may be determined prior to performing step s 12. As an implementation, a plurality of skill stream types may be preset, and may be directly acquired when the plurality of skill stream types need to be used. As another implementation, feature information for each skill flow description file may be obtained, which may include one or more of a reference type, a creation time, and a file name; a plurality of skill stream types may then be determined based on the characteristic information of each skill stream description file.
In one embodiment, when the feature information is a reference type, a specific implementation manner of determining a plurality of skill stream types based on the feature information of each skill stream description file is as follows: determining a plurality of skill stream types based on the reference type of each skill stream description file, i.e., if the reference type of the skill stream description file comprises: when the first reference type and the second reference type, the plurality of skill stream types include the first reference type and the second reference type. For example, 5 skill flow profiles: skill flow description file 1, skill flow description file 2, skill flow description file 3, skill flow description file 4, skill flow description file 5; the reference type of the skill flow description file 1 is whether or not it is referenced by the buff; the reference type of the skill flow description file 2 is whether or not it is referenced by monster skills; the reference type of the skill flow description file 3 is whether the skill flow description file is referred by the living skill of the principal angle or not; the reference type of the skill flow description file 4 is whether the skill flow description file is referenced by the principal angle initiative skill; the reference types of the skill flow description file 5 are other, and the plurality of skill flow types determined based on the reference type of each skill flow description file include: whether referenced by buff; whether or not to be referenced by monster skills; whether or not to be referred to by the principal angle life skills; whether or not to be referenced by principal angle initiative skills; others, and so on. Among other references herein are reference types that are referenced in addition to whether or not they are referenced by buff, whether or not they are referenced by monster skills, whether or not they are referenced by principal corner life skills, whether or not they are referenced by principal corner initiative skills.
In another embodiment, when the feature information is creation time, a specific implementation manner of determining the plurality of skill stream types based on the feature information of each skill stream description file is as follows: the second corresponding relation between the creation time and the skill stream types is preset, the second corresponding relation can be obtained, and a plurality of skill stream types are determined based on the creation time of each skill stream description file and the second corresponding relation. For example, the creation time of the skill flow description file 1 is a first creation time, the skill flow description file 2 is a second creation time, and the plurality of skill flow types determined based on the creation time of each skill flow description file and the second correspondence relationship include a skill flow type 1 corresponding to the first creation time and a skill flow type 2 corresponding to the second creation time. For another example, the first creation time is 11, the second creation time is 22, and the second correspondence relationship includes: 11 corresponds to skill stream type 1, 22 corresponds to skill stream type 2; the plurality of skill stream types determined based on the creation time of each skill stream description file and the second correspondence include skill stream type 1 and skill stream type 2.
In yet another embodiment, when the feature information is a file name, the specific implementation manner of determining the plurality of skill stream types based on the feature information of each skill stream description file may be: a plurality of skill stream types is determined based on the file name of each skill stream description file.
As an implementation manner, the file name includes a suffix number, and a plurality of skill stream types may be determined according to a third correspondence between the suffix number and the skill stream types included in the file name of each skill stream description file. For example, the third correspondence may be: suffix numbers 1-3, corresponding to skill stream type 1; suffix number 6-10, corresponding skill stream type is 2; the file name of the skill flow description file 1 is XXXX1, the file name of the skill flow description file 2 is jhh2, the file name of the skill flow description file 3 is ddjdj7, the skill flow type 1 can be determined based on the suffix number of XX1 and the third corresponding relation, and the skill flow type 1 can be determined based on the suffix number of jhh2 and the third corresponding relation; determining the skill stream type 2 based on the suffix number of XXXX7 and the third corresponding relation; i.e., the resulting plurality of skill stream types includes: skill stream type 1 and skill stream type 2.
As another implementation, a length of the file name may be determined, and a plurality of skill stream types may be determined based on the length of the file name and a fourth correspondence of the name length and skill stream types. For example, the fourth correspondence may be: the name length is 1-11, corresponding to skill stream type 1; name length is 12-18, corresponding skill stream type is 2; the length of the file name of the skill flow description file 1 is 10, the length of the file name of the skill flow description file 2 is 12, the length of the file name of the skill flow description file 3 is 13, and the skill flow type 1 can be determined based on the length 10 of the file name of the skill flow description file 1 and the fourth correspondence; determining that the skill stream type 2 is based on the length of the file name of the skill stream description file 2 being 12 and the fourth correspondence; determining that the skill stream type 2 is based on the length of the file name of the skill stream description file 3 being 13 and the fourth correspondence; i.e., the plurality of skill stream types that are ultimately determined include: skill stream type 1 and skill stream type 2.
And s13, carrying out serialization processing on the binary data of the skill stream described by the skill stream description file belonging to the same skill stream type to obtain a binary data sequence.
In a specific implementation, according to the skill stream type of each skill stream description file, binary data of the skill streams described by the skill stream description files belonging to the same skill stream can be determined, and then the binary data of the skill streams described by the skill stream description files belonging to the same skill stream type are subjected to serialization processing by adopting the data conversion description files, so that a binary data sequence is obtained. The data transformation description file specifies how binary data of skill streams of the plurality of skill stream description files are serialized. The data conversion description file may be a Protobuf file, which refers to a tool library (similar to Json) with efficient protocol exchange formats, but with higher conversion efficiency than Json. For example, as shown in fig. 3e, it is determined that the skill flow description file "skilfile1.Xml" and the skill flow description file "skilfile2.Xml" belong to the same skill flow type, and the binary data of the skill flow described by "skilfile1.Xml" and the binary data of the skill flow described by "skilfile2.Xml" may be serialized by using the data conversion description file, to obtain the binary data sequence 1. As another example, as shown in fig. 3f, a skill flow description file "skilfile100.Xml" and a skill flow description file "skilfile101.Xml" may be obtained (or exported) as shown in fig. 3b and 3c by the skill flow conversion button; and determining that the skill flow description file 'Skilfile100. Xml' and the skill flow description file 'Skilfile101. Xml' belong to the skill flow type 2, and carrying out serialization processing on binary data of the skill flow described by 'Skilfile100. Xml' and binary data of the skill flow described by 'Skilfile101. Xml' by adopting a data conversion description file to obtain a binary data sequence 2.
In one embodiment, the serialization process may include the following two parts: data format conversion and data compression. The technical stream description file description method for the technical stream description file of the same technical stream type comprises the following steps of: the binary data of the skill stream described by the skill stream description file belonging to the same skill stream type is firstly subjected to data format conversion, the data format conversion can be favorable for data storage and data compression, the binary data of the skill stream described by the skill stream description file after the data format conversion is subjected to compression processing to obtain a binary data sequence, and the space occupied by the binary data sequence storage can be reduced after the data compression processing.
For example, the skill stream type 1 has a skill stream description file 1 and a skill stream description file 2, the binary data 1 of the skill stream described by the skill stream description file 1 and the binary data 1 of the skill stream described by the skill stream description file 2 are subjected to data format conversion, and the binary data 1 and the binary data 2 subjected to data format conversion are subjected to data compression processing, so as to obtain a binary data sequence 1. At this time, the skill stream type to which the binary data sequence belongs, the skill stream type to which the skill stream description file 1 belongs, and the skill stream type to which the skill stream description file 2 belongs are all skill stream types 1.
And S14, generating a skill stream integration file corresponding to the skill stream type based on the binary data sequence.
In a specific implementation, the binary data sequence may be written into a skill stream integration file for the skill stream type. For example, in the example of S202, the skill stream type to which the binary data sequence belongs is skill stream type 1, and a skill stream integration file corresponding to skill stream type 1 is generated based on the binary data sequence. Finally, at least one skill flow integration file can be obtained. For example, in fig. 3e, a binary data sequence is written into a skill stream integration file "skilfilefinal1.Bin" corresponding to skill stream type 1; for another example, in fig. 3f, a binary data sequence is written into a skill stream integration file "skilfilefinal2.Bin" corresponding to skill stream type 2. The skill stream integration file generated based on the binary data sequence after the data format conversion and the data compression in the step S202 realizes that thousands of skill stream description files (such as thousands of skill stream description files belonging to a certain skill stream type) are optimized to be read only a small number of skill stream integration files (such as 3 skill stream integration files, namely, one skill stream type corresponds to one skill stream integration file), and then when data is loaded, the server I/O call time is greatly shortened, which is beneficial to quickly reading the skill stream integration files through I/O.
In one embodiment, after obtaining at least one skill stream integration file, in order to ensure accuracy and reliability of binary data sequences in the skill stream integration file, data verification may be performed on the binary data sequences included in the skill stream integration file. Aiming at any skill flow integration file, performing deserialization processing on a binary data sequence included in any skill flow integration file according to the data conversion description file to obtain binary data of skill flows described by each target skill flow description file, wherein the skill flow type to which the target skill flow description file belongs to the skill flow type corresponding to any skill flow integration file; acquiring binary data obtained by analyzing corresponding to each target skill stream description file; judging whether binary data obtained by inverse serialization processing corresponding to each target skill stream description file is matched with binary data obtained by analysis; if the binary data obtained by the inverse serialization processing corresponding to each target skill flow description file is matched with the binary data obtained by analysis, any skill flow integration file is saved. The binary data obtained by analyzing each target skill stream description file refers to: and carrying out XML analysis on each target skill stream description file to obtain binary data corresponding to each target skill stream description file (namely binary data of skill streams described by each target skill stream description file). If the binary data obtained by the reverse serialization processing corresponding to any target skill flow description file is not matched with the binary data obtained by analysis, the conversion is considered to be failed, any skill flow integration file is not saved, or prompt information can be output, and the prompt information is used for prompting that any skill flow integration file has errors, so that a developer can conveniently detect error reasons. In some embodiments, the reliability of the skill stream conversion button may also be improved through the data verification described above.
In one embodiment, when multiple developers want to modify corresponding skill flow description files in the skill flow description file conversion interface, in order to solve the problem that multiple developers modify skill flow description files to cause conflicts, one developer may be allowed to modify a skill flow description file of a skill flow type online. In a specific implementation, a first update instruction may be received, the first update instruction including identification information of a first skill flow description file; in the process of updating the first skill flow description file in response to the first updating instruction, if a second updating instruction is received, the second updating instruction comprises identification information of the second skill flow description file, and then the skill flow type of the first skill flow description file and the skill flow type of the second skill flow description file are obtained; judging whether the skill stream type of the first skill stream description file is the same as the skill stream type of the second skill stream description file, if so, executing a second updating instruction for the second skill stream description file; and if the skill stream type of the first skill stream description file is different from the skill stream type of the second skill stream description file, executing a second updating instruction for the second skill stream description file. In this way, the probability of collisions from modifying the skill flow profile simultaneously can be reduced.
The specific implementation manner of executing the second update instruction for the second skill flow description file may be: the second updating instruction further comprises modification data for the second skill flow description file, the second skill flow description file is updated based on the modification data of the second skill flow description file included in the second updating instruction to obtain a second updating skill flow description file, a target skill flow integration file corresponding to the skill flow type is determined based on the skill flow type to which the second updating skill flow description file belongs, binary data of the skill flow described by the second updating skill flow description file is used for replacing binary data of the skill flow described by the second skill flow description file in the target skill flow integration file, and therefore updating of the target skill flow integration file is achieved.
In one embodiment, a first update instruction and a second update instruction are received, the first update instruction including identification information of a first skill flow description file; the second updating instruction comprises identification information of a second skill flow description file, a skill flow type of the first skill flow description file and a skill flow type of the second skill flow description file are obtained, and if the skill flow type of the first skill flow description file is the same as the skill flow type of the second skill flow description file, the execution sequence of the first updating instruction and the second updating instruction is determined according to the receiving time of the updating instruction; if the skill stream type to which the first skill stream description file belongs is different from the skill stream type to which the second skill stream description file belongs, the first update instruction and the second update instruction can be executed simultaneously. In this way, modification conflicts resulting from simultaneous modification of skill stream profiles may be reduced.
S203, sending at least one skill stream integration file corresponding to the target game to the server, so that the server analyzes the at least one skill stream integration file to obtain binary data of each skill stream of the target game, and storing the binary data of each skill stream into the target storage space.
In one embodiment, at least one skill stream integration file corresponding to a plurality of game identifiers is stored in a storage position of the terminal equipment, and when the terminal equipment receives a data request of a server, the data request carries a target game identifier, wherein the target game identifier is used for indicating a target game; and the terminal equipment sends at least one skill stream integration file corresponding to the target game to the server based on the target game identifier carried by the data request. In another embodiment, when the terminal device generates at least one skill stream integration file corresponding to the target game, the at least one skill stream integration file corresponding to the target game is directly sent to the server.
In the embodiment of the application, after at least one skill flow description file of a target game is acquired, at least one skill flow integration file corresponding to the target game is generated based on the at least one skill flow description file, each skill flow integration file corresponds to a skill flow type, and each skill flow integration file comprises a binary data sequence of skill flows described by the skill flow description files belonging to the corresponding skill flow type; and sending at least one skill stream integration file corresponding to the target game to the server, so that the server analyzes the at least one skill stream integration file to obtain binary data of each skill stream of the target game, and storing the binary data of each skill stream into a target storage space. By generating at least one skill stream integration file from some skill stream description files, the number of skill stream description files can be greatly reduced, so that a large number of skill stream description files are not required to be read in the subsequent skill stream data loading process, only a small number of skill stream integration files are required to be read, the IO calling time of a server can be shortened, the time for loading or reading files is well controlled, and the efficiency of the subsequent skill stream data loading is effectively improved.
Based on the above data loading scheme, please refer to fig. 4, fig. 4 is a flow chart of a data loading method according to an embodiment of the present application. The data loading method may be performed by the server 102 described above. More specifically, the game process in the server may be executed, and the data loading method described in this embodiment includes the following steps S401 to S403:
s401, at least one skill flow integration file corresponding to a target game is obtained, each skill flow integration file corresponds to a skill flow type, each skill flow integration file comprises a binary data sequence generated based on binary data of the target skill flow, and a skill flow description file describing the target skill flow belongs to the skill flow type corresponding to each skill flow integration file.
Wherein the skill stream type may be determined from the characteristic information of the skill stream description file, which may include one or more of: reference type, creation time, and file name. The reference type refers to a type of skill flow description file referenced by a reference object, which may be determined based on a game type, e.g., creating a game for a character as a target game, which may include: whether referenced by buff; whether or not to be referenced by monster skills; whether or not to be referred to by the principal angle life skills; whether or not to be referenced by principal angle initiative skills; others, and so on. The skill flow description file describes a skill flow for describing the structure of a skill execution flow and describing a skill execution control flow, and is an XML (extensible markup) file.
As one implementation, the server may send a data request to the terminal device, the data request carrying the target game identifier, and then receive at least one skill stream integration file corresponding to the target game sent by the terminal device based on the target game identifier. As another implementation manner, the server does not need to send a data request to the terminal device, the terminal device generates at least one skill stream integration file corresponding to the target game, and sends the at least one skill stream integration file corresponding to the target game to the server, and at this time, the server directly acquires the at least one skill stream integration file corresponding to the target game sent by the terminal device. The skill stream integration file comprises a binary data sequence, wherein the binary data sequence is obtained by carrying out binary data serialization processing on skill streams described by skill stream description files belonging to the same skill stream type, and the serialization processing can comprise data format conversion and data compression. That is, the binary data sequence is obtained by performing data format conversion and data compression on binary data of the skill stream described by the skill stream description file belonging to the same skill stream type.
In one embodiment, the at least one skill flow integration file corresponding to the obtained target game may be: all or part of skill flow integration files corresponding to the target game. For example, as shown in fig. 5, fig. 5 is a flow chart of acquiring all skill stream integration files corresponding to a target game, one skill stream integration file corresponding to the target game may be acquired first, and whether all skill stream integration files corresponding to the target game are completely acquired is judged, if not, other skill stream integration files corresponding to the target game are continuously read until all skill stream integration files corresponding to the target game are acquired, so that optimization of thousands of skill stream description files (such as thousands of skill stream description files belonging to a certain skill stream type) into reading only a small number of skill stream integration files (such as 5 skill stream integration files, i.e., one skill stream type corresponds to one skill stream integration file) is realized, and when data loading is subsequently applied, the server I/O call time is greatly shortened, which is beneficial to quickly reading skill stream integration files through I/O.
S402, analyzing the binary data sequence included in each skill stream integration file according to the data conversion description file to obtain binary data of each skill stream of the target game.
Wherein, the data conversion description file defines how to sequence binary data of skill streams of a plurality of skill stream description files and how to deserialize the binary data sequence. By adopting the data conversion description file, the binary data of each skill stream corresponding to each skill stream integration file can be obtained quickly, namely, the binary data of each skill stream of the target game is finally obtained, and the skill stream data loading efficiency is improved.
In one embodiment, the specific manner of step S402 may be: for any skill flow integration file, the binary data sequence included in the any skill flow integration file can be processed in a deserializing mode according to the data conversion description file to obtain the binary data of each skill flow of the target game, and at the moment, the skill flow type corresponding to each skill flow description file belongs to the skill flow type corresponding to the any skill flow integration file. Any skill stream integration file is any one of at least one skill stream integration file.
For example, for the skill stream integration file 1 in at least one skill stream integration file, the skill stream integration file 1 is obtained by serializing the binary data of the skill stream 1 described by the skill stream description file 1 and the binary data of the skill stream 2 described by the skill stream description file 2 corresponding to the same skill stream type, and then the binary data sequence included in the skill stream integration file 1 may be deserialized according to the data conversion description file to obtain the binary data of each skill stream of the target game, that is, the binary data of the skill stream 1 and the binary data of the skill stream 2. At this time, the skill flow type to which the skill flow description file 1 corresponding to the skill flow 1 belongs to the skill flow type corresponding to the skill flow integration file 1. The skill flow type to which the skill flow description file corresponding to the skill flow 2 belongs also belongs to the skill flow type corresponding to the skill flow integration file 1.
In one embodiment, the method for performing deserialization processing on the binary data sequence included in the skill stream integration file according to the data conversion description file to obtain the binary data of the skill stream of the target game may be: according to the data conversion description file, performing data decompression processing on the binary data sequence included in any skill stream integration file, performing data format conversion on the binary data sequence subjected to the decompression processing to obtain binary data corresponding to any skill stream integration file, and analyzing (or segmenting) the binary data corresponding to any skill stream integration file to obtain binary data of skill streams described by all target skill stream description files, wherein the binary data of skill streams described by all target skill stream description files are the binary data of all skill streams of a target game. Since the decompressed binary data sequence may not be able to separate the binary data of each of the plurality of skill streams, it is necessary to obtain the binary data of each skill stream by a segmentation process.
S403, storing binary data of each skill stream into a target storage space, wherein the target storage space can be a memory of a server. The binary data of each skill stream can be used to control and stream the execution logic of the skill as the corresponding skill is released.
In one embodiment, after step S403, when the target game process in the server is started, the target game process (such as the player character building process) may quickly read the binary data of each skill flow in the target storage space, analyze the binary data of each skill flow, and execute the corresponding skill flow to release the skill, thereby reducing the time consumption of data loading, accelerating the speed of starting the game process, and effectively reducing the click feeling of the player in the process of continuously taking out heat from the server.
In the embodiment of the application, at least one skill flow integration file corresponding to a target game can be acquired, each skill flow integration file corresponds to one skill flow type, and each skill flow integration file comprises a binary data sequence of a skill flow described by at least one skill flow description file belonging to the corresponding skill flow type; analyzing the binary data sequence included in each skill stream integration file according to the data conversion description file to obtain binary data of each skill stream corresponding to each skill stream integration file; the binary data of each skill stream is stored in a target storage space, at least one skill stream description file is converted into at least one skill stream integration file, and when the skill stream integration file is loaded and stored in the target storage space, only the at least one skill stream integration file is required to be read, so that IO performance consumption of a server when the number of IO read files is large can be reduced, the efficiency of skill stream data loading is improved, and the binary data sequence included in each skill stream integration file can further accelerate the loading of skill stream data.
Based on the above description of the embodiments of the data loading method, the embodiments of the present application also disclose a data loading device, which may be a computer program (including program code) running in the above-mentioned terminal device. The data loading device may perform the methods shown in fig. 2 and 4. Referring to fig. 6, the data loading apparatus may include the following units:
a processing unit 601, configured to obtain at least one skill flow description file of a target game;
the processing unit 601 is configured to generate at least one skill flow integration file corresponding to the target game based on the at least one skill flow description file, where each skill flow integration file corresponds to a skill flow type, and each skill flow integration file includes a binary data sequence generated based on binary data of a target skill flow, and the skill flow description file describing the target skill flow belongs to the skill flow type corresponding to each skill flow integration file;
and a sending unit 602, configured to send at least one skill stream integration file corresponding to the target game to a server, so that the server performs analysis processing on the at least one skill stream integration file to obtain binary data of each skill stream of the target game, and store the binary data of each skill stream in a target storage space.
In one embodiment, when generating the at least one skill flow integration file corresponding to the target game based on the at least one skill flow description file, the processing unit 601 may be specifically configured to:
analyzing each skill flow description file to obtain binary data of skill flows described by each skill flow description file;
determining the skill flow type to which each skill flow description file belongs from a plurality of skill flow types;
carrying out serialization processing on binary data of skill streams described by skill stream description files belonging to the same skill stream type to obtain a binary data sequence;
and generating a skill stream integration file corresponding to the skill stream type based on the binary data sequence.
In one embodiment, the processing unit 601 is further configured to, before determining, from a plurality of skill stream types, a skill stream type to which each skill stream description file belongs:
acquiring characteristic information of each skill stream description file, wherein the characteristic information comprises one or more of a reference type, creation time and file name;
and determining a plurality of skill stream types based on the characteristic information of each skill stream description file.
In one embodiment, the processing unit 601 is further configured to:
displaying a skill flow description file conversion interface, wherein the skill flow description file conversion interface comprises a skill flow conversion button and at least one skill flow description file of the target game;
and executing the step of acquiring at least one skill stream description file of the target game when the trigger operation for the skill stream conversion button occurs.
In one embodiment, the processing unit 601 is further configured to:
aiming at any skill flow integration file, performing deserialization processing on a binary data sequence included in the any skill flow integration file according to a data conversion description file to obtain binary data of skill flows described by each target skill flow description file, wherein the skill flow type to which the target skill flow description file belongs to the skill flow type corresponding to the any skill flow integration file;
acquiring binary data obtained by analyzing corresponding to each target skill stream description file;
and if the binary data obtained by the inverse serialization processing corresponding to each target skill stream description file are matched with the binary data obtained by analysis, storing any skill stream integration file.
In an embodiment, the apparatus further comprises a receiving unit 603, wherein:
the receiving unit 603 is configured to receive a first update instruction, where the first update instruction includes identification information of a first skill flow description file;
in the process of updating the first skill flow description file in response to the first update instruction, if the receiving unit 603 receives a second update instruction, where the second update instruction includes identification information of a second skill flow description file, the processing unit 601 is further configured to obtain a skill flow type to which the first skill flow description file belongs and a skill flow type to which the second skill flow description file belongs;
the processing unit 601 is further configured to execute the second update instruction with respect to the second skill flow description file after the first update instruction is executed if the skill flow type to which the first skill flow description file belongs is the same as the skill flow type to which the second skill flow description file belongs;
the processing unit 601 is further configured to execute the second update instruction for the second skill flow description file if the skill flow type to which the first skill flow description file belongs is different from the skill flow type to which the second skill flow description file belongs.
It can be understood that the functions of the functional units of the data loading device of the present embodiment may be implemented according to the method in fig. 2 of the above-mentioned method embodiment, and the specific implementation process may refer to the related description in fig. 2 of the above-mentioned method embodiment, which is not repeated herein.
Based on the above description of the embodiments of the data loading method, the embodiments of the present application also disclose a data loading device, which may be a computer program (including program code) running in the above mentioned server. The data loading device may perform the methods shown in fig. 2 and 4. Referring to fig. 7, the data loading apparatus may include the following units:
an obtaining unit 701, configured to obtain at least one skill flow integration file corresponding to a target game, where each skill flow integration file corresponds to a skill flow type, each skill flow integration file includes a binary data sequence generated based on binary data of a target skill flow, and a skill flow description file describing the target skill flow belongs to the skill flow type corresponding to each skill flow integration file;
the processing unit 702 is configured to parse the binary data sequence included in each skill stream integration file according to the data conversion description file to obtain binary data of each skill stream of the target game;
The processing unit 702 is further configured to store binary data of the respective skill streams into a target storage space.
In one embodiment, the processing unit 702 may be specifically configured to, when performing parsing processing on the binary data sequence included in each skill stream integration file according to the data conversion description file to obtain binary data of each skill stream of the target game:
and aiming at any skill stream integration file, performing deserialization processing on a binary data sequence included in the any skill stream integration file according to the data conversion description file to obtain binary data of each skill stream of the target game, wherein the skill stream type of the target skill stream description file corresponding to each skill stream belongs to the skill stream type corresponding to the any skill stream integration file.
It can be understood that the functions of the functional units of the data loading device of the present embodiment may be implemented according to the method in fig. 4 of the above-mentioned method embodiment, and the specific implementation process may refer to the related description in fig. 4 of the above-mentioned method embodiment, which is not repeated herein.
Based on the above description of the data loading method embodiment, the embodiment of the present application also discloses a terminal device, please refer to fig. 8, where the terminal device may include at least a processor 801, an input device 802, an output device 803, and a memory 804. Wherein the processor 801, input device 802, output device 803, and memory 804 within the terminal device may be connected by a bus or other means.
The memory 804 is a memory device in the terminal device for storing programs and data. It will be appreciated that the memory 804 herein may include both a built-in storage medium for the terminal device and an extended storage medium supported by the terminal device. The memory 804 provides a storage space that stores the operating system of the terminal device. A computer program (including program code) is stored in the memory space. Note that the computer storage medium herein may be a high-speed RAM memory; alternatively, it may be at least one computer storage medium remote from the aforementioned processor, which may be referred to as a central processing unit (Central Processing Unit, CPU), which is the core of the terminal device and the control center for running the computer program stored in the memory 804.
In one embodiment, a computer program stored in memory 804 may be loaded and executed by processor 801 to implement the respective steps of the methods described above in connection with the data loading method embodiments; specifically, the processor 801 loads and executes a computer program stored in the memory 804, for:
Acquiring at least one skill flow description file of a target game;
generating at least one skill flow integration file corresponding to the target game based on the at least one skill flow description file, wherein each skill flow integration file corresponds to a skill flow type, each skill flow integration file comprises a binary data sequence generated based on binary data of a target skill flow, and the skill flow description file describing the target skill flow belongs to the skill flow type corresponding to each skill flow integration file;
and sending at least one skill stream integration file corresponding to the target game to a server, so that the server analyzes the at least one skill stream integration file to obtain binary data of each skill stream of the target game, and storing the binary data of each skill stream into a target storage space.
In one embodiment, when generating at least one skill flow integration file corresponding to the target game based on the at least one skill flow description file, the processor 801 loads and executes a computer program stored in the memory 804, specifically for:
analyzing each skill flow description file to obtain binary data of skill flows described by each skill flow description file;
Determining the skill flow type to which each skill flow description file belongs from a plurality of skill flow types;
carrying out serialization processing on binary data of skill streams described by skill stream description files belonging to the same skill stream type to obtain a binary data sequence;
and generating a skill stream integration file corresponding to the skill stream type based on the binary data sequence.
In one embodiment, before determining the skill flow type to which each skill flow description file belongs from the plurality of skill flow types, the processor 801 loads and executes a computer program stored in the memory 804, and is further configured to:
acquiring characteristic information of each skill stream description file, wherein the characteristic information comprises one or more of a reference type, creation time and file name;
and determining a plurality of skill stream types based on the characteristic information of each skill stream description file.
In one embodiment, the processor 801 loads and executes computer programs stored in the memory 804 and is further configured to:
displaying a skill flow description file conversion interface, wherein the skill flow description file conversion interface comprises a skill flow conversion button and at least one skill flow description file of the target game;
And executing the step of acquiring at least one skill stream description file of the target game when the trigger operation for the skill stream conversion button occurs.
In one embodiment, the processor 801 loads and executes computer programs stored in the memory 804 and is further configured to:
aiming at any skill flow integration file, performing deserialization processing on a binary data sequence included in the any skill flow integration file according to a data conversion description file to obtain binary data of skill flows described by each target skill flow description file, wherein the skill flow type to which the target skill flow description file belongs to the skill flow type corresponding to the any skill flow integration file;
acquiring binary data obtained by analyzing corresponding to each target skill stream description file;
and if the binary data obtained by the inverse serialization processing corresponding to each target skill stream description file are matched with the binary data obtained by analysis, storing any skill stream integration file.
In one embodiment, the processor 801 loads and executes computer programs stored in the memory 804 and is further configured to:
receiving a first updating instruction, wherein the first updating instruction comprises identification information of a first skill flow description file;
In the process of updating the first skill flow description file in response to the first updating instruction, if a second updating instruction is received, the second updating instruction comprises identification information of a second skill flow description file, and then the skill flow type of the first skill flow description file and the skill flow type of the second skill flow description file are obtained;
if the skill stream type of the first skill stream description file is the same as the skill stream type of the second skill stream description file, executing the second updating instruction aiming at the second skill stream description file after the first updating instruction is executed;
and if the skill stream type of the first skill stream description file is different from the skill stream type of the second skill stream description file, executing the second updating instruction aiming at the second skill stream description file.
It should be appreciated that in embodiments of the present application, the processor 801 may be a central processing unit (Central Processing Unit, CPU), the processor 801 may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), off-the-shelf programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Based on the above description of the data loading method embodiment, the embodiment of the present application also discloses a server, referring to fig. 9, where the server may at least include a processor 901, an input device 902, an output device 903, and a memory 904. Wherein the processor 901, input devices 902, output devices 903, and memory 904 within the server may be connected by a bus or other means.
The memory 904 is a memory device in the server for storing programs and data. It will be appreciated that the memory 904 herein may include both built-in storage media for the server and extended storage media supported by the server. The memory 904 provides storage space that stores the operating system of the server. A computer program (including program code) is stored in the memory space. Note that the computer storage medium herein may be a high-speed RAM memory; optionally, it may be at least one computer storage medium remote from the aforementioned processor, which may be referred to as a central processing unit (Central Processing Unit, CPU), is the core of the server and the control center for running the computer program stored in the memory 904.
In one embodiment, a computer program stored in the memory 904 may be loaded and executed by the processor 901 to implement the respective steps of the methods described above in connection with the data loading method embodiments; specifically, the processor 901 loads and executes a computer program stored in the memory 904, for:
acquiring at least one skill stream integration file corresponding to a target game, wherein each skill stream integration file corresponds to a skill stream type, each skill stream integration file comprises a binary data sequence generated based on binary data of a target skill stream, and a skill stream description file describing the target skill stream belongs to the skill stream type corresponding to each skill stream integration file;
analyzing the binary data sequence included in each skill stream integration file according to the data conversion description file to obtain binary data of each skill stream of the target game;
and storing the binary data of each skill stream into a target storage space.
In one embodiment, the processor 901 may be specifically configured to, when performing parsing processing on the binary data sequence included in each skill stream integration file according to the data conversion description file to obtain binary data of each skill stream of the target game:
And aiming at any skill stream integration file, performing deserialization processing on a binary data sequence included in the any skill stream integration file according to the data conversion description file to obtain binary data of each skill stream of the target game, wherein the skill stream type of the target skill stream description file corresponding to each skill stream belongs to the skill stream type corresponding to the any skill stream integration file.
It should be appreciated that in embodiments of the present application, the processor 901 may be a central processing unit (Central Processing Unit, CPU), the processor 901 may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), off-the-shelf programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Embodiments of the present application provide a computer readable storage medium storing a computer program comprising program instructions which, when executed by a processor, perform the steps performed in all the embodiments described above.
Embodiments of the present application also provide a computer program product comprising computer instructions stored in a computer-readable storage medium, which when executed by a processor of a terminal device or a server, perform the method of all the embodiments described above.
Those skilled in the art will appreciate that implementing all or part of the above-described methods in accordance with the embodiments may be accomplished by way of a computer program stored on a computer readable storage medium, which when executed may comprise the steps of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), or the like.
The above disclosure is only a preferred embodiment of the present application, and it should be understood that the scope of the application is not limited thereto, and those skilled in the art will appreciate that all or part of the procedures described above can be performed according to the equivalent changes of the claims, and still fall within the scope of the present application.
Claims (13)
1. A method of loading data, comprising:
Acquiring at least one skill flow description file of a target game;
generating at least one skill flow integration file corresponding to the target game based on the at least one skill flow description file, wherein each skill flow integration file corresponds to a skill flow type, each skill flow integration file comprises a binary data sequence generated based on binary data of a target skill flow, and the skill flow description file describing the target skill flow belongs to the skill flow type corresponding to each skill flow integration file;
and sending at least one skill stream integration file corresponding to the target game to a server, so that the server analyzes the at least one skill stream integration file to obtain binary data of each skill stream of the target game, and storing the binary data of each skill stream into a target storage space.
2. The method of claim 1, wherein the generating at least one skill stream integration file corresponding to the target game based on the at least one skill stream description file comprises:
analyzing each skill flow description file to obtain binary data of skill flows described by each skill flow description file;
Determining the skill flow type to which each skill flow description file belongs from a plurality of skill flow types;
carrying out serialization processing on binary data of skill streams described by skill stream description files belonging to the same skill stream type to obtain a binary data sequence;
and generating a skill stream integration file corresponding to the skill stream type based on the binary data sequence.
3. The method of claim 2, wherein prior to determining the skill stream type to which each skill stream description file belongs from a plurality of skill stream types, the method further comprises:
acquiring characteristic information of each skill stream description file, wherein the characteristic information comprises one or more of a reference type, creation time and file name;
and determining a plurality of skill stream types based on the characteristic information of each skill stream description file.
4. A method according to claim 2 or 3, characterized in that the method further comprises:
displaying a skill flow description file conversion interface, wherein the skill flow description file conversion interface comprises a skill flow conversion button and at least one skill flow description file of the target game;
and executing the step of acquiring at least one skill stream description file of the target game when the trigger operation for the skill stream conversion button occurs.
5. A method according to claim 2 or 3, wherein the method further comprises:
aiming at any skill flow integration file, performing deserialization processing on a binary data sequence included in the any skill flow integration file according to a data conversion description file to obtain binary data of skill flows described by each target skill flow description file, wherein the skill flow type to which the target skill flow description file belongs to the skill flow type corresponding to the any skill flow integration file;
acquiring binary data obtained by analyzing corresponding to each target skill stream description file;
and if the binary data obtained by the inverse serialization processing corresponding to each target skill stream description file are matched with the binary data obtained by analysis, storing any skill stream integration file.
6. The method of claim 1, wherein the method further comprises:
receiving a first updating instruction, wherein the first updating instruction comprises identification information of a first skill flow description file;
in the process of updating the first skill flow description file in response to the first updating instruction, if a second updating instruction is received, the second updating instruction comprises identification information of a second skill flow description file, and then the skill flow type of the first skill flow description file and the skill flow type of the second skill flow description file are obtained;
If the skill stream type of the first skill stream description file is the same as the skill stream type of the second skill stream description file, executing the second updating instruction aiming at the second skill stream description file after the first updating instruction is executed;
and if the skill stream type of the first skill stream description file is different from the skill stream type of the second skill stream description file, executing the second updating instruction aiming at the second skill stream description file.
7. A method of loading data, comprising:
acquiring at least one skill stream integration file corresponding to a target game, wherein each skill stream integration file corresponds to a skill stream type, each skill stream integration file comprises a binary data sequence generated based on binary data of a target skill stream, and a skill stream description file describing the target skill stream belongs to the skill stream type corresponding to each skill stream integration file;
analyzing the binary data sequence included in each skill stream integration file according to the data conversion description file to obtain binary data of each skill stream of the target game;
And storing the binary data of each skill stream into a target storage space.
8. The method of claim 7, wherein the parsing the binary data sequence included in each skill stream integration file according to the data transformation description file to obtain binary data of each skill stream of the target game includes:
and aiming at any skill stream integration file, performing deserialization processing on a binary data sequence included in the any skill stream integration file according to the data conversion description file to obtain binary data of each skill stream of the target game, wherein the skill stream type of the target skill stream description file corresponding to each skill stream belongs to the skill stream type corresponding to the any skill stream integration file.
9. A data loading apparatus, comprising:
the processing unit is used for acquiring at least one skill flow description file of the target game;
the processing unit is further configured to generate at least one skill flow integration file corresponding to the target game based on the at least one skill flow description file, where each skill flow integration file corresponds to a skill flow type, each skill flow integration file includes a binary data sequence generated based on binary data of a target skill flow, and the skill flow description file describing the target skill flow belongs to the skill flow type corresponding to each skill flow integration file;
And the sending unit is used for sending at least one skill stream integration file corresponding to the target game to a server, so that the server analyzes the at least one skill stream integration file to obtain binary data of each skill stream of the target game, and storing the binary data of each skill stream into a target storage space.
10. A data loading apparatus, comprising:
the system comprises an acquisition unit, a storage unit and a processing unit, wherein the acquisition unit is used for acquiring at least one skill flow integration file corresponding to a target game, each skill flow integration file corresponds to a skill flow type, each skill flow integration file comprises a binary data sequence generated based on binary data of a target skill flow, and a skill flow description file for describing the target skill flow belongs to the skill flow type corresponding to each skill flow integration file;
the processing unit is used for analyzing the binary data sequence included in each skill stream integration file according to the data conversion description file to obtain the binary data of each skill stream of the target game;
the processing unit is further configured to store binary data of the skill streams into a target storage space.
11. A terminal device, comprising:
a memory for storing a computer program;
a processor invoking said computer program in said memory for performing a data loading method as claimed in any of claims 1 to 6.
12. A server, comprising:
a memory for storing a computer program;
a processor invoking said computer program in said memory for performing a data loading method as claimed in any of claims 7 to 8.
13. A computer-readable storage medium, characterized in that the computer storage medium stores a computer program comprising program instructions which, when executed by a processor, perform the data loading method of any one of claims 1 to 6 or perform the data loading method of any one of claims 7 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210334771.9A CN116932060A (en) | 2022-03-31 | 2022-03-31 | Data loading method, related device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210334771.9A CN116932060A (en) | 2022-03-31 | 2022-03-31 | Data loading method, related device and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116932060A true CN116932060A (en) | 2023-10-24 |
Family
ID=88383045
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210334771.9A Pending CN116932060A (en) | 2022-03-31 | 2022-03-31 | Data loading method, related device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116932060A (en) |
-
2022
- 2022-03-31 CN CN202210334771.9A patent/CN116932060A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2020108085A1 (en) | Resource allocation method and apparatus, terminal, and storage medium | |
CN111341315B (en) | Voice control method, device, computer equipment and storage medium | |
CN106850650B (en) | Method for accessing data by game client and client game system | |
CN111298434B (en) | Service processing method, device, equipment and storage medium | |
CN114237743B (en) | Interface loading method and device, electronic equipment and storage medium | |
WO2015062494A1 (en) | Method and device for sdk uploading and downloading of a file | |
CN112843681B (en) | Virtual scene control method and device, electronic equipment and storage medium | |
CN112612427B (en) | Vehicle stop data processing method and device, storage medium and terminal | |
CN104657248A (en) | Java thread stack analysis method and system | |
CN116932060A (en) | Data loading method, related device and storage medium | |
CN114610446B (en) | Method, device and system for automatically injecting probe | |
CN115858556A (en) | Data processing method and device, storage medium and electronic equipment | |
CN115965227A (en) | Workflow data processing method, device, equipment, storage medium and product | |
CN114443306A (en) | Resource processing method and device, electronic equipment and computer readable storage medium | |
CN114510334A (en) | Class instance calling method and device, electronic equipment and automatic driving vehicle | |
CN114247143A (en) | Digital human interaction method, device, equipment and storage medium based on cloud server | |
CN113849195A (en) | Application program loading method and device, storage medium and terminal | |
CN114911541B (en) | Processing method and device of configuration information, electronic equipment and storage medium | |
CN113590166B (en) | Application program updating method and device and computer readable storage medium | |
CN113934453B (en) | Risk detection method, risk detection device and storage medium | |
CN118708222A (en) | Code complement method, apparatus, related device and computer program product | |
CN117555606A (en) | Multimedia data processing method, related equipment and storage medium | |
CN116701184A (en) | Socket compatibility testing method and device, computer equipment and storage medium | |
CN117806738A (en) | Service scheduling method, device, equipment and storage medium based on micro-link model | |
CN116931914A (en) | Page rendering method, page rendering device, electronic device and computer readable storage medium |
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 |