A method and system for realizing automatic testing of game plot

By generating a blocked timeline and simulated user interaction, the limitations of automatic game plot testing are solved, fully automatic testing and custom expansion are achieved, and testing efficiency and development efficiency are improved.

CN113918462BActive Publication Date: 2024-11-15FUJIAN TQ DIGITAL
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202111226006.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-21
Publication Date
2024-11-15
Estimated Expiration
2041-10-21

AI Technical Summary

Technical Problem

The existing automatic game plot testing technology is limited to specific plots, and the test start and end nodes cannot be set, the test data cannot be obtained, and the expansion is difficult, so fully automatic testing cannot be achieved.

Method used

By analyzing the game plot data, generating a blocked timeline, simulating user interaction, distributing plot status data according to the blocked timeline, executing plot commands, and realizing automatic testing and control of game plots.

Benefits of technology

It realizes fully automatic testing of the game plot, supports testing of any node, reduces testing consumption, shortens the development and testing cycle, improves development efficiency, and supports customized expansion plot instructions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113918462B_ABST
    Figure CN113918462B_ABST
Patent Text Reader

Abstract

The present invention provides a method for realizing automatic testing of game plots, which method comprises: 1. inputting game plot data and plot test data, parsing the game plot data and generating a blocking timeline; 2. restoring plot status data in the game plot data, and updating the progress value of the blocking timeline; 3. generating plot status data of all plot nodes according to the blocking timeline, and updating the progress value of the blocking timeline according to the plot test data; 4. simulating user interaction to start plot playback, distributing the plot status data corresponding to the blocking timeline according to the blocking timeline; judging whether the distribution of the plot status data corresponding to the blocking timeline has been completed; if yes, stopping and ending the process; if no, proceeding to step 5; 5. executing the plot instructions in the plot status data, continuing to distribute the plot status data corresponding to the blocking timeline according to the blocking timeline, and waiting for the execution of the plot instructions to be completed; the present invention supports testing game plots by time and setting the game plot to be tested at any time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of game production, and in particular to a method and system for realizing automatic testing of game plots. Background Art

[0002] The essence of games is also a kind of software, so from the perspective of testing engineering, the essence of game testing and software testing is exactly the same. The difference between the two is more on the surface level. We can regard game testing as a subclass of software testing. It inherits the characteristics of the parent class of software testing and has some new features of its own. Game values: Values ​​are crucial to games. Whether it is a stand-alone game or an online game, players attach great importance to the numerical growth of their characters. Any mistakes may lead to user complaints or even loss. Another level is that the coupling between the functions of the game is very high, and the values ​​are inextricably linked. Therefore, during the testing process, it is necessary to pay attention to the various impacts brought about by each numerical change. Existing technologies for generating game plots include dynamically generating game plots based on configuration, generating game plots based on Json, etc.; existing technologies have high limitations on automatic testing, usually only for specific game plots, and do not support setting the start and end nodes of the test, viewing the status data of the plot nodes, and zero-operation fully automatic testing. It is difficult to expand and cannot be widely used. Summary of the invention

[0003] To overcome the above problems, the purpose of the present invention is to provide a method for implementing automatic testing of game plots, which solves the problems that game plots cannot be automatically tested, the start and end nodes of the test cannot be specified during the test, and specific test data cannot be obtained.

[0004] The present invention is implemented by the following scheme: a method for implementing automatic testing of game plots, the method comprising the following steps:

[0005] Step S1, inputting game plot data and plot test data, parsing the game plot data to generate a blocking timeline; the blocking timeline is a timeline that supports blocking conditions, wherein when the blocking condition node is not set in the blocking timeline plot node data, the timeline will run normally in chronological order; when the blocking condition is set, the playing time stops updating when the playing time is updated to the blocking condition node, and waits until the blocking condition is met before the playing time moves to the start position of the next node to continue playing;

[0006] Step S2, restoring the plot state data in the game plot data, and updating the progress value of the blocked time axis;

[0007] Step S3, generating plot status data of all plot nodes according to the blocking time axis, and updating the progress value of the blocking time axis according to the plot test data;

[0008] Step S4, simulating user interaction to start plot playback, distributing plot status data corresponding to the blocked time axis according to the blocked time axis; judging whether the distribution of the plot status data corresponding to the blocked time axis is completed; if yes, stop and end the process; if no, proceed to step S5;

[0009] Step S5, executing the scenario instructions in the scenario status data, continuing to distribute the scenario status data corresponding to the blocking time axis according to the blocking time axis, and waiting for the execution of the scenario instructions to be completed.

[0010] Furthermore, the analysis of the game plot data to generate the blocking timeline is further specific as follows:

[0011] Step S11, inputting game plot data; the game plot data includes a plurality of sub-plot data, and the data recorded in the game plot data includes plot instructions and their execution methods, plot node time length, whether the node is blocked, blocking conditions, and whether skipping is supported;

[0012] Step S12, creating a blocking timeline;

[0013] Step S13, reading all plot node data in the game plot data; adding all plot node data to a plot node data queue;

[0014] Step S14, determine whether the plot node data queue is empty, if yes, return to the blocked timeline and end the process; if no, proceed to step S15;

[0015] Step S15, reading a plot node data from the plot node data queue, and adding the plot node data to the current node position of the blocking time axis; the current time value of the blocking time axis is moved backward to the time value accessed in the plot node data;

[0016] Step S16, determine whether the plot node data records a blocking value, which is the data value corresponding to the blocking condition; if not, proceed to step S17; if yes, add a blocking condition node in the blocking timeline, set the blocking value to the blocking condition recorded in the plot node data; move the current timeline of the blocking timeline backward by a blocking node unit time value, and proceed to step S17;

[0017] Step S17, determine whether there are other plot data nodes in the plot data node queue, if yes, execute step S15; if not, return to the blocked timeline and end the process.

[0018] Furthermore, the simulated user interaction starts the plot playback, specifically: input the plot status data corresponding to the blocked timeline, read the progress value of the blocked timeline from the plot status data of the blocked timeline, read the blocking condition of the time node corresponding to the progress value of the blocked timeline from the plot status data corresponding to the blocked timeline, judge whether the blocking condition is empty, if not, set the judgment result of the corresponding condition to true according to the blocking condition, and continue to play the plot, if yes, continue to play the plot; the simulation of user interaction is completed.

[0019] Furthermore, the step S4 further specifically includes:

[0020] Step S41, inputting the plot status data corresponding to the blocking time axis;

[0021] Step S42, reading the progress value of the blocking time axis;

[0022] Step S43, judging whether the blocking timeline is executed, if yes, the distribution of the plot status data corresponding to the blocking timeline is completed and the process is ended, if no, the plot status data of the current progress value is read;

[0023] Step S44, reading the plot instruction data set in the plot state data, and adding the data in the plot instruction data set to a plot instruction data queue;

[0024] Step S45, determine whether the plot instruction data queue is empty, if yes, update the blocking time axis progress value to the next node and execute step S43, if no, execute step S46;

[0025] Step S46, reading a plot instruction data from the plot instruction data queue, and executing the plot instruction data;

