Game resource processing method, device, computer equipment and storage medium

By copying and standardizing the naming of game resources, and binding skeletal information, the problem of low game resource processing efficiency is solved and a more efficient resource processing process is achieved.

CN114146418BActive Publication Date: 2024-10-01NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111493874.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-08
Publication Date
2024-10-01
Estimated Expiration
2041-12-08

AI Technical Summary

Technical Problem

Game producers need to perform cumbersome operations when processing game resources, resulting in low operating efficiency and a lot of time.

Method used

By copying the game resources and naming them in a standardized manner, and binding the skeletal information to the resources after the standardized naming, the steps and time of resource processing are reduced.

Benefits of technology

Improved the operational efficiency of game resource processing and reduced processing time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114146418B_ABST
    Figure CN114146418B_ABST
Patent Text Reader

Abstract

The embodiment of the present application discloses a method, device, computer equipment and storage medium for processing game resources. The method includes: obtaining a game file to be processed; determining a first game skeleton model resource among multiple game skeleton model resources; copying the first game skeleton model resource, updating the resource name of the second game skeleton model resource obtained after copying to the target resource name, and obtaining an updated second game skeleton model resource; generating a target game file based on the target game skeleton model resource in response to a resource export instruction; by copying the game skeleton model resource, and standardizing the naming of the game skeleton model resource obtained after copying, and then binding the skeleton information corresponding to the original game resource to the game resource after standard naming, the operation steps for processing the game skeleton model resource in the game file can be reduced, the processing time can be reduced, and the operation efficiency of the game skeleton model resource can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, in particular to the field of game technology, and specifically to a method, device, computer equipment and storage medium for processing game resources. Background Art

[0002] In games, such as those developed based on client or server architecture, in order to satisfy the user's sense of reality in the game, game virtual characters or game virtual objects are often built based on skeletal models. Players can manipulate the virtual characters on the screen to play the game, and can perform related operations such as walking, running, jumping, and fighting in the game scene based on the third-person perspective of the character operated by the player, so that players can experience the visual impact brought by the game in an immersive way, greatly enhancing the initiative and realism of the game.

[0003] Before a game is released, game developers need to manually preset the game resources needed in the game to enable players to perform various game operations in the game. In the prior art, game developers will create a large number of action resources. When exporting game resources according to different project requirements, they need to perform cumbersome operations and spend a lot of time processing game resources, resulting in low operational efficiency of game resource processing. Summary of the invention

[0004] The embodiments of the present application provide a method, apparatus, computer equipment and storage medium for processing game resources. By copying the game resources, naming them in a standardized manner, and then binding the skeleton information of the game resources after the standardized naming, the operation steps of resource processing can be reduced, and the processing time of game resources can be reduced, thereby improving the operational efficiency of game resource processing.

[0005] The present application embodiment provides a method for processing game resources, including:

[0006] Obtain a game file to be processed, wherein the game file to be processed includes a plurality of game skeleton model resources, the game skeleton model resources are named as initial resource names, and the initial resource names include a namespace;

[0007] Determine a first game skeleton model resource among the plurality of game skeleton model resources;

[0008] Copying the first game skeleton model resource, updating the resource name of the second game skeleton model resource obtained after the copy to the target resource name, and obtaining an updated second game skeleton model resource, wherein the target resource name is the initial resource name with the namespace removed;

[0009] Bind the skeleton information indicated by the namespace in the initial resource name with the updated second game skeleton model resource to obtain a target game skeleton model resource;

[0010] In response to the resource export instruction, a target game file is generated based on the target game skeleton model resource.

[0011] In some embodiments, before obtaining the game file to be processed, the method further includes:

[0012] Displaying a graphical user interface, the graphical user interface being used to display a game resource rendering page and a game resource adjustment page superimposed and displayed on the game resource rendering page;

[0013] Receiving a game file selection instruction triggered by a user through a game file input control on the game resource adjustment page;

[0014] The step of obtaining the game file to be processed includes:

[0015] Obtain the game file to be processed corresponding to the game file selection instruction.

[0016] In some embodiments, receiving a game file selection instruction triggered by a user through a game file input control on the game resource adjustment page includes:

[0017] In response to the user's touch operation on the game file input control, displaying candidate game file paths of a plurality of candidate game files on the game resource adjustment page;

[0018] In response to a selection operation on a target game file path among the candidate game file paths, a game file to be processed is determined based on the target game file path.

[0019] In some embodiments, after displaying the graphical user interface, the method further includes:

[0020] Receive a target path determination instruction triggered by the user through a file path setting control on the game resource adjustment page;

[0021] Determine the target file format and the target file path corresponding to the target path determination instruction.

[0022] In some embodiments, after obtaining the to-be-processed game file corresponding to the game file selection instruction, the method further includes:

[0023] Displaying all game skeleton model resources of the game file to be processed in the resource display area on the game resource adjustment page;

[0024] In response to the user's selection operation of selecting a game skeleton model resource to be processed from all the game skeleton model resources, the game skeleton model resource to be processed is determined as the first game skeleton model resource.

