Resource data processing method, system, editor, electronic device and storage medium
By providing resource data processing methods during game development, using the game engine to modify resource data at the run end and synchronize it back to the development end, the problem of low resource modification efficiency in game development is solved, and an efficient game development process is achieved.
Patent Information
- Application Number
- CN202210095745.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-26
- Publication Date
- 2025-05-09
- Estimated Expiration
- 2042-01-26
AI Technical Summary
The resource modification efficiency during game development is low, resulting in a prolonged development time.
Provide a resource data processing method, by receiving resource modification information from the development side or obtaining modification operations from the run side, using the game engine to modify resource data at the run side, and synchronize the modified information back to the development side.
Real-time modification and synchronization of game resources by the development side is realized, which significantly improves game development efficiency and reduces repeated packaging and installation steps.
Smart Images

Figure CN114404996B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of game development technology. Specifically, the present application relates to a resource data processing method, system, editor, electronic device and storage medium. Background Art
[0002] Game engines refer to the core components of some pre-written editable computer game systems or some interactive real-time graphics applications. Game engines provide game designers with various tools needed to write games, with the aim of making it easier and faster for game designers to create game programs without having to start from scratch. Editors are custom-built for game engines and include all the functions required for the entire workflow from design, development, preview, debugging to publishing.
[0003] At present, the development process based on game engines generally releases the game on the editor and runs it on the target device. If the running effect on the target device does not meet expectations, the above process can only be repeated until the game running effect on the target device meets expectations. This mechanism will lead to a longer development time. Summary of the invention
[0004] The purpose of the embodiments of the present application is to solve the technical defect of low resource modification efficiency during the game development process.
[0005] In a first aspect, an embodiment of the present application provides a method for processing resource data, which is applied to a running end, and the method includes:
[0006] Receiving first resource modification information for the game from the development end, and / or obtaining a modification operation for performing on the game at the running end;
[0007] Modifying resource data of the game according to the first resource modification information and / or modification operation through the running game engine of the game;
[0008] If the resource data of the game is modified according to the modification operation, the generated second resource modification information is sent to the development end.
[0009] In a second aspect, an embodiment of the present application provides a method for processing resource data, which is applied to a development end, and the method includes:
[0010] Obtain the first resource modification information of the game modified by the developer;
[0011] Sending the first resource modification information to the running terminal, so that the running terminal modifies the resource data of the installed game according to the first resource modification information;
[0012] and / or, receiving second resource modification information for the game from the running end, where the second resource modification information is generated based on a modification operation performed on the game at the running end;
[0013] Based on the second resource modification information, a resource file of the game is obtained.
[0014] In a third aspect, an embodiment of the present application provides an editor, which is applied to a running end, and the editor includes:
[0015] A synchronization module and / or an operation module, the synchronization module is used to receive first resource modification information for the game from the development end, and the operation module is used to obtain a modification operation for performing on the game at the running end;
[0016] A modification module, used to modify the resource data of the game according to the first resource modification information and / or modification operation through the running game engine of the game;
[0017] If the resource data of the game is modified according to the modification operation, the synchronization module is further used to send the generated second resource modification information to the development end.
[0018] In a fourth aspect, an embodiment of the present application provides an editor, which is applied to a development end, and the editor includes:
[0019] An acquisition module, used to acquire first resource modification information of the game modified by the development end;
[0020] A communication module, configured to send first resource modification information to an operation terminal, so that the operation terminal modifies resource data of an installed game according to the first resource modification information, and / or receive second resource modification information for the game from the operation terminal, wherein the second resource modification information is generated based on a modification operation performed on the game at the operation terminal;
[0021] The generation module is used to modify the information based on the second resource to obtain the resource file of the game.
[0022] In a fifth aspect, an embodiment of the present application provides a system for processing resource data, the system comprising:
[0023] An operation terminal, used to execute the resource data processing method provided by the first aspect of the embodiment of the present application;
[0024] The development end is used to execute the resource data processing method provided in the second aspect of the embodiment of the present application.
[0025] In a sixth aspect, an embodiment of the present application provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory, and the processor executes the computer program to implement the steps of the resource data processing method provided in the first aspect of the embodiment of the present application.
[0026] In a seventh aspect, an embodiment of the present application provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory, and the processor executes the computer program to implement the steps of the resource data processing method provided in the second aspect of the embodiment of the present application.
[0027] In an eighth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method for processing resource data provided in the first aspect of the embodiment of the present application.
[0028] In a ninth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method for processing resource data provided in the second aspect of the embodiment of the present application.
[0029] In a tenth aspect, an embodiment of the present application provides a computer program product, which, when executed by a processor, implements the steps of the resource data processing method provided in the first aspect of the embodiment of the present application.
[0030] In an eleventh aspect, an embodiment of the present application provides a computer program product, which, when executed by a processor, implements the steps of the resource data processing method provided in the second aspect of the embodiment of the present application.
[0031] The resource data processing method, system, editor, electronic device and storage medium provided in the embodiments of the present application can synchronize the modification of game resources on the development end to the operation end immediately, and the operation end can make corresponding modifications to the resource data and see the effect of the modification in real time; if you are not satisfied with the operation effect or modification effect of the game, you can also modify the game directly on the operation end, and then synchronize the modification to the development end to meet the expected effect, so as to effectively improve the efficiency of game development. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in describing the embodiments of the present application are briefly introduced below.
[0033] Figure 1 A flowchart of a method for processing resource data provided in an embodiment of the present application;
[0034] Figure 2 A schematic diagram of a tool selection provided in an embodiment of the present application;
[0035] Figure 3 A schematic diagram of a space attribute adjustment control provided in an embodiment of the present application;
[0036] Figure 4 A flowchart of another resource data processing method provided in an embodiment of the present application;
[0037] Figure 5 A schematic diagram of the architecture of a resource data processing system provided in an embodiment of the present application;
[0038] Figure 6 An example diagram of game resource modification provided in an embodiment of the present application;
[0039] Figure 7 Another example diagram of game resource modification provided in an embodiment of the present application;
[0040] Figure 8 A schematic diagram of the structure of a resource data processing device provided in an embodiment of the present application;
[0041] Fig. 9 A schematic diagram of the structure of another resource data processing device provided in an embodiment of the present application;
[0042] Fig.10 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0043] The embodiments of the present application are described below in conjunction with the drawings in the present application. It should be understood that the implementation methods described below in conjunction with the drawings are exemplary descriptions for explaining the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions of the embodiments of the present application.
[0044] It will be understood by those skilled in the art that, unless specifically stated, the singular forms "one", "an" and "the" used herein may also include plural forms. It should be further understood that the terms "including" and "comprising" used in the embodiments of the present application refer to that the corresponding features can be implemented as the information, data, steps, operations, elements and / or components presented, but do not exclude the implementation as other features, information, data, steps, operations, elements, components and / or combinations thereof supported by the technical field, etc. It should be understood that when we call an element "connected" or "coupled" to another element, the one element can be directly connected or coupled to the other element, or it can refer to that the one element and the other element establish a connection relationship through an intermediate element. In addition, the "connection" or "coupling" used here may include wireless connection or wireless coupling. The term "and / or" used here indicates at least one of the items defined by the term, for example, "A and / or B" can be implemented as "A", or as "B", or as "A and B".
[0045] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0046] First, several terms involved in this application are introduced and explained:
[0047] (1) Development end: The client or terminal device used by game developers to compile games.
[0048] (2) Publishing games: Controlling the installation and running of games on target devices. Specific publishing methods include, but are not limited to, copying resources to target devices for installation and running, controlling the target devices to download games online for installation and running, etc.
[0049] (3) Running end: the client or target device where the game is released.
[0050] (4) Game engine: The core component of an editable computer game system or some interactive real-time graphics applications.
[0051] (5) Editor: A visual game development tool that includes functions such as game design, game development, game preview, game debugging, and game publishing.
[0052] The following describes several exemplary embodiments to illustrate the technical solutions of the embodiments of the present application and the technical effects produced by the technical solutions of the present application. It should be noted that the following embodiments can refer to, draw on or combine with each other, and the same terms, similar features and similar implementation steps in different embodiments will not be described repeatedly.
[0053] The present application provides a method for processing resource data, which is applied to a running end, such as Figure 1 As shown, the method includes:
[0054] Step S101: receiving first resource modification information for a game from a development end, and / or obtaining a modification operation for performing on the game at a running end;
[0055] In an embodiment of the present application, after the development end publishes the game to the running end, if the development end modifies the game resources, the first resource modification information generated by the modification can be sent to the running end. The running end receives the first resource modification information from the development end and can synchronously modify the resources of the published game.
[0056] In the embodiment of the present application, after the development end publishes the game to the running end, the resources of the published game can also be modified directly on the running end by performing modification operations on the game.
[0057] In an embodiment of the present application, the game can also be published to the running end at the development end, and the running end receives the first resource modification information from the development end, and after the resources of the published game are modified, the resources of the game can be modified again on the running end directly by performing the modification operation on the game.
[0058] Step S102: modifying resource data of the game according to the first resource modification information and / or modification operation through the running game engine of the game;
[0059] In the embodiment of the present application, after the running end receives the first resource modification information, the game resources on the running end are modified through the game engine of the running game. In this way, the purpose of making changes to the game on the development end and immediately seeing the effect of the changes on the running end is achieved, and there is no need to package the game resources and publish them to the running end.
[0060] In the embodiment of the present application, the game modification function on the running end can be implemented as a functional module that can be run in the game engine. After the game is modified directly on the running end, the game engine can achieve the purpose of modifying the game resources when the running end is running. That is, the modification of the game resources can be mapped to the modification of the game resources by the game engine.
[0061] In an embodiment of the present application, if the game engine is not running, the game / game engine can also be started to modify the resource data of the game according to the first resource modification information and / or modification operation through the running game engine.
[0062] Step S103: If the resource data of the game is modified according to the modification operation, the generated second resource modification information is sent to the development end.
[0063] In the embodiment of the present application, after the operation end modifies the resource data of the game according to the modification operation and generates the modification result of this or these modifications, that is, generates the second resource modification information, the second resource modification information can be synchronized to the development end, thereby achieving the effect of synchronous modification. The development end can save the final modification result as a game resource file to complete the development of the game. Through the embodiment of the present application, it is possible to achieve the desired effect of the game by directly modifying it on the operation end, which is a relatively efficient way to modify game resources.
[0064] In the embodiment of the present application, the modification of the game resources can also be understood as the update of the game resources.
[0065] The resource data processing method provided in the embodiment of the present application can synchronize the modification of game resources on the development end to the running end immediately, and the running end can make corresponding modifications to the resource data, and the effect of the modification can be seen in real time; if you are not satisfied with the running effect or modification effect of the game, you can also modify the game directly on the running end, and then synchronize the modification to the development end to meet the expected effect, so as to effectively improve the efficiency of game development.
[0066] In the embodiment of the present application, a feasible implementation method is provided for the step of "obtaining a modification operation for performing a game on the running end" in step S101, and obtaining a modification operation for performing a game on the running end includes: activating a modification tool on the running end, and obtaining a modification operation for performing a game modification by the modification tool. Specifically, it may include:
[0067] Step SA: obtaining a tool selection instruction for selecting a modification tool;
[0068] Step SB: In response to the tool selection instruction, activating the selected modification tool;
[0069] Step SC: Obtain the modification operations performed on the game through the modification tool.
[0070] In the embodiment of the present application, steps SA to SC can be repeatedly executed to select different modification tools to perform multiple modification operations on the game resources. Then the second resource modification information generated subsequently can correspond to the modification operation of steps SA to SC once, or can correspond to the modification operation of steps SA to SC multiple times.
[0071] In an embodiment of the present application, after executing the modification operation from step SA to step SC once, when executing the modification operation from step SA to step SC for the second time, step SA can also be understood as obtaining a tool switching instruction for switching the modification tool, and step SB can be understood as activating the switched modification tool in response to the tool switching instruction.
[0072] In an optional implementation, a tool selection interface may be displayed in the game interface, such as a floating icon control or a button control at a specified position. After the user operates the tool selection interface, the available modification tools will be displayed. The user clicks on any modification tool to trigger step SA. The floating icon control may also be directly set at a specified position or moved freely according to the user's operation. The floating icon control includes but is not limited to a circular floating point, a floating ball, etc.
[0073] like Figure 2As shown, taking the tool selection interface as a circular floating point as an example, a schematic diagram of tool selection is shown. After clicking the circular floating point, the buttons of the available modification tools will be displayed. In the embodiment of the present application, the modification tools include but are not limited to: resource selection tools, attribute editing tools, space attribute adjustment tools, etc. You can click the button of the modification tool you want to use (i.e. trigger the tool selection instruction) to activate the selected modification tool to modify the game.
[0074] In the embodiment of the present application, step SC may specifically include at least one of the following:
[0075] (1) Setting a selectable attribute for at least one resource of the game through a first modification tool to obtain a selection operation for any resource;
[0076] In the embodiment of the present application, the first modification tool can also be understood as Figure 2 Resource selection tool in .
[0077] In the embodiment of the present application, after activating the modification tool, a selectable attribute is set for at least one resource of the game on the running end. The at least one resource may be a predefined partial resource or all resources. Through the operation mode provided by the running end, for example, when the running end is a touch screen device such as a mobile phone, by clicking on the screen, the game resource corresponding to the click operation can be selected.
[0078] In the embodiment of the present application, the resource corresponding to the selected operation can be used as an editing target, and can also be used to view attribute information, magnification effect, etc.
[0079] (2) displaying a corresponding spatial attribute adjustment control for at least one resource of the game through a second modification tool, and obtaining an adjustment operation for at least one spatial position adjustment control, wherein the adjustment operation for the spatial position adjustment control includes adjusting at least one of the following spatial attributes of the corresponding game resource: moving, rotating, scaling, and tilting;
[0080] In the embodiment of the present application, the second modification tool can also be understood as Figure 2 The spatial property adjustment tools in .
[0081] In the embodiment of the present application, after the modification tool is activated, a spatial attribute adjustment control is displayed around at least one resource (such as a model resource) of the game on the running end. The at least one resource may be a predefined partial resource or all resources.
[0082] In the present application embodiment, Figure 3As shown, the spatial attribute adjustment control can be similar to a right-handed three-dimensional coordinate axis. By dragging different coordinate axes, the attributes of the corresponding axes of the game resources in space can be modified, thereby achieving the purpose of modifying the spatial position of the game resources. In addition to the spatial position, this module can also modify the rotation, scaling, tilt and other common spatial related attributes of game resources.
[0083] (3) Displaying corresponding attribute information and attribute modification options for the currently selected resource of the game through a third modification tool, and obtaining a selection operation for any attribute modification option.
[0084] In the embodiment of the present application, the third modification tool can also be understood as Figure 2 Attribute editing tools in .
[0085] In an embodiment of the present application, after activating the modification tool, the relevant properties of the currently selected resource will be displayed on the running end, and corresponding property modification options will be provided for different types of properties (for example, different buttons correspond to different property modification options). By selecting any property modification option, the resource properties can be modified.
[0086] In the embodiment of the present application, in response to the modification operation of the game by the modification tool on the running end, the game engine will provide an interface for modifying the game resources. That is, the modification operation can be understood as reading the user's input, and the game engine will convert the user's input into a modification that the game resources can understand. For example, when operating the spatial attribute adjustment control, the user's operation on the coordinate axis is converted into a position modification of the game resource. These modifications can be implemented based on the interface opened by the game engine itself.
[0087] In the embodiment of the present application, in order to enable the second resource modification information of the running end to be reliably transmitted back to the development end, a data protocol (also referred to as a game resource data protocol) is provided, which refers to an agreement on game resource data. Specifically, the data protocol agrees on the format of resource modification information converted into a target format, and the target format is a format recognizable by the editor of the development end. In general, the data of game resources depends on the definition of game resources by the game engine itself, and different game resources have different data. The data protocol can be understood as information used to describe any game resource. Through this information, the game engine can load the game resources into the engine and display the loading results. The editor can be used to edit and save this information. During the editing process, there will be some additional information to assist the editor in modifying the game resources. Therefore, the data recognizable by the editor generally includes game resource data and the editor's own data.
[0088] In an embodiment of the present application, the process of converting the format of the second resource modification information into the target format based on the data protocol can be executed on the running end or on the development end, so as to convert the game resources modified on the running end into a data format recognizable by the editor on the development end, and then save it as data supported by the editor, so that the game resources modified on the running end device can be correctly synchronized to the development end device.
[0089] Specifically, the step of "sending the generated second resource modification information to the development end" in step S103 may include at least one of the following:
[0090] Method 1: convert the format of the second resource modification information generated based on the data protocol into the target format, and send the second resource modification information in the target format to the development end;
[0091] That is, the process of converting the format of the second resource modification information into the target format based on the data protocol is executed on the operation end, and the operation end sends the second resource modification information to the development end after converting the format of the second resource modification information into the target format.
[0092] Method 2: sending the second resource modification information generated based on the data protocol to the development end, so that the development end converts the format of the second resource modification information generated based on the data protocol into the target format;
[0093] That is, the process of converting the format of the second resource modification information into the target format based on the data protocol is executed on the development end, and the running end directly sends the second resource modification information to the development end. The development end can convert the format of the second resource modification information into the target format after receiving it, and then the editor of the development end can recognize and load the resource modification information.
[0094] Taking the process of converting the format of the second resource modification information into the target format based on the data protocol as an example, the main workflow is as follows:
[0095] (1) If the modification of the game resources on the running end has been completed, the current game resources are generated into game resource data (i.e., second resource modification information) according to the agreement of the game resource data protocol.
[0096] (2) Send the generated game resource data to the development device.
[0097] (3) The editor of the development end device receives the game resource data and converts the game resource data into data that can be recognized by the editor. It is understandable that this data conversion step can also be performed on the running end device.
[0098] (4) The editor reads the converted data and saves the final result after modifying the game resources as a game resource file.
[0099] For the embodiment of the present application, the second resource modification information is generated based on the data protocol and can be correctly converted into a format recognizable by the editor at the start, so that the editor can correctly identify and load the data after the resource is modified by the running end, thereby realizing active modification on the running end and correctly synchronizing the modification results to the development end, effectively improving the efficiency of game development.
[0100] It is understandable that the first resource modification information sent from the development end to the running end may also be generated based on a data protocol, and the game resource data may be directly loaded by the game engine.
[0101] In an embodiment of the present application, in order to reliably synchronize the first resource modification information of the development end to the operation end, and the second resource modification information of the operation end to the development end, a synchronization protocol is provided, wherein the synchronization protocol agrees on the format of the modified content. Specifically, the synchronization protocol agrees on the expression method of the modified resource content corresponding to the relevant operations of modifying the game resources, such as modifying the spatial attribute information such as the location of the game resources can be agreed to as a key-value pair of the keyword of the attribute itself and its modified value. The synchronization protocol can select a variety of text formats, and the embodiment of the present application does not specifically limit the specific text format, for example, the json text format can be used.
[0102] Specifically, the step of "sending the generated second resource modification information to the development end" in step S103 may specifically include: generating the modification of the game according to the modification operation into second resource modification information; converting the second resource modification information into second transmission data; and sending the second transmission data to the development end.
[0103] The process of converting the second resource modification information into the second transmission data may also be understood as an encoding process, that is, converting the second resource modification information from a format agreed upon by the synchronization protocol into data that can be transmitted.
[0104] Furthermore, the step of "receiving first resource modification information for the game from the development end" in step S101 may specifically include: receiving first transmission data for the game from the development end; converting the first transmission data into first resource modification information, and the first resource modification information is generated by the development end based on the synchronization protocol.
[0105] The process of converting the first transmission data into the first resource modification information can also be understood as a decoding process, that is, a process of restoring the data for transmission encoded by the development end to the format agreed upon by the synchronization protocol.
[0106] It is understandable that both the development end and the operation end can perform synchronization and encoding and decoding processes. Taking the synchronization and encoding of the development end and the decoding of the operation end as an example, the main workflow is as follows:
[0107] (1) On the development device, use the editor to open the scene file of the running device that needs to verify the effect, select the game resources to be modified in the scene file, and modify the game resources according to the operation interface provided by the editor.
[0108] (2) After the game resources are modified, the modified operation is generated as data to be transmitted according to the synchronization protocol, which can also be called synchronization data (i.e., first resource modification information). For example, if the editor modifies the spatial position of the game resources, then according to the synchronization protocol, the modified attribute (here is the spatial position) and the modified value are recorded in the synchronization data.
[0109] (3) After the synchronization data is prepared, the editor will convert the synchronization data into data that can be transmitted between the development device and the running device.
[0110] (4) The converted data is transmitted to the operation end device.
[0111] (5) The running device receives the data, decodes the data into a synchronous data format, and then sets the modified data to the game resource based on the synchronous data (here, the change in the spatial location of the game resource). The game engine will update the location of the game resource based on the new spatial location data, thereby achieving the purpose of synchronizing the modification of the development end.
[0112] Taking the synchronization and encoding of the running end and the decoding of the development end as an example, the main workflow is as follows:
[0113] (1) On the running end device, a modification operation for performing on the game on the running end is obtained, and resource data of the game is modified according to the modification operation through the game engine of the running game.
[0114] (2) According to the synchronization protocol, the modification of the game according to the modification operation is generated as the second resource modification information. For example, if the spatial position of the game resource is modified, then according to the synchronization protocol, the modified attribute (here is the spatial position) and the modified value are recorded in the second resource modification information.
[0115] (3) Convert the second resource modification information into second transmission data that can be transmitted between the running end device and the development end device.
[0116] (4) The second transmission data is transmitted to the development end device.
[0117] (5) The development end device receives the second transmission data, converts the second transmission data into second resource modification information, and then obtains the game resource file based on the second resource modification information (here, the change in the spatial location of the game resource), thereby achieving the purpose of synchronous modification of the running end.
[0118] For the embodiments of the present application, resource modification information such as the first resource modification information and the second resource modification information are based on the synchronization protocol and can have unified information content of related operations, so that the development end can correctly identify and load the data after the running end modifies the resources, and the running end can correctly identify and load the data after the development end modifies the resources, thereby achieving the changes made on the development end to be able to see the effect of the changes directly on the running end, and to actively make modifications on the running end, and then synchronize the modification results to the development end, avoiding the process of repeatedly packaging, copying, and installing the game, and improving the efficiency of game development.
[0119] In the embodiment of the present application, before step S101 or step S103, the step may also be included: establishing a network connection between the running end and the development end.
[0120] Specifically, in the embodiment of the present application, a communication module is provided on both the development end device and the operation end device. When the game resource is modified on the development end device, the modification information of the game resource (i.e., the first resource modification information) is sent to the operation end device through the communication module. The communication module is also used to allow the operation end device to transmit the modification result (i.e., the second resource modification information) on it to the editor on the development end device.
[0121] One feasible implementation method is to build a web server on the development device or editor, establish a connection to the server on the running device, and after a successful connection, communication between the two can be achieved.
[0122] In the embodiment of the present application, the first transmission data and the second transmission data obtained by conversion are data that can be transmitted between the development end device and the operation end device through the communication module.
[0123] In the embodiments of the present application, the methods of the above embodiments can be executed using a preset editing module, and the editing module is obtained from the development end.
[0124] Specifically, when the development end releases the game to the running end, the editing module can be sent to the running end through the communication module. When the game resources need to be modified on the development end, the editing module can be sent to the running end through the communication module. When the game resources need to be modified on the running end, the editing module can be requested from the development end. The present embodiment of the application does not specifically limit the timing of sending the editing module.
[0125] Furthermore, in order to save sending resources, when it is necessary to make changes to game resources on the development side and pre-send the editing module to the running side, it can be determined first whether the editing module already exists on the running side. If so, there is no need to send it again. Otherwise, it can be sent normally.
[0126] In the embodiment of the present application, after the editing module is installed on the running end device, the editing function of the development end editor on the game resources can be implemented as a module that can be run in the game engine. The game engine can edit the game resources through the editing module when the running device is running. In this way, the changes made by the development end editor to the game resources can be synchronously mapped to the changes made by the game engine on the running end to the game resources.
[0127] In an embodiment of the present application, after the game is published to the running end, if the development end uses an editor to modify the game resources, the modification information is sent to the running end through the communication module. The running end receives the modification information of the development end editor (i.e., the first resource modification information), and can call the editing module to synchronously modify the game resources on the running end, thereby achieving the purpose of making changes on the editor on the development end and seeing the modification effects in real time on the running end.
[0128] In the embodiment of the present application, if you want to modify the game content directly on the running end, you can also perform the corresponding modification operation through the editing module, and then synchronize the modified result (i.e., the second resource modification information) to the editor on the development end to save the file. This can reduce repeated modification and packaging operations, and directly modify on the running end to achieve a satisfactory effect, and then synchronize the data on the running end to the editor, which is saved to the project file by the editor.
[0129] In the embodiment of the present application, the editing module may specifically include a synchronization module, an operation module and a modification module.
[0130] In an embodiment of the present application, the synchronization module is used to receive first resource modification information for the game from the development end, and / or send generated second resource modification information to the development end.
[0131] Specifically, the synchronization module is used to open the game engine on the running device after the running device receives the modification information (i.e., the first resource modification information) from the development editor, and synchronize the game resources installed on the running device through the game engine.
[0132] Alternatively, the synchronization module is used to synchronize the active modification result (ie, the second resource modification information) performed on the running end to the editor on the development end.
[0133] That is, the synchronization module is used to perform the above-mentioned synchronization and encoding and decoding processes. The specific execution method can be found above and will not be repeated here.
[0134] Furthermore, the synchronization module may include a synchronization protocol and a coding and decoding tool.
[0135] Among them, the specific introduction to the synchronization protocol can be found above, and will not be repeated here.
[0136] The encoding and decoding tools include: an encoding tool for encoding, which is used to convert the second resource modification information data generated according to the synchronization protocol into the second transmission data that can be transmitted by the communication module; and a decoding tool for decoding, which is used to restore the first resource modification information in the synchronization protocol format from the encoded first transmission data. When data conversion is required, the encoding and decoding tools can be called for processing. The specific processing flow can be found above and will not be repeated here.
[0137] In the embodiment of the present application, the operation module is used to obtain a modification operation for modifying the game on the running end.
[0138] Specifically, the operation module is a module for allowing the user to operate the game resources on the running end device, that is, when the user is not satisfied with the game effect, the user can actively modify the game on the running end. Specifically, the operation module can be used to perform the process from step SA to step SC above. The specific process can be referred to the introduction above, and will not be repeated here.
[0139] Furthermore, the operation module may include: Figure 2 and Figure 3 The tool selection interface, resource selection tool, property editing tool, space property adjustment tool and other modules shown in the figure can be used for specific usage as described above and will not be repeated here.
[0140] In the embodiment of the present application, the modification module is used to modify the resource data of the game according to the first resource modification information and / or modification operation through the game engine of the running game.
[0141] Specifically, the modification module is used to respond to the modification of the game resources on the development end device or the operation end device, and convert it into a modification that the game resources can understand. That is, the game engine will provide an interface for modifying the game resources, and the modification module implements the modification of the game resources based on the interface opened by the game engine itself according to the first resource modification information received from the development end and / or the modification operation performed by the operation end.
[0142] Furthermore, the editing module may also include a data conversion module for converting the game resources modified on the running end into a target format recognizable by the editor, and then synchronizing the data in the target format (i.e., the second resource modification information in the target format) to the development end device.
[0143] In the embodiment of the present application, the data conversion module mainly includes a game resource data protocol and a data conversion tool.
[0144] Among them, the introduction of the game resource data protocol can be found in the introduction of the data protocol above, which will not be repeated here.
[0145] The data conversion tool is used to convert game resource data into data that can be recognized by the editor. When the data needs to be converted to the target format, call the data conversion tool for processing. The specific processing process can be found above and will not be repeated here.
[0146] In the embodiment of the present application, the editing module may not include the data conversion module, and the data conversion module is set on the editor of the development end. The specific details of the data conversion tool are similar and will not be repeated here. After receiving the game resource data (i.e., the second resource modification information), the editor of the development end can convert it into a target format that can be recognized by the editor through the data conversion tool, and then read and store it.
[0147] The resource data processing method provided in the embodiment of the present application can effectively reduce the processing steps when modifying the game and significantly improve the efficiency of game development.
[0148] The present application also provides a method for processing resource data, which is applied to the development end, such as Figure 4 As shown, the method includes:
[0149] Step S401: Acquire first resource modification information of the game modified by the developer;
[0150] Step S402: sending the first resource modification information to the running terminal, so that the running terminal modifies the resource data of the installed game according to the first resource modification information;
[0151] Step S403: receiving second resource modification information for the game from the running end, where the second resource modification information is generated based on a modification operation performed on the game at the running end;
[0152] Step S404: obtaining a resource file of the game based on the second resource modification information.
[0153] The method may only execute step S401 and step S402, but not step S403 and step S404; may only execute step S403 and step S404, but not step S401 and step S402; or may execute all steps S401 to S404.
[0154] Specifically, for step S401 and step S402, after the development end publishes the game to the running end, if the development end modifies the game resources, the first resource modification information generated by the modification can be sent to the running end. The running end receives the first resource modification information from the development end and can synchronously modify the resources of the published game.
[0155] For step S403 and step S404, after the development end publishes the game to the running end, the resources of the published game can also be modified directly on the running end by modifying the game. The development end receives the second resource modification information from the running end and finally obtains the resource file of the game.
[0156] Alternatively, the game may be published to the running end at the development end, and through steps S401 and S402, the running end receives first resource modification information from the development end, and after modifying the resources of the published game, the game resources are modified again on the running end directly through the modification operation performed on the game. The development end receives second resource modification information from the running end through steps S403 and S404, and finally obtains the resource file of the game.
[0157] In the embodiment of the present application, the running end synchronizes the second resource modification information obtained by modifying the game to the development end, thereby achieving the effect of synchronous modification. The development end can save the final modification result as a game resource file to complete the development of the game. Through the embodiment of the present application, it is possible to achieve the desired effect of the game by directly modifying it on the running end, which is a relatively efficient way to modify game resources.
[0158] In the embodiment of the present application, in order to enable the second resource modification information of the running end to be reliably transmitted back to the development end, a data protocol (also referred to as a game resource data protocol) is provided, which refers to an agreement on game resource data. Specifically, the data protocol agrees on the format of resource modification information converted into a target format, and the target format is a format recognizable by the editor of the development end. In general, the data of game resources depends on the definition of game resources by the game engine itself, and different game resources have different data. The data protocol can be understood as information used to describe any game resource. Through this information, the game engine can load the game resources into the engine and display the loading results. The editor can be used to edit and save this information. During the editing process, there will be some additional information to assist the editor in modifying the game resources. Therefore, the data recognizable by the editor generally includes game resource data and the editor's own data.
[0159] In an embodiment of the present application, the process of converting the format of the second resource modification information into the target format based on the data protocol can be executed on the running end or on the development end, so as to convert the game resources modified on the running end into a data format recognizable by the editor on the development end, and then save it as data supported by the editor, so that the game resources modified on the running end device can be correctly synchronized to the development end device.
[0160] Specifically, the step of "obtaining a resource file of the game according to the second resource modification information" in step S404 may include at least one of the following:
[0161] Method 1: Convert the format of the second resource modification information generated based on a predetermined data protocol into a target format, and obtain the resource file of the game according to the second resource modification information in the target format.
[0162] That is, the process of converting the format of the second resource modification information into the target format based on the data protocol is executed on the development end, and the running end directly sends the second resource modification information to the development end. The development end can convert the format of the second resource modification information into the target format after receiving it, and then the editor of the development end can recognize and load the resource modification information.
[0163] Method 2: Obtain the resource file of the game according to the second resource modification information converted into the target format and generated based on the predetermined data protocol.
[0164] That is, the process of converting the format of the second resource modification information into the target format based on the data protocol is executed on the operation end, and the operation end sends the second resource modification information to the development end after converting the format of the second resource modification information into the target format.
[0165] Taking the process of converting the format of the second resource modification information into the target format based on the data protocol as an example, the main workflow is as follows:
[0166] (1) If the modification of the game resources on the running end has been completed, the current game resources are generated into game resource data (i.e., second resource modification information) according to the agreement of the game resource data protocol.
[0167] (2) Send the generated game resource data to the development device.
[0168] (3) The editor of the development end device receives the game resource data and converts the game resource data into data that can be recognized by the editor. It is understandable that this data conversion step can also be performed on the running end device.
[0169] (4) The editor reads the converted data and saves the final result after modifying the game resources as a game resource file.
[0170] For the embodiment of the present application, the second resource modification information is generated based on the data protocol and can be correctly converted into a format recognizable by the editor at the start, so that the editor can correctly identify and load the data after the resource is modified by the running end, thereby realizing active modification on the running end and correctly synchronizing the modification results to the development end, effectively improving the efficiency of game development.
[0171] It is understandable that the first resource modification information sent from the development end to the running end may also be generated based on a data protocol, and the game resource data may be directly loaded by the game engine.
[0172] In an embodiment of the present application, in order to reliably synchronize the first resource modification information of the development end to the operation end, and the second resource modification information of the operation end to the development end, a synchronization protocol is provided, wherein the synchronization protocol agrees on the format of the modified content. Specifically, the synchronization protocol agrees on the expression method of the modified resource content corresponding to the relevant operations of modifying the game resources, such as modifying the spatial attribute information such as the location of the game resources can be agreed to as a key-value pair of the keyword of the attribute itself and its modified value. The synchronization protocol can select a variety of text formats, and the embodiment of the present application does not specifically limit the specific text format, for example, the json text format can be used.
[0173] Specifically, the step of "sending the first resource modification information to the running end" in step S402 may specifically include: generating the modification to the game into the first resource modification information according to a predetermined synchronization protocol; converting the first resource modification information into first transmission data; and sending the first transmission data to the running end.
[0174] The process of converting the first resource modification information into the first transmission data may also be understood as an encoding process, that is, converting the first resource modification information from a format agreed upon by the synchronization protocol into data that can be transmitted.
[0175] Furthermore, for the step of "receiving second resource modification information for the game from the running end" in step S403, it can specifically include: receiving second transmission data for the game from the running end; converting the second transmission data into second resource modification information, and the second resource modification information is generated by the development end based on the synchronization protocol, according to the modification operation performed on the game.
[0176] The process of converting the second transmission data into the second resource modification information can also be understood as a decoding process, that is, a process of restoring the data for transmission encoded by the running end to the format agreed upon by the synchronization protocol.
[0177] It is understandable that both the development end and the operation end can perform synchronization and encoding and decoding processes. Taking the synchronization and encoding of the development end and the decoding of the operation end as an example, the main workflow is as follows:
[0178] (1) On the development device, use the editor to open the scene file of the running device that needs to verify the effect, select the game resources to be modified in the scene file, and modify the game resources according to the operation interface provided by the editor.
[0179] (2) After the game resources are modified, the modified operation is generated as data to be transmitted according to the synchronization protocol, which can also be called synchronization data (i.e., first resource modification information). For example, if the editor modifies the spatial position of the game resources, then according to the synchronization protocol, the modified attribute (here is the spatial position) and the modified value are recorded in the synchronization data.
[0180] (3) After the synchronization data is prepared, the editor will convert the synchronization data into data that can be transmitted between the development device and the running device.
[0181] (4) The converted data is transmitted to the operation end device.
[0182] (5) The running device receives the data, decodes the data into a synchronous data format, and then sets the modified data to the game resource based on the synchronous data (here, the change in the spatial location of the game resource). The game engine will update the location of the game resource based on the new spatial location data, thereby achieving the purpose of synchronizing the modification of the development end.
[0183] For the embodiments of the present application, resource modification information such as the first resource modification information and the second resource modification information are based on the synchronization protocol and can have unified information content of related operations, so that the development end can correctly identify and load the data after the running end modifies the resources, and the running end can correctly identify and load the data after the development end modifies the resources, thereby achieving the changes made on the development end to be able to see the effect of the changes directly on the running end, and to actively make modifications on the running end, and then synchronize the modification results to the development end, avoiding the process of repeatedly packaging, copying, and installing the game, and improving the efficiency of game development.
[0184] In the embodiment of the present application, before step S402 or step S403, the step of establishing a network connection between the running end and the development end may also be included.
[0185] Specifically, in the embodiment of the present application, a communication module is provided on both the development end device and the operation end device. When the game resource is modified on the development end device, the modification information of the game resource (i.e., the first resource modification information) is sent to the operation end device through the communication module. The communication module is also used to allow the operation end device to transmit the modification result (i.e., the second resource modification information) on it to the editor on the development end device.
[0186] One feasible implementation method is to build a web server on the development device or editor, establish a connection to the server on the running device, and after a successful connection, communication between the two can be achieved.
[0187] In the embodiment of the present application, the first transmission data and the second transmission data obtained by conversion are data that can be transmitted between the development end device and the operation end device through the communication module.
[0188] The resource data processing method provided in the embodiment of the present application can effectively reduce the processing steps when modifying the game and significantly improve the game development efficiency.
[0189] The present application also provides a resource data processing system. Figure 5 As shown, it mainly includes the development end and the operation end.
[0190] The running end is used to execute Figure 1 The method for processing resource data shown in the figure, the specific processing process can be found in the introduction above, and will not be repeated here.
[0191] Development end for execution Figure 4 The method for processing resource data shown in the figure, the specific processing process can also be found in the introduction above, and will not be repeated here.
[0192] In the embodiment of the present application, a network connection is established between the running end and the development end, so that the development end sends the modification information of the game resource (i.e., the first resource modification information) to the running end device. Or the running end device transmits the modification result (i.e., the second resource modification information) on it to the editor on the development end device. The specific implementation can also be referred to the introduction above, which will not be repeated here.
[0193] In an embodiment of the present application, the resource data processing system can be implemented based on cross-platform technology, that is, the development end device and the operation end device can be based on the same or different operating systems or hardware architectures.
[0194] The development end device and the operation end device can be terminals, servers and other devices. The terminal can be a laptop, tablet computer, desktop computer, set-top box, smart speaker, mobile device (for example, mobile phone, portable music player, personal digital assistant, portable game device, smart watch, smart voice interaction device, car terminal, etc.), smart home appliance (for example, but not limited to smart TV) and other devices, but not limited to these.
[0195] The following example takes the development end as a computer and the running end as the target device as an example. Figure 6 An example of an embodiment of the present application is shown. Specifically, after a computer develops a game and publishes it to a target device, the computer-side editor can be used to modify the game resources, and a modification instruction is sent to the target device side through a communication module. The modification instruction carries resource modification information to synchronize the modification to the game on the target device side. The communication module on the target device side receives the modification instruction, modifies the resources through a pre-acquired editing module, and verifies the effect.
[0196] Figure 7 Another example of an embodiment of the present application is shown. Specifically, after the editor of the development end publishes the game to the target device, the target device can edit the game resources and send the modification information of the game resources to the editor of the development end, and the editor can save the final result.
[0197] The embodiment of the present application provides an editor (corresponding to the editing module mentioned above), which is applied to the running end, such as Figure 8 As shown, the editor 80 may include: a synchronization module 801 and / or an operation module 802, and a modification module 803, wherein:
[0198] The synchronization module 801 is used to receive the first resource modification information for the game from the development end, and the operation module 802 is used to obtain the modification operation for the game at the running end;
[0199] The modification module 803 is used to modify the resource data of the game according to the first resource modification information and / or modification operation through the game engine of the running game;
[0200] If the resource data of the game is modified according to the modification operation, the synchronization module 801 is further used to send the generated second resource modification information to the development end.
[0201] In an optional implementation, when the operation module 802 is used to obtain the modification operation for performing on the game at the running end, it is specifically used to:
[0202] Activate the modification tool on the running end;
[0203] Get the modification operations performed on the game through the modification tool.
[0204] In an optional implementation, when the operation module 802 is used to obtain the modification operation performed on the game by the modification tool, it is specifically used for at least one of the following:
[0205] Setting a selectable attribute for at least one resource of the game through a first modification tool, and obtaining a selection operation for any resource;
[0206] Displaying a corresponding spatial attribute adjustment control for at least one resource of the game through a second modification tool, obtaining an adjustment operation for at least one spatial position adjustment control, wherein the adjustment operation for the spatial position adjustment control includes adjusting at least one of the following spatial attributes of the corresponding game resource: moving, rotating, scaling, and tilting;
[0207] The corresponding attribute information and attribute modification options are displayed for the currently selected resource of the game through the third modification tool, and a selection operation for any attribute modification option is obtained.
[0208] In an optional implementation, when the synchronization module 801 is used to send the generated second resource modification information to the development end, it is specifically used for at least one of the following:
[0209] Convert the format of the second resource modification information generated based on the data protocol into a target format, and send the second resource modification information in the target format to the development end;
[0210] Sending the second resource modification information generated based on the data protocol to the development end, so that the development end converts the format of the second resource modification information generated based on the data protocol into a target format;
[0211] The data protocol specifies the format of resource modification information that is converted into a target format, and the target format is a format that can be recognized by an editor on the development side.
[0212] In an optional implementation, when the synchronization module 801 is used to receive the first resource modification information for the game from the development end, it is specifically used to:
[0213] Receiving first transmission data for the game from the development end;
[0214] Converting the first transmission data into first resource modification information, where the first resource modification information is generated by the development end based on the synchronization protocol;
[0215] In an optional implementation, when the synchronization module 801 is used to send the generated second resource modification information to the development end, it is specifically used to:
[0216] Based on the synchronization protocol, the modification of the game performed according to the modification operation is generated as second resource modification information;
[0217] converting the second resource modification information into second transmission data;
[0218] Send the second transmission data to the development end;
[0219] Among them, the synchronization protocol stipulates the format of the modified content.
[0220] In an optional implementation, before the synchronization module 801 is used to receive the first resource modification information for the game from the development end, or before the generated second resource modification information is sent to the development end, it is further used to:
[0221] Establish a network connection between the running terminal and the development terminal.
[0222] In an optional implementation, the editor 80 is obtained from the development end.
[0223] The editor of the embodiment of the present application can execute the method provided by the embodiment of the present application, and the implementation principle is similar. The actions performed by each module in the editor of each embodiment of the present application correspond to the steps in the method of each embodiment of the present application. For the detailed functional description of each module of the editor, please refer to the description in the corresponding method shown in the previous text, which will not be repeated here.
[0224] The present application embodiment provides an editor, which is applied to a development end, such as Fig. 9 As shown, the editor 90 may include: an acquisition module 901, a communication module 902, and a generation module 903, wherein:
[0225] The acquisition module 901 is used to obtain the first resource modification information of the game modified by the development end;
[0226] The communication module 902 is used to send the first resource modification information to the running end, so that the running end modifies the resource data of the installed game according to the first resource modification information, and / or receive the second resource modification information for the game from the running end, where the second resource modification information is generated based on the modification operation performed on the game at the running end;
[0227] The generation module 903 is used to obtain the resource file of the game based on the second resource modification information.
[0228] In an optional implementation manner, when the generation module 903 is used to obtain the resource file of the game according to the second resource modification information, it is specifically used for at least one of the following:
[0229] Convert the format of the second resource modification information generated based on the predetermined data protocol into a target format, and obtain a resource file of the game according to the second resource modification information in the target format;
[0230] Obtaining a resource file of the game according to the second resource modification information converted into a target format and generated based on a predetermined data protocol;
[0231] The data protocol specifies the format of resource modification information that is converted into a target format, and the target format is a format that can be recognized by an editor on the development side.
[0232] In an optional implementation, when the communication module 902 is used to send the first resource modification information to the operation end, it is specifically used to:
[0233] Generating the modification to the game as first resource modification information according to a predetermined synchronization protocol;
[0234] Converting the first resource modification information into first transmission data;
[0235] Sending the first transmission data to the operation end;
[0236] In an optional implementation, when the communication module 902 is used to receive the second resource modification information for the game from the running end, it is specifically used to:
[0237] Receiving second transmission data for the game from the running end;
[0238] Converting the second transmission data into second resource modification information, where the second resource modification information is generated by the developer based on the synchronization protocol by modifying the game according to the modification operation;
[0239] Among them, the synchronization protocol stipulates the format of the modified content.
[0240] The editor of the embodiment of the present application can execute the method provided by the embodiment of the present application, and the implementation principle is similar. The actions performed by each module in the editor of each embodiment of the present application correspond to the steps in the method of each embodiment of the present application. For the detailed functional description of each module of the editor, please refer to the description in the corresponding method shown in the previous text, which will not be repeated here.
[0241] An embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory, the processor executes the above-mentioned computer program to implement the steps of the above-mentioned method embodiments. Optionally, the electronic device can refer to a development end device, or the electronic device can refer to an operation end device.
[0242] In an alternative embodiment, an electronic device is provided, such as Fig.10 As shown, Fig.10The electronic device 1000 shown includes: a processor 1001 and a memory 1003. The processor 1001 and the memory 1003 are connected, such as through a bus 1002. Optionally, the electronic device 1000 may also include a transceiver 1004, which may be used for data interaction between the electronic device and other electronic devices, such as data transmission and / or data reception. It should be noted that in actual applications, the transceiver 1004 is not limited to one, and the structure of the electronic device 1000 does not constitute a limitation on the embodiments of the present application.
[0243] Processor 1001 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. Processor 1001 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.
[0244] The bus 1002 may include a path to transmit information between the above components. The bus 1002 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus 1002 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Fig.10 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0245] The memory 1003 may be a ROM (Read Only Memory) or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory) or other types of dynamic storage devices that can store information and instructions, or an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, optical disk storage (including compressed optical disk, laser disk, optical disk, digital versatile disk, Blu-ray disk, etc.), magnetic disk storage media, other magnetic storage devices, or any other medium that can be used to carry or store computer programs and can be read by a computer, without limitation herein.
[0246] The memory 1003 is used to store the computer program for executing the embodiment of the present application, and the execution is controlled by the processor 1001. The processor 1001 is used to execute the computer program stored in the memory 1003 to implement the steps shown in the above method embodiment.
[0247] An embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps and corresponding contents of the aforementioned method embodiment can be implemented.
[0248] The embodiment of the present application also provides a computer program product, including a computer program, which can implement the steps and corresponding contents of the aforementioned method embodiment when executed by a processor.
[0249] The terms "first", "second", etc. in the specification and claims of this application 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 terms used in this way can be interchangeable where appropriate, so that the embodiments of the application described herein can be implemented in an order other than that shown or described in the drawings.
[0250] It should be understood that, although each operation step is indicated by arrows in the flowchart of the embodiment of the present application, the implementation order of these steps is not limited to the order indicated by the arrows. Unless clearly stated herein, in some implementation scenarios of the embodiment of the present application, the implementation steps in each flowchart can be performed in other orders according to demand. In addition, some or all of the steps in each flowchart may include multiple sub-steps or multiple stages based on actual implementation scenarios. Some or all of these sub-steps or stages may be executed at the same time, and each sub-step or stage in these sub-steps or stages may also be executed at different times respectively. In different scenarios of execution time, the execution order of these sub-steps or stages may be flexibly configured according to demand, and the embodiment of the present application does not limit this.
[0251] The above are only optional implementation methods for some implementation scenarios of the present application. It should be pointed out that for ordinary technicians in this technical field, without departing from the technical concept of the scheme of the present application, other similar implementation methods based on the technical ideas of the present application are also within the protection scope of the embodiments of the present application.
Claims
1. A method for processing resource data, characterized in that: Applied to the operating end, the method includes: Obtaining a modification operation for modifying the game on the running end; The game engine of the running game generates the game resources modified by the modification operation into resource data based on a data protocol, and generates the modification content of the game resources by the modification operation into modification data based on a synchronization protocol, wherein the data protocol agrees on a format for describing the game resources, and the synchronization protocol agrees on a format for describing the modification content; generating resource modification information based on the resource data and the modification data; The generated resource modification information is sent to the development end, so that the development end can obtain the game resources modified by the modification operation and the modification content of the game resources by the modification operation based on the data protocol and the synchronization protocol according to the resource modification information, and obtain the resource file of the game based on the game resources and the modification content.
2. The processing method according to claim 1, characterized in that: The obtaining of a modification operation for modifying the game at the running end includes: activating a modification tool on the running terminal; Obtaining a modification operation of modifying the game through the modification tool; The obtaining of the modification operation of modifying the game by the modification tool comprises at least one of the following: Setting a selectable attribute for at least one resource of the game by using a first modification tool, and obtaining a selection operation for any resource; Displaying a corresponding spatial attribute adjustment control for at least one resource of the game through a second modification tool, and obtaining an adjustment operation for at least one of the spatial attribute adjustment controls, wherein the adjustment operation for the spatial attribute adjustment control includes at least one of the following spatial attribute adjustments for the corresponding game resource: moving, rotating, scaling, and tilting; The corresponding attribute information and attribute modification options are displayed for the currently selected resource of the game through a third modification tool, and a selection operation for any of the attribute modification options is obtained.
3. The processing method according to claim 1, characterized in that: Sending the generated resource modification information to the development end includes at least one of the following: Converting the format of the resource modification information into a target format, and sending the resource modification information in the target format to the development end; Sending the resource modification information to the development end so that the development end converts the format of the resource modification information into a target format; The target format is a format recognizable by the editor of the development end.
4. The processing method according to claim 1, characterized in that: The sending the resource modification information to the development end includes: Converting the resource modification information into transmission data; The transmission data is sent to the development end.
5. The processing method according to any one of claims 1 to 4, characterized in that: The method is executed by using a preset editing module, and the editing module is obtained from the development end.
6. The processing method according to claim 5, characterized in that: The editing module includes a synchronization module, an operation module and a modification module; The synchronization module is used for sending the generated resource modification information to the development end; The operation module is used for obtaining a modification operation for modifying the game at the running end; The modification module is used in the game engine of the running game to generate resource data based on a data protocol for the game resources modified by the modification operation, and to generate modification data for the modification content of the game resources caused by the modification operation.
7. A method for processing resource data, characterized in that: Applied to the development end, the method includes: Receiving resource modification information for a game from a running end, the resource modification information being generated based on resource data and modification data, the resource data being generated based on game resources modified by a modification operation performed on the game by the running end, and the modification data being generated based on content of the modification of the game resources by the modification operation; Based on the data protocol and the synchronization protocol, the game resources modified by the modification operation and the modification content of the game resources by the modification operation are obtained according to the resource modification information, and based on the game resources and the modification content, the resource file of the game is obtained, wherein the data protocol agrees on a format for describing the game resources, and the synchronization protocol agrees on a format for describing the modification content.
8. The processing method according to claim 7, characterized in that: Obtaining the game resource modified by the modification operation and the modification content of the game resource by the modification operation according to the resource modification information includes at least one of the following: Convert the format of the resource modification information into a target format, and obtain the game resource modified by the modification operation and the modification content of the game resource by the modification operation according to the resource modification information in the target format; According to the received resource modification information converted into the target format, obtaining the game resource modified by the modification operation and the modification content of the game resource by the modification operation; The data protocol specifies a format of resource modification information that is converted into a target format, and the target format is a format that can be recognized by an editor at the development end.
9. The processing method according to claim 7 or 8, characterized in that: The receiving of resource modification information for the game from the running end includes: Receiving transmission data for the game from the running end; The transmission data is converted into the resource modification information.
10. An editor, characterized in that: Applied to the running end, the editor includes: An operation module, used for obtaining a modification operation for modifying the game at the running end; A modification module, configured to generate resource data based on a data protocol for the game resources modified by the modification operation through the game engine of the running game, and to generate modification data based on a synchronization protocol for the modification content of the game resources by the modification operation, wherein the data protocol specifies a format for describing the game resources and the synchronization protocol specifies a format for describing the modification content; and to generate resource modification information based on the resource data and the modification data; A synchronization module is used to send the generated resource modification information to the development end, so that the development end can obtain the game resources modified by the modification operation and the modification content of the game resources by the modification operation based on the data protocol and the synchronization protocol according to the resource modification information, and obtain the resource file of the game based on the game resources and the modification content.
11. An editor, characterized in that: Applied to the development end, the editor includes: A communication module, configured to receive resource modification information for a game from a running terminal, wherein the resource modification information is generated based on resource data and modification data, wherein the resource data is generated based on game resources modified by a modification operation performed on the game at the running terminal, and the modification data is generated based on the modification content of the game resources by the modification operation; A generation module is used to obtain the game resources modified by the modification operation and the modification content of the game resources by the modification operation based on the resource modification information based on the data protocol and the synchronization protocol, and obtain the resource file of the game based on the game resources and the modification content, wherein the data protocol agrees on a format for describing the game resources, and the synchronization protocol agrees on a format for describing the modification content.
12. A resource data processing system, characterized in that: include: An operation terminal, used to execute the resource data processing method according to any one of claims 1 to 6; The development end is used to execute the resource data processing method described in any one of claims 7-9.
13. An electronic device comprising a memory, a processor and a computer program stored in the memory, characterized in that: The processor executes the computer program to implement the steps of the method according to any one of claims 1 to 6 or claims 7 to 9.
14. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 or claims 7 to 9 are implemented.
Citation Information
Patent Citations
User interface processing method and device, equipment and storage medium
CN113672225A