[0026] Step S47, determine whether there are other plot instruction data in the plot instruction data queue, if yes, execute step S46; if not, update the blocking time axis progress value to the next node, and execute step S43.

[0027] Furthermore, step S5 further specifically includes: step S51, inputting plot instruction data, and reading plot instructions in the plot instruction data;

[0028] Step S52: determine whether the plot instruction has a corresponding execution mode registered. If not, the plot instruction is executed and the process ends. If yes, proceed to step S53.

[0029] Step S53, executing the corresponding execution mode to input the plot instruction data;

[0030] Step S54, determine whether to execute the execution mode synchronously; if not, wait for the asynchronous execution mode to be completed and return an execution success event; the plot instruction is executed; if yes, return an execution success event and the plot instruction is executed.

[0031] The present invention also provides a system for realizing automatic testing of game plots, the system comprising a plot state data parsing template, a data restoration module, an automatic testing module, a data distribution module, and a data execution module;

[0032] The plot status data parsing template is used to input game plot data and plot test data, parse the game plot data to generate a blocking timeline; the blocking timeline is a timeline that supports blocking conditions, wherein when the blocking condition node is not set in the blocking timeline plot node data, the timeline will run normally in chronological order; when the blocking condition is set, the playback time stops updating when the playback time is updated to the blocking condition node, and waits until the blocking condition is met before the playback time moves to the start position of the next node to continue playing;

[0033] The data restoration module is used to restore the plot state data in the game plot data and update the progress value of the blocked time axis;

[0034] The automatic testing module is used to generate the plot status data of all plot nodes according to the blocking time axis, and update the progress value of the blocking time axis according to the plot test data;

[0035] The data distribution module is used to simulate user interaction to start the plot playback, distribute the plot status data corresponding to the blocked time axis according to the blocked time axis; determine whether the distribution of the plot status data corresponding to the blocked time axis is completed; if yes, stop the end process; if no, directly execute the data execution module;

[0036] The data execution module is used to execute the plot instructions in the plot state data, continue to distribute the plot state data corresponding to the blocked time axis according to the blocked time axis, and wait for the execution of the plot instructions to be completed.

[0037] Further, the updating of the progress value of the blocking time axis according to the scenario test data is specifically as follows: Step S81, inputting blocking time axis data, scenario status data, and scenario test data;

[0038] Step S82, reading the progress value of the blocked time axis from the blocked time axis, reading the scenario test progress value from the scenario test data, and reading the current scenario progress value from the scenario status data;

[0039] Step S83, reading the maximum plot progress value and the minimum plot progress value corresponding to the plot instruction data in the plot instruction set from the plot state data;

[0040] Step S84, determine whether the plot test progress value is greater than the maximum plot progress value, if yes, update the plot test progress value to the maximum plot progress value, and proceed to step S85; if no, proceed to step S85;

[0041] Step S85, determine whether the plot test progress value is less than the minimum plot progress value, if yes, update the plot test progress value to the minimum plot progress value, and proceed to step S86; if no, proceed to step S86;

[0042] Step S86, determine whether the plot test progress value is greater than the current plot progress value, if yes, update the progress value of the blocking time axis to the current plot progress value, and proceed to step S87, if no, update the progress value of the blocking time axis to the minimum plot progress value, and proceed to step S87;

[0043] Step S87, updating the current plot progress value in the plot status data to the plot test progress;

[0044] Step S88, determine whether the progress value of the blocked time axis is less than the current plot progress value, if not, update the current plot progress value in the plot state data to the progress value of the blocked time axis, save the plot state data to the storage file, update is completed, and end the process; if yes, read the plot instruction data corresponding to the progress value of the blocked time axis from the plot instruction set of the plot state data, read the plot instruction in the plot instruction data, and enter step S89;

[0045] Step S89, determine whether the plot instruction has a corresponding execution mode registered, if yes, execute the corresponding execution mode to pass in the plot instruction data and pass in the skip execution process parameter, wait for the execution mode to be completed, and go to step S90; if no, directly go to step S90;

[0046] Step S90: After the plot instruction is executed, the progress value of the blocking timeline is updated to the next time node on the blocking timeline.

[0047] Furthermore, the implementation of the data distribution module further specifically includes:

[0048] Step S91, inputting the plot status data corresponding to the blocking time axis;

[0049] Step S92, reading the progress value of the blocking time axis;

[0050] Step S93, judging whether the blocking timeline is executed, if yes, the distribution of the plot status data corresponding to the blocking timeline is completed and the process is ended, if no, the plot status data of the current progress value is read;

[0051] Step S94, reading the plot instruction data set in the plot state data, and adding the data in the plot instruction data set to a plot instruction data queue;

[0052] Step S95, determine whether the plot instruction data queue is empty, if yes, update the blocking time axis progress value to the next node and execute step S93, if no, execute step S96;

[0053] Step S96, reading a plot instruction data from the plot instruction data queue, and executing the plot instruction data;

[0054] Step S97, determine whether there are other plot instruction data in the plot instruction data queue, if yes, execute step S96; if not, update the blocking time axis progress value to the next node, and execute step S93.

[0055] The beneficial effects of the present invention are as follows: the present invention generates plot status data corresponding to the blocked timeline by analyzing data, and restores and updates the plot status data through a data storage module. When the plot automatic test is turned on, the data distribution module distributes the plot status data according to the blocked timeline, and the data execution module executes the plot instructions in the plot status data. The automatic test module generates plot status data of all plot nodes according to the blocked timeline, updates the progress of the blocked timeline according to the plot test data, and automatically starts the plot playback by simulating user interaction, etc., so as to realize complete game plot automatic test control.

[0056] The present invention realizes automatic triggering of game plot start test by controlling the game plot status data, and cooperates with the plot control method of blocking the time axis to automatically test the game plot of any node in a simple and efficient manner. The game plot test consumption is reduced, the game plot development and test cycle is shortened, and the development and test progress is accelerated. In addition, the game plot in the present invention has a unified calling and testing style, fewer game plot test-related files and codes, easier maintenance, and lower post-test maintenance costs.

[0057] The present invention provides an automatic testing method for game plots and a testing method based on a blocked timeline for the game, supports testing game plots by time, sets the game plots to be tested at any time, supports viewing the game plot test status, etc. Any type of game project can be quickly accessed and tested through the present invention, supports fully automatic game plot testing, is simple and efficient to develop and maintain, and supports custom expansion plot instructions to adapt to various usage requirements of game plots. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] Figure 1 It is a schematic flow chart of the method of the present invention.

[0059] Figure 2 It is a schematic diagram of the flow of data analysis to generate plot status data corresponding to the blocking time axis in the method of the present invention.

[0060] Figure 3 It is a data structure diagram of the congestion time axis of the present invention.

[0061] Figure 4 It is a structural schematic diagram of the plot state data of the present invention.

[0062] Figure 5 It is a schematic diagram of the process of restoring plot status data and updating the progress value of the blocked time axis according to the present invention.

[0063] Figure 6 It is a flow chart of generating plot status data of all plot nodes according to the blocking time axis of the present invention.

[0064] Figure 7 It is a flow chart of updating the progress value of the blocking time axis according to the plot test data of the present invention.

