Installation package generation method and device and application installation method and device
By compressing and deleting non-root bone dimension data, server application installation packages are generated, which solves the inefficiency problem caused by large amount of dynamic data in the existing technology, and realizes more efficient server application installation package generation and operation.
Patent Information
- Application Number
- CN202411250578.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-06
- Publication Date
- 2024-12-10
AI Technical Summary
When the existing application development engine generates application installation packages, due to the large amount of dynamic data, the packaging efficiency and space occupancy are low, which affects the server operation efficiency.
By obtaining the dynamic data of the role of the target application, performing compression processing and deleting data in non-root bone dimensions, generating server application installation packages, reducing the storage space of dynamic data and improving decompression efficiency.
Without affecting the server's operation, the storage space and memory usage of dynamic data are reduced, and the packaging efficiency of server application installation packages and processor execution efficiency are improved.
Smart Images

Figure CN119105795A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to an installation package generation method, an application installation method and a device. Background Art
[0002] The application development engine can be used to help developers develop applications. For example, in a game scenario, the application development engine may include a game application development engine. The application development engine can package multiple application installation data such as dynamic data to obtain an application installation package that can be applied to a server. However, due to the large amount of dynamic data in the application installation data, the packaging efficiency for the server installation package is low and the packaged server installation package occupies a large space. Summary of the invention
[0003] In view of the above-mentioned technical problems, the present disclosure proposes an installation package generation method, an application installation method and a device.
[0004] According to one aspect of an embodiment of the present disclosure, a method for generating an installation package is provided, including:
[0005] Acquire first character dynamic data corresponding to the target application; the first character dynamic data is used to characterize the dynamic changes of bones of the virtual character in the target application in the root bone dimension and the non-root bone dimension;
[0006] Compressing the first role dynamic data to obtain first compressed dynamic data corresponding to the target application;
[0007] Deleting data belonging to non-root bone dimensions in the first compressed dynamic data to obtain second compressed dynamic data corresponding to the target application;
[0008] Based on the second compressed dynamic data, a server application installation package corresponding to the target application is generated.
[0009] According to another aspect of an embodiment of the present disclosure, there is provided an application installation method, including:
[0010] Obtain a server application installation package corresponding to the target application; the server application installation package includes second compressed dynamic data; the second compressed dynamic data is obtained by deleting data belonging to a non-root bone dimension in the first compressed dynamic data, the first compressed dynamic data is obtained by compressing the first character dynamic data, and the first character dynamic data is used to characterize the dynamic changes of bones of the virtual character in the target application in the root bone dimension and the non-root bone dimension;
[0011] Decompressing the second compressed dynamic data to obtain third character dynamic data; the third character dynamic data is used to characterize the dynamic changes of the bones of the virtual character in the target application under the root bone dimension;
[0012] Based on the third role dynamic data, application installation processing is performed on the target application to install the target application to a target server.
[0013] According to another aspect of an embodiment of the present disclosure, there is provided an installation package generating device, including:
[0014] A first data acquisition module is used to acquire first character dynamic data corresponding to a target application; the first character dynamic data is used to characterize the dynamic changes of bones of a virtual character in the target application in root bone dimensions and non-root bone dimensions;
[0015] A first compression processing module, used for compressing the first role dynamic data to obtain first compressed dynamic data corresponding to the target application;
[0016] A deletion processing module, used for deleting the data belonging to the non-root bone dimension in the first compressed dynamic data to obtain the second compressed dynamic data corresponding to the target application;
[0017] The installation package generation module is used to generate a server application installation package corresponding to the target application based on the second compressed dynamic data.
[0018] Optionally, the device further comprises:
[0019] A data coverage processing module is used to perform data coverage processing on the data belonging to the non-root bone dimension in the first character dynamic data based on preset bone dynamic data to obtain second character dynamic data; the preset bone dynamic data is the bone dynamic data of the virtual character in the target application in a preset posture, and the data volume of the preset bone dynamic data is less than the data volume of the first character dynamic data;
[0020] The first compression processing module includes:
[0021] The first compression processing unit is used to compress the second character dynamic data to obtain the first compressed dynamic data.
[0022] Optionally, the device further comprises:
[0023] A second data acquisition module is used to acquire skeleton relationship indication information; the skeleton relationship indication information is used to indicate the hierarchical relationship between multiple skeletons included in the virtual character in the target application;
[0024] A data type analysis module, configured to perform data type analysis on the first compressed dynamic data based on the skeletal relationship indication information to obtain data type indication information corresponding to the first compressed dynamic data; the data type indication information is used to indicate the data type corresponding to the sub-data contained in the first compressed dynamic data;
[0025] Accordingly, the deletion processing module includes:
[0026] The first deletion processing unit is used to delete the data belonging to the non-root bone dimension in the first compressed dynamic data based on the data type indication information to obtain the second compressed dynamic data.
[0027] Optionally, the data type indication information includes first type indication information corresponding to each of the plurality of sub-data in the first compressed dynamic data; and the data type analysis module includes:
[0028] A first quantity acquisition unit is used to determine the number of bones in a single frame based on the bone relationship indication information; the number of bones in a single frame is the number of bone types contained in a plurality of sub-data corresponding to each frame in the first compressed dynamic data;
[0029] A first grouping processing unit, configured to perform single-frame data grouping processing on the plurality of sub-data based on the number of single-frame bones to obtain a plurality of first sub-data combinations;
[0030] A first type determination unit is configured to use the first preset indication information corresponding to the root bone data type as the first type indication information corresponding to the first sub-data in each first sub-data combination; the first sub-data is the first sub-data in each first sub-data combination;
[0031] The second type determination unit is used to use the second preset indication information corresponding to the non-root bone data type as the first type indication information corresponding to the multiple second sub-data in each first sub-data combination; the multiple second sub-data are the sub-data in each first sub-data combination except the first sub-data.
[0032] Optionally, the device further comprises:
[0033] A third data acquisition module is used to acquire preset segment indication information corresponding to the first character dynamic data; the preset segment indication information is used to indicate the amount of data corresponding to a single segment compression during the segment compression process of the first character dynamic data;
[0034] Accordingly, the data type analysis module includes:
[0035] The data type analysis submodule is used to perform data type analysis on the first compressed dynamic data based on the preset segmentation indication information and the skeleton relationship indication information to obtain the data type indication information.
[0036] Optionally, the data type indication information includes second type indication information corresponding to each of the plurality of sub-data in the first compressed dynamic data; and the data type analysis submodule includes:
[0037] A segmented data acquisition unit, configured to determine a plurality of segmented compressed dynamic data in the first compressed dynamic data based on the preset segment indication information;
[0038] A third type determination unit is used to use the third preset indication information corresponding to the compressed reference data type as the second type indication information corresponding to the third sub-data in each segmented compressed dynamic data; the third sub-data is the first sub-data in each segmented compressed dynamic data;
[0039] A second quantity acquisition unit is used to determine the number of bones in a single frame based on the bone relationship indication information; the number of bones in a single frame is the number of bone types contained in a plurality of sub-data corresponding to each frame in the first compressed dynamic data;
[0040] A second grouping processing unit is used to perform single-frame data grouping processing on a plurality of fourth sub-data in each segmented compressed dynamic data based on the number of bones in the single frame, so as to obtain a plurality of second sub-data combinations corresponding to each segmented compressed dynamic data; the plurality of fourth sub-data are sub-data in each segmented compressed dynamic data except the third sub-data;
[0041] The fourth type determination unit is used to use the first preset indication information corresponding to the root bone data type as the second type indication information corresponding to the fifth sub-data in each second sub-data combination; the fifth sub-data is the first sub-data in each second sub-data combination;
[0042] The fifth type determination unit is used to use the second preset indication information corresponding to the non-root bone data type as the second type indication information corresponding to the multiple sixth sub-data in each second sub-data combination; the multiple sixth sub-data are the sub-data in each second sub-data combination except the fifth sub-data.
[0043] Optionally, the device further comprises:
[0044] A first identification acquisition module, used to determine a first dynamic data identification corresponding to the first character dynamic data based on a preset server identification;
[0045] A first identification search module is used to search the first dynamic data identification in the compressed data storage device to obtain a first identification search result; the first identification search result is used to indicate whether there is compressed dynamic data corresponding to the first dynamic data identification in the compressed data storage device;
[0046] Accordingly, the first compression processing module includes:
[0047] The second compression processing unit is used to compress the first character dynamic data to obtain the first compressed dynamic data when the first identifier search result is the first search result; the first search result is used to indicate that the compressed dynamic data corresponding to the first dynamic data identifier does not exist in the compressed data storage device.
[0048] Optionally, the device further comprises:
[0049] A second identification acquisition module, used to determine a second dynamic data identification corresponding to the first character dynamic data based on a preset client identification;
[0050] A second identification search module is used to search the second dynamic data identification in the compressed data storage device to obtain a second identification search result; the second identification search result is used to indicate whether there is compressed dynamic data corresponding to the second dynamic data identification in the compressed data storage device;
[0051] A second compression processing module is used to compress the first character dynamic data to obtain third compressed dynamic data when the second identification search result is the second search result; the second search result is used to indicate that there is no compressed dynamic data corresponding to the second dynamic data identification in the compressed data storage;
[0052] The installation package acquisition module is used to generate a client application installation package corresponding to the target application based on the third compressed dynamic data.
[0053] According to another aspect of an embodiment of the present disclosure, there is provided an application installation device, including:
[0054] An installation package acquisition module is used to acquire a server application installation package corresponding to a target application; the server application installation package includes second compressed dynamic data; the second compressed dynamic data is obtained by deleting data belonging to a non-root bone dimension in the first compressed dynamic data, the first compressed dynamic data is obtained by compressing first character dynamic data, and the first character dynamic data is used to characterize the dynamic changes of bones of a virtual character in the target application in root bone dimensions and non-root bone dimensions;
[0055] A decompression processing module, used for decompressing the second compressed dynamic data to obtain third character dynamic data; the third character dynamic data is used to characterize the dynamic changes of the bones of the virtual character in the target application under the root bone dimension;
[0056] The application installation module is used to perform application installation processing on the target application based on the third role dynamic data, so as to install the target application to a target server.
[0057] Optionally, the server application installation package also includes target application installation data corresponding to the target application; and the application installation module includes:
[0058] A data generating unit, configured to generate fourth character dynamic data based on the third character dynamic data; the fourth character dynamic data is used to characterize the dynamic changes of bones of the virtual character in the target application in the root bone dimension and the non-root bone dimension;
[0059] The installation processing unit is used to perform installation processing on the target application based on the fourth role dynamic data and the target application installation data, so as to install the target application to the target server.
[0060] Optionally, the device further comprises:
[0061] A fourth data acquisition module is used to acquire the dynamic data to be written; the dynamic data to be written is generated based on the preset bone dynamic data;
[0062] Accordingly, the data generating unit includes:
[0063] The data writing subunit is used to write the third character dynamic data into the dynamic data to be written to obtain the fourth character dynamic data.
[0064] According to another aspect of an embodiment of the present disclosure, an electronic device is provided, comprising: a processor; and a memory for storing a computer program; wherein the processor is configured to execute the computer program to implement the above-mentioned installation package generation method or the above-mentioned application installation method.
[0065] According to another aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided. When a computer program in the storage medium is executed by a processor of an electronic device, the electronic device can execute the above-mentioned installation package generation method or the above-mentioned application installation method.
[0066] According to another aspect of an embodiment of the present disclosure, a computer program product including a computer program is provided, which, when executed on a computer, enables the computer to execute the above-mentioned installation package generation method or the above-mentioned application installation method.
[0067] The technical solution provided by the embodiments of the present disclosure brings at least the following beneficial effects:
[0068] By acquiring the first character dynamic data corresponding to the target application, the first character dynamic data is used to characterize the dynamic changes of the bones of the virtual character in the target application in the root bone dimension and the non-root bone dimension, the acquisition of the character dynamic data to be compressed in the target application can be achieved, and then the first character dynamic data is compressed to obtain the first compressed dynamic data corresponding to the target application, which can achieve compression of the first character dynamic data. Then, the data belonging to the non-root bone dimension in the first compressed dynamic data is deleted to obtain the second compressed dynamic data corresponding to the target application. On the basis of not affecting the dynamic data required for the server to run the target application, the amount of compressed dynamic data can be reduced, thereby reducing the storage space occupied by the server application installation package and the memory occupied by the above-mentioned dynamic data during the decompression process, and making the memory arrangement of the above-mentioned dynamic data during the decompression process more concentrated, thereby improving the memory hit rate during the decompression process. Then, in combination with the second compressed dynamic data, a server application installation package corresponding to the target application is generated, which can reduce the storage space occupied by the server application installation package and improve the packaging efficiency of the server application installation package. Then, on the basis of installing the target application to the target server through the above-mentioned server application installation package, during the operation of the target application, the memory occupation of the server running instance can be reduced, and the execution efficiency of the processor can be improved.
[0069] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0070] The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute improper limitations on the present disclosure.
[0071] Figure 1 is a schematic diagram of an application system according to an exemplary embodiment;
[0072] Figure 2 is a flowchart of a method for generating an installation package according to an exemplary embodiment;
[0073] Figure 3 is a flowchart of an application installation method according to an exemplary embodiment;
[0074] Figure 4 is a block diagram of a device for generating an installation package according to an exemplary embodiment;
[0075] Figure 5is a block diagram of an application installation device according to an exemplary embodiment;
[0076] Figure 6 is a block diagram of an electronic device for generating a server application installation package or implementing the installation of the server application installation package according to an exemplary embodiment;
[0077] Figure 7 It is a block diagram of another electronic device for generating a server application installation package or implementing the installation of the server application installation package according to an exemplary embodiment. DETAILED DESCRIPTION
[0078] Various exemplary embodiments, features and aspects of the present application will be described in detail below with reference to the accompanying drawings. The same reference numerals in the accompanying drawings represent elements with the same or similar functions. Although various aspects of the embodiments are shown in the accompanying drawings, the drawings are not necessarily drawn to scale unless otherwise specified.
[0079] The word “exemplary” is used exclusively herein to mean “serving as an example, example, or illustration.” Any embodiment described herein as “exemplary” is not necessarily to be construed as preferred or advantageous over other embodiments.
[0080] In addition, in order to better illustrate the present application, numerous specific details are given in the following specific embodiments. It should be understood by those skilled in the art that the present application can also be implemented without certain specific details. In some examples, methods, means, components and circuits well known to those skilled in the art are not described in detail in order to highlight the subject matter of the present application.
[0081] See also Figure 1 , Figure 1 FIG. 1 is a schematic diagram of an application system according to an exemplary embodiment. The application system can be used to implement the installation package generation method or application installation method of the present application. Figure 1 As shown, the application system may at least include a server 01 and a terminal 02 .
[0082] In the embodiment of the present application, the server 01 can be used to install the target application based on the server application installation package. Specifically, the server 01 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms.
[0083] In the embodiment of the present application, the terminal 02 can be used to generate a server application installation package based on the dynamic data of the first role. The terminal 02 may include physical devices such as smart phones, desktop computers, tablet computers, laptops, smart TVs, smart speakers, vehicle terminals, digital assistants, augmented reality (AR) / virtual reality (VR) devices, smart wearable devices, etc., and may also include software running in physical devices, such as applications. The operating system running on the terminal 02 in the embodiment of the present application may include but is not limited to Android system, IOS system, Linux, Windows, etc.
[0084] In addition, it should be noted that Figure 1 What is shown is only one application environment provided by the present disclosure. In actual application, other application environments may also be included. For example, the generation process of the server application installation package may also be implemented on the server.
[0085] In the embodiments of this specification, the terminal 02 and the server 01 may be directly or indirectly connected via wired or wireless communication, which is not limited in this application.
[0086] It should be noted that the following figure shows a possible sequence of steps, which is not actually limited to strictly following this sequence. Some steps can be executed in parallel without relying on each other.
[0087] Specifically, Figure 2 FIG. 1 is a flow chart of a method for generating an installation package according to an exemplary embodiment. Figure 2 As shown, the installation package generation method can be used in electronic devices such as terminals or servers, and can specifically include the following steps:
[0088] S201: Acquire dynamic data of a first role corresponding to a target application.
[0089] In a specific embodiment, the target application may refer to an application for which an application installation package needs to be generated. Specifically, the target application may include a game application or a film and television application.
[0090] In a specific embodiment, the first character dynamic data can be used to characterize the dynamic changes in the bones of the virtual character in the target application in the root bone dimension and the non-root bone dimension. The first character dynamic data may include the first bone dynamic data corresponding to each of the multiple preset bones. Among them, the virtual character may refer to the character to be displayed contained in the target application. It can be understood that, taking the target application as a game application as an example, the first character dynamic data can describe the movement trajectory and posture changes of the above-mentioned virtual character in the entire game animation sequence. The dynamic changes in the bones in the root bone dimension may refer to the dynamic changes in the bones of the root bone. The dynamic changes in the bones in the non-root bone dimension may refer to the dynamic changes in the bones of other bones in multiple preset bones except the root bone.
[0091] In a specific embodiment, the plurality of preset skeletons may refer to skeletons contained in the above-mentioned virtual character. The plurality of preset skeletons may include a root skeleton and at least one non-root skeleton. Further, the at least one non-root skeleton may include a pelvic skeleton or a spinal skeleton, etc.
[0092] In a specific embodiment, the first skeletal dynamic data corresponding to any preset skeleton can be used to characterize the skeletal dynamic changes of any of the above preset skeletons. Furthermore, the first skeletal dynamic data corresponding to the root skeleton can be used to characterize the position, orientation and scaling of the corresponding virtual character in the preset character scene. The first skeletal dynamic data corresponding to any preset skeleton can include skeletal data corresponding to multiple key frames. Among them, the skeletal data corresponding to any key frame can be used to indicate the skeletal movement state of any of the above preset skeletons in any of the above key frames.
[0093] In a specific embodiment, the first character dynamic data corresponding to the target application can be obtained from the application data storage according to the target application identifier corresponding to the target application. Specifically, the first character dynamic data corresponding to the target application can be pre-built by the application developer according to actual application needs.
[0094] S203: compress the first character dynamic data to obtain first compressed dynamic data corresponding to the target application.
[0095] In a specific embodiment, the first compressed dynamic data may refer to the compressed dynamic data of the first character. The first compressed dynamic data may include multiple sub-data arranged in a preset order. Exemplarily, the first compressed dynamic data may be "compressed reference sub-data, first frame root skeleton sub-data, first frame pelvis sub-data, first frame spine sub-data, second frame root skeleton sub-data, second frame pelvis sub-data, second frame spine sub-data...". Among them, taking the first frame root skeleton sub-data as an example, the first frame root skeleton sub-data may refer to the sub-data of the root skeleton under the first key frame compressed based on the above-mentioned compressed reference sub-data. The compressed reference sub-data can be used as a reference for compression processing.
[0096] In a specific embodiment, the first character dynamic data can be bit-compressed based on a preset compression module to obtain first compressed dynamic data corresponding to the target application. The preset compression module can be used to implement bit-compression of the character dynamic data.
[0097] In a specific embodiment, the above method may further include:
[0098] Based on the preset skeleton dynamic data, data belonging to the non-root skeleton dimension in the first character dynamic data is overwritten to obtain the second character dynamic data;
[0099] Accordingly, the above step S203 may further include:
[0100] The second character dynamic data is compressed to obtain first compressed dynamic data.
[0101] In a specific embodiment, the preset skeletal dynamic data may be skeletal dynamic data of a virtual character in a target application in a preset posture. The preset skeletal dynamic data may include initial skeletal dynamic data corresponding to each of a plurality of preset bones. Among them, the initial skeletal dynamic data corresponding to any preset bone may refer to the skeletal dynamic data of any of the preset bones when the virtual character is in the preset posture. Specifically, the preset posture may include a T-type posture or an A-type posture, etc.
[0102] In a specific embodiment, the amount of data of the preset skeleton dynamic data can be less than the amount of data of the first character dynamic data. It is understandable that the dynamic data of the non-root skeleton in the first character dynamic data occupies a large proportion of the above-mentioned first character dynamic data, and covering it with the preset skeleton dynamic data will greatly improve the compression rate of the overall dynamic data, thereby greatly saving the storage space and memory space occupied after packaging.
[0103] In a specific embodiment, the preset bone dynamic data can be obtained from the character bone data corresponding to the target application. The character bone data can be used to indicate the hierarchical relationship between multiple bones contained in the virtual character in the target application and the dynamic data corresponding to the multiple bones in preset postures. Specifically, the character bone data can include bone relationship indication information corresponding to multiple preset bones and initial bone dynamic data corresponding to each of the multiple preset bones. Further, the initial bone dynamic data corresponding to each of the multiple preset bones can be obtained from the character bone data corresponding to the target application, and accordingly, the initial bone dynamic data corresponding to each of the multiple preset bones can be used as the preset bone dynamic data.
[0104] In a specific embodiment, the second character dynamic data may refer to the first character dynamic data after overwriting processing. The second character dynamic data may include second skeleton dynamic data corresponding to each of a plurality of preset skeletons.
[0105] In a specific embodiment, the first bone dynamic data corresponding to at least one non-root bone can be determined from the first character dynamic data. The initial bone dynamic data corresponding to at least one non-root bone can be determined from the preset bone dynamic data. Accordingly, the first bone dynamic data corresponding to each non-root bone in the first character dynamic data can be overwritten with the initial bone dynamic data corresponding to each non-root bone, so as to obtain the second character dynamic data.
[0106] In a specific embodiment, based on a preset compression module, the second character dynamic data may be subjected to bitwise compression processing to obtain the above-mentioned first compressed dynamic data.
[0107] It can be understood that in the process of generating the server application installation package and the client application installation package, both can be compressed through the above-mentioned preset compression module to obtain compressed dynamic data; that is, based on the preset bone dynamic data, the data belonging to the non-root bone dimension in the first character dynamic data is overwritten to obtain the second character dynamic data, which can keep the data structure of the above-mentioned character dynamic data unchanged, and can also be applied to the above-mentioned preset compression module for compression processing, thereby reducing the research and development cost of the compression module. At the same time, it can also reduce the data volume of the character dynamic data before compression, thereby improving the compression processing efficiency and reducing the data volume of the first compressed dynamic data.
[0108] In the above embodiment, based on the preset bone dynamic data, the data belonging to the non-root bone dimension in the first character dynamic data is overwritten to obtain the second character dynamic data. This can reduce the data volume of the character dynamic data to be compressed without affecting the dynamic data required for the server to run the target application and adapt to the original compression method corresponding to the application development engine. The second character dynamic data is then compressed to obtain the first compressed dynamic data. This can reduce the data volume of the first compressed dynamic data, thereby improving the compression efficiency, and further improving the packaging efficiency of the server application installation package.
[0109] In a specific embodiment, the above method may further include:
[0110] Based on the preset server identifier, determine a first dynamic data identifier corresponding to the first character dynamic data;
[0111] In the compressed data storage device, searching for a first dynamic data identifier to obtain a first identifier search result;
[0112] Accordingly, the above-mentioned compressing the first role dynamic data to obtain the first compressed dynamic data corresponding to the target application may include:
[0113] When the first identification search result is the first search result, the first character dynamic data is compressed to obtain first compressed dynamic data.
[0114] In a specific embodiment, the first dynamic data identifier may refer to an identifier of a compression processing operation in the process of generating a server application installation package based on the first role dynamic data packaging.
[0115] In a specific embodiment, the preset server identifier can be used to indicate that the applicable platform of the installation package to be generated is a server. It is understandable that the first dynamic data identifier generated based on the preset server identifier can be used to indicate that the compressed dynamic data corresponding to the first dynamic data identifier can be applied to the generation of the server application installation package.
[0116] In a specific embodiment, the first dynamic data identifier can be obtained by performing identifier generation processing on the preset server identifier and the data association information corresponding to the first character dynamic data. The data association information corresponding to the first character dynamic data can be used to describe the content of the first character dynamic data. The data association information corresponding to the first character dynamic data may include the file name of the first character dynamic data, the modification time of the first character dynamic data, the frame number of the first character dynamic data, or the number of bones of the first character dynamic data.
[0117] In a specific embodiment, the compressed data storage device can be used to store compressed dynamic data corresponding to different role dynamic data. Specifically, the compressed data storage device can store compressed dynamic data corresponding to multiple different dynamic data identifiers. The dynamic data identifier can be used as an identifier for searching the compressed dynamic data. It is understandable that for different compressed dynamic data, the corresponding dynamic data identifiers are also different.
[0118] In a specific embodiment, the first identification search result can be used to indicate whether there is compressed dynamic data corresponding to the first dynamic data identification in the compressed data storage. The first identification search result may include a first search result and a third search result. Among them, the first search result can be used to indicate that there is no compressed dynamic data corresponding to the first dynamic data identification in the compressed data storage. The third search result can be used to indicate that there is compressed dynamic data corresponding to the first dynamic data identification in the compressed data storage.
[0119] In a specific embodiment, when the first identification search result is the third search result, a server application installation package corresponding to the target application can be generated based on the compressed dynamic data corresponding to the third search result.
[0120] In a specific embodiment, when the first identifier search result is the first search result, the first character dynamic data can be compressed to obtain the first compressed dynamic data; then, the first compressed dynamic data can be used as the compressed dynamic data corresponding to the first dynamic data identifier; then, the compressed dynamic data corresponding to the first dynamic data identifier can be stored in the compressed data storage device.
[0121] In the above embodiment, in the case of the first compression of the above-mentioned first character dynamic data, the first compressed dynamic data can be obtained by performing data overwriting processing and compression processing on the above-mentioned first character dynamic data, and stored as compressed dynamic data, so that when the above-mentioned first compressed dynamic data is needed subsequently, it can be directly obtained from the above-mentioned compressed data storage device, thereby avoiding the occupation of system computing resources caused by repeated compression.
[0122] S205: Delete the data belonging to the non-root bone dimension in the first compressed dynamic data to obtain the second compressed dynamic data corresponding to the target application.
[0123] In a specific embodiment, the second compressed dynamic data may refer to the first compressed dynamic data after the deletion process. Exemplarily, the second compressed dynamic data may be "compressed reference sub-data, first frame root skeleton sub-data, second frame root skeleton sub-data, third frame root skeleton sub-data..."
[0124] In a specific embodiment, the above method may further include:
[0125] Get bone relationship indication information;
[0126] Based on the skeleton relationship indication information, performing data type analysis on the first compressed dynamic data to obtain data type indication information corresponding to the first compressed dynamic data;
[0127] Correspondingly, the above-mentioned deleting of the data belonging to the non-root bone dimension in the first compressed dynamic data to obtain the second compressed dynamic data corresponding to the target application may include:
[0128] Based on the data type indication information, the data belonging to the non-root bone dimension in the first compressed dynamic data is deleted to obtain the second compressed dynamic data.
[0129] In a specific embodiment, the skeleton relationship indication information may be used to indicate the hierarchical relationship between multiple skeletons included in the virtual character in the target application.
[0130] In a specific embodiment, the skeleton relationship indication information can be obtained from the character skeleton data corresponding to the target application.
[0131] In a specific embodiment, the data type indication information may be used to indicate the data type corresponding to the sub-data included in the first compressed dynamic data.
[0132] In a specific embodiment, the data type indication information may include the first type indication information corresponding to each of the multiple sub-data in the first compressed dynamic data. Among them, the first type indication information corresponding to any sub-data can be used to indicate the data type corresponding to any of the above sub-data. Specifically, the first type indication information corresponding to any sub-data may include the first preset indication information corresponding to the root bone data type, the second preset indication information corresponding to the non-root bone data type, or the third preset indication information corresponding to the compressed reference data type. The above first preset indication information can be used to indicate that the corresponding sub-data belongs to the root bone data type. The above second preset indication information can be used to indicate that the corresponding sub-data belongs to the non-root bone data type. The above third preset indication information can be used to indicate that the corresponding sub-data belongs to the compressed reference data type.
[0133] In a specific embodiment, taking the second compressed dynamic data being "compressed reference sub-data, first frame root skeleton sub-data, first frame pelvis sub-data, first frame spine sub-data, second frame root skeleton sub-data, second frame pelvis sub-data, second frame spine sub-data..." as an example, the data type corresponding to the compressed reference sub-data can be a compressed reference data type. The data type corresponding to the first frame root skeleton sub-data can be a root skeleton data type. The data type corresponding to the first frame pelvis sub-data can be a non-root skeleton data type. The data type corresponding to the first frame spine sub-data can be a non-root skeleton data type.
[0134] In a specific embodiment, the compression process may include a segmented compression process dimension and a non-segmented compression process dimension. The segmented compression process dimension may refer to segmenting the first compressed dynamic data and then compressing each segment of the data. The non-segmented compression process dimension may refer to compressing the first compressed dynamic data, that is, not segmenting the first compressed dynamic data.
[0135] In a specific embodiment, when the compression processing is performed from the non-segmented compression processing dimension, the data type analysis of the first compressed dynamic data based on the skeleton relationship indication information to obtain the data type indication information corresponding to the first compressed dynamic data may include:
[0136] Determine the number of bones in a single frame based on the bone relationship indication information;
[0137] Based on the number of single-frame bones, the plurality of sub-data are grouped into single-frame data to obtain a plurality of first sub-data combinations;
[0138] Using the first preset indication information corresponding to the root bone data type as the first type indication information corresponding to the first sub-data in each first sub-data combination;
[0139] The second preset indication information corresponding to the non-root bone data type is used as the first type indication information corresponding to the multiple second sub-data in each first sub-data combination.
[0140] In a specific embodiment, the number of bones in a single frame may be the number of bone types contained in a plurality of sub-data corresponding to each frame in the first compressed dynamic data.
[0141] In a specific embodiment, a plurality of preset skeletons corresponding to the target application may be determined based on the skeleton relationship indication information; correspondingly, the number of skeletons in a single frame may be determined based on the plurality of preset skeletons.
[0142] In a specific embodiment, any first sub-data combination may include a plurality of skeleton sub-data corresponding to any key frame, wherein the plurality of skeleton sub-data corresponding to any key frame may include skeleton sub-data corresponding to a plurality of preset skeletons.
[0143] In a specific embodiment, the third preset indication information may be used as the first type indication information of the first sub-data in the first compressed dynamic data.
[0144] In a specific embodiment, from the sub-data other than the first sub-data in the above-mentioned first compressed dynamic data, according to the above-mentioned preset arrangement order, sub-data of the number of bones in each single frame are selected as a first sub-data combination; accordingly, multiple first sub-data combinations can be obtained. Exemplarily, assuming that the above-mentioned first compressed dynamic data is "sub-data 1, sub-data 2, sub-data 3, sub-data 4, sub-data 5, sub-data 6, sub-data 7", and the number of bones in the above-mentioned single frame is 3, the first sub-data combination 1 can be obtained as sub-data 2, sub-data 3 and sub-data 4; the first sub-data combination 2 is sub-data 5, sub-data 6, sub-data 7.
[0145] In a specific embodiment, the first sub-data may be the first sub-data in each first sub-data combination. Exemplarily, assuming that the first sub-data combination is sub-data 2, sub-data 3 and sub-data 4, it can be determined that the first sub-data in the first sub-data combination is sub-data 2.
[0146] In a specific embodiment, the plurality of second sub-data may be sub-data other than the first sub-data in each first sub-data combination. Exemplarily, assuming that the first sub-data combination is sub-data 2, sub-data 3 and sub-data 4, the plurality of second sub-data in the first sub-data combination may be determined to be sub-data 3 and sub-data 4.
[0147] In a specific embodiment, based on the above data type indication information, the data corresponding to the data type of non-root bone type in the above first compressed dynamic data can be deleted to obtain the second compressed dynamic data. Specifically, the sub-data corresponding to the second preset indication information in the first compressed dynamic data can be deleted to obtain the second compressed dynamic data.
[0148] In the above embodiment, by combining the bone relationship indication information, the data type analysis is performed on the first compressed dynamic data to obtain the data type indication information corresponding to the first compressed dynamic data, which can realize the rapid analysis of the data type of the sub-data in the first compressed dynamic data. Then, combined with the data type indication information, the data belonging to the non-root bone dimension in the first compressed dynamic data is deleted to obtain the second compressed dynamic data, which can realize the rapid deletion of non-root bone data in the first compressed dynamic data, thereby improving the packaging efficiency.
[0149] In a specific embodiment, the above method may further include:
[0150] Obtaining preset segment indication information corresponding to the first character dynamic data;
[0151] Correspondingly, in the case of performing compression processing from the above-mentioned segmented compression processing dimension, the above-mentioned data type analysis of the first compressed dynamic data based on the skeleton relationship indication information to obtain the data type indication information corresponding to the first compressed dynamic data may include:
[0152] Based on the preset segmentation indication information and the skeleton relationship indication information, a data type analysis is performed on the first compressed dynamic data to obtain data type indication information.
[0153] In a specific embodiment, the preset segment indication information can be used to indicate the amount of data corresponding to a single segment compression during the segment compression process of the first character's dynamic data. Specifically, the preset segment indication information can be obtained from the preset compression configuration information. Furthermore, the preset compression configuration information can be set according to actual application needs, which is not limited by the present disclosure.
[0154] In a specific embodiment, the data type indication information may include second type indication information corresponding to each of the plurality of sub-data in the first compressed dynamic data.
[0155] In a specific embodiment, when the compression processing is performed from the non-segmented compression processing dimension, the data type analysis of the first compressed dynamic data based on the preset segmentation indication information and the skeleton relationship indication information to obtain the data type indication information may include:
[0156] Based on the preset segment indication information, determining a plurality of segmented compressed dynamic data in the first compressed dynamic data;
[0157] Using the third preset indication information corresponding to the compressed reference data type as the second type indication information corresponding to the third sub-data in each segmented compressed dynamic data;
[0158] Determine the number of bones in a single frame based on the bone relationship indication information;
[0159] Based on the number of single-frame bones, a plurality of fourth sub-data in each segmented compressed dynamic data are subjected to single-frame data grouping processing to obtain a plurality of second sub-data combinations corresponding to each segmented compressed dynamic data;
[0160] The first preset indication information corresponding to the root bone data type is used as the second type indication information corresponding to the fifth sub-data in each second sub-data combination;
[0161] The second preset indication information corresponding to the non-root bone data type is used as the second type indication information corresponding to the multiple sixth sub-data in each second sub-data combination.
[0162] In a specific embodiment, the plurality of segmented compressed dynamic data may refer to the segmented first compressed dynamic data. Any segmented compressed dynamic data may include a plurality of sub-data.
[0163] In a specific embodiment, assuming that the preset segmentation indication information is 30, the corresponding first compressed dynamic data can be "{first segment: first compressed reference sub-data, 1st frame root skeleton sub-data, 1st frame pelvis sub-data, 1st frame spine sub-data, 2nd frame root skeleton sub-data, 2nd frame pelvis sub-data, 2nd frame spine sub-data...}, {second segment: second compressed reference sub-data, 31st frame root skeleton sub-data, 31st frame pelvis sub-data, 31st frame spine sub-data, 32nd frame root skeleton sub-data, 32nd frame pelvis sub-data, 32nd frame spine sub-data...}".
[0164] In a specific embodiment, taking the first compressed dynamic data as "sub-data 1, sub-data 2, sub-data 3, sub-data 4, sub-data 5, sub-data 6, sub-data 7, sub-data 8, sub-data 9, sub-data 10..." as an example, when the preset segmentation indication information is 2 and the number of bones in a single frame is 3, it can be determined that the segmented compressed dynamic data 1 is "sub-data 1, sub-data 2, sub-data 3, sub-data 4, sub-data 5, sub-data 6, sub-data 7", and the segmented compressed dynamic data 2 is "sub-data 8, sub-data 9, sub-data 10, sub-data 11, sub-data 12, sub-data 13, sub-data 14", etc.
[0165] In a specific embodiment, the third sub-data may be the first sub-data in each segmented compressed dynamic data.
[0166] In a specific embodiment, any second sub-data combination may include a plurality of skeleton sub-data corresponding to any key frame, wherein the plurality of skeleton sub-data corresponding to any key frame may include skeleton sub-data corresponding to a plurality of preset skeletons.
[0167] In a specific embodiment, sub-data of the number of bones in each single frame can be selected from the multiple fourth sub-data in each of the above-mentioned segmented compressed dynamic data, which can be used as a second sub-data combination; accordingly, multiple second sub-data combinations corresponding to each segmented compressed dynamic data can be obtained.
[0168] In a specific embodiment, the plurality of fourth sub-data may be sub-data other than the third sub-data in the compressed dynamic data for each segment.
[0169] In a specific embodiment, the fifth sub-data may be the first sub-data in each combination of second sub-data.
[0170] In a specific embodiment, the plurality of sixth sub-data may be the sub-data in each second sub-data combination except the fifth sub-data.
[0171] In the above embodiment, by determining multiple segmented compressed dynamic data in the first compressed dynamic data based on the preset segment indication information, using the third preset indication information corresponding to the compressed reference data type as the second type indication information corresponding to the third sub-data in each segmented compressed dynamic data, determining the number of single-frame bones based on the bone relationship indication information, and performing single-frame data grouping processing on multiple fourth sub-data in each segmented compressed dynamic data based on the number of single-frame bones to obtain multiple second sub-data combinations corresponding to each segmented compressed dynamic data, using the first preset indication information corresponding to the root bone data type as the second type indication information corresponding to the fifth sub-data in each second sub-data combination, and using the second preset indication information corresponding to the non-root bone data type as the second type indication information corresponding to the multiple sixth sub-data in each second sub-data combination, accurate analysis of the data type of the first compressed dynamic data obtained by segmented compression can be achieved.
[0172] S207: Generate a server application installation package corresponding to the target application based on the second compressed dynamic data.
[0173] In a specific embodiment, the server application installation package corresponding to the target application can be used for application installation of the target application on the server.
[0174] In a specific embodiment, a server application installation package corresponding to the target application may be generated based on the second compressed dynamic data and the data to be packaged corresponding to the target application, wherein the data to be packaged corresponding to the target application may refer to other data to be packaged except the character dynamic data.
[0175] In a specific embodiment, the above method may further include:
[0176] Based on the preset client identifier, determine the second dynamic data identifier corresponding to the first character dynamic data;
[0177] In the compressed data storage, searching for a second dynamic data identifier to obtain a second identifier search result;
[0178] When the second identification search result is the second search result, compressing the first character dynamic data to obtain third compressed dynamic data;
[0179] Based on the third compressed dynamic data, a client application installation package corresponding to the target application is generated.
[0180] In a specific embodiment, the preset client identifier can be used to indicate that the current installation package to be generated is applicable to the client platform. It is understandable that the first dynamic data identifier generated based on the preset client identifier can be used to indicate that the compressed dynamic data corresponding to the first dynamic data identifier can be applied to the generation of the client application installation package.
[0181] In a specific embodiment, the second dynamic data identifier may refer to an identifier used as a compression processing operation in the process of generating a client application installation package based on the first role dynamic data packaging.
[0182] In a specific embodiment, the second dynamic data identifier may be obtained by performing identifier generation processing on the preset client identifier and the data association information corresponding to the first role dynamic data.
[0183] In a specific embodiment, the second identification search result can be used to indicate whether there is compressed dynamic data corresponding to the second dynamic data identification in the compressed data storage. The second identification search result may include a second search result or a fourth search result. The second search result can be used to indicate that there is no compressed dynamic data corresponding to the second dynamic data identification in the compressed data storage. The fourth search result can be used to indicate that there is compressed dynamic data corresponding to the second dynamic data identification in the compressed data storage.
[0184] In a specific embodiment, the third compressed dynamic data may refer to the compressed first character dynamic data. The third compressed dynamic data may include a plurality of sub-data arranged in a preset order.
[0185] In a specific embodiment, when the second identification search result is the second search result, the first character dynamic data can be bit-compressed to obtain third compressed dynamic data.
[0186] In a specific embodiment, when the second identification search result is the fourth search result, a client application installation package corresponding to the target application can be generated based on the compressed dynamic data corresponding to the fourth search result.
[0187] In a specific embodiment, the client application installation package corresponding to the target application can be used for application installation of the target application on the client.
[0188] In a specific embodiment, a client application installation package corresponding to the target application may be generated based on the third compressed dynamic data and the to-be-packaged data corresponding to the target application.
[0189] In the above embodiment, by presetting the client identifier and determining the second dynamic data identifier corresponding to the first character's dynamic data, it is possible to distinguish it from the dynamic data identifier used to generate the server application installation package, and then search for the second dynamic data identifier in the compressed data storage device to obtain the second identifier search result. When the second identifier search result is the second search result, the first character's dynamic data is compressed to obtain third compressed dynamic data. Based on the third compressed dynamic data, a client application installation package corresponding to the target application is generated. The generation of the client application installation package corresponding to the target application can be achieved, and for the client, all dynamic data are compressed while maintaining their original state, so as not to affect the client's animation visual performance.
[0190] In the above embodiment, by acquiring the first character dynamic data corresponding to the target application, the first character dynamic data is used to characterize the dynamic changes of the bones of the virtual character in the target application in the root bone dimension and the non-root bone dimension, the acquisition of the character dynamic data to be compressed in the target application can be achieved, and then the first character dynamic data is compressed to obtain the first compressed dynamic data corresponding to the target application, which can achieve compression of the first character dynamic data, and then, the data belonging to the non-root bone dimension in the first compressed dynamic data is deleted to obtain the second compressed dynamic data corresponding to the target application, which can achieve compression of the compressed dynamic data without affecting the dynamic data required for the server to run the target application. The reduction in data volume can reduce the storage space occupied by the server application installation package and the memory occupied by the above-mentioned dynamic data during the decompression process, and can make the memory layout of the above-mentioned dynamic data during the decompression process more concentrated, thereby improving the memory hit rate during the decompression process. Then, in combination with the second compressed dynamic data, a server application installation package corresponding to the target application is generated, which can reduce the storage space occupied by the server application installation package and improve the packaging efficiency of the server application installation package. Then, on the basis of installing the target application to the target server through the above-mentioned server application installation package, during the operation of the target application, the memory occupation of the server running instance can be reduced, thereby improving the execution efficiency of the processor.
[0191] Specifically, Figure 3 FIG. 1 is a flow chart of an application installation method according to an exemplary embodiment. Figure 3 As shown, the application installation method may be executed by an electronic device, and the electronic device may include a server or a terminal. In this embodiment, the method is described by taking the method executed by a server as an example, and may specifically include the following steps:
[0192] S301: Obtain a server application installation package corresponding to a target application.
[0193] In a specific embodiment, a server application installation package can be used to implement the installation of a target application on a server. The server application installation package may include second compressed dynamic data. The second compressed dynamic data may be obtained by deleting data belonging to a non-root bone dimension in the first compressed dynamic data. The first compressed dynamic data may be obtained by compressing the first character dynamic data. The first character dynamic data may be used to characterize the dynamic changes in the bones of a virtual character in the target application in the root bone dimension and the non-root bone dimension.
[0194] In a specific embodiment, the terminal may generate a server application installation package corresponding to the target application based on the second compressed dynamic data, and then send the server application installation package to the target server. Accordingly, the target server may receive the server application installation package corresponding to the target application.
[0195] In a specific embodiment, when the target server receives the application installation instruction of the server application installation package, it can obtain the server application installation package from the terminal.
[0196] In a specific embodiment, the first compressed dynamic data may be obtained by compressing the second character dynamic data. The second character dynamic data may be obtained by overwriting the data belonging to the non-root bone dimension in the first character dynamic data based on the preset bone dynamic data.
[0197] S303: Decompress the second compressed dynamic data to obtain third character dynamic data.
[0198] In a specific embodiment, the third character dynamic data can be used to characterize the dynamic changes of the skeleton of the virtual character in the target application in the root skeleton dimension. The third character dynamic data can include the root skeleton dynamic data corresponding to each of the multiple key frames.
[0199] In a specific embodiment, based on the compressed reference sub-data in the second compressed dynamic data, multiple root bone sub-data corresponding to the compressed reference sub-data can be decompressed to obtain the third character dynamic data.
[0200] In the above embodiment, the second compressed dynamic data includes root skeleton sub-data corresponding to each of the multiple key frames, and the data volume is small. During the decompression process, compared with the situation where there are sub-data of multiple different bones, the root skeleton sub-data corresponding to each of the above multiple key frames are arranged more concentratedly in the memory, which can improve the memory hit rate during the decompression process, thereby improving the decompression efficiency, reducing memory usage, and further improving the overall installation efficiency of the target application on the server.
[0201] S305: Based on the third role dynamic data, perform application installation processing on the target application to install the target application to the target server.
[0202] In a specific embodiment, the server application installation package may also include target application installation data corresponding to the target application. The target application installation data may refer to other required installation data of the target application during the server installation process in addition to the character dynamic data. Specifically, the target application installation data may include application logic code data, application configuration data, database files, and at least one preset application engine corresponding to the target application. Exemplarily, taking a game application as an example, the target application installation data may include game logic code data, game configuration files, database files, network communication protocols, physics engines, and rendering engine plug-ins.
[0203] In a specific embodiment, the above-mentioned application installation processing on the target application based on the third role dynamic data to install the target application to the target server may include:
[0204] Based on the third character dynamic data, generating fourth character dynamic data;
[0205] Based on the fourth role dynamic data and the target application installation data, the target application is installed to install the target application to the target server.
[0206] In a specific embodiment, the fourth character dynamic data can be used to characterize the dynamic changes in the bones of the virtual character in the target application in the root bone dimension and the non-root bone dimension. It can be understood that by generating the fourth character dynamic data, the fourth character dynamic data can be made suitable for the original architecture of the application development engine, that is, the target application can be implemented on the server without changing the logic code, and the data volume of the fourth character dynamic data is smaller than that of the first character dynamic data.
[0207] In a specific embodiment, the above method may further include:
[0208] Get the dynamic data to be written;
[0209] Accordingly, the generation of the fourth character dynamic data based on the third character dynamic data may include:
[0210] The third character's dynamic data is written into the dynamic data to be written, so as to obtain the fourth character's dynamic data.
[0211] In a specific embodiment, the dynamic data to be written can be used to fill in the dynamic data corresponding to each of the multiple preset skeletons obtained after decompression to obtain the decompression result. The dynamic data to be written can be generated based on the preset skeleton dynamic data. Specifically, the dynamic data to be written can be the dynamic data generated in advance by the application development engine based on the preset skeleton dynamic data before the decompression process.
[0212] In a specific embodiment, the third character's dynamic data can be overwritten to the dynamic data corresponding to the root bone in the dynamic data to be written to obtain the fourth character's dynamic data.
[0213] In the above embodiment, by acquiring the pre-generated dynamic data to be written, the preset data can be quickly read, and then the third character's dynamic data can be written into the dynamic data to be written to obtain the fourth character's dynamic data. This can avoid the memory space occupation caused by separately storing the preset data under the non-root bone dimension, and can realize the rapid generation of the fourth character's dynamic data.
[0214] In the above embodiment, by obtaining the server application installation package corresponding to the target application, the second compressed dynamic data is decompressed to obtain the third character dynamic data. The root skeleton sub-data corresponding to each of the above multiple key frames are arranged more concentratedly in the memory, which can improve the memory hit rate during the decompression process, thereby improving the decompression efficiency, reducing memory occupancy, and further improving the overall installation efficiency of the target application on the server. Combined with the third character dynamic data, the target application is installed to achieve the application installation of the target application on the target server, which can improve the overall installation efficiency of the target application and reduce the storage space occupied by the character dynamic data in the server. In the running process of the target application, the memory occupancy of the server running instance can be reduced and the execution efficiency of the processor can be improved. In actual applications, compared with the original processing method, the second compressed dynamic data in the server application installation package obtained by the above installation package generation method can save 83.2% of the memory occupancy in the decompression process on the target server, and the CPU overhead of the target server can also be reduced by about 11%.
[0215] Figure 4 FIG. 1 is a block diagram of an installation package generating device according to an exemplary embodiment. Figure 4 As shown, the device may include:
[0216] The first data acquisition module 410 may be used to acquire first character dynamic data corresponding to the target application; the first character dynamic data is used to characterize the dynamic changes of bones of the virtual character in the target application in the root bone dimension and the non-root bone dimension;
[0217] The first compression processing module 420 may be used to compress the first character dynamic data to obtain first compressed dynamic data corresponding to the target application;
[0218] The deletion processing module 430 may be used to delete the data belonging to the non-root bone dimension in the first compressed dynamic data to obtain the second compressed dynamic data corresponding to the target application;
[0219] The installation package generation module 440 may be configured to generate a server application installation package corresponding to the target application based on the second compressed dynamic data.
[0220] In a specific embodiment, the above device may further include:
[0221] The data coverage processing module can be used to perform data coverage processing on the data belonging to the non-root bone dimension in the first character dynamic data based on the preset bone dynamic data to obtain the second character dynamic data; the preset bone dynamic data is the bone dynamic data of the virtual character in the target application in a preset posture, and the data volume of the preset bone dynamic data is less than the data volume of the first character dynamic data;
[0222] Accordingly, the first compression processing module 420 may include:
[0223] The first compression processing unit can be used to compress the second character dynamic data to obtain first compressed dynamic data.
[0224] In a specific embodiment, the above device may further include:
[0225] The second data acquisition module can be used to acquire skeleton relationship indication information; the skeleton relationship indication information is used to indicate the hierarchical relationship between multiple skeletons included in the virtual character in the target application;
[0226] The data type analysis module can be used to perform data type analysis on the first compressed dynamic data based on the skeleton relationship indication information to obtain data type indication information corresponding to the first compressed dynamic data; the data type indication information is used to indicate the data type corresponding to the sub-data contained in the first compressed dynamic data;
[0227] Accordingly, the deletion processing module 430 may include:
[0228] The first deletion processing unit can be used to delete the data belonging to the non-root bone dimension in the first compressed dynamic data based on the data type indication information to obtain the second compressed dynamic data.
[0229] In a specific embodiment, the data type analysis module may include:
[0230] The first quantity acquisition unit can be used to determine the number of bones in a single frame based on the bone relationship indication information; the number of bones in a single frame is the number of bone types contained in the multiple sub-data corresponding to each frame in the first compressed dynamic data;
[0231] The first grouping processing unit may be used to perform single-frame data grouping processing on the plurality of sub-data based on the number of single-frame bones to obtain a plurality of first sub-data combinations;
[0232] The first type determination unit may be configured to use the first preset indication information corresponding to the root bone data type as the first type indication information corresponding to the first sub-data in each first sub-data combination; the first sub-data is the first sub-data in each first sub-data combination;
[0233] The second type determination unit can be used to use the second preset indication information corresponding to the non-root bone data type as the first type indication information corresponding to the multiple second sub-data in each first sub-data combination; the multiple second sub-data are the sub-data other than the first sub-data in each first sub-data combination.
[0234] In a specific embodiment, the above device may further include:
[0235] The third data acquisition module may be used to acquire preset segment indication information corresponding to the first character dynamic data; the preset segment indication information is used to indicate the amount of data corresponding to a single segment compression during the segment compression process of the first character dynamic data;
[0236] Accordingly, the above data type analysis module may include:
[0237] The data type analysis submodule can be used to perform data type analysis on the first compressed dynamic data based on preset segmentation indication information and skeleton relationship indication information to obtain data type indication information.
[0238] In a specific embodiment, the data type analysis submodule may include:
[0239] The segmented data acquisition unit may be used to determine a plurality of segmented compressed dynamic data in the first compressed dynamic data based on preset segment indication information;
[0240] The third type determination unit may be configured to use the third preset indication information corresponding to the compressed reference data type as the second type indication information corresponding to the third sub-data in each segmented compressed dynamic data; the third sub-data is the first sub-data in each segmented compressed dynamic data;
[0241] The second quantity acquisition unit can be used to determine the number of bones in a single frame based on the bone relationship indication information; the number of bones in a single frame is the number of bone types contained in the multiple sub-data corresponding to each frame in the first compressed dynamic data;
[0242] The second grouping processing unit can be used to perform single-frame data grouping processing on multiple fourth sub-data in each segmented compressed dynamic data based on the number of single-frame bones, so as to obtain multiple second sub-data combinations corresponding to each segmented compressed dynamic data; the multiple fourth sub-data are sub-data other than the third sub-data in each segmented compressed dynamic data;
[0243] The fourth type determination unit may be configured to use the first preset indication information corresponding to the root bone data type as the second type indication information corresponding to the fifth sub-data in each second sub-data combination; the fifth sub-data is the first sub-data in each second sub-data combination;
[0244] The fifth type determination unit can be used to use the second preset indication information corresponding to the non-root bone data type as the second type indication information corresponding to the multiple sixth sub-data in each second sub-data combination; the multiple sixth sub-data are the sub-data in each second sub-data combination except the fifth sub-data.
[0245] In a specific embodiment, the above device may further include:
[0246] A first identification acquisition module may be used to determine a first dynamic data identification corresponding to the first character dynamic data based on a preset server identification;
[0247] The first identification search module can be used to search for the first dynamic data identification in the compressed data storage to obtain a first identification search result; the first identification search result is used to indicate whether there is compressed dynamic data corresponding to the first dynamic data identification in the compressed data storage;
[0248] Accordingly, the first compression processing module 420 may include:
[0249] The second compression processing unit can be used to compress the first character dynamic data to obtain first compressed dynamic data when the first identifier search result is the first search result; the first search result is used to indicate that there is no compressed dynamic data corresponding to the first dynamic data identifier in the compressed data storage device.
[0250] In a specific embodiment, the above device may further include:
[0251] The second identification acquisition module may be used to determine the second dynamic data identification corresponding to the first character dynamic data based on the preset client identification;
[0252] The second identifier search module can be used to search for the second dynamic data identifier in the compressed data storage device to obtain a second identifier search result; the second identifier search result is used to indicate whether there is compressed dynamic data corresponding to the second dynamic data identifier in the compressed data storage device;
[0253] The second compression processing module can be used to compress the first character dynamic data to obtain third compressed dynamic data when the second identifier search result is the second search result; the second search result is used to indicate that there is no compressed dynamic data corresponding to the second dynamic data identifier in the compressed data storage;
[0254] The installation package acquisition module can be used to generate a client application installation package corresponding to the target application based on the third compressed dynamic data.
[0255] Figure 5 FIG. 1 is a block diagram of an application installation device according to an exemplary embodiment. Figure 5 As shown, the device may include:
[0256] The installation package acquisition module 510 can be used to obtain the server application installation package corresponding to the target application; the server application installation package includes second compressed dynamic data; the second compressed dynamic data is obtained by deleting the data belonging to the non-root bone dimension in the first compressed dynamic data, and the first compressed dynamic data is obtained by compressing the first character dynamic data, and the first character dynamic data is used to characterize the dynamic changes of the bones of the virtual character in the target application in the root bone dimension and the non-root bone dimension;
[0257] The decompression processing module 520 may be used to decompress the second compressed dynamic data to obtain third character dynamic data; the third character dynamic data is used to characterize the dynamic changes of the skeleton of the virtual character in the target application under the root skeleton dimension;
[0258] The application installation module 530 may be used to perform application installation processing on the target application based on the third role dynamic data, so as to install the target application on the target server.
[0259] In a specific embodiment, the application installation module 530 may include:
[0260] The data generating unit may be used to generate fourth character dynamic data based on the third character dynamic data; the fourth character dynamic data is used to characterize the dynamic changes of bones of the virtual character in the target application in the root bone dimension and the non-root bone dimension;
[0261] The installation processing unit may be used to perform installation processing on the target application based on the fourth role dynamic data and the target application installation data, so as to install the target application to the target server.
[0262] In a specific embodiment, the above device may further include:
[0263] The fourth data acquisition module can be used to acquire the dynamic data to be written; the dynamic data to be written is generated based on the preset bone dynamic data;
[0264] Accordingly, the data generating unit may include:
[0265] The data writing subunit can be used to write the third character's dynamic data into the dynamic data to be written to obtain the fourth character's dynamic data.
[0266] Regarding the device in the above embodiment, the specific manner in which each module and unit performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0267] Figure 6 is a block diagram of an electronic device for generating a server application installation package or implementing the installation of the server application installation package according to an exemplary embodiment. The electronic device may be a server, and its internal structure diagram may be as shown in FIG. Figure 6 As shown. The electronic device includes a processor, a memory and a network interface connected via a system bus. The processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the electronic device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, an installation package generation method or an application installation method is implemented.
[0268] Figure 7 is a block diagram of another electronic device for generating a server application installation package or implementing the installation of the server application installation package according to an exemplary embodiment. The electronic device may be a terminal, and its internal structure diagram may be as shown in FIG. Figure 7As shown. The electronic device includes a processor, a memory, a network interface, a display screen and an input device connected via a system bus. Among them, the processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the electronic device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, an installation package generation method or an application installation method is implemented. The display screen of the electronic device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the electronic device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the housing of the electronic device, or an external keyboard, touchpad or mouse, etc.
[0269] Those skilled in the art will understand that Figure 6 or Figure 7 The structure shown in the figure is merely a block diagram of a partial structure related to the scheme of the present disclosure, and does not constitute a limitation on the electronic device to which the scheme of the present disclosure is applied. The specific electronic device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0270] In an exemplary embodiment, an electronic device is also provided, including: a processor; a memory for storing a computer program; wherein the processor is configured to execute the computer program to implement the installation package generation method or the application installation method as in the embodiments of the present disclosure.
[0271] In an exemplary embodiment, a computer-readable storage medium is also provided. When a computer program in the storage medium is executed by a processor of an electronic device, the electronic device can execute the installation package generation method or application installation method in the embodiment of the present disclosure.
[0272] In an exemplary embodiment, a computer program product including a computer program is also provided. When the computer program product is run on a computer, the computer is enabled to execute the installation package generation method or the application installation method in the embodiments of the present disclosure.
[0273] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0274] In the embodiments of the present application, the term "module" or "unit" refers to a computer program or a part of a computer program with a predetermined function, and works together with other related parts to achieve a predetermined goal, and can be implemented in whole or in part by using software, hardware (such as processing circuits or memories) or a combination thereof. Similarly, a processor (or multiple processors or memories) can be used to implement one or more modules or units. In addition, each module or unit can be part of an overall module or unit that includes the function of the module or unit.
[0275] It is understandable that in the specific implementation of this application, related data such as user information is involved. When the above embodiments of this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.
[0276] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0277] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A method for generating an installation package, characterized in that: The method comprises: Acquire first character dynamic data corresponding to the target application; the first character dynamic data is used to characterize the dynamic changes of bones of the virtual character in the target application in the root bone dimension and the non-root bone dimension; Compressing the first role dynamic data to obtain first compressed dynamic data corresponding to the target application; Deleting data belonging to non-root bone dimensions in the first compressed dynamic data to obtain second compressed dynamic data corresponding to the target application; Based on the second compressed dynamic data, a server application installation package corresponding to the target application is generated.
2. The method according to claim 1, characterized in that The method further comprises: Based on preset skeletal dynamic data, data belonging to non-root bone dimensions in the first character dynamic data are overwritten to obtain second character dynamic data; the preset skeletal dynamic data is skeletal dynamic data of the virtual character in the target application in a preset posture, and the data volume of the preset skeletal dynamic data is less than the data volume of the first character dynamic data; The compressing the first role dynamic data to obtain first compressed dynamic data corresponding to the target application includes: The second character dynamic data is compressed to obtain the first compressed dynamic data.
3. The method according to claim 1, characterized in that: The method further comprises: Acquire skeleton relationship indication information; the skeleton relationship indication information is used to indicate the hierarchical relationship between multiple skeletons included in the virtual character in the target application; Based on the skeletal relationship indication information, a data type analysis is performed on the first compressed dynamic data to obtain data type indication information corresponding to the first compressed dynamic data; the data type indication information is used to indicate the data type corresponding to the sub-data contained in the first compressed dynamic data; The deleting the data belonging to the non-root bone dimension in the first compressed dynamic data to obtain the second compressed dynamic data corresponding to the target application includes: Based on the data type indication information, the data belonging to the non-root bone dimension in the first compressed dynamic data is deleted to obtain the second compressed dynamic data.
4. The method according to claim 3, characterized in that The data type indication information includes first type indication information corresponding to each of the plurality of sub-data in the first compressed dynamic data; the data type analysis is performed on the first compressed dynamic data based on the skeletal relationship indication information to obtain the data type indication information corresponding to the first compressed dynamic data, including: Based on the bone relationship indication information, determining the number of bones in a single frame; the number of bones in a single frame is the number of bone types contained in a plurality of sub-data corresponding to each frame in the first compressed dynamic data; Based on the single-frame skeleton quantity, performing single-frame data grouping processing on the plurality of sub-data to obtain a plurality of first sub-data combinations; The first preset indication information corresponding to the root bone data type is used as the first type indication information corresponding to the first sub-data in each first sub-data combination; the first sub-data is the first sub-data in each first sub-data combination; The second preset indication information corresponding to the non-root bone data type is used as the first type indication information corresponding to the multiple second sub-data in each first sub-data combination; the multiple second sub-data are the sub-data in each first sub-data combination except the first sub-data.
5. The method according to claim 3, characterized in that: The method further comprises: Acquire preset segment indication information corresponding to the first character dynamic data; the preset segment indication information is used to indicate the amount of data corresponding to a single segment compression during the segment compression process of the first character dynamic data; The step of performing data type analysis on the first compressed dynamic data based on the skeletal relationship indication information to obtain data type indication information corresponding to the first compressed dynamic data includes: Based on the preset segmentation indication information and the skeleton relationship indication information, a data type analysis is performed on the first compressed dynamic data to obtain the data type indication information.
6. The method according to claim 5, characterized in that The data type indication information includes second type indication information corresponding to each of the plurality of sub-data in the first compressed dynamic data; the data type indication information is obtained by performing data type analysis on the first compressed dynamic data based on the preset segmentation indication information and the skeleton relationship indication information, including: Based on the preset segment indication information, determining a plurality of segmented compressed dynamic data in the first compressed dynamic data; The third preset indication information corresponding to the compressed reference data type is used as the second type indication information corresponding to the third sub-data in each segmented compressed dynamic data; the third sub-data is the first sub-data in each segmented compressed dynamic data; Based on the bone relationship indication information, determining the number of bones in a single frame; the number of bones in a single frame is the number of bone types contained in a plurality of sub-data corresponding to each frame in the first compressed dynamic data; Based on the single-frame skeleton quantity, a plurality of fourth sub-data in each segmented compressed dynamic data are subjected to single-frame data grouping processing to obtain a plurality of second sub-data combinations corresponding to each segmented compressed dynamic data; the plurality of fourth sub-data are sub-data in each segmented compressed dynamic data except the third sub-data; The first preset indication information corresponding to the root bone data type is used as the second type indication information corresponding to the fifth sub-data in each second sub-data combination; the fifth sub-data is the first sub-data in each second sub-data combination; The second preset indication information corresponding to the non-root bone data type is used as the second type indication information corresponding to the multiple sixth sub-data in each second sub-data combination; the multiple sixth sub-data are the sub-data in each second sub-data combination except the fifth sub-data.
7. The method according to claim 1, characterized in that The method further comprises: Based on a preset server identifier, determining a first dynamic data identifier corresponding to the first character dynamic data; In the compressed data storage, searching for the first dynamic data identifier to obtain a first identifier search result; the first identifier search result is used to indicate whether there is compressed dynamic data corresponding to the first dynamic data identifier in the compressed data storage; The compressing the first role dynamic data to obtain first compressed dynamic data corresponding to the target application includes: When the first identifier search result is the first search result, the first character dynamic data is compressed to obtain the first compressed dynamic data; the first search result is used to indicate that there is no compressed dynamic data corresponding to the first dynamic data identifier in the compressed data storage.
8. The method according to any one of claims 1 to 7, characterized in that: The method further comprises: Based on the preset client identifier, determining a second dynamic data identifier corresponding to the first character dynamic data; In the compressed data storage, searching for the second dynamic data identifier to obtain a second identifier search result; the second identifier search result is used to indicate whether there is compressed dynamic data corresponding to the second dynamic data identifier in the compressed data storage; In the case where the second identification search result is the second search result, the first character dynamic data is compressed to obtain third compressed dynamic data; the second search result is used to indicate that there is no compressed dynamic data corresponding to the second dynamic data identification in the compressed data storage; Based on the third compressed dynamic data, a client application installation package corresponding to the target application is generated.
9. An application installation method, characterized in that: The method comprises: Obtain a server application installation package corresponding to the target application; the server application installation package includes second compressed dynamic data; the second compressed dynamic data is obtained by deleting data belonging to a non-root bone dimension in the first compressed dynamic data, the first compressed dynamic data is obtained by compressing the first character dynamic data, and the first character dynamic data is used to characterize the dynamic changes of bones of the virtual character in the target application in the root bone dimension and the non-root bone dimension; Decompressing the second compressed dynamic data to obtain third character dynamic data; the third character dynamic data is used to characterize the dynamic changes of the bones of the virtual character in the target application under the root bone dimension; Based on the third role dynamic data, application installation processing is performed on the target application to install the target application to a target server.
10. The method according to claim 9, characterized in that The server application installation package also includes target application installation data corresponding to the target application; and performing application installation processing on the target application based on the third role dynamic data to install the target application to the target server includes: Based on the third character dynamic data, fourth character dynamic data is generated; the fourth character dynamic data is used to characterize the dynamic changes of bones of the virtual character in the target application in the root bone dimension and the non-root bone dimension; Based on the fourth role dynamic data and the target application installation data, the target application is installed to install the target application to the target server.
11. The method according to claim 10, characterized in that The method further comprises: Acquire dynamic data to be written; the dynamic data to be written is generated based on the preset bone dynamic data; The step of generating fourth character dynamic data based on the third character dynamic data includes: The third character dynamic data is written into the dynamic data to be written to obtain the fourth character dynamic data.
12. An installation package generating device, characterized in that: The device comprises: A first data acquisition module is used to acquire first character dynamic data corresponding to a target application; the first character dynamic data is used to characterize the dynamic changes of bones of a virtual character in the target application in root bone dimensions and non-root bone dimensions; A first compression processing module, used for compressing the first role dynamic data to obtain first compressed dynamic data corresponding to the target application; A deletion processing module, used for deleting the data belonging to the non-root bone dimension in the first compressed dynamic data to obtain the second compressed dynamic data corresponding to the target application; The installation package generation module is used to generate a server application installation package corresponding to the target application based on the second compressed dynamic data.
13. An application installation device, characterized in that: The device comprises: An installation package acquisition module is used to acquire a server application installation package corresponding to a target application; the server application installation package includes second compressed dynamic data; the second compressed dynamic data is obtained by deleting data belonging to a non-root bone dimension in the first compressed dynamic data, the first compressed dynamic data is obtained by compressing first character dynamic data, and the first character dynamic data is used to characterize the dynamic changes of bones of a virtual character in the target application in root bone dimensions and non-root bone dimensions; A decompression processing module, used for decompressing the second compressed dynamic data to obtain third character dynamic data; the third character dynamic data is used to characterize the dynamic changes of the bones of the virtual character in the target application under the root bone dimension; The application installation module is used to perform application installation processing on the target application based on the third role dynamic data, so as to install the target application to a target server.
14. An electronic device, characterized in that: include: processor; a memory for storing processor-executable instructions; The processor is configured to execute the executable instructions to implement the installation package generation method described in any one of claims 1 to 8 or the application installation method described in any one of claims 9 to 11.
15. A non-volatile computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the computer program instructions are executed by a processor, the installation package generation method described in any one of claims 1 to 8 or the application installation method described in any one of claims 9 to 11 is implemented.