[0025] In some embodiments, after displaying the graphical user interface, the method further includes:

[0026] A plurality of candidate resource category controls are displayed in the resource category display area on the game resource adjustment page;

[0027] In response to a selection operation on a target resource category control among the plurality of candidate resource category controls, a target derived resource category is determined.

[0028] In some embodiments, in response to the resource export instruction, generating a target game file based on the target game skeleton model resource includes:

[0029] In response to the resource export instruction, a target game file is generated based on the target file export condition and the target game skeleton model resource.

[0030] In some embodiments, before responding to the resource export instruction, the method further includes:

[0031] Receiving a resource export instruction triggered by a user through a game file export control on the game resource adjustment page;

[0032] The method of generating a target game file based on a target file export condition and the target game skeleton model resource in response to a resource export instruction includes:

[0033] In response to the resource export instruction, a target game file is generated based on the target game skeleton model resource, the target file format, the target file path and the target export resource category.

[0034] In some embodiments, the skeleton information includes skeleton constraint information and skeleton animation information.

[0035] Accordingly, the embodiment of the present application further provides a device for processing game resources, including:

[0036] An acquisition unit, used for acquiring a game file to be processed, wherein the game file to be processed includes a plurality of game skeleton model resources, the game skeleton model resources are named as initial resource names, and the initial resource names include a namespace;

[0037] A determination unit, configured to determine a first game skeleton model resource among the plurality of game skeleton model resources;

[0038] The first processing unit is used to copy the first game skeleton model resource, update the resource name of the second game skeleton model resource obtained after the copy to the target resource name, and obtain the updated second game skeleton model resource, wherein the target resource name is the initial resource name with the namespace removed;

[0039] A second processing unit is used to bind the skeleton information indicated by the namespace in the initial resource name with the updated second game skeleton model resource to obtain a target game skeleton model resource;

[0040] A generating unit is used to generate a target game file based on the target game skeleton model resource in response to a resource export instruction.

[0041] In some embodiments, the apparatus further comprises:

[0042] A first display unit, used to display a graphical user interface, wherein the graphical user interface is used to display a game resource rendering page and a game resource adjustment page superimposed and displayed on the game resource rendering page;

[0043] A first receiving unit, configured to receive a game file selection instruction triggered by a user through a game file input control on the game resource adjustment page;

[0044] The first determining subunit is used to obtain the to-be-processed game file corresponding to the game file selection instruction.

[0045] In some embodiments, the apparatus further comprises:

[0046] a second display unit, configured to display candidate game file paths of a plurality of candidate game files on the game resource adjustment page in response to a touch operation of the user on the game file input control;

[0047] The second determining subunit is used to determine the game file to be processed based on the target game file path in response to a selection operation on the target game file path in the candidate game file paths.

[0048] In some embodiments, the apparatus further comprises:

[0049] A second receiving unit, configured to receive a target path determination instruction triggered by the user through a file path setting control on the game resource adjustment page;

[0050] The third determination subunit is used to determine the target file format and the target file path corresponding to the target path determination instruction.

[0051] In some embodiments, the apparatus further comprises:

[0052] A third display unit, used for displaying all game skeleton model resources of the to-be-processed game file in the resource display area on the game resource adjustment page;

[0053] The fourth determining subunit is used to determine the game skeleton model resource to be processed as the first game skeleton model resource in response to the user's selection operation of selecting the game skeleton model resource to be processed from all the game skeleton model resources.

[0054] In some embodiments, the apparatus further comprises:

[0055] A fourth display subunit, configured to display a plurality of candidate resource category controls in the resource category display area on the game resource adjustment page;

[0056] The fifth determining subunit is configured to determine a target derived resource category in response to a selection operation on a target resource category control among the plurality of candidate resource category controls.

[0057] In some embodiments, the apparatus further comprises:

[0058] The first generating subunit is used to generate a target game file based on the target file export condition and the target game skeleton model resource in response to the resource export instruction.

[0059] In some embodiments, the apparatus further comprises:

[0060] A third receiving unit is used to receive a resource export instruction triggered by a user through a game file export control on the game resource adjustment page;

[0061] The method of generating a target game file based on a target file export condition and the target game skeleton model resource in response to a resource export instruction includes:

[0062] The second generating subunit is used to generate a target game file based on the target game skeleton model resource, the target file format, the target file path and the target export resource category in response to the resource export instruction.

[0063] Correspondingly, an embodiment of the present application also provides a computer device, including a processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein the computer program implements any step of a method for processing game resources when executed by the processor.

[0064] Correspondingly, an embodiment of the present application further provides a storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of any one of the methods for processing game resources are implemented.