[0065] Figure 8 It is a schematic diagram of the process of simulating user interaction to automatically start plot playback in the present invention.

[0066] Fig. 9 It is a schematic diagram of the flow of distributing plot status data according to the blocking time axis in the method of the present invention.

[0067] Fig.10 It is a flow chart of executing the plot instructions in the plot state data in the method of the present invention.

[0068] Fig.11 It is a system principle block diagram of the present invention. DETAILED DESCRIPTION

[0069] The present invention will be further described below in conjunction with the accompanying drawings.

[0070] The present invention can be applied to the automatic testing process of all types of game plots. Different from the conventional game plot testing, the present invention generates a blocking timeline by extracting the description information of the game plot, supports the plot interaction logic based on the blocking timeline, records each state of the game plot in the form of plot instruction data, supports setting the game plot to jump to any progress value, and supports starting or ending the automatic test from any plot node or progress node when testing the game plot.

[0071] See also Figure 1 As shown, a method for implementing automatic game plot testing of the present invention is characterized in that the method comprises the following steps:

[0072] Step S1, inputting game plot data and plot test data, parsing the game plot data to generate a blocking timeline; the blocking timeline is a timeline that supports blocking conditions, wherein when the blocking condition node is not set in the blocking timeline plot node data, the timeline will run normally in chronological order; when the blocking condition is set, the playing time stops updating when the playing time is updated to the blocking condition node, and waits until the blocking condition is met before the playing time moves to the start position of the next node to continue playing;

[0073] Step S2, restoring the plot state data in the game plot data, and updating the progress value of the blocked time axis;

[0074] Step S3, generating plot status data of all plot nodes according to the blocking time axis, and updating the progress value of the blocking time axis according to the plot test data;

[0075] Step S4, simulating user interaction to start plot playback, distributing plot status data corresponding to the blocked time axis according to the blocked time axis; judging whether the distribution of the plot status data corresponding to the blocked time axis is completed; if yes, stop and end the process; if no, proceed to step S5;

[0076] Step S5, executing the scenario instructions in the scenario status data, continuing to distribute the scenario status data corresponding to the blocking time axis according to the blocking time axis, and waiting for the execution of the scenario instructions to be completed.

[0077] The present invention will be further described below in conjunction with a specific embodiment:

[0078] Step S1, inputting game plot data and plot test data, parsing the game plot data to generate a blocking timeline; the blocking timeline is a timeline that supports blocking conditions, wherein when the blocking condition node is not set in the blocking timeline plot node data, the timeline will run normally in chronological order; when the blocking condition is set, the playing time stops updating when the playing time is updated to the blocking condition node, and waits until the blocking condition is met before the playing time moves to the start position of the next node to continue playing;

[0079] See also Figure 2 As shown, the analysis of game plot data to generate a blocking timeline is further detailed as follows:

[0080] Step S11, inputting game plot data; the game plot data includes a plurality of sub-plot data, and the data recorded in the game plot data includes plot instructions and their execution methods, plot node time length, whether the node is blocked, blocking conditions, and whether skipping is supported;

[0081] Step S12, creating a blocking timeline;

[0082] Step S13, reading all plot node data in the game plot data; adding all plot node data to a plot node data queue;

[0083] Step S14, determine whether the plot node data queue is empty, if yes, return to the blocked timeline and end the process; if no, proceed to step S15;

[0084] Step S15, reading a plot node data from the plot node data queue, and adding the plot node data to the current node position of the blocking time axis; the current time value of the blocking time axis is moved backward to the time value accessed in the plot node data;

[0085] Step S16, determine whether the plot node data records a blocking value, which is the data value corresponding to the blocking condition; if not, proceed to step S17; if yes, add a blocking condition node in the blocking timeline, set the blocking value to the blocking condition recorded in the plot node data; move the current timeline of the blocking timeline backward by a blocking node unit time value, and proceed to step S17;

[0086] Step S17, determine whether there are other plot data nodes in the plot data node queue, if yes, execute step S15; if not, return to the blocked timeline and end the process.

[0087] like Figure 3 As shown, the congestion timeline includes: a progress value and a time node set of the congestion timeline, wherein the time node set is composed of a plurality of time nodes, each of which includes a time length, a progress value, and a congestion condition; Figure 4 As shown, the plot status data includes: a current plot progress value and a plot instruction set, and the plot instruction set is composed of a plurality of plot instruction data.

[0088] An example of parsing the transformed data to generate a blocking timeline is as follows:

[0089] On the blocking timeline, add a blocking condition node in the blocking timeline and set the blocking value to the blocking condition recorded in the plot node data:

[0090] The entry animation is played at time 0, and the duration is 5;

[0091] The time 5 node adds a blocking condition to wait for the user to click, and the time length is 1;

[0092] Time 6 node adds the main character's action A animation, with a duration of 2;

[0093] Time 6 node adds NPC1 playing action B animation, the duration is 2;

[0094] The time 7 node adds NPC2 playing action C animation, the time length is 2;

[0095] Then the effect of playing when the timeline is blocked is:

[0096] The entry animation starts playing at time 0 and plays for 5 time units;

[0097] Wait for the user to click, and the playback time value jumps to 6 seconds;

[0098] The protagonist plays the action A animation, and NPC1 plays the action B animation;

[0099] When the time reaches 7 o'clock, NPC2 plays the action C animation.

[0100] The blocking timeline in the present invention is defined as a timeline that supports blocking conditions. If the blocking condition node is not set, the timeline will operate normally in chronological order; when the blocking condition is set, the playback time stops updating when the playback time is updated to the blocking condition node, and waits until the blocking condition is met before the playback time moves to the start position of the next node to continue playing.

[0101] The definition of the blocking condition in the present invention includes but is not limited to the character arriving at a specified location, the user clicking on the interface, the user interacting with a certain character, etc.

[0102] Step S2, restoring the plot state data in the game plot data, and updating the progress value of the blocked time axis;

[0103] like Figure 5 As shown, the step S2 is further specifically as follows: step S21, inputting plot data, reading the progress value of the blocking time axis from the blocking time axis, reading the plot status data from the storage file, judging whether the plot status data is empty, if not, proceeding to step S22, if yes, creating a new plot status data; and proceeding to step S22;

[0104] Step S22, determine whether the progress value of the blocked time axis is less than the current plot progress value, if yes, proceed to step S24; if no, proceed to step S23;

[0105] Step S23, updating the current plot progress value in the plot status data to the progress value of the blocked time axis, and saving the plot status data to the storage file, the state synchronization is completed, and the process ends;

[0106] Step S24, reading the plot instruction data corresponding to the progress value of the blocked time axis from the plot instruction set in the plot state data, and reading the plot instruction in the plot instruction data;

[0107] Step S25, determine whether the plot instruction has a corresponding execution mode registered, if yes, execute the corresponding execution mode to pass in the plot instruction data and pass in the skip execution process parameter, wait for the execution mode to be completed, and go to step S26; if no, directly go to step S26;

[0108] Step S26, the plot instruction is executed, the progress value of the blocking timeline is updated to the next time node of the blocking timeline, and step S22 is continued.

[0109] Step S3, generating plot status data of all plot nodes according to the blocking time axis, and updating the progress value of the blocking time axis according to the plot test data;

[0110] like Figure 6 As shown, the plot status data of all plot nodes is generated according to the blocking timeline, specifically: input the blocking timeline and the plot status data corresponding to the input blocking timeline, read the progress value of the blocking timeline from the blocking timeline, record the current progress value of the blocking timeline as the initial progress value, judge whether the blocking timeline is executed, if yes, update the progress value of the blocking timeline to the initial progress value, update the current plot progress value of the plot status data to the initial progress value, and end the generation of the plot status data; if no, read the plot status data corresponding to the current progress value from the blocking timeline, read the plot instruction data set in the plot status data, and set the plot instruction data set to the initial progress value. Add the data in the data set to a plot instruction data queue, and determine whether the plot instruction data queue is empty. If so, update the progress value of the blocked timeline to the next node, and continue to determine whether the blocked timeline is completed; if not, read a plot instruction data from the plot instruction data queue, add this plot instruction data to the plot instruction set of the plot status data, and determine whether there are other plot instruction data in the plot instruction data queue. If so, continue to read a plot instruction data from the plot instruction data queue and perform the same operation; if not, update the progress value of the blocked timeline to the next node, and continue to determine whether the blocked timeline is completed.

[0111] like Figure 7 As shown, the updating of the progress value of the blocking time axis according to the plot test data is specifically as follows: Step S31, inputting blocking time axis data, plot state data, and plot test data;

[0112] Step S32, reading the progress value of the blocked time axis from the blocked time axis, reading the plot test progress value from the plot test data, and reading the current plot progress value from the plot status data;

[0113] Step S33, reading the maximum plot progress value and the minimum plot progress value corresponding to the plot instruction data in the plot instruction set from the plot state data;

[0114] Step S34, determine whether the plot test progress value is greater than the maximum plot progress value, if yes, update the plot test progress value to the maximum plot progress value, and proceed to step S35; if no, proceed to step S35;

[0115] Step S35, determine whether the plot test progress value is less than the minimum plot progress value, if yes, update the plot test progress value to the minimum plot progress value, and proceed to step S36; if no, proceed to step S36;

[0116] Step S36, determine whether the plot test progress value is greater than the current plot progress value, if yes, update the progress value of the blocking time axis to the current plot progress value, and proceed to step S37, if no, update the progress value of the blocking time axis to the minimum plot progress value, and proceed to step S37;

[0117] Step S37, updating the current plot progress value in the plot status data to the plot test progress;

[0118] Step S38, determine whether the progress value of the blocked time axis is less than the current plot progress value, if not, update the current plot progress value in the plot state data to the progress value of the blocked time axis, save the plot state data to the storage file, update is completed, and end the process; if yes, read the plot instruction data corresponding to the progress value of the blocked time axis from the plot instruction set of the plot state data, read the plot instruction in the plot instruction data, and enter step S39;

[0119] Step S39, determine whether the plot instruction has a corresponding execution mode registered, if yes, execute the corresponding execution mode to pass in the plot instruction data and pass in the skip execution process parameter, wait for the execution mode to be completed, and go to step S40; if no, directly go to step S40;

[0120] Step S40: After the plot instruction is executed, the progress value of the blocking timeline is updated to the next time node on the blocking timeline.

[0121] Step S4, simulating user interaction to start plot playback, distributing plot status data corresponding to the blocked time axis according to the blocked time axis; judging whether the distribution of the plot status data corresponding to the blocked time axis is completed; if yes, stop and end the process; if no, proceed to step S5;

[0122] like Figure 8 As shown, the simulated user interaction starts the plot playback, specifically: input the plot status data corresponding to the blocked timeline, read the progress value of the blocked timeline from the plot status data of the blocked timeline, read the blocking condition of the time node corresponding to the progress value of the blocked timeline from the plot status data corresponding to the blocked timeline, judge whether the blocking condition is empty, if not, set the judgment result of the corresponding condition to true according to the blocking condition, and continue to play the plot, if yes, continue to play the plot; the simulated user interaction is completed.

[0123] like Fig. 9 As shown, the step S4 further specifically includes:

[0124] Step S41, inputting the plot status data corresponding to the blocking time axis;

[0125] Step S42, reading the progress value of the blocking time axis;

[0126] Step S43, judging whether the blocking timeline is executed, if yes, the distribution of the plot status data corresponding to the blocking timeline is completed and the process is ended, if no, the plot status data of the current progress value is read;

[0127] Step S44, reading the plot instruction data set in the plot state data, and adding the data in the plot instruction data set to a plot instruction data queue;

[0128] Step S45, determine whether the plot instruction data queue is empty, if yes, update the blocking time axis progress value to the next node and execute step S43, if no, execute step S46;

[0129] Step S46, reading a plot instruction data from the plot instruction data queue, and executing the plot instruction data;

[0130] Step S47, determine whether there are other plot instruction data in the plot instruction data queue, if yes, execute step S46; if not, update the blocking time axis progress value to the next node, and execute step S43.

[0131] Step S5, executing the scenario instructions in the scenario status data, continuing to distribute the scenario status data corresponding to the blocking time axis according to the blocking time axis, and waiting for the execution of the scenario instructions to be completed.

[0132] like Fig.10 As shown, step S5 further specifically includes: step S51, inputting plot instruction data, and reading plot instructions in the plot instruction data;

[0133] Step S52: determine whether the plot instruction has a corresponding execution mode registered. If not, the plot instruction is executed and the process ends. If yes, proceed to step S53.

[0134] Step S53, executing the corresponding execution mode to input the plot instruction data;

[0135] Step S54, determine whether to execute the execution mode synchronously; if not, wait for the asynchronous execution mode to be completed and return an execution success event; the plot instruction is executed; if yes, return an execution success event and the plot instruction is executed.

[0136] The definition of plot instructions in the present invention includes but is not limited to displaying characters, setting the position, rotation or size of characters, playing character actions, character pathfinding, character dressing, playing character special effects, moving, zooming or shaking the camera lens, plot UI display, etc.

[0137] The definition of plot data in the present invention is a collection of data required for plot interaction. One plot data may contain multiple sub-plot data. The data recorded in the plot data includes but is not limited to plot instructions and their execution parameters, plot node time length, whether the node is blocked, blocking conditions, whether skipping is supported, etc.

[0138] The present invention generates a unified general plot data structure based on the game plot Json data, and then generates the blocking timeline plot data through the data parsing module. When the user starts the plot, the data distribution module distributes the plot data according to the blocking timeline, and the data execution module executes the plot instructions in the plot data to realize a complete game plot playback and interactive control system.

[0139] Plot status data parsing template, this module provides the ability to parse data to generate blocked timeline plot data, realizes parsing unified plot data into plot status data corresponding to the blocked timeline plot, and provides a data source for the data distribution module.

[0140] Data restoration module, which provides the ability to restore plot status data, update the progress value of the blocked timeline, record plot status data, and update plot status data, thereby realizing plot management capabilities such as reading, saving, and applying plot status data.

[0141] The automatic testing module provides the ability to generate plot status data of all plot nodes according to the blocking timeline, update the blocking timeline progress according to the plot test data, and automatically start plot playback by simulating user interaction, so as to realize the fully automatic execution of the process of driving game plot testing.

[0142] The data distribution module provides the ability to distribute plot data according to the blocking timeline, realizes the merging and distribution of plot instruction data sets from the plot data, and promotes the execution of plot instructions.

[0143] The data execution module provides the ability to execute plot instructions, implements the process of executing plot instructions, and applies the data described in the plot instructions to the scene.

[0144] See also Fig.11 As shown, the present invention also provides a system for realizing automatic testing of game plots, the system comprising a plot state data parsing template, a data restoration module, an automatic testing module, a data distribution module, and a data execution module;

[0145] The plot status data parsing template is used to input game plot data and plot test data, parse the game plot data to generate a blocking timeline; the blocking timeline is a timeline that supports blocking conditions, wherein when the blocking condition node is not set in the blocking timeline plot node data, the timeline will run normally in chronological order; when the blocking condition is set, the playback time stops updating when the playback time is updated to the blocking condition node, and waits until the blocking condition is met before the playback time moves to the start position of the next node to continue playing;

[0146] The data restoration module is used to restore the plot state data in the game plot data and update the progress value of the blocked time axis;

[0147] The automatic testing module is used to generate the plot status data of all plot nodes according to the blocking time axis, and update the progress value of the blocking time axis according to the plot test data;

[0148] The data distribution module is used to simulate user interaction to start the plot playback, distribute the plot status data corresponding to the blocked time axis according to the blocked time axis; determine whether the distribution of the plot status data corresponding to the blocked time axis is completed; if yes, stop the end process; if no, directly execute the data execution module;

[0149] The data execution module is used to execute the plot instructions in the plot state data, continue to distribute the plot state data corresponding to the blocked time axis according to the blocked time axis, and wait for the execution of the plot instructions to be completed.

[0150] The analysis of game plot data to generate a blocking timeline is further detailed as follows:

[0151] Step S61, inputting game plot data; the game plot data includes a plurality of sub-plot data, and the data recorded in the game plot data includes plot instructions and their execution methods, plot node time length, whether the node is blocked, blocking conditions, and whether skipping is supported;

[0152] Step S62, creating a blocking timeline;

[0153] Step S63, reading all plot node data in the game plot data; adding all plot node data to a plot node data queue;

[0154] Step S64, determine whether the plot node data queue is empty, if yes, return to the blocked timeline and end the process; if no, proceed to step S65;

[0155] Step S65, read a plot node data from the plot node data queue, add the plot node data to the current node position of the blocking time axis; the current time value of the blocking time axis moves backward to the time value accessed in the plot node data;

[0156] Step S66, determine whether the plot node data records a blocking value, which is the data value corresponding to the blocking condition; if not, proceed to step S67; if yes, add a blocking condition node to the blocking timeline, set the blocking value to the blocking condition recorded in the plot node data; move the current timeline of the blocking timeline backward by a blocking node unit time value, and proceed to step S67;

[0157] Step S67, determine whether there are other plot data nodes in the plot data node queue, if yes, execute step S65; if no, return to the blocked timeline and end the process.

[0158] The congestion timeline includes: the progress value and time node set of the congestion timeline, the time node set is composed of multiple time nodes, each time node includes time length, progress value, and congestion condition; the plot status data includes: the current plot progress value and plot instruction set, the plot instruction set is composed of multiple plot instruction data.

[0159] The implementation of the data restoration module is further specifically as follows: Step S71, input the plot data, read the progress value of the blocking time axis from the blocking time axis, read the plot status data from the storage file, and determine whether the plot status data is empty, if not, proceed to step S72, if yes, create a new plot status data; and proceed to step S72;

[0160] Step S72, determine whether the progress value of the blocked time axis is less than the current plot progress value, if yes, proceed to step S74; if no, proceed to step S73;

[0161] Step S73: update the current plot progress value in the plot status data to the progress value of the blocked time axis, and save the plot status data to the storage file, the state synchronization is completed, and the process ends;

[0162] Step S74, reading the plot instruction data corresponding to the progress value of the blocked time axis from the plot instruction set of the plot state data, and reading the plot instruction in the plot instruction data;

[0163] Step S75, determine whether the plot instruction has a corresponding execution mode registered, if yes, execute the corresponding execution mode to pass in the plot instruction data and pass in the skip execution process parameter, wait for the execution mode to be completed, and go to step S76; if no, directly go to step S76;

[0164] Step S76, the plot instruction is executed, the progress value of the blocking timeline is updated to the next time node of the blocking timeline, and step S72 is continued.

[0165] The plot status data of all plot nodes is generated according to the blocking timeline, specifically: input the blocking timeline and the plot status data corresponding to the input blocking timeline, read the progress value of the blocking timeline from the blocking timeline, record the progress value of the current blocking timeline as the initial progress value, judge whether the blocking timeline is executed, if yes, update the progress value of the blocking timeline as the initial progress value, update the current plot progress value of the plot status data as the initial progress value, and end the generation of the plot status data; if no, read the plot status data corresponding to the current progress value from the blocking timeline, read the plot instruction data set in the plot status data, add the data in the plot instruction data set to a plot instruction data queue, judge whether the plot instruction data queue is empty, if yes, update the progress value of the blocking timeline to the next node, and continue to judge whether the blocking timeline is executed; if no, read a plot instruction data from the plot instruction data queue, add this plot instruction data to the plot instruction set of the plot status data, judge whether there are other plot instruction data in the plot instruction data queue, if yes, continue to read a plot instruction data from the plot instruction data queue to perform the same operation; if no, update the progress value of the blocking timeline to the next node, and continue to judge whether the blocking timeline is executed.

[0166] The updating of the progress value of the blocking time axis according to the plot test data is specifically as follows: Step S81, inputting blocking time axis data, plot state data, and plot test data;

[0167] Step S82, reading the progress value of the blocked time axis from the blocked time axis, reading the scenario test progress value from the scenario test data, and reading the current scenario progress value from the scenario status data;

[0168] Step S83, reading the maximum plot progress value and the minimum plot progress value corresponding to the plot instruction data in the plot instruction set from the plot state data;

[0169] Step S84, determine whether the plot test progress value is greater than the maximum plot progress value, if yes, update the plot test progress value to the maximum plot progress value, and proceed to step S85; if no, proceed to step S85;

[0170] Step S85, determine whether the plot test progress value is less than the minimum plot progress value, if yes, update the plot test progress value to the minimum plot progress value, and proceed to step S86; if no, proceed to step S86;

[0171] Step S86, determine whether the plot test progress value is greater than the current plot progress value, if yes, update the progress value of the blocking time axis to the current plot progress value, and proceed to step S87, if no, update the progress value of the blocking time axis to the minimum plot progress value, and proceed to step S87;

[0172] Step S87, updating the current plot progress value in the plot status data to the plot test progress;

[0173] Step S88, determine whether the progress value of the blocked time axis is less than the current plot progress value, if not, update the current plot progress value in the plot state data to the progress value of the blocked time axis, save the plot state data to the storage file, update is completed, and end the process; if yes, read the plot instruction data corresponding to the progress value of the blocked time axis from the plot instruction set of the plot state data, read the plot instruction in the plot instruction data, and enter step S89;

[0174] Step S89, determine whether the plot instruction has a corresponding execution mode registered, if yes, execute the corresponding execution mode to pass in the plot instruction data and pass in the skip execution process parameter, wait for the execution mode to be completed, and go to step S90; if no, directly go to step S90;

[0175] Step S90: After the plot instruction is executed, the progress value of the blocking timeline is updated to the next time node on the blocking timeline.

[0176] The simulated user interaction to start the plot playback is specifically as follows: input the plot status data corresponding to the blocked timeline, read the progress value of the blocked timeline from the plot status data of the blocked timeline, read the blocking condition of the time node corresponding to the progress value of the blocked timeline from the plot status data corresponding to the blocked timeline, and judge whether the blocking condition is empty. If not, set the judgment result of the corresponding condition to be true according to the blocking condition, and continue to play the plot. If yes, continue to play the plot. The simulated user interaction is completed.

[0177] The implementation of the data distribution module further specifically includes:

[0178] Step S91, inputting the plot status data corresponding to the blocking time axis;

[0179] Step S92, reading the progress value of the blocking time axis;

[0180] Step S93, judging whether the blocking timeline is executed, if yes, the distribution of the plot status data corresponding to the blocking timeline is completed and the process is ended, if no, the plot status data of the current progress value is read;

[0181] Step S94, reading the plot instruction data set in the plot state data, and adding the data in the plot instruction data set to a plot instruction data queue;

[0182] Step S95, determine whether the plot instruction data queue is empty, if yes, update the blocking time axis progress value to the next node and execute step S93, if no, execute step S96;

[0183] Step S96, reading a plot instruction data from the plot instruction data queue, and executing the plot instruction data;

[0184] Step S97, determine whether there are other plot instruction data in the plot instruction data queue, if yes, execute step S96; if not, update the blocking time axis progress value to the next node, and execute step S93.

[0185] The implementation method of the data execution module further specifically includes: step S51, inputting plot instruction data, and reading plot instructions in the plot instruction data;

[0186] Step S52: determine whether the plot instruction has a corresponding execution mode registered. If not, the plot instruction is executed and the process ends. If yes, proceed to step S53.

[0187] Step S53, executing the corresponding execution mode to input the plot instruction data;

[0188] Step S54, determine whether to execute the execution mode synchronously; if not, wait for the asynchronous execution mode to be completed and return an execution success event; the plot instruction is executed; if yes, return an execution success event and the plot instruction is executed.

[0189] The blocking timeline in the present invention is defined as a timeline that supports blocking conditions. If the blocking condition node is not set, the timeline will operate normally in chronological order; when the blocking condition is set, the playback time stops updating when the playback time is updated to the blocking condition node, and waits until the blocking condition is met before the playback time moves to the start position of the next node to continue playing.

[0190] The definition of the blocking condition in the present invention includes but is not limited to the character arriving at a specified location, the user clicking on the interface, the user interacting with a certain character, etc.

[0191] The definition of plot instructions in the present invention includes but is not limited to displaying characters, setting the position, rotation or size of characters, playing character actions, character pathfinding, character dressing, playing character special effects, moving, zooming or shaking the camera lens, plot UI display, etc.

[0192] The definition of plot data in the present invention is a collection of data required for plot interaction. One plot data may contain multiple sub-plot data. The data recorded in the plot data includes but is not limited to plot instructions and their execution parameters, plot node time length, whether the node is blocked, blocking conditions, whether skipping is supported, etc.

[0193] The present invention is applicable to the automatic testing process of all types of game plots, including but not limited to the automatic testing process of game plots in 2D games, the automatic testing process of game plots in 3D games, the automatic testing process of game plots in AR, VR games or applications, and the automatic testing process of game plots in other types of games.

[0194] The above description is only a preferred embodiment of the present invention. All equivalent changes and modifications made according to the scope of the patent application of the present invention should fall within the scope of the present invention.

Claims

1. A method for implementing automatic testing of game plots, characterized in that: The method comprises the following steps: Step S1, inputting game plot data and plot test data, parsing the game plot data to generate a blocking timeline; the blocking timeline is a timeline that supports blocking conditions, wherein when the blocking condition node is not set in the blocking timeline plot node data, the timeline will run normally in chronological order; when the blocking condition is set, the playing time stops updating when the playing time is updated to the blocking condition node, and waits until the blocking condition is met before the playing time moves to the start position of the next node to continue playing; Step S2, restoring the plot state data in the game plot data, and updating the progress value of the blocked time axis; Step S3, generating plot status data of all plot nodes according to the blocking time axis, and updating the progress value of the blocking time axis according to the plot test data; Step S4, simulating user interaction to start plot playback, distributing plot status data corresponding to the blocked time axis according to the blocked time axis; judging whether the distribution of the plot status data corresponding to the blocked time axis is completed; if yes, stop and end the process; if no, proceed to step S5; Step S5, executing the plot instructions in the plot status data, continuing to distribute the plot status data corresponding to the blocking time axis according to the blocking time axis, and waiting for the execution of the plot instructions to be completed; The analysis of game plot data to generate a blocking timeline is further described as follows: Step S11, inputting game plot data; the game plot data includes a plurality of sub-plot data, and the data recorded in the game plot data includes plot instructions and their execution methods, plot node time length, whether the node is blocked, blocking conditions, and whether skipping is supported; Step S12, creating a blocking timeline; Step S13, reading all plot node data in the game plot data; adding all plot node data to a plot node data queue; Step S14, determine whether the plot node data queue is empty, if yes, return to the blocked timeline and end the process; if no, proceed to step S15; Step S15, reading a plot node data from the plot node data queue, and adding the plot node data to the current node position of the blocking time axis; the current time value of the blocking time axis is moved backward to the time value accessed in the plot node data; Step S16, determine whether the plot node data records a blocking value, which is the data value corresponding to the blocking condition; if not, proceed to step S17; if yes, add a blocking condition node in the blocking timeline, set the blocking value to the blocking condition recorded in the plot node data; move the current timeline of the blocking timeline backward by a blocking node unit time value, and proceed to step S17; Step S17, determine whether there are other plot data nodes in the plot data node queue, if yes, execute step S15; if not, return to the blocked timeline and end the process.

2. The method for implementing automatic game plot testing according to claim 1, characterized in that: The congestion timeline includes: the progress value and time node set of the congestion timeline, the time node set is composed of multiple time nodes, each time node includes time length, progress value, and congestion condition; the plot status data includes: the current plot progress value and plot instruction set, the plot instruction set is composed of multiple plot instruction data.

3. The method for implementing automatic game plot testing according to claim 2, characterized in that: The step S2 is further specifically as follows: step S21, inputting plot data, reading the progress value of the blocking time axis from the blocking time axis, reading the plot status data from the storage file, and judging whether the plot status data is empty, if not, proceeding to step S22, if yes, creating a new plot status data; And proceed to step S22; Step S22, determine whether the progress value of the blocked time axis is less than the current plot progress value, if yes, proceed to step S24; No, go to step S23; Step S23, updating the current plot progress value in the plot status data to the progress value of the blocked time axis, and saving the plot status data to the storage file, the state synchronization is completed, and the process ends; Step S24, reading the plot instruction data corresponding to the progress value of the blocked time axis from the plot instruction set in the plot state data, and reading the plot instruction in the plot instruction data; Step S25, determine whether the plot instruction has a corresponding execution mode registered, if yes, execute the corresponding execution mode to pass in the plot instruction data and pass in the skip execution process parameter, wait for the execution mode to be completed, and go to step S26; if no, directly go to step S26; Step S26, the plot instruction is executed, the progress value of the blocking timeline is updated to the next time node of the blocking timeline, and step S22 is continued.

4. The method for implementing automatic game plot testing according to claim 2, characterized in that: The plot status data of all plot nodes is generated according to the blocking timeline, specifically: input the blocking timeline and the plot status data corresponding to the input blocking timeline, read the progress value of the blocking timeline from the blocking timeline, record the progress value of the current blocking timeline as the initial progress value, judge whether the blocking timeline is executed, if yes, update the progress value of the blocking timeline to the initial progress value, update the current plot progress value of the plot status data to the initial progress value, and end the generation of the plot status data; if no, read the plot status data corresponding to the current progress value from the blocking timeline, read the plot instruction data set in the plot status data, add the data in the plot instruction data set to a plot instruction data queue, judge whether the plot instruction data queue is empty, if yes, update the progress value of the blocking timeline to the next node, and continue to judge whether the blocking timeline is executed; No, read a plot instruction data from the plot instruction data queue, add this plot instruction data to the plot instruction set of the plot status data, and determine whether there are other plot instruction data in the plot instruction data queue. If yes, continue to read a plot instruction data from the plot instruction data queue and perform the same operation; If not, update the progress value of the blocking timeline to the next node, and continue to determine whether the blocking timeline is completed.

5. The method for implementing automatic game plot testing according to claim 2, characterized in that: The updating of the progress value of the blocking time axis according to the plot test data is specifically as follows: Step S31, inputting blocking time axis data, plot state data, and plot test data; Step S32, reading the progress value of the blocked time axis from the blocked time axis, reading the plot test progress value from the plot test data, and reading the current plot progress value from the plot status data; Step S33, reading the maximum plot progress value and the minimum plot progress value corresponding to the plot instruction data in the plot instruction set from the plot state data; Step S34, determine whether the plot test progress value is greater than the maximum plot progress value, if yes, update the plot test progress value to the maximum plot progress value, and proceed to step S35; if no, proceed to step S35; Step S35, determine whether the plot test progress value is less than the minimum plot progress value, if yes, update the plot test progress value to the minimum plot progress value, and proceed to step S36; if no, proceed to step S36; Step S36, determine whether the plot test progress value is greater than the current plot progress value, if yes, update the progress value of the blocking time axis to the current plot progress value, and proceed to step S37, if no, update the progress value of the blocking time axis to the minimum plot progress value, and proceed to step S37; Step S37, updating the current plot progress value in the plot status data to the plot test progress; Step S38, determine whether the progress value of the blocked time axis is less than the current plot progress value, if not, update the current plot progress value in the plot state data to the progress value of the blocked time axis, save the plot state data to the storage file, update is completed, and end the process; if yes, read the plot instruction data corresponding to the progress value of the blocked time axis from the plot instruction set of the plot state data, read the plot instruction in the plot instruction data, and enter step S39; Step S39, determine whether the plot instruction has a corresponding execution mode registered, if yes, execute the corresponding execution mode to pass in the plot instruction data and pass in the skip execution process parameter, wait for the execution mode to be completed, and enter step S40; No, directly go to step S40; Step S40: After the plot instruction is executed, the progress value of the blocking timeline is updated to the next time node on the blocking timeline.

6. The method for implementing automatic game plot testing according to claim 2, characterized in that: The simulated user interaction to start the plot playback is specifically as follows: inputting the plot status data corresponding to the blocked timeline, reading the progress value of the blocked timeline from the plot status data of the blocked timeline, reading the blocking condition of the time node corresponding to the progress value of the blocked timeline from the plot status data corresponding to the blocked timeline, judging whether the blocking condition is empty, if not, setting the corresponding condition according to the blocking condition to be true, and continuing to play the plot, if yes, continuing to play the plot; Simulating user interaction is done.

7. The method for implementing automatic game plot testing according to claim 3, characterized in that: The step S4 further specifically includes: Step S41, inputting the plot status data corresponding to the blocking time axis; Step S42, reading the progress value of the blocking time axis; Step S43, judging whether the blocking timeline is executed, if yes, the distribution of the plot status data corresponding to the blocking timeline is completed and the process is ended, if no, the plot status data of the current progress value is read; Step S44, reading the plot instruction data set in the plot state data, and adding the data in the plot instruction data set to a plot instruction data queue; Step S45, determine whether the plot instruction data queue is empty, if yes, update the blocking time axis progress value to the next node and execute step S43, if no, execute step S46; Step S46, reading a plot instruction data from the plot instruction data queue, and executing the plot instruction data; Step S47, determine whether there are other plot instruction data in the plot instruction data queue, if yes, execute step S46; if not, update the blocking time axis progress value to the next node, and execute step S43.

8. The method for implementing automatic game plot testing according to claim 3, characterized in that: Step S5 further specifically includes: Step S51, inputting plot instruction data, and reading plot instructions in the plot instruction data; Step S52: determine whether the plot instruction has a corresponding execution mode registered. If not, the plot instruction is executed and the process ends. If yes, proceed to step S53. Step S53, executing the corresponding execution mode to input the plot instruction data; Step S54, determine whether to execute the corresponding execution mode synchronously; if not, wait for the asynchronous execution mode to be completed and return an execution success event; the plot instruction is executed; if yes, return an execution success event and the plot instruction is executed.

9. A system for implementing automatic testing of game plots, characterized in that: The system includes a plot state data parsing template, a data restoration module, an automatic testing module, a data distribution module, and a data execution module; The plot status data parsing template is used to input game plot data and plot test data, parse the game plot data to generate a blocking timeline; the blocking timeline is a timeline that supports blocking conditions, wherein when the blocking condition node is not set in the blocking timeline plot node data, the timeline will run normally in chronological order; when the blocking condition is set, the playback time stops updating when the playback time is updated to the blocking condition node, and waits until the blocking condition is met before the playback time moves to the start position of the next node to continue playing; The data restoration module is used to restore the plot state data in the game plot data and update the progress value of the blocked time axis; The automatic testing module is used to generate the plot status data of all plot nodes according to the blocking time axis, and update the progress value of the blocking time axis according to the plot test data; The data distribution module is used to simulate user interaction to start the plot playback, distribute the plot status data corresponding to the blocked time axis according to the blocked time axis; determine whether the distribution of the plot status data corresponding to the blocked time axis is completed; if yes, stop the end process; if no, directly execute the data execution module; The data execution module is used to execute the plot instructions in the plot state data, continue to distribute the plot state data corresponding to the blocked time axis according to the blocked time axis, and wait for the execution of the plot instructions to be completed; The analysis of game plot data to generate a blocking timeline is further described as follows: Step S61, inputting game plot data; the game plot data includes a plurality of sub-plot data, and the data recorded in the game plot data includes plot instructions and their execution methods, plot node time length, whether the node is blocked, blocking conditions, and whether skipping is supported; Step S62, creating a blocking timeline; Step S63, reading all plot node data in the game plot data; adding all plot node data to a plot node data queue; Step S64, determine whether the plot node data queue is empty, if yes, return to the blocked timeline and end the process; if no, proceed to step S65; Step S65, read a plot node data from the plot node data queue, add the plot node data to the current node position of the blocking time axis; the current time value of the blocking time axis moves backward to the time value accessed in the plot node data; Step S66, determine whether the plot node data records a blocking value, which is the data value corresponding to the blocking condition; if not, proceed to step S67; if yes, add a blocking condition node to the blocking timeline, set the blocking value to the blocking condition recorded in the plot node data; move the current timeline of the blocking timeline backward by a blocking node unit time value, and proceed to step S67; Step S67, determine whether there are other plot data nodes in the plot data node queue, if yes, execute step S65; if no, return to the blocked timeline and end the process.

10. A system for implementing automatic game plot testing according to claim 9, characterized in that: The congestion timeline includes: the progress value and time node set of the congestion timeline, the time node set is composed of multiple time nodes, each time node includes time length, progress value, and congestion condition; the plot status data includes: the current plot progress value and plot instruction set, the plot instruction set is composed of multiple plot instruction data.

11. A system for implementing automatic game plot testing according to claim 10, characterized in that: The implementation of the data restoration module is further specifically as follows: Step S71, input the plot data, read the progress value of the blocking time axis from the blocking time axis, read the plot status data from the storage file, and determine whether the plot status data is empty, if not, proceed to step S72, if yes, create a new plot status data; and proceed to step S72; Step S72, determine whether the progress value of the blocked time axis is less than the current plot progress value, if yes, proceed to step S74; if no, proceed to step S73; Step S73: update the current plot progress value in the plot status data to the progress value of the blocked time axis, and save the plot status data to the storage file, the state synchronization is completed, and the process ends; Step S74, reading the plot instruction data corresponding to the progress value of the blocked time axis from the plot instruction set of the plot state data, and reading the plot instruction in the plot instruction data; Step S75, determine whether the plot instruction has a corresponding execution mode registered, if yes, execute the corresponding execution mode to pass in the plot instruction data and pass in the skip execution process parameter, wait for the execution mode to be completed, and go to step S76; if no, directly go to step S76; Step S76, the plot instruction is executed, the progress value of the blocking timeline is updated to the next time node of the blocking timeline, and step S72 is continued.

12. A system for implementing automatic game plot testing according to claim 10, characterized in that: The plot status data of all plot nodes is generated according to the blocking timeline, specifically: input the blocking timeline and the plot status data corresponding to the input blocking timeline, read the progress value of the blocking timeline from the blocking timeline, record the progress value of the current blocking timeline as the initial progress value, judge whether the blocking timeline is executed, if yes, update the progress value of the blocking timeline to the initial progress value, update the current plot progress value of the plot status data to the initial progress value, and end the generation of the plot status data; if no, read the plot status data corresponding to the current progress value from the blocking timeline, read the plot instruction data set in the plot status data, add the data in the plot instruction data set to a plot instruction data queue, judge whether the plot instruction data queue is empty, if yes, update the progress value of the blocking timeline to the next node, and continue to judge whether the blocking timeline is executed; No, read a plot instruction data from the plot instruction data queue, add this plot instruction data to the plot instruction set of the plot status data, and determine whether there are other plot instruction data in the plot instruction data queue. If yes, continue to read a plot instruction data from the plot instruction data queue and perform the same operation; If not, update the progress value of the blocking timeline to the next node, and continue to determine whether the blocking timeline is completed.

13. A system for implementing automatic game plot testing according to claim 10, characterized in that: The updating of the progress value of the blocking time axis according to the plot test data is specifically as follows: Step S81, inputting blocking time axis data, plot state data, and plot test data; Step S82, reading the progress value of the blocked time axis from the blocked time axis, reading the scenario test progress value from the scenario test data, and reading the current scenario progress value from the scenario status data; Step S83, reading the maximum plot progress value and the minimum plot progress value corresponding to the plot instruction data in the plot instruction set from the plot state data; Step S84, determine whether the plot test progress value is greater than the maximum plot progress value, if yes, update the plot test progress value to the maximum plot progress value, and proceed to step S85; if no, proceed to step S85; Step S85, determine whether the plot test progress value is less than the minimum plot progress value, if yes, update the plot test progress value to the minimum plot progress value, and proceed to step S86; if no, proceed to step S86; Step S86, determine whether the plot test progress value is greater than the current plot progress value, if yes, update the progress value of the blocking time axis to the current plot progress value, and proceed to step S87, if no, update the progress value of the blocking time axis to the minimum plot progress value, and proceed to step S87; Step S87, updating the current plot progress value in the plot status data to the plot test progress; Step S88, determine whether the progress value of the blocked time axis is less than the current plot progress value, if not, update the current plot progress value in the plot state data to the progress value of the blocked time axis, save the plot state data to the storage file, update is completed, and end the process; if yes, read the plot instruction data corresponding to the progress value of the blocked time axis from the plot instruction set of the plot state data, read the plot instruction in the plot instruction data, and enter step S89; Step S89, determine whether the plot instruction has a corresponding execution mode registered, if yes, execute the corresponding execution mode to pass in the plot instruction data and pass in the skip execution process parameter, wait for the execution mode to be completed, and go to step S90; if no, directly go to step S90; Step S90: After the plot instruction is executed, the progress value of the blocking timeline is updated to the next time node on the blocking timeline.

14. A system for implementing automatic game plot testing according to claim 10, characterized in that: The implementation of the data distribution module further specifically includes: Step S91, inputting the plot status data corresponding to the blocking time axis; Step S92, reading the progress value of the blocking time axis; Step S93, judging whether the blocking timeline is executed, if yes, the distribution of the plot status data corresponding to the blocking timeline is completed and the process is ended, if no, the plot status data of the current progress value is read; Step S94, reading the plot instruction data set in the plot state data, and adding the data in the plot instruction data set to a plot instruction data queue; Step S95, determine whether the plot instruction data queue is empty, if yes, update the blocking time axis progress value to the next node and execute step S93, if no, execute step S96; Step S96, reading a plot instruction data from the plot instruction data queue, and executing the plot instruction data; Step S97, determine whether there are other plot instruction data in the plot instruction data queue, if yes, execute step S96; if not, update the blocking time axis progress value to the next node, and execute step S93.

Citation Information

Patent Citations

  • Plot command executing method and device

    CN103530087A

  • Game plot display method and device, electronic equipment and storage medium

    CN110898429A

  • Game plot dialogue playing method and device, storage medium and electronic equipment

    CN112631814A

  • Game program, character control program, method, and information processing device

    JP2019205645A