Task flow updating method and device, computer device and storage medium
By parsing the game parameter configuration file to generate a task flowchart, the problem of low efficiency in updating game task flow is solved, and efficient updates on the visual interface are achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- NETEASE (HANGZHOU) NETWORK CO LTD
- Filing Date
- 2022-12-23
- Publication Date
- 2026-07-31
AI Technical Summary
In existing technologies, updating game quest flows requires repeatedly scrolling the Excel spreadsheet, resulting in low update efficiency.
By parsing the game parameter configuration file, a task flowchart is generated and updated on a visual interface, avoiding the need to search and configure in Excel files.
It improved the efficiency of updating game quest flows, reduced operations in Excel files, and increased update speed and accuracy.
Smart Images

Figure CN115970293B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of image processing technology, and specifically to a task flow update method, apparatus, computer device, and storage medium (computer-readable storage medium). Background Technology
[0002] For many games, gameplay configurations are typically completed by game designers using Excel spreadsheets. For example, in configuring game quest flows, designers configure quest numbers, names, and completion conditions in an Excel spreadsheet, then transmit the parsed data to programmers, who then execute the game according to the designers' configurations.
[0003] However, in a complete game system, the task configuration in an Excel spreadsheet involves a large number of headers. Typically, a single task will only use a few of these headers. This causes designers to repeatedly scroll the Excel spreadsheet horizontally to find the content that needs to be updated when updating a task flow, which affects the efficiency of task flow updates. Summary of the Invention
[0004] Therefore, it is necessary to provide a task flow update method, apparatus, computer equipment, and storage medium to address the above-mentioned technical problems, so as to solve the problem of low update efficiency caused by the need to repeatedly pull the scroll axis in the existing task flow update process.
[0005] Firstly, this application provides a task flow update method, including:
[0006] Obtain the game parameter configuration file corresponding to the target task flow to be configured in the target game; the game parameter configuration file exists in the form of an Excel file.
[0007] Parse the game parameter configuration file and provide a task flowchart corresponding to the target task process;
[0008] In response to the process update instruction of the task flowchart, the target task flow is updated to obtain the updated task flow;
[0009] Update the target game based on the aforementioned update task process.
[0010] Secondly, this application provides a task flow update apparatus, comprising:
[0011] The acquisition module is used to acquire the game parameter configuration file corresponding to the target task flow to be configured in the target game; the game parameter configuration file exists in the form of an Excel file.
[0012] The parsing module is used to parse the game parameter configuration file and provide a task flowchart corresponding to the target task process;
[0013] The generation module is used to update the target task flow in response to the flow update instruction of the task flow diagram to obtain the updated task flow.
[0014] The update module is used to update the target game based on the update task process.
[0015] Thirdly, this application also provides a computer device, characterized in that the computer device comprises:
[0016] One or more processors;
[0017] Memory; and
[0018] One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the processor to implement the task flow update method provided by any of the above.
[0019] Fourthly, this application also provides a computer-readable storage medium having a computer program stored thereon, the computer program being loaded by a processor to perform the steps of the task flow update method provided in any of the above claims.
[0020] Fifthly, embodiments of this application provide a computer program product or computer program that includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the task flow update method provided above.
[0021] The task flow update method provided in this application, when an update to a task flow in a game is required, first obtains the parameter configuration file corresponding to the task flow, and then displays the task flow diagram corresponding to the target task flow through parsing. This allows users to easily update the task flow by performing operations on the task flow diagram, thereby completing the game update. The method provided in this application, by parsing the parameter configuration file and displaying the task flow in a visual view, allows users to directly update the configuration of task flow parameters in the view without having to search through an Excel file, thus effectively improving the efficiency of updating task flows in the game. Attached Figure Description
[0022] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0023] Figure 1 This is a schematic diagram illustrating a task flow configuration based on an Excel spreadsheet file, as provided in an embodiment of this application.
[0024] Figure 2 A flowchart illustrating the steps of a task flow update method provided in this application embodiment;
[0025] Figure 3 This application provides a schematic diagram of the steps for visualizing the task flow.
[0026] Figure 3 (a) A schematic diagram of the data format conversion process provided in the embodiments of this application;
[0027] Figure 4 This application provides a schematic diagram of the steps involved in displaying a task flowchart based on topological sorting, as an embodiment of the present application.
[0028] Figure 4 (a) A schematic diagram of the task flow provided for the three layout styles;
[0029] Figure 4 (b) A schematic diagram of a task flowchart based on topological sorting provided in an embodiment of this application;
[0030] Figure 4 (c) A schematic diagram of a process sub-node provided in an embodiment of this application;
[0031] Figure 5 This application provides a schematic diagram of the steps for updating a target task flow to obtain an updated task flow, as shown in the embodiments of this application.
[0032] Figure 6 This is a schematic diagram of the structure of a task flow update device provided in an embodiment of this application;
[0033] Figure 7 This is a schematic diagram of the structure of a computer device provided in an embodiment of this application. Detailed Implementation
[0034] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0035] In the description of this application, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the stated features. In the description of this application, "multiple" means two or more, unless otherwise explicitly specified.
[0036] In the description of this application, the word "for example" is used to mean "used as an example, illustration, or description." Any embodiment described as "for example" in this application is not necessarily to be construed as being more preferred or advantageous than other embodiments. The following description is provided to enable any person skilled in the art to make and use the invention. Details are set forth in the following description for purposes of explanation. It should be understood that those skilled in the art will recognize that the invention can be made without using these specific details. In other instances, well-known structures and processes will not be described in detail to avoid obscuring the description of the invention with unnecessary detail. Therefore, the invention is not intended to be limited to the embodiments shown, but is consistent with the broadest scope of the principles and features disclosed in this application.
[0037] To facilitate understanding of the complete implementation scheme of the task flow update method provided in the embodiments of this application, the implementation scenarios of the task flow update method are first described in detail below.
[0038] In game design scenarios, designers typically need to use Excel to fill out spreadsheets. Taking game quest flow as an example, game designers usually need to configure quest numbers, quest names, and completion conditions in an Excel file. After configuring the Excel file, the game designer can import the content into an easily readable code format or directly into game code in a scripting language such as Lua or Python, and then provide it to the programmers for further processing. This allows the game to behave according to the designer's configuration, such as displaying the quest name when accepting a quest and completing the quest when the completion conditions are met. For a more detailed explanation, for example… Figure 1The diagram illustrates a task flow configuration based on an Excel spreadsheet. It shows that in a complete game system, the task configuration in the Excel spreadsheet involves numerous headers. These headers describe different information within the task flow, such as the prerequisites for accepting a task and subsequent tasks after completion. The task type describes whether the task can be accepted in a group, and so on. Typically, an Excel spreadsheet can contain hundreds of headers. However, most task configurations only use a portion of these headers. This forces designers to repeatedly drag and drop the Excel spreadsheet to configure a task flow, impacting the efficiency of task flow updates.
[0039] To address the aforementioned problems, this application provides a task flow update method. This method is installed as a computer program in a task flow update device, which is deployed as a processor in a computer device. The task flow update device in the computer device executes the task flow update method provided in this application by running the computer program corresponding to the task flow update method. Specifically, as follows... Figure 2 As shown, Figure 2 A flowchart illustrating the steps of a task flow update method provided in this application embodiment specifically includes steps S210 to S240:
[0040] S210: Obtain the game parameter configuration file corresponding to the target task flow to be configured in the target game.
[0041] In this embodiment, the target task flow typically refers to a complete task chain, which usually consists of several sub-tasks with sequential relationships. Game players need to execute each sub-task sequentially according to their relationships to complete the entire target task flow. The game parameter configuration file is usually in the form of an Excel file; see the aforementioned documentation for details. Figure 1 The provided diagram illustrates that when a game designer needs to update the configuration of a specific target task flow in the game, the task flow update device can automatically read the game parameter configuration file corresponding to that target task flow. For example, the game parameter configuration file can be read via a file path. Alternatively, the game designer can drag and drop the game parameter configuration file to a specified location so that the task flow update device can obtain the game parameter configuration file corresponding to the target task flow that needs to be configured. This application embodiment does not limit the specific method of obtaining the game parameter configuration file.
[0042] S220, parse the game parameter configuration file and provide the task flowchart corresponding to the target task process.
[0043] In this embodiment, after obtaining the game parameter configuration file in Excel format, the task flow update device calls a corresponding tool to parse the game parameter configuration file, extract information related to the task flow, and provide a task flow diagram corresponding to the target task flow. Furthermore, based on the description of step S210 above, the target task flow includes several sub-tasks with sequential relationships; therefore, the task flow diagram is also composed of several flow nodes corresponding to the sub-tasks in the target task flow, and each flow node further includes configuration parameters related to that sub-task.
[0044] Specifically, in order to parse the game parameter configuration file and visualize the task flow diagram corresponding to the target task flow, this application provides an implementation scheme for task flow visualization based on existing tools. Specifically, as shown below... Figure 3 As shown, steps S310 to S330 are included:
[0045] S310 processes the game parameter configuration file using a preset parsing tool to generate a JSON intermediate data file.
[0046] To achieve data visualization, the task flow update device needs to process data files using a visual editing tool. However, visual editing tools typically rely on a browser, and browser security policies make it difficult for them to directly manipulate game parameter configuration files. Using a remote server would increase development complexity. Therefore, in this embodiment, to visualize the game parameter configuration file, the task flow update device pre-builds a local server and uses a parsing tool with parsing capabilities to process the game parameter configuration file, generating an intermediate data file in JSON format. This facilitates the conversion between Excel data and visual editing data, such as XML data. Specifically, as a feasible embodiment, the parsing tool can be Python Selenium, an automated testing tool written in the Python scripting language that can read and write Excel data and interact with a browser.
[0047] S320, the JSON intermediate data file is converted into an XML intermediate data file in a preset web browser.
[0048] In this embodiment, after the game parameter configuration file in Excel format is processed by a parsing tool to generate an intermediate data file in JSON format, the JSON intermediate data file can be further converted into an XML intermediate data file that can be processed by a visual editing tool in a web browser, i.e., a web interface. Specifically, the web browser used here can be the Chrome browser, but other browsers are also feasible. This embodiment does not limit the specific type of browser.
[0049] S330: The XML intermediate data file is processed using a preset visual editing tool to generate and display the task flowchart corresponding to the target task process.
[0050] In this embodiment, after obtaining the XML intermediate data file processed by the visual editing tool, the task flow update device can further utilize the visual editing tool to process the intermediate data file and generate a corresponding task flow diagram. Specifically, as a feasible embodiment of this application, the visual editing tool can be the Blockly programming tool.
[0051] Furthermore, it should be noted that during the data conversion process described above, different data files, such as JSON intermediate data files and XML intermediate data files, only differ in data format. The data information contained in them is the same as that contained in the game parameter configuration file, which ensures that the task flowchart generated based on the XML intermediate data file also contains the information from the game parameter configuration file.
[0052] Of course, considering that JSON is a lightweight data exchange format, in addition to enabling the exchange and conversion between Excel and XML data, it can also be used for the exchange of other data, such as game program code. Therefore, in this embodiment, during subsequent updates to the target game, after the data in the game parameter configuration file or the data in the task flowchart are updated, they will first be converted into JSON data and then loaded into the game's corresponding server to update the corresponding game program code deployed on the server, such as game code existing in LuaTable format.
[0053] To facilitate understanding of the above scheme, Figure 3 (a) is a schematic diagram illustrating the data format conversion process provided in an embodiment of this application. Specifically, as shown... Figure 3As shown in (a), during the data format conversion process, the local server, i.e., the Local Server, such as Python Selenium, first reads the Excel file (the game parameter configuration file), then parses it into a JSON intermediate data file. On the web, i.e., a web browser like Chrome, the JSON intermediate data file is converted into an XML intermediate data file. The web's built-in visual programming tool, Blockly, processes the XML intermediate data file, generates a corresponding task flowchart, and displays it on the web interface. Furthermore, during subsequent game updates, data updated in the task flowchart is also first converted into a JSON intermediate data file on the web, then loaded onto the game server (the Game side) via HTTP (Hypertext Transfer Protocol), where it is converted into corresponding game code data, such as LuaTable, completing the game update.
[0054] Furthermore, considering that the task flowchart includes several process nodes corresponding to subtasks, the impact of different layout designs on the visualization effect must also be considered when presenting the task flowchart visually. Specifically, taking three commonly used layout styles—DefaultLayout, GridLayout, and ForceDirectedLayout—as examples, in the actual display of the task flowchart, for instance... Figure 4 (a) illustrates three layout styles of task flowcharts. It can be seen that the task flowcharts displayed in these ways may suffer from overlapping lines and unclear hierarchy. Therefore, to improve the visualization of the task flowcharts, as another optional embodiment of this application, a topological sorting-based task flowchart display scheme is provided, specifically, as follows: Figure 4 The diagram shown is a flowchart illustrating the steps of a task display based on topological sorting, according to an embodiment of this application, including steps S410 to S440:
[0055] S410, parse the game parameter configuration file, extract the target sub-tasks in the target task process, and the sequential relationship between each target sub-task.
[0056] In this embodiment of the application, during the parsing of the game parameter configuration file, the target subtasks in the target task flow can be extracted based on the task names appearing in the game parameter configuration file. On this basis, combined with the preceding and following tasks in the game parameter configuration file, the sequential relationship between each target subtask can be further determined. For example, if the preceding task of target subtask B is A and the following task is C, it indicates that the sequential relationship between each subtask in the task flow is A→B→C.
[0057] S420, based on the order relationship, set the sorting level corresponding to each target subtask, and determine the position information of each target subtask on the preset interface according to the sorting level corresponding to each target subtask.
[0058] In this embodiment, after determining the sequential relationship between subtasks, the ranking level (rank) of each target subtask can be set sequentially based on this relationship. Specifically, first, any random subtask is selected as the entry point, and its ranking level is set to 0 (rank: 0). Then, based on this subtask, the ranking level of its predecessor task is set to -1 (rank: -1), and the ranking level of its successor task is set to 1 (rank: 1). This process is recursively repeated to set the ranking level for all task nodes. That is, for each subtask with a known ranking level, the ranking level of its predecessor task is decreased by 1, and the ranking level of its successor task is increased by 1, until the ranking level of all task nodes is set. Then, based on the ranking level of each target subtask, the position information of each target subtask on the preset interface is determined using preset horizontal and vertical node spacing.
[0059] S430, based on the location information corresponding to each target sub-task, display the process sub-nodes corresponding to the target sub-tasks on the preset interface.
[0060] In this embodiment, after determining the location information corresponding to the target sub-task, based on this location information, process sub-nodes corresponding to each target sub-task can be displayed on a preset interface. It should be noted that the style of the process sub-nodes, such as size and color, can be set based on actual needs; this embodiment does not limit the style of the process sub-nodes.
[0061] S440, Connect the process sub-nodes according to the sequential relationship between each target sub-task to obtain the task flowchart.
[0062] After displaying the process sub-nodes corresponding to each target subtask in the target task flow at the corresponding positions on the preset interface, connecting the process sub-nodes based on the sequential relationship between the target subtasks yields a task flowchart describing the task flow. Specifically, for ease of understanding the task flowchart provided in this application embodiment, as follows... Figure 4 As shown in (b), this is a schematic diagram of a task flowchart based on a topological sorting method provided in an embodiment of this application. It can be seen that the task flowchart provided by the aforementioned topological sorting method has a clear hierarchical relationship, and there are no overlapping lines between the subtasks. Compared with the layout method provided above, the visualization effect of the task flowchart is improved.
[0063] Furthermore, it's important to note that the task flowchart not only illustrates the sequential relationships between subtasks within the target task flow through connections between sub-nodes, but also allows each sub-node to further display the parameter configuration information related to its corresponding subtask. Specifically, game designers can select a sub-node by clicking or using other methods to view the relevant configuration parameters of the subtasks associated with that node. For example,... Figure 4 As shown in (c), a schematic diagram of the configuration parameters of a task displayed by a certain process sub-node is shown. It can be seen that the process sub-node provides the corresponding sub-task's prerequisite task requirements, task completion conditions (the quantity of XX items to be submitted), and other parameter configuration information.
[0064] S230, in response to the process update instruction of the task flowchart, the target task flow is updated to obtain the updated task flow.
[0065] In this embodiment of the application, after the task flowchart corresponding to the target task flow is provided in a visual manner, the game planner can easily update the configuration parameters in the task flowchart, that is, perform the corresponding operation in the task flowchart so that the task flow update device can obtain the corresponding flow update instruction.
[0066] Furthermore, considering that updating a task flow typically refers to updating the configuration parameters of a single subtask within the target task flow, the flow update command usually includes a flow node switching command specifying the subtask to be updated, and a configuration parameter update command to update the configuration parameters of that subtask. Specifically, such as... Figure 5 As shown, Figure 5 This application provides a flowchart illustrating the steps for updating a target task flow to obtain an updated task flow, specifically including steps S510 to S520:
[0067] S510, in response to the process node switching instruction in the task flowchart, determine the target process sub-node to be updated in the task flowchart.
[0068] In this embodiment, considering that the task flowchart contains several process sub-nodes, each corresponding to a different sub-task in the target task flow, the game designer can input the corresponding process node switching command by clicking, selecting, or moving left and right. At this time, the task flow update device will take the selected process sub-node in the current task flowchart as the target process sub-node to be updated, and based on the aforementioned step S440 and... Figure 4 (c) The description shows the parameter configuration information involved in this subtask.
[0069] S520, in response to the configuration parameter update instruction of the target process sub-node, the sub-task process corresponding to the target process sub-node in the target task process is updated to obtain the updated task process.
[0070] In this embodiment of the application, after the process sub-node further displays the parameter configuration information of its corresponding sub-task, the game planner can modify the parameter configuration information, that is, input the corresponding configuration parameter update command, to complete the update of the sub-task process, thereby obtaining the updated task process.
[0071] Furthermore, considering that game designers can easily modify a parameter in batches using game parameter configuration files in Excel format—for example, if a batch of configured tasks needs to have level restrictions added, the game designer can easily add a header and a column of data to the game parameter configuration file—it is difficult to modify the task flow in batches within a task flow diagram. Therefore, to further improve the efficiency of the task flow update method provided in this application embodiment and achieve batch updates of configuration parameters within the task flow diagram, as a feasible embodiment of this application, if the configuration parameter update instruction in the flow update instruction involves multiple related tasks, the task flow update device will simultaneously perform batch updates on these related tasks to obtain the updated related tasks. For example, when a game designer changes the level restriction in the parameter configuration information of a subtask from level 50 to level 40 and selects batch update, the task flow update device will search for other tasks with a level restriction of level 50 or other tasks with level restrictions and display them. This allows the task flow update device to simultaneously change the level restriction in the parameter configuration information of these related tasks from level 50 to level 40 after the game designer has selected the related tasks.
[0072] Furthermore, to further improve the efficiency of task flow updates provided in this application embodiment and avoid multiple modifications to the task flow due to errors, as a feasible embodiment of this application, the task flow update device can further utilize a configuration hook (a mechanism similar to an interrupt in the Windows platform) to pre-set some configuration rules to update the task flow, that is, to verify the configuration parameters of the subtasks. Specifically, the configuration rules can be set based on actual needs, and may include, for example, determining whether the item code in the user configuration parameters is a valid code, determining whether the item quantity in the user configuration parameters exceeds a pre-set threshold, etc. This application embodiment does not limit the content of the configuration rules. By performing real-time verification of the update task process based on this configuration rule, errors in parameter configuration caused by mistakes can be quickly identified and displayed on the task flow diagram. For example, when an anomaly is detected in the parameter configuration of a sub-task, the task flow update device will mark the corresponding sub-node in the task flow diagram in red to remind the game planner. The task flow update device will only proceed to the next step of updating the target game when the verification results of each sub-task in the entire update task process are all passed. This avoids repeated table imports and improves the efficiency of task flow updates.
[0073] Of course, after updating the target task flow through the task flowchart, the updated information will also be synchronously updated to the game parameter configuration file. It should be noted that updating the game parameter configuration file is the reverse process of parsing the game parameter configuration file to provide the task flowchart. That is, the XML intermediate file corresponding to the updated task flow is converted into a JSON intermediate file in the web browser, and then the JSON intermediate file is restored to Excel data in the parsing tool. Based on the differences between the JSON intermediate file and the Excel data corresponding to the original game parameter configuration file, the corresponding data in the game parameter configuration file is modified to obtain the updated game parameter configuration file.
[0074] S240, Update the target game based on the update task flow.
[0075] In this implementation example, after the game designer updates the target task flow in the task flow diagram and obtains the updated task flow, based on the aforementioned step S330 and... Figure 3 As can be seen from the relevant description in (a), the update task process is converted into the corresponding JSON data file, and loaded into the game server corresponding to the target game via the Hypertext Transfer Protocol to generate the corresponding LuaTable. Then, the game server notifies the game client to update, which can complete the real-time hot update of the target game.
[0076] The task flow update method provided in this application, when an update to a task flow in a game is required, first obtains the parameter configuration file corresponding to the task flow, and then displays the task flow diagram corresponding to the target task flow through parsing. This allows users to easily update the task flow by performing operations on the task flow diagram, thereby completing the game update. The method provided in this application, by parsing the parameter configuration file and displaying the task flow in a visual view, allows users to directly update the configuration of task flow parameters in the view without having to search through an Excel file, thus effectively improving the efficiency of updating task flows in the game.
[0077] To clearly understand the complete implementation flow of the task flow update method provided in the embodiments of this application, the following will be combined with the foregoing Figures 1-5 The provided solution offers a complete execution flow for a task workflow update method, specifically including the following steps:
[0078] Step 1: Drag the Excel file containing the game parameter configurations for the target mission flow that needs to be configured in the target game into the program software corresponding to the mission flow update method. The parsing tool in the program software, such as Python Selenium, reads the Excel file, parses it into the corresponding JSON intermediate data file, and transmits the JSON intermediate data file to the Chrome browser.
[0079] Step 2: The Chrome browser retrieves the JSON data and converts it into an XML data format supported by the visual editing tool Blockly. Then, it provides the user with a Blockly view, which is the task flowchart, through the visual editing tool Blockly.
[0080] Step 3: After the game designer selects a flow node in the task flowchart and completes the parameter editing configuration, the visual editing tool Blockly automatically verifies the configured parameters according to preset rules and displays the verification results through the task flowchart. After all tasks pass the verification, the Chrome browser converts the modified Blockly XML data into JSON data and notifies the parsing tool of the changed JSON data. The parsing tool receives the new JSON data and saves it to the corresponding game parameter configuration file.
[0081] Step 4: If the game designer selected the "Batch Update" button during the aforementioned parameter configuration process, the visual editing tool Blockly will automatically display several related tasks associated with that configuration parameter and complete the batch update of the parameters for those related tasks.
[0082] Step 5: After the game designer clicks the "Update" button, the browser sends the modified Blockly XML data to the game server via the HTTP protocol to apply the new configuration data, thereby completing the game update.
[0083] To better implement the task flow update method provided in the embodiments of this application, based on the embodiments of this application and the provided task flow update method, the embodiments of this application also provide a task flow update device, such as... Figure 6 As shown, the task flow update device 600 includes:
[0084] The acquisition module 610 is used to acquire the game parameter configuration file corresponding to the target task flow to be configured in the target game; the game parameter configuration file exists in the form of an Excel file.
[0085] The parsing module 620 is used to parse the game parameter configuration file and provide a task flowchart corresponding to the target task process;
[0086] The generation module 630 is used to update the target task flow in response to the flow update instruction of the task flow diagram to obtain the updated task flow.
[0087] Update module 640 is used to update the target game based on the update task process.
[0088] In some embodiments of this application, the parsing module 620 is further configured to process the game parameter configuration file using a preset parsing tool to generate a JSON intermediate data file; convert the JSON intermediate data file into an XML intermediate data file in a preset web browser; process the XML intermediate data file using a preset visual editing tool to generate and display a task flowchart corresponding to the target task flow.
[0089] In some embodiments of this application, the parsing module 620 is further configured to parse the game parameter configuration file, extract the target subtasks in the target task flow, and the sequential relationship between each target subtask; set the sorting level corresponding to each target subtask based on the sequential relationship, and determine the position information of each target subtask on the preset interface according to the sorting level corresponding to each target subtask; display the flow sub-nodes corresponding to each target subtask on the preset interface according to the position information corresponding to each target subtask; and connect the flow sub-nodes according to the sequential relationship between each target subtask to obtain a task flow diagram.
[0090] In some embodiments of this application, the generation module 630 is further configured to, in response to a process node switching instruction in the task flowchart, determine a target process sub-node to be updated in the task flowchart; and, in response to a configuration parameter update instruction for the target process sub-node, update the sub-task process corresponding to the target process sub-node in the target task process to obtain an updated task process.
[0091] In some embodiments of this application, after the generation module 630 updates the target task flow in response to the flow update instruction of the task flow diagram and obtains the updated task flow, it is further configured to update the multiple associated tasks if the configuration parameter update instruction in the flow update instruction corresponds to multiple associated tasks, and obtain the updated associated tasks.
[0092] The update module 640 is used to update the target game based on the update task process and the updated associated tasks.
[0093] In some embodiments of this application, after the generation module 630 updates the target task flow in response to the flow update instruction of the task flow diagram and obtains the updated task flow, it is further used to verify the updated task flow based on preset configuration rules and provide the verification result corresponding to the updated task flow in the task flow diagram.
[0094] The update module 640 is used to update the target game based on the update task process until the verification result corresponding to the update task process is passed.
[0095] In some embodiments of this application, after the generation module 630 updates the target task flow in response to the flow update instruction of the task flow diagram and obtains the updated task flow, it is further used to update the game parameter configuration file based on the updated task flow to obtain the updated game parameter configuration file.
[0096] In some embodiments of this application, the update module 640 is further configured to load the update configuration parameters in the update task flow into the game server corresponding to the target game based on the Hypertext Transfer Protocol.
[0097] Specific limitations regarding the task flow update device can be found in the limitations of the task flow update method described above, and will not be repeated here. Each module in the aforementioned task flow update device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in the computer device in hardware form, or stored in the memory of the computer device in software form, so that the processor can call and execute the operations corresponding to each module.
[0098] In some embodiments of this application, the task flow update device 600 can be implemented as a computer program, which can be implemented in, for example... Figure 7 It runs on the computer device shown. The computer device's memory can store the various program modules that make up the task flow update device 600, for example, Figure 6 The diagram shows the acquisition module 610, parsing module 620, generation module 630, and update module 640. The computer program comprised of these modules causes the processor to execute the steps of the task flow update methods described in the various embodiments of this application.
[0099] For example, Figure 7 The computer device shown can be used as follows Figure 6 The acquisition module 610 in the task flow update device 600 shown executes step S210. The computer device can execute step S220 via the parsing module 620. The computer device can execute step S230 via the generation module 630. The computer device can execute step S240 via the update module 640. The computer device includes a processor, memory, and a network interface connected via a system bus. The processor of the computer device provides computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used to communicate with external computer devices via a network connection. When the computer program is executed by the processor, it implements a task flow update method.
[0100] Those skilled in the art will understand that Figure 7 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0101] In some embodiments of this application, a computer device is provided, including one or more processors; memory; and one or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the processor to perform the following steps:
[0102] Obtain the game parameter configuration file corresponding to the target task flow to be configured in the target game; the game parameter configuration file exists in the form of an Excel file.
[0103] Parse the game parameter configuration file and provide a task flowchart corresponding to the target task process;
[0104] In response to the process update instruction of the task flowchart, the target task flow is updated to obtain the updated task flow;
[0105] Update the target game based on the aforementioned update task process.
[0106] In some embodiments of this application, when the processor executes the computer program, it also performs the following steps: processing the game parameter configuration file using a preset parsing tool to generate a JSON intermediate data file; converting the JSON intermediate data file into an XML intermediate data file in a preset web browser; and processing the XML intermediate data file using a preset visual editing tool to generate and display a task flowchart corresponding to the target task flow.
[0107] In some embodiments of this application, when the processor executes the computer program, it further performs the following steps: parsing the game parameter configuration file to extract the target subtasks in the target task flow and the sequential relationship between each target subtask; setting the sorting level corresponding to each target subtask based on the sequential relationship, and determining the position information of each target subtask on a preset interface according to the sorting level corresponding to each target subtask; displaying the flow sub-nodes corresponding to each target subtask on the preset interface according to the position information corresponding to each target subtask; and connecting the flow sub-nodes according to the sequential relationship between each target subtask to obtain a task flowchart.
[0108] In some embodiments of this application, when the processor executes the computer program, it further performs the following steps: in response to a flow node switching instruction in the task flow diagram, it determines a target flow sub-node to be updated in the task flow diagram; in response to a configuration parameter update instruction for the target flow sub-node, it updates the sub-task flow corresponding to the target flow sub-node in the target task flow to obtain an updated task flow.
[0109] In some embodiments of this application, when the processor executes the computer program, it further implements the following steps: if the configuration parameter update instruction in the process update instruction corresponds to multiple associated tasks, then the multiple associated tasks are updated to obtain the updated associated tasks; the target game is updated based on the update task process and the updated associated tasks.
[0110] In some embodiments of this application, when the processor executes the computer program, it further implements the following steps: verifying the update task process based on preset configuration rules, and providing the verification result corresponding to the update task process in the task flow diagram; until the verification result corresponding to the update task process is passed, updating the target game based on the update task process.
[0111] In some embodiments of this application, when the processor executes the computer program, it also performs the following steps: updating the game parameter configuration file based on the update task flow to obtain an updated game parameter configuration file.
[0112] In some embodiments of this application, when the processor executes the computer program, it also performs the following steps: loading the update configuration parameters in the update task flow to the game server corresponding to the target game based on the Hypertext Transfer Protocol.
[0113] In some embodiments of this application, a computer-readable storage medium is provided, storing a computer program that is loaded by a processor, causing the processor to perform the following steps:
[0114] Obtain the game parameter configuration file corresponding to the target task flow to be configured in the target game; the game parameter configuration file exists in the form of an Excel file.
[0115] Parse the game parameter configuration file and provide a task flowchart corresponding to the target task process;
[0116] In response to the process update instruction of the task flowchart, the target task flow is updated to obtain the updated task flow;
[0117] Update the target game based on the aforementioned update task process.
[0118] In some embodiments of this application, when the processor executes the computer program, it also performs the following steps: processing the game parameter configuration file using a preset parsing tool to generate a JSON intermediate data file; converting the JSON intermediate data file into an XML intermediate data file in a preset web browser; and processing the XML intermediate data file using a preset visual editing tool to generate and display a task flowchart corresponding to the target task flow.
[0119] In some embodiments of this application, when the processor executes the computer program, it further performs the following steps: parsing the game parameter configuration file to extract the target subtasks in the target task flow and the sequential relationship between each target subtask; setting the sorting level corresponding to each target subtask based on the sequential relationship, and determining the position information of each target subtask on a preset interface according to the sorting level corresponding to each target subtask; displaying the flow sub-nodes corresponding to each target subtask on the preset interface according to the position information corresponding to each target subtask; and connecting the flow sub-nodes according to the sequential relationship between each target subtask to obtain a task flowchart.
[0120] In some embodiments of this application, when the processor executes the computer program, it further performs the following steps: in response to a flow node switching instruction in the task flow diagram, it determines a target flow sub-node to be updated in the task flow diagram; in response to a configuration parameter update instruction for the target flow sub-node, it updates the sub-task flow corresponding to the target flow sub-node in the target task flow to obtain an updated task flow.
[0121] In some embodiments of this application, when the processor executes the computer program, it further implements the following steps: if the configuration parameter update instruction in the process update instruction corresponds to multiple associated tasks, then the multiple associated tasks are updated to obtain the updated associated tasks; the target game is updated based on the update task process and the updated associated tasks.
[0122] In some embodiments of this application, when the processor executes the computer program, it further implements the following steps: verifying the update task process based on preset configuration rules, and providing the verification result corresponding to the update task process in the task flow diagram; until the verification result corresponding to the update task process is passed, updating the target game based on the update task process.
[0123] In some embodiments of this application, when the processor executes the computer program, it also performs the following steps: updating the game parameter configuration file based on the update task flow to obtain an updated game parameter configuration file.
[0124] In some embodiments of this application, when the processor executes the computer program, it also performs the following steps: loading the update configuration parameters in the update task flow to the game server corresponding to the target game based on the Hypertext Transfer Protocol.
[0125] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the methods described above. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, or optical storage, etc. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc.
[0126] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0127] The above provides a detailed description of a task flow update method, apparatus, computer device, and storage medium provided in the embodiments of this application. Specific examples have been used to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only for the purpose of helping to understand the method and core ideas of the present invention. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of the present invention. Therefore, the content of this specification should not be construed as a limitation of the present invention.
Claims
1. A task flow updating method, characterized by, include: Obtain the game parameter configuration file corresponding to the target task flow to be configured in the target game; The game parameter configuration file exists in the form of an Excel file; Parse the game parameter configuration file and provide a task flowchart corresponding to the target task process; In response to the process update instruction of the task flowchart, the target task flow is updated to obtain the updated task flow; Update the target game based on the aforementioned update task process; The process of parsing the game parameter configuration file and providing a task flowchart corresponding to the target task flow includes: The game parameter configuration file is parsed to extract the target subtasks in the target task flow, as well as the sequential relationship between the target subtasks; Based on the order relationship, the sorting level of each target subtask is set, and the position information of each target subtask on the preset interface is determined according to the sorting level of each target subtask. Based on the location information corresponding to each target sub-task, process sub-nodes corresponding to the target sub-tasks are displayed on the preset interface; The process sub-nodes are connected according to the sequential relationship between each target sub-task to obtain the task flowchart.
2. The task flow updating method according to claim 1, wherein The process of parsing the game parameter configuration file and providing a task flowchart corresponding to the target task flow includes: The game parameter configuration file is processed by a preset parsing tool to generate a JSON intermediate data file; The JSON intermediate data file is converted into an XML intermediate data file in a preset web browser; The XML intermediate data file is processed using a preset visual editing tool to generate and display the task flowchart corresponding to the target task process.
3. The task flow update method according to claim 2, characterized in that, The parsing tool is PythonSelenium, and the visual editing tool is the Blockly programming tool.
4. The task flow update method according to claim 1, characterized in that, The process update instruction in response to the task flowchart updates the target task flow to obtain an updated task flow, including: In response to the process node switching instruction in the task flowchart, determine the target process sub-node to be updated in the task flowchart; In response to the configuration parameter update instruction of the target process sub-node, the sub-task process corresponding to the target process sub-node in the target task process is updated to obtain the updated task process.
5. The task flow update method according to claim 1, characterized in that, After updating the target task flow in response to the flow update instruction of the task flow diagram to obtain the updated task flow, the method further includes: If the configuration parameter update instruction in the process update instruction corresponds to multiple associated tasks, then the multiple associated tasks are updated to obtain the updated associated tasks; The step of updating the target game based on the update task flow includes: The target game is updated based on the updated task process and the updated associated tasks.
6. The task flow update method according to claim 1, characterized in that, After updating the target task flow in response to the configuration parameter update instruction of the task flow diagram to obtain the updated task flow, the method further includes: The update task process is validated based on preset configuration rules, and the validation results corresponding to the update task process are provided in the task process diagram. The step of updating the target game based on the update task process is executed only when the verification result corresponding to the update task process is passed.
7. The task flow update method according to claim 1, characterized in that, After the step of updating the target task flow in response to the configuration parameter update instruction of the task flow diagram to obtain the updated task flow, the method further includes: The game parameter configuration file is updated based on the update task process to obtain the updated game parameter configuration file.
8. The task flow update method according to any one of claims 1 to 7, characterized in that, Updating the target game based on the update task flow includes: The update configuration parameters in the update task process are loaded into the game server corresponding to the target game based on the Hypertext Transfer Protocol.
9. A task flow update device, characterized in that, include: The acquisition module is used to acquire the game parameter configuration file corresponding to the target task flow to be configured in the target game. The game parameter configuration file exists in the form of an Excel file; The parsing module is used to parse the game parameter configuration file and provide a task flowchart corresponding to the target task process; The generation module is used to update the target task flow in response to the flow update instruction of the task flow diagram to obtain the updated task flow. The update module is used to update the target game based on the update task process; The process of parsing the game parameter configuration file and providing a task flowchart corresponding to the target task flow includes: The game parameter configuration file is parsed to extract the target subtasks in the target task flow, as well as the sequential relationship between the target subtasks; Based on the order relationship, the sorting level of each target subtask is set, and the position information of each target subtask on the preset interface is determined according to the sorting level of each target subtask. Based on the location information corresponding to each target sub-task, process sub-nodes corresponding to the target sub-tasks are displayed on the preset interface; The process sub-nodes are connected according to the sequential relationship between each target sub-task to obtain the task flowchart.
10. A computer device, characterized in that, The computer device includes: One or more processors; Memory; and One or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the processor to implement the steps in the task flow update method of any one of claims 1 to 8.
11. A computer-readable storage medium, characterized in that, It stores a computer program, which is loaded by a processor to perform the steps in the task flow update method according to any one of claims 1 to 8.