[0065] The embodiments of the present application provide a method, apparatus, computer equipment and storage medium for processing game resources, which obtain a game file to be processed, wherein the game file to be processed includes multiple game skeleton model resources, the game skeleton model resource is named as an initial resource name, and the initial resource name includes a namespace; determine a first game skeleton model resource among the multiple game skeleton model resources; copy the first game skeleton model resource, update the resource name of the second game skeleton model resource obtained after the copy to a target resource name, and obtain an updated second game skeleton model resource, wherein the target resource name is the initial resource name with the namespace removed; bind the skeleton information indicated by the namespace in the initial resource name to the updated second game skeleton model resource to obtain a target game skeleton model resource; and generate a target game file based on the target game skeleton model resource in response to a resource export instruction. The embodiment of the present application copies the game resources specified in the game file and standardizes the naming of the copied game resources, that is, eliminates the namespace set by the original game resources, and then binds the skeleton information corresponding to the original game resources to the standardly named game resources. This can reduce the operation steps for processing the game skeleton model resources in the game file, reduce the processing time, and thus improve the operation efficiency of the game skeleton model resources. BRIEF DESCRIPTION OF THE DRAWINGS

[0066] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0067] Figure 1 A flowchart of the processing of game resources provided in an embodiment of the present application.

[0068] Figure 2 A schematic diagram of a scenario of a method for processing game resources provided in an embodiment of the present application.

[0069] Figure 3 A schematic diagram of the structure of a device for processing game resources provided in an embodiment of the present application.

[0070] Figure 4 A schematic diagram of the structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0071] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.

[0072] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0073] Specifically, the processing method of the game resources of the embodiment of the present application can be performed by a computer device, wherein the computer device can be a terminal or a server. The terminal can be a terminal device such as a smart phone, a tablet computer, a laptop computer, a touch screen, a game console, a personal computer (PC, Personal Computer), a personal digital assistant (PersonalDigital Assistant, PDA), etc. The terminal can also include a client, and the client can be a game application client, a browser client carrying a game program, or an instant messaging client, etc. The server can be an independent physical server, or a server cluster or a distributed system composed of multiple physical servers, or a cloud server providing 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. The structural schematic diagram of the computer device will be described in detail below.

[0074] For example, when the method for processing game resources is run on a terminal, the terminal device stores an application and is used to present a graphical user interface page. The graphical user interface may display a game resource rendering page, and a game resource adjustment page superimposed on the game resource rendering page, such as downloading and installing the application through the terminal device and running it. The terminal device may provide the user interface to the user in a variety of ways, for example, it may be rendered and displayed on the display screen of the terminal device, or the user interface may be presented through holographic projection. For example, the terminal device may include a touch display screen and a processor, the touch display screen is used to present the user interface and receive operation instructions generated by the user acting on the user interface, the user interface includes a game page, and the processor is used to run the game, generate the user interface, respond to the operation instructions, and control the display of the user interface on the touch display screen.

[0075] It should be noted that the order in which the following embodiments appear is not intended to limit the preferred order of the embodiments.

[0076] In this embodiment, a method for processing a game character model is provided. Figure 1 As shown, the specific process of the game character model processing method can be as follows: Step 101 to Step 105:

[0077] 101. Obtain a game file to be processed, wherein the game file to be processed includes a plurality of game skeleton model resources, the game skeleton model resources are named as initial resource names, and the initial resource names include a namespace.

[0078] Specifically, in order to enable the designer to select the target game file by himself, the step "obtaining the game file to be processed" may include:

[0079] Displaying a graphical user interface, the graphical user interface being used to display a game resource rendering page and a game resource adjustment page superimposed and displayed on the game resource rendering page;

[0080] Receiving a game file selection instruction triggered by a user through a game file input control on the game resource adjustment page;

[0081] Obtain the game file to be processed corresponding to the game file selection instruction.

[0082] Specifically, the step of “receiving a game file selection instruction triggered by a user through a game file input control on the game resource adjustment page” may include:

[0083] In response to the user's touch operation on the game file input control, displaying candidate game file paths of a plurality of candidate game files on the game resource adjustment page;

[0084] In response to a selection operation on a target game file path among the candidate game file paths, a game file to be processed is determined based on the target game file path.

[0085] See also Figure 2 ,like Figure 2 As shown, the designer can select the game file input control to determine the path of the ma scene file to be imported. The ma scene file is generally completed by art production. The ma scene file refers to the game file in the ma format. For example, the designer can import the path of the game file (XXX / Desktop / Animations / Actions) in the game file input control and determine the game file according to the path of the game file.

[0086] In order to determine the file format and the saving path of the last exported file, after the step of "displaying the graphical user interface", the method may include:

[0087] Receive a target path determination instruction triggered by the user through a file path setting control on the game resource adjustment page;

[0088] Determine the target file format and the target file path corresponding to the target path determination instruction.

[0089] See also Figure 2 ,like Figure 2 As shown, the designer can set the specified target file path and target file format (for example: XXX / XXX / Desktop / Animations / Actions / FBX) through the file path setting control, that is, set the target format to FBX format.

[0090] In order to enable users to personalize and select the game skeleton model resources required for the project, after the step of "obtaining the to-be-processed game file corresponding to the game file selection instruction", the method may include:

[0091] Displaying all game skeleton model resources of the game file to be processed in the resource display area on the game resource adjustment page;

[0092] In response to the user's selection operation of selecting a game skeleton model resource to be processed from all the game skeleton model resources, the game skeleton model resource to be processed is determined as the first game skeleton model resource.

[0093] For example, multiple game skeleton model resource options can be displayed in the resource display area on the game resource adjustment page. The options can be to select all or to display multiple game skeleton model resource options for designers to choose.

[0094] In order to select the game skeleton model resource for the project in a targeted manner, after the step of "displaying the graphical user interface", the method may include:

[0095] A plurality of candidate resource category controls are displayed in the resource category display area on the game resource adjustment page;

[0096] In response to a selection operation on a target resource category control among the plurality of candidate resource category controls, a target derived resource category is determined.

[0097] For example, a plurality of candidate resource category controls may be displayed in the resource category display area on the game resource adjustment page: all character skeletons, all weapon skeletons, and all skeletons, etc.

[0098] 102, determine a first game skeleton model resource among the multiple game skeleton model resources.

[0099] Specifically, the designer can select all the game skeleton model resources in the game file according to the needs of the actual project, or only select some of the game skeleton model resources in the game file, and select the game skeleton model resources according to the needs of the actual project.

[0100] 103, copy the first game skeleton model resource, update the resource name of the second game skeleton model resource obtained after copying to the target resource name, and obtain an updated second game skeleton model resource, wherein the target resource name is the initial resource name with the namespace removed.

[0101] Specifically, you can copy a copy of the game skeleton model resource (action resource) in each game scene in the game file, and remove the namespace of the initial resource name when copying, so that the copied game skeleton model resource can automatically remove the namespace. For example, the initial resource name of the game skeleton model resource can be G00_Rig_20210607:UnrealRoot. When copying the game skeleton model resource, the namespace G00_Rig_20210607: can be removed during the copying process, so that the resource name of the copied game skeleton model resource is updated to UnrealRoot.

[0102] 104, bind the skeleton information indicated by the namespace in the initial resource name with the updated second game skeleton model resource to obtain a target game skeleton model resource.

[0103] After the first game skeleton model resource is copied, since the copied game skeleton model resource does not have skeleton information, the skeleton animation of the game skeleton model resource before copying cannot be played. Therefore, the skeleton information corresponding to the original game skeleton model resource needs to be transferred to the copied game skeleton model resource, so as to implement the corresponding skeleton constraints for each copied game skeleton model resource, bake the skeleton animation, and realize that the game skeleton model resource has animation properties. Among them, the skeleton information includes skeleton constraint information and skeleton animation information.

[0104] 105. In response to the resource export instruction, generate a target game file based on the target game skeleton model resource.

[0105] Designers can choose the corresponding target export resource category (selection set) according to different project requirements. By exporting the collections corresponding to different selection sets, different projects can be connected, so that the game skeleton model resources can adapt to a variety of projects.

[0106] In order to enable the game file to adapt to multiple different projects, the step of "responding to the resource export instruction, generating the target game file based on the target game skeleton model resource" may include:

[0107] In response to the resource export instruction, a target game file is generated based on the target file export condition and the target game skeleton model resource.

[0108] In order to allow designers to personalize the type of game skeleton model resources to be exported, before the step of "responding to the resource export instruction", the method may include:

[0109] Receiving a resource export instruction triggered by a user through a game file export control on the game resource adjustment page;

[0110] The method of generating a target game file based on a target file export condition and the target game skeleton model resource in response to a resource export instruction includes:

[0111] In response to the resource export instruction, a target game file is generated based on the target game skeleton model resource, the target file format, the target file path and the target export resource category.

[0112] In summary, an embodiment of the present application provides a method for processing game resources, by obtaining a game file to be processed, wherein the game file to be processed includes multiple game skeleton model resources, the game skeleton model resource is named as an initial resource name, and the initial resource name includes a namespace; determining a first game skeleton model resource among the multiple game skeleton model resources; copying the first game skeleton model resource, updating the resource name of the second game skeleton model resource obtained after the copy to a target resource name, and obtaining an updated second game skeleton model resource, wherein the target resource name is the initial resource name with the namespace removed; binding the skeleton information indicated by the namespace in the initial resource name to the updated second game skeleton model resource to obtain a target game skeleton model resource; and generating a target game file based on the target game skeleton model resource in response to a resource export instruction. The embodiment of the present application copies the game resources specified in the game file and standardizes the naming of the copied game resources, that is, eliminates the namespace set by the original game resources, and then binds the skeleton information corresponding to the original game resources to the standardly named game resources. This can reduce the operation steps for processing the game skeleton model resources in the game file, reduce the processing time, and thus improve the operation efficiency of the game skeleton model resources.

[0113] Optionally, taking a specific implementation scenario in which a designer implements an embodiment of the present application on a graphical user interface as an example, a specific implementation example of the scenario is as follows:

[0114] (1) The terminal can display candidate game file paths of multiple candidate game files on the game resource adjustment page in response to a user's touch operation on the game file input control; in response to a selection operation on a target game file path in the candidate game file path, determine the game file to be processed based on the target game file path. Designers can determine the path of the MA scene file to be imported by selecting the game file input control. The MA scene file is generally completed by art production. The MA scene file refers to a game file in the MA format. For example, the designer can import the path of the game file (XXX / Desktop / Animations / Actions) in the game file input control and determine the game file according to the path of the game file.

[0115] (2) The terminal can receive a target path determination instruction triggered by the user through the file path setting control on the game resource adjustment page; and determine the target file format and target file path corresponding to the target path determination instruction. The designer can set the target file path and target file format (XXX / XXX / Desktop / Animations / Actions / FBX) in the file path setting control through the file path setting control, that is, set the target format to the FBX format.

[0116] (3) The terminal can display all the game skeleton model resources of the game file to be processed in the resource display area on the game resource adjustment page; in response to the user selecting the game skeleton model resource to be processed from all the game skeleton model resources, determine the game skeleton model resource to be processed as the first game skeleton model resource. Specifically, the terminal can display multiple game skeleton model resource options in the resource display area on the game resource adjustment page. The options can be all selected, or multiple game skeleton model resource options can be displayed for the designer to choose.

[0117] (4) The terminal may display a plurality of candidate resource category controls in the resource category display area on the game resource adjustment page; and determine the target derived resource category in response to a selection operation on a target resource category control among the plurality of candidate resource category controls. Specifically, the terminal may display a plurality of candidate resource category controls in the resource category display area on the game resource adjustment page: all character skeletons, all weapon skeletons, and all skeletons, etc.

[0118] (5) The terminal can receive a resource export instruction generated by a user through a game file export control on a touch graphical user interface; then, in response to the resource export instruction, a target game file is generated based on the target game skeleton model resource, the target file format, the target file path, and the target export resource category.

[0119] Optionally, taking a specific implementation scenario of an embodiment of the present application as an example, a specific implementation scenario of the scenario is as follows:

[0120] (1) After the designer selects the target game file, the designer can select the game skeleton model resources in all game scenes in the game file according to the actual project requirements; then, the action resources (game skeleton model resources) in all game scenes are copied, and the copied action resources automatically remove the namespace.

[0121] (2) Since the copied action resource does not have bone information, it is necessary to transfer the original action resource to the copied action resource, to make corresponding constraints on each bone of the copied action resource, and to bake the bone animation so that the bones corresponding to the action resource have animation properties.

[0122] (3) Designers can select corresponding selection sets according to different project requirements to export corresponding sets to achieve the connection between different projects.

[0123] In order to better implement the method for processing game resources provided in the embodiment of the present application, the embodiment of the present application also provides a processing device based on the above game resources. The meanings of the terms are the same as those in the above game resource processing method, and the specific implementation details can refer to the description in the method embodiment.

[0124] See also Figure 3 , Figure 3 A structural block diagram of a game resource processing device provided in an embodiment of the present application, the device comprising:

[0125] An acquisition unit 201 is used to acquire a game file to be processed, wherein the game file to be processed includes a plurality of game skeleton model resources, the game skeleton model resources are named as initial resource names, and the initial resource names include a namespace;

[0126] A determination unit 202 is used to determine a first game skeleton model resource among the plurality of game skeleton model resources;

[0127] The first processing unit 203 is used to copy the first game skeleton model resource, update the resource name of the second game skeleton model resource obtained after the copy to the target resource name, and obtain the updated second game skeleton model resource, wherein the target resource name is the initial resource name with the namespace removed;

[0128] The second processing unit 204 is used to bind the skeleton information indicated by the namespace in the initial resource name with the updated second game skeleton model resource to obtain a target game skeleton model resource;

[0129] The generating unit 205 is used to generate a target game file based on the target game skeleton model resource in response to the resource export instruction.

[0130] In some embodiments, the apparatus further comprises:

[0131] A first display unit, used to display a graphical user interface, wherein the graphical user interface is used to display a game resource rendering page and a game resource adjustment page superimposed and displayed on the game resource rendering page;

[0132] A first receiving unit, configured to receive a game file selection instruction triggered by a user through a game file input control on the game resource adjustment page;

[0133] The first determining subunit is used to obtain the to-be-processed game file corresponding to the game file selection instruction.

[0134] In some embodiments, the apparatus further comprises:

[0135] a second display unit, configured to display candidate game file paths of a plurality of candidate game files on the game resource adjustment page in response to a touch operation of the user on the game file input control;

[0136] The second determining subunit is used to determine the game file to be processed based on the target game file path in response to a selection operation on the target game file path in the candidate game file paths.

[0137] In some embodiments, the apparatus further comprises:

[0138] A second receiving unit, configured to receive a target path determination instruction triggered by the user through a file path setting control on the game resource adjustment page;

[0139] The third determination subunit is used to determine the target file format and the target file path corresponding to the target path determination instruction.

[0140] In some embodiments, the apparatus further comprises:

[0141] A third display unit, used for displaying all game skeleton model resources of the to-be-processed game file in the resource display area on the game resource adjustment page;

[0142] The fourth determining subunit is used to determine the game skeleton model resource to be processed as the first game skeleton model resource in response to the user's selection operation of selecting the game skeleton model resource to be processed from all the game skeleton model resources.

[0143] In some embodiments, the apparatus further comprises:

[0144] A fourth display subunit, configured to display a plurality of candidate resource category controls in the resource category display area on the game resource adjustment page;

[0145] The fifth determining subunit is configured to determine a target derived resource category in response to a selection operation on a target resource category control among the plurality of candidate resource category controls.

[0146] In some embodiments, the apparatus further comprises:

[0147] The first generating subunit is used to generate a target game file based on the target file export condition and the target game skeleton model resource in response to the resource export instruction.

[0148] In some embodiments, the apparatus further comprises:

[0149] A third receiving unit is used to receive a resource export instruction triggered by a user through a game file export control on the game resource adjustment page;

[0150] The method of generating a target game file based on a target file export condition and the target game skeleton model resource in response to a resource export instruction includes:

[0151] The second generating subunit is used to generate a target game file based on the target game skeleton model resource, the target file format, the target file path and the target export resource category in response to the resource export instruction.

[0152] The embodiment of the present application provides a device for processing game resources, which obtains a game file to be processed through an acquisition unit 201, wherein the game file to be processed includes multiple game skeleton model resources, the game skeleton model resource is named as an initial resource name, and the initial resource name includes a namespace; a determination unit 202 determines a first game skeleton model resource among the multiple game skeleton model resources; a first processing unit 203 copies the first game skeleton model resource, updates the resource name of the second game skeleton model resource obtained after the copy to a target resource name, and obtains an updated second game skeleton model resource, wherein the target resource name is the initial resource name with the namespace removed; a second processing unit 204 binds the skeleton information indicated by the namespace in the initial resource name to the updated second game skeleton model resource to obtain a target game skeleton model resource; a generation unit 205 generates a target game file based on the target game skeleton model resource in response to a resource export instruction. The embodiment of the present application copies the game resources specified in the game file and standardizes the naming of the copied game resources, that is, eliminates the namespace set by the original game resources, and then binds the skeleton information corresponding to the original game resources to the standardly named game resources. This can reduce the operation steps for processing the game skeleton model resources in the game file, reduce the processing time, and thus improve the operation efficiency of the game skeleton model resources.

[0153] Accordingly, the embodiment of the present application also provides a computer device, which may be a terminal or a server, and the terminal may be a smart phone, a tablet computer, a laptop computer, a touch screen, a game console, a personal computer (PC), a personal digital assistant (PDA), or other terminal devices. Figure 4 As shown, Figure 4 A schematic diagram of the structure of a computer device provided in an embodiment of the present application. The computer device 300 includes a processor 301 having one or more processing cores, a memory 302 having one or more computer-readable storage media, and a computer program stored in the memory 302 and executable on the processor. The processor 301 is electrically connected to the memory 302. Those skilled in the art will appreciate that the computer device structure shown in the figure does not constitute a limitation on the computer device, and may include more or fewer components than shown, or combine certain components, or arrange components differently.

[0154] The processor 301 is the control center of the computer device 300. It uses various interfaces and lines to connect the various parts of the entire computer device 300, executes various functions of the computer device 300 and processes data by running or loading software programs and / or modules stored in the memory 302, and calling data stored in the memory 302, thereby monitoring the computer device 300 as a whole.

[0155] In the embodiment of the present application, the processor 301 in the computer device 300 will load instructions corresponding to the processes of one or more application programs into the memory 302 according to the following steps, and the processor 301 will run the application programs stored in the memory 302 to implement various functions:

[0156] Obtain a game file to be processed, wherein the game file to be processed includes a plurality of game skeleton model resources, the game skeleton model resources are named as initial resource names, and the initial resource names include a namespace;

[0157] Determine a first game skeleton model resource among the plurality of game skeleton model resources;

[0158] Copying the first game skeleton model resource, updating the resource name of the second game skeleton model resource obtained after the copy to the target resource name, and obtaining an updated second game skeleton model resource, wherein the target resource name is the initial resource name with the namespace removed;

[0159] Bind the skeleton information indicated by the namespace in the initial resource name with the updated second game skeleton model resource to obtain a target game skeleton model resource;

[0160] In response to the resource export instruction, a target game file is generated based on the target game skeleton model resource.

[0161] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.

[0162] Optional, such as Figure 4 As shown, the computer device 300 further includes: a touch screen 303, a radio frequency circuit 304, an audio circuit 305, an input unit 306, and a power supply 307. The processor 301 is electrically connected to the touch screen 303, the radio frequency circuit 304, the audio circuit 305, the input unit 306, and the power supply 307, respectively. Those skilled in the art can understand that Figure 4 The computer device structure shown in the figure does not constitute a limitation on the computer device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0163] The touch display screen 303 can be used to display the graphical player interface and receive the operation instructions generated by the player acting on the graphical player interface. The touch display screen 303 may include a display panel and a touch panel. Among them, the display panel may be used to display the information input by the player or the information provided to the player and various graphical player interfaces of the computer device, and these graphical player interfaces may be composed of graphics, text, icons, videos and any combination thereof. Optionally, the display panel may be configured in the form of a liquid crystal display (LCD, Liquid Crystal Display), an organic light emitting diode (OLED, Organic Light-Emitting Diode) and the like. The touch panel may be used to collect the touch operation of the player on or near it (such as the operation of the player using any suitable object or attachment such as a finger, a stylus or the like on the touch panel or near the touch panel), and generate corresponding operation instructions, and the operation instructions execute corresponding programs. Optionally, the touch panel may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the player's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into the touch point coordinates, and then sends it to the processor 301, and can receive the command sent by the processor 301 and execute it. The touch panel can cover the display panel. When the touch panel detects a touch operation on or near it, it is transmitted to the processor 301 to determine the type of touch event, and then the processor 301 provides a corresponding visual output on the display panel according to the type of touch event. In an embodiment of the present application, the touch panel and the display panel can be integrated into the touch display screen 303 to realize the input and output functions. However, in some embodiments, the touch panel and the touch panel can be used as two independent components to realize the input and output functions. That is, the touch display screen 303 can also be used as a part of the input unit 306 to realize the input function.

[0164] In the embodiment of the present application, the processor 301 executes the game application to generate a graphical player interface on the touch screen 303. The touch screen 303 is used to present the graphical player interface and receive operation instructions generated by the player acting on the graphical player interface.

[0165] The radio frequency circuit 304 may be used to send and receive radio frequency signals, so as to establish wireless communication with a network device or other computer devices through wireless communication, and to send and receive signals between the network device or other computer devices.

[0166] The audio circuit 305 can be used to provide an audio interface between the player and the computer device through a speaker and a microphone. The audio circuit 305 can transmit the electrical signal converted from the received audio data to the speaker, which is converted into a sound signal for output; on the other hand, the microphone converts the collected sound signal into an electrical signal, which is received by the audio circuit 305 and converted into audio data. The audio data is then output to the processor 301 for processing, and then sent to another computer device through the radio frequency circuit 304, or the audio data is output to the memory 302 for further processing. The audio circuit 305 may also include an earphone jack to provide communication between an external headset and the computer device.

[0167] The input unit 306 may be used to receive input numbers, character information or player feature information (such as fingerprint, iris, facial information, etc.), and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to player settings and function controls.

[0168] The power supply 307 is used to supply power to various components of the computer device 300. Optionally, the power supply 307 can be logically connected to the processor 301 through a power management system, so that the power management system can manage charging, discharging, and power consumption. The power supply 307 can also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators, and other arbitrary components.

[0169] although Figure 4 Not shown, the computer device 300 may also include a camera, a sensor, a wireless fidelity module, a Bluetooth module, etc., which will not be described in detail here.

[0170] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0171] As can be seen from the above, the computer device provided by this embodiment obtains a game file to be processed, wherein the game file to be processed includes multiple game skeleton model resources, the game skeleton model resource is named as an initial resource name, and the initial resource name includes a namespace; determines a first game skeleton model resource among the multiple game skeleton model resources; copies the first game skeleton model resource, updates the resource name of the second game skeleton model resource obtained after the copy to a target resource name, and obtains an updated second game skeleton model resource, wherein the target resource name is the initial resource name with the namespace removed; binds the skeleton information indicated by the namespace in the initial resource name to the updated second game skeleton model resource to obtain a target game skeleton model resource; and generates a target game file based on the target game skeleton model resource in response to a resource export instruction. The embodiment of the present application copies the game resources specified in the game file and standardizes the naming of the copied game resources, that is, eliminates the namespace set by the original game resources, and then binds the skeleton information corresponding to the original game resources to the standardly named game resources. This can reduce the operation steps for processing the game skeleton model resources in the game file, reduce the processing time, and thus improve the operation efficiency of the game skeleton model resources.

[0172] A person of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above-described embodiments may be completed by instructions, or by controlling related hardware through instructions. The instructions may be stored in a storage medium (e.g., a computer-readable storage medium) and loaded and executed by a processor.

[0173] To this end, an embodiment of the present application provides a storage medium in which multiple computer programs are stored. The computer program can be loaded by a processor to execute the steps in any of the game resource processing methods provided in the embodiments of the present application. For example, the computer program can execute the following steps:

[0174] Obtain a game file to be processed, wherein the game file to be processed includes a plurality of game skeleton model resources, the game skeleton model resources are named as initial resource names, and the initial resource names include a namespace;

[0175] Determine a first game skeleton model resource among the plurality of game skeleton model resources;

[0176] Copying the first game skeleton model resource, updating the resource name of the second game skeleton model resource obtained after the copy to the target resource name, and obtaining an updated second game skeleton model resource, wherein the target resource name is the initial resource name with the namespace removed;

[0177] Bind the skeleton information indicated by the namespace in the initial resource name with the updated second game skeleton model resource to obtain a target game skeleton model resource;

[0178] In response to the resource export instruction, a target game file is generated based on the target game skeleton model resource.

[0179] The specific implementation of the above operations can be found in the previous embodiments, which will not be described in detail here.

[0180] The storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0181] Since the computer program stored in the storage medium can execute the steps in any method for processing game resources provided in the embodiments of the present application, the beneficial effects that can be achieved by any method for processing game resources provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.

[0182] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0183] The above is a detailed introduction to a method, device, computer equipment and storage medium for processing game resources provided in the embodiments of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the technical solution and its core idea of ​​the present application. Ordinary technicians in this field should understand that they can still modify the technical solutions recorded in the aforementioned embodiments, or replace some of the technical features therein with equivalents; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A method for processing game resources, characterized in that: include: Obtain a game file to be processed, wherein the game file to be processed includes a plurality of game skeleton model resources, the game skeleton model resources are named as initial resource names, and the initial resource names include a namespace; Determine a first game skeleton model resource among the plurality of game skeleton model resources; Copying the first game skeleton model resource, updating the resource name of the second game skeleton model resource obtained after the copy to the target resource name, and obtaining an updated second game skeleton model resource, wherein the target resource name is the initial resource name with the namespace removed; Bind the skeleton information indicated by the namespace in the initial resource name with the updated second game skeleton model resource to obtain a target game skeleton model resource; In response to the resource export instruction, a target game file is generated based on the target game skeleton model resource.

2. The method for processing game resources according to claim 1, characterized in that: Before getting the game files to be processed, also include: Displaying a graphical user interface, the graphical user interface being used to display a game resource rendering page and a game resource adjustment page superimposed and displayed on the game resource rendering page; Receiving a game file selection instruction triggered by a user through a game file input control on the game resource adjustment page; The step of obtaining the game file to be processed includes: Obtain the game file to be processed corresponding to the game file selection instruction.

3. The method for processing game resources according to claim 2, characterized in that: The receiving a game file selection instruction triggered by a user through a game file input control on the game resource adjustment page includes: In response to the user's touch operation on the game file input control, displaying candidate game file paths of a plurality of candidate game files on the game resource adjustment page; In response to a selection operation on a target game file path among the candidate game file paths, a game file to be processed is determined based on the target game file path.

4. The method for processing game resources according to claim 2, characterized in that: After displaying the GUI, also include: Receive a target path determination instruction triggered by the user through a file path setting control on the game resource adjustment page; Determine the target file format and the target file path corresponding to the target path determination instruction.

5. The method for processing game resources according to claim 2, characterized in that: After obtaining the to-be-processed game file corresponding to the game file selection instruction, the method further includes: Displaying all game skeleton model resources of the game file to be processed in the resource display area on the game resource adjustment page; In response to the user's selection operation of selecting a game skeleton model resource to be processed from all the game skeleton model resources, the game skeleton model resource to be processed is determined as the first game skeleton model resource.

6. The method for processing game resources according to claim 2, characterized in that: After displaying the GUI, also include: A plurality of candidate resource category controls are displayed in the resource category display area on the game resource adjustment page; In response to a selection operation on a target resource category control among the plurality of candidate resource category controls, a target derived resource category is determined.

7. The method for processing game resources according to any one of claims 2 to 6, characterized in that: The step of generating a target game file based on the target game skeleton model resource in response to the resource export instruction includes: In response to the resource export instruction, a target game file is generated based on the target file export condition and the target game skeleton model resource.

8. The method for processing game resources according to claim 7, characterized in that: Before responding to the resource export instruction, it also includes: Receiving a resource export instruction triggered by a user through a game file export control on the game resource adjustment page; The method of generating a target game file based on a target file export condition and the target game skeleton model resource in response to a resource export instruction includes: In response to the resource export instruction, a target game file is generated based on the target game skeleton model resource, the target file format, the target file path and the target export resource category.

9. The method for processing game resources according to claim 1, characterized in that: The skeleton information includes skeleton constraint information and skeleton animation information.

10. A device for processing game resources, characterized in that: include: An acquisition unit, used for acquiring a game file to be processed, wherein the game file to be processed includes a plurality of game skeleton model resources, the game skeleton model resources are named as initial resource names, and the initial resource names include a namespace; A determination unit, configured to determine a first game skeleton model resource among the plurality of game skeleton model resources; The first processing unit is used to copy the first game skeleton model resource, update the resource name of the second game skeleton model resource obtained after the copy to the target resource name, and obtain the updated second game skeleton model resource, wherein the target resource name is the initial resource name with the namespace removed; A second processing unit is used to bind the skeleton information indicated by the namespace in the initial resource name with the updated second game skeleton model resource to obtain a target game skeleton model resource; A generating unit is used to generate a target game file based on the target game skeleton model resource in response to a resource export instruction.

11. A computer device, characterized in that: The computer device includes a memory and a processor, the memory stores a computer program, and the processor executes the steps in the method for processing game resources as described in any one of claims 1 to 9 by calling the computer program stored in the memory.

12. A storage medium, characterized in that: The storage medium stores a computer program, and the computer program is suitable for being loaded by a processor to execute the steps in the method for processing game resources as described in any one of claims 1 to 9.