Material generation methods, equipment, media and products

Generating game materials through automated test cases, the problem of difficult environment reproduction in game localized translation is solved, the translation accuracy and language quality assurance efficiency are improved, and the risk of game defects is reduced.

CN119759769APending Publication Date: 2025-04-04SHANGHAI JIAOZHAI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411816162.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-11
Publication Date
2025-04-04

AI Technical Summary

Technical Problem

During the localized translation process of game, it is difficult for the source language text and translation auxiliary information to fully reproduce the vivid translation environment, resulting in an increase in translation errors, an increase in the workload of language quality assurance, and the probability of defects after the game is launched increases.

Method used

Generate game materials through automated test cases, including display interfaces and positioning logos, ensuring the matching relationship between text content and positioning logos, and thus generating an accurate translation environment.

Benefits of technology

It improves the accuracy of translation, reduces the workload of language quality assurance, and reduces the probability of defects after the game is launched.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119759769A_ABST
    Figure CN119759769A_ABST
Patent Text Reader

Abstract

The embodiments of the present application relate to the field of computer technology, and disclose a material generation method, device, medium and product. The method includes: determining a first display interface according to a first automated test case; the first display interface carries the text content of a target game; determining a second display interface according to a second automated test case; the second display interface carries a positioning identifier of the target game, and the positioning identifier is used to locate the text content; generating materials for the target game according to the text content and the positioning identifier; the materials include the first display interface and the second display interface, and there is a matching relationship between the text content in the first display interface and the positioning identifier in the second display interface. It can at least be used to solve the technical problems of easy translation errors, increased workload in the language quality assurance link, and increased probability of defects after the game goes online.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a material generation method, device, medium and product. Background Art

[0002] In traditional localization work, translators usually need to receive the source language text and related translation assistance information, and then imagine the actual language environment based on the context of the text and translate accordingly. After the translation is completed, the language quality assurance personnel need to conduct language quality assurance testing on the target language translation in the game to ensure that the translation can be displayed and function normally in the game.

[0003] However, the inventor has at least found that: in the process of game localization translation, the presentation of source language text and translation auxiliary information is mainly provided in text form. Since different text display environments have their own characteristics and limitations, the language expression will also change accordingly. Therefore, it is difficult to fully reproduce a vivid translation environment by relying solely on the original text and simple background descriptions. Especially for those modules that are more scattered in the game, in addition to the text to be translated, it is difficult to provide sufficient translation auxiliary information within a limited time. Moreover, the texts to be translated that the translator sees in the editing file are arranged in order, but the actual presentation of these texts in the game may be richer and more three-dimensional, which results in a different order of text and game scene experience.

[0004] In summary, it is difficult for translators to accurately grasp the meaning of the text, which can easily lead to misunderstandings and translation errors. This situation increases the workload of the language quality assurance link, and at the same time, due to limited inspection time, it also increases the probability of defects after the game is launched. Summary of the invention

[0005] One purpose of the present application is to provide a material generation method, device, medium and product, at least to solve the technical problems in the related technology that are prone to translation errors, increase the workload of the language quality assurance link and increase the probability of defects after the game is launched.

[0006] To achieve the above objectives, some embodiments of the present application provide the following aspects:

[0007] In a first aspect, some embodiments of the present application also provide a method for generating materials, the method comprising: determining a first display interface according to a first automated test case; the first display interface carries the text content of a target game; determining a second display interface according to a second automated test case; the second display interface carries a positioning identifier of the target game, and the positioning identifier is used to locate the text content; generating materials of the target game according to the text content and the positioning identifier; the materials include the first display interface and the second display interface, and there is a matching relationship between the text content in the first display interface and the positioning identifier in the second display interface.

[0008] In a second aspect, some embodiments of the present application further provide an electronic device, comprising: one or more processors; and a memory storing computer program instructions, wherein the computer program instructions, when executed, cause the processor to perform the steps of the method described above.

[0009] In a third aspect, some embodiments of the present application further provide a computer-readable medium having computer program instructions stored thereon, wherein the computer program instructions can be executed by a processor to implement the method as described above.

[0010] In a fourth aspect, some embodiments of the present application further provide a computer program product, comprising a computer program / instruction, which implements the steps of the method described above when executed by a processor.

[0011] Optionally, generating the target game materials according to the text content and the positioning identifier includes: determining the matching relationship between the text content and the positioning identifier according to first target information and second target information; the first target information is used to characterize information about synchronization between the text content and the process of the target game; the second target information is used to characterize information about synchronization between the positioning identifier and the process of the target game; and generating the target game materials according to the matching relationship. A specific implementation method for generating the target game materials according to the text content and the positioning identifier is provided, and a series of alignment rules are provided in the implementation method, including taking into account the alignment of the text positioning identifier and the text content with the target game respectively, so that the accuracy of the alignment between the positioning identifier and the text content can be ensured.

[0012] Optionally, the first target information includes at least one of the following: the first text panel position, the first text panel name, the first panel start frame and the first use case start frame; the first text panel position is used to characterize the specific position of the text panel in the game interface; the first text panel name is used to characterize the specific name of the text panel in the game interface; the first panel start frame is used to characterize the frame number when the text panel appears; the first use case start frame is used to characterize the frame number when the first automated test case is started. Here, a specific content of the first target information is provided.

[0013] Optionally, the second target information includes at least one of the following: the second text panel position, the second text panel name, the second panel start frame and the second use case start frame; the second text panel position is used to characterize the specific position of the text panel in the game interface; the second text panel name is used to characterize the specific name of the text panel in the game interface; the second panel start frame is used to characterize the frame number when the text panel appears; the second use case start frame is used to characterize the frame number when the second automated test case is started. Here, a specific content of the second target information is provided.

[0014] Optionally, determining the matching relationship between the text content and the positioning identifier according to the first target information and the second target information includes: determining a first matching result according to the first target information and the second target information; determining a second matching result according to the text content and the positioning identifier; and determining the matching relationship between the text content and the positioning identifier according to the first matching result and the second matching result. A specific implementation method for determining the matching relationship between the text content and the positioning identifier according to the first target information and the second target information is provided.

[0015] Optionally, determining the second matching result according to the text content and the positioning identifier includes: determining the second matching result by querying whether the text content and the positioning identifier match according to the numerical warehouse; wherein the numerical warehouse is used to record the matching relationship between the text content and the positioning identifier. Here, a specific implementation method for determining the second matching result according to the text content and the positioning identifier is provided by using a pioneering custom numerical warehouse and determining whether the text content and the Text ID match according to the numerical warehouse.

[0016] Optionally, the first matching result is determined according to the first target information and the second target information, including: determining the first type of matching result according to the first text panel position and the second text panel position; and / or determining the second type of matching result according to the first text panel name and the second text panel name; and / or determining the third type of matching result according to the first panel start frame, the first use case start frame, and the second panel start frame and the second use case start frame; the first matching result includes at least one of the first type of matching result, the second type of matching result and the third type of matching result; correspondingly, the matching relationship between the text content and the positioning identifier is determined according to the first matching result and the second matching result, specifically: determining the matching relationship between the text content and the positioning identifier according to at least one of the first type of matching result, the second type of matching result and the third type of matching result and the second matching result. A specific implementation method for determining the first matching result according to the first target information and the second target information is provided, in which the necessary context and parameter information are taken into account, so that it can be accurately synchronized with the process of the display interface of the target game, and the accuracy and efficiency of alignment are improved.

[0017] Optionally, determining the third type of matching result according to the first panel start frame, the first use case start frame, and the second panel start frame and the second use case start frame includes: determining a first difference according to the first panel start frame and the first use case start frame; determining a second difference according to the second panel start frame and the second use case start frame; and determining the third type of matching result according to the first difference and the second difference. In this way, a specific implementation method for determining the third type of matching result according to the first panel start frame, the first use case start frame, and the second panel start frame and the second use case start frame is provided.

[0018] Optionally, determining the third type of matching result based on the first difference and the second difference includes: determining a deviation value between the first difference and the second difference; determining the third type of matching result based on the deviation value and a preset range; wherein the preset range is determined based on the number of frames per second. Here, considering that the freeze in the game operation and the execution delay of the test case may bring some randomness, the process of determining the third type of matching result is optimized. The improved scheme has a certain flexibility and can adapt to minor changes that may occur in actual operations.

[0019] Optionally, the method further includes: switching the content displayed on the first display interface and / or the second display interface between the positioning mark and the text content according to a switch set based on the material. In this way, by switching the content displayed on the first display interface and / or the second display interface between the positioning mark and the text content according to a switch set based on the material, it is convenient for relevant personnel to control the opening or closing of the switch according to actual needs, so as to collect the required content.

[0020] Compared with the related art, the scheme provided in the embodiment of the present application provides a method for generating materials, which can efficiently generate materials of the text content of the game. Specifically, according to the first automated test case, the first display interface is determined; the first display interface carries the text content of the target game, and according to the second automated test case, the second display interface is determined; the second display interface carries the positioning mark of the target game, and the positioning mark is used to locate the text content, and then the material of the target game is generated according to the text content and the positioning mark; the material includes the first display interface and the second display interface, and the text content in the first display interface and the positioning mark in the second display interface have a matching relationship. It can be seen that in this application, by using automated test cases, the positioning mark and text content of the text appearing in the execution process can be captured while recording the game module video. Then, the positioning mark and text content are matched and aligned with the position in the video, and their exact positions in the video are recorded. In this way, the translator can accurately grasp the meaning of the text content, so as to achieve the purpose of avoiding the deviation in understanding, improve the accuracy of translation, and thus reduce the workload of the language quality assurance link, and reduce the probability of defects after the game goes online. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.

[0022] Figure 1 An exemplary flow chart of a method for generating a material according to some embodiments of the present application;

[0023] Figure 2 Another exemplary flow chart of a method for generating a material according to some embodiments of the present application;

[0024] Figure 3 and Figure 4An exemplary schematic diagram showing that the text content in the first display interface and the positioning mark in the second display interface match each other in a material generation method provided according to some embodiments of the present application;

[0025] Figure 5 An exemplary schematic diagram of finding a text display environment and context based on a positioning identifier in a material generation method provided according to some embodiments of the present application;

[0026] Figure 6 This is an exemplary flow chart of step S103 in a material generation method provided according to some embodiments of the present application;

[0027] Figure 7 This is a schematic diagram of an exemplary structure of an electronic device provided according to some embodiments of the present application. DETAILED DESCRIPTION

[0028] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0029] The following terms are used in this article.

[0030] Automated testing: Use tools to generate or manually write automated test cases, and analyze the running results of the test cases to confirm whether there are defects in the product version to be tested.

[0031] Localization: In the process of product internationalization, the production, sales and other links of the product are organized and adjusted according to the language requirements of a specific country or region to make them meet the market needs of a specific country or region.

[0032] Text to be translated: Text content in the product that is written in the source language (such as Simplified Chinese) and needs to be translated.

[0033] TextID: In the background program of the game product, each text corresponds to a unique identifier ID. The staff can use the TextID to locate the specific location of the text display in the game. For example, the test found that the plot dialogue between character A and character B has logical flaws. The staff can use the TextID to accurately locate the corresponding text content in the game, and modify it efficiently to ensure the continuity of the new version of the plot; for example, players feedback that the reward prompts on the settlement interface are obscure. The staff can use the TextID to quickly lock the text location and re-edit it to make the reward rules clearly presented and optimize the player experience.

[0034] Translation auxiliary information: In order to ensure that the translation adapts to the text presentation environment as accurately as possible, reference information will be provided to the translator during the translation process. This reference information includes the speaker's personality, speaking time, scene, emotions, etc. for dialogue texts, as well as the interface structure of functional and instructive texts.

[0035] Language quality assurance, or LQA for short, is an important part of the game localization process. In this part, after the text to be translated is translated and integrated into the game scene, the language quality assurance personnel will enter the test server to perform quality inspection and guarantee on the correctness of the text application in the game scene. The main work content includes running different modules of the game in the target language, testing whether the target language can meet the normal play needs of players, whether it is consistent with the performance in the game, whether there are display problems, and whether there are errors in meaning or political and cultural risks.

[0036] Smoke test cases, also known as smoke test cases in English, usually refer to a series of quick, basic tests performed during the software development process, especially after a new version is released or updated. These test cases are designed to confirm whether the core functions of the software are working properly and whether the software is stable enough for more in-depth testing. If the smoke test fails, it usually means that there are serious problems with the software, which may need to be fixed before more detailed testing can continue.

[0037] Game modules are reusable software components used to build video games.

[0038] First embodiment

[0039] The first embodiment of the present application relates to a method for generating a material. Figure 1 As shown, the method may include the following steps:

[0040] Step S101, determining a first display interface according to a first automated test case; the first display interface carries text content of a target game;

[0041] Step S102, determining a second display interface according to a second automated test case; the second display interface carries a location identifier of the target game, and the location identifier is used to locate the text content;

[0042] Step S103, generating materials of the target game according to the text content and the positioning mark; the materials include the first display interface and the second display interface, and there is a matching relationship between the text content in the first display interface and the positioning mark in the second display interface.

[0043] Exemplarily, the material generation method can be applied to a material generation system. The above steps are described in detail below.

[0044] For step S101 and step S102, specifically, in some examples, see Figure 2 As shown, when the localization department needs to collect new materials, the relevant personnel can directly create a collection task based on the game module of the target game. Subsequently, the material generation pipeline can trigger the corresponding automated test case. Specifically, the text content that appears during the execution process can be captured while recording the game module video through the first automated test case, and the positioning mark that appears during the execution process can be captured while recording the game module video through the second automated test case.

[0045] Optionally, the positioning identifier may be, but is not limited to, a Text ID. In some examples, the positioning identifier may also be other types of elements, such as a label, etc. All elements that have the function of locating the text content are acceptable, and this application does not make any specific limitations on this.

[0046] Exemplarily, the video recorded according to the first automated test case is the first video, and the first video includes a first display interface; the video recorded according to the second automated test case is the second video, and the second video includes a second display interface. Figure 3 and Figure 4 As shown, Figure 3 is an exemplary effect diagram of the text content in the first display interface determined by the first automated test case; see Figure 4 The figure shows an exemplary effect diagram of the Text ID in the second display interface video determined by the second automated test case.

[0047] It should be noted that the first automated test case and the second automated test case are independent of each other. In the same acquisition task, the first automated test case and the second automated test case test the same content. Exemplarily, the first automated test case and the second automated test case can be but not limited to: smoke test cases, functional test cases, performance test cases, etc., and the embodiments of the present application do not specifically limit this.

[0048] Regarding step S103, specifically, in some examples, after the first automated test case and the second automated test case are executed, the system can perform data integration processing based on time on the text content in the first display interface and the location identifier in the second display interface. Thus, a material collection task is completed and the material of the target game is generated; the material may include the first display interface and the second display interface, such as Figure 3 and Figure 4 As shown, there is a matching relationship between the text content in the first display interface and the positioning mark in the second display interface.

[0049] The materials refer to the text content that needs to be translated into different languages, as well as the auxiliary information and resources related to these texts. It can be understood that the materials are a key component in the game localization process, which can ensure that the game content can adapt to players with different languages ​​and cultural backgrounds.

[0050] Optionally, in some examples, combined Figure 2 As shown, after completing the above-mentioned material collection task and before generating the materials of the target game, the collection results of the collection task can also be reviewed by relevant personnel, and uploaded to the preset platform after the review and confirmation by the relevant personnel. The preset platform further reviews and organizes the information uploaded by the relevant personnel to obtain the materials of the target game for subsequent use.

[0051] Optionally, in some embodiments, the method is specifically applied to a dynamic text panel.

[0052] It can be understood that in the related art, in order to meet the different text content display requirements in the target game, the text panel storage script information mainly includes static text panel and dynamic text panel. Here, the text panel refers to a control that can support filling in text. In other words, the text panel is a container control that is used to organize and contain other controls. Figure 3 and Figure 4 , showing three text panels respectively.

[0053] Among them, the static text panel is bound to its corresponding positioning identifier when displayed. That is to say, after the static text panel loads the text content, the positioning identifier and text content mounted on the static text panel can be accessed at any time. It can be seen that the text content displayed by the static text panel is completely determined by the positioning identifier, which is not affected by the change of code logic, and the stability of the display result can be guaranteed, but it is also impossible to perform secondary processing on the text content to meet the richer display requirements. Therefore, the static text panel is usually used for UI components with relatively single display forms such as buttons and drop-down menus. In order to overcome the limitations of the static text panel, dynamic text panels are more used in games. Among them, the dynamic text panel does not directly mount the positioning identifier, but the developer directly passes the text content to be displayed to the text panel after the text content processing is completed. After the positioning identifier is resolved into text content, the text content will no longer contain the positioning identifier. Therefore, when the final text content is passed to the text panel, the positioning identifier used can no longer be traced. This leads to the difficulty of confirming the positioning identifier used by the dynamic text panel.

[0054] In summary, the static text panel is suitable for UI components that require stable display, while the dynamic text panel provides greater flexibility, but this sacrifices the traceability of the positioning mark. The technical solution provided in the embodiment of the present application, for the dynamic text panel, is intended to solve the technical problem that the dynamic text panel lacks the traceability of the positioning mark.

[0055] In other words, when the game is running normally, although each text content corresponds to a unique positioning identifier, the existing technical means do not support directly tracing the positioning identifier corresponding to the text content from the text content that has been displayed on the game interface. In other words, if the player sees a piece of text content on the game interface, the existing technical means cannot directly tell the player what the positioning identifier of the text content is. In short, the existing technology cannot reversely locate from the text content to the corresponding positioning identifier, which results in the related technology being unable to collect materials containing the associated information of the text content and the positioning identifier, and thus unable to provide sufficiently accurate translation auxiliary information for localization.

[0056] It is not difficult to find that compared with the related art, the scheme provided in the embodiment of the present application provides a method for generating materials, which can efficiently generate materials of the text content of the game. Specifically, according to the first automated test case, the first display interface is determined; the first display interface carries the text content of the target game, and according to the second automated test case, the second display interface is determined; the second display interface carries the positioning mark of the target game, and the positioning mark is used to locate the text content, and then according to the text content and the positioning mark, the material of the target game is generated; the material includes the first display interface and the second display interface, and the text content in the first display interface and the positioning mark in the second display interface have a matching relationship. It can be seen that in this application, by using automated test cases, the positioning mark and text content of the text appearing during the execution process can be captured while recording the game module video. Then, the positioning mark and text content are matched and aligned with the position in the video, and their exact positions in the video are recorded. In this way, by adding the visual presentation of the text content in the actual scene, reproducing the intuitive scene pictures and clear sequential logic, translators can accurately grasp the meaning of the text content, thereby avoiding the purpose of misunderstanding, improving the accuracy of translation, and thus reducing the workload of the language quality assurance link and reducing the probability of defects after the game is launched.

[0057] Furthermore, after the development of specific functions or content parts in the game is completed, relevant personnel can present the text content and positioning marks to be translated to localized translators and language quality assurance personnel in the form of actual game running effects in a short period of time through screen recording, thereby greatly improving the accuracy of translation and the efficiency of localization work. For example, in traditional localization work, translators can only translate by imagining the display environment of the text based on the source language text and translation auxiliary information. Through the technical solution provided by this application, when translators translate the story line of a certain plot, they can quickly view the complete display of the story line in the game, including the gender and age of the NPC, the environment and scene where the dialogue takes place, and the appearance of related props, etc. This means that when translators handle translation, they do not need to spend time running the game themselves, but can directly find the text display environment and context based on the positioning mark and text, see Figure 5As shown, it is understandable that the game interface of the target game will have some text contents according to the timeline, and these text contents and the corresponding positioning mark can be arranged in sequence according to the chronological relationship of time appearance. In this way, such as the translator clicks "positioning mark 1" and / or "text content 1" according to the text content 1, it will automatically jump to the corresponding game interface, so as to facilitate the translator to provide more accurate context viewing according to actual needs for translation. It can be seen that the method provided by the embodiment of the present application can save the time of the translator, improve the quality of translation, and also reduce the workload of the language quality assurance personnel, and reduce the risk of defects after the game goes online.

[0058] Furthermore, in the process of game localization, the quality assurance link after the translation is completed is crucial. Traditionally, LQA personnel need to run the game, locate the content of the target language in the game based on the positioning identifier and text content, and then perform a quality check on the content. This process is usually time-consuming because it involves steps such as downloading, decompressing and loading resources of the game package, and as the game content continues to increase and the package size increases, the preparation time for these steps is also increasing. In addition, the text content to be tested usually needs to be triggered by specific operations, such as completing the pre-task to accept the plot, or random props that require multiple attempts to appear, which increases the operating cost and time cost.

[0059] In this application, the operation results in the game can be shown to the localization testers in a more convenient way. For example, by recording the entire process of the plot story through screen recording, the localization testers can complete the test of the content to be tested by watching the video without entering the game, thereby saving the time cost and operation cost of starting the game and triggering the content to be tested, and significantly improving the efficiency of localization testing. In addition, when LQA rechecks the modification, if the text to be checked is located at a later position in the story line process, the traditional method can only trigger the entire plot and wait for the plot to progress to the position of the text to be checked before the corresponding inspection can be carried out. If it is possible to check by fixed-point jump, the unnecessary time consumption of the previous plot can be skipped, further improving the inspection efficiency.

[0060] Second embodiment

[0061] The second embodiment of the present application relates to a method for generating materials. The second embodiment is an improvement on the first embodiment, and the specific improvement is: in the second embodiment of the present application, a specific implementation method for generating materials of the target game according to the text content and the positioning mark is provided.

[0062] Specifically, in some embodiments, the material of the target game is generated according to the text content and the positioning mark, that is, step S103 may include the following steps: Figure 6 As shown:

[0063] Step S1031, determining the matching relationship between the text content and the positioning mark according to the first target information and the second target information; the first target information is used to represent the information of synchronization between the text content and the process of the target game; the second target information is used to represent the information of synchronization between the positioning mark and the process of the target game;

[0064] Step S1032: Generate materials for the target game according to the matching relationship.

[0065] Optionally, in some embodiments, the first target information includes at least one of the following: a first text panel position, a first text panel name, a first panel start frame and a first use case start frame; the first text panel position is used to represent the specific position of the text panel in the game interface; the first text panel name is used to represent the specific name of the text panel in the game interface; the first panel start frame is used to represent the frame number when the text panel appears, and the first use case start frame is used to represent the frame number when the first automated test case is started.

[0066] Optionally, in some embodiments, the second target information includes at least one of the following: a second text panel position, a second text panel name, a second panel start frame and a second use case start frame; the second text panel position is used to represent the specific position of the text panel in the game interface; the second text panel name is used to represent the specific name of the text panel in the game interface; the second panel start frame is used to represent the frame number when the text panel appears; the second use case start frame is used to represent the frame number when the second automated test case is started.

[0067] Specifically, in some examples, after the first target information and the second target information are collected, the alignment of the positioning mark and the text content can be completed according to a preset rule.

[0068] Specifically, in some examples, in order to obtain two interface display results, while recording a video according to the first automated test case or the second automated test case, a frame-by-frame marking method can be used to collect the first target information or the second target information.

[0069] Specifically, in some examples, the first text panel position is used to record the pixel coordinates of the center position of the text panel on the screen in the first automated test case; the second text panel position is used to record the pixel coordinates of the center position of the text panel on the screen in the second automated test case.

[0070] Specifically, in some examples, the first text panel name is used to record the control name used by the text panel in the first automated test case; the second text panel name is used to record the control name used by the text panel in the second automated test case.

[0071] Specifically, in some examples, the first panel start frame and the second panel start frame are respectively used to represent the current Unity frame number when the text panel appears, and the frame number of the text panel relative to the start of the test can be obtained based on the current Unity frame number;

[0072] Specifically, in some examples, the starting frame of the first use case is used to represent the current Unity frame number recorded when the first automated test case is started, and the current Unity frame number is used as the benchmark time point for the appearance time of the text panel; the starting frame of the second use case is used to represent the current Unity frame number recorded when the second automated test case is started, and the current Unity frame number is used as the benchmark time point for the appearance time of the text panel.

[0073] By recording the display conditions of the interface text panels in detail during the execution of the first automated test and the second automated test, including their appearance time, location, name, and display content, etc., it is convenient for further analysis and processing.

[0074] It is not difficult to find that in the embodiment of the present application, the matching relationship between the text content and the positioning identifier is determined according to the first target information and the second target information; the first target information is used to characterize the information that the text content is synchronized with the process of the target game; the second target information is used to characterize the information that the positioning identifier is synchronized with the process of the target game; according to the matching relationship, the materials of the target game are generated, and a specific implementation method for generating the materials of the target game according to the text content and the positioning identifier is provided.

[0075] Third embodiment

[0076] The third embodiment of the present application relates to a material generation method. The third embodiment is an improvement on the second embodiment, and the specific improvement is: in the third embodiment of the present application, a specific implementation method for determining the matching relationship between the text content and the positioning identifier according to the first target information and the second target information is provided.

[0077] Specifically, in some embodiments, determining the matching relationship between the text content and the positioning identifier according to the first target information and the second target information, that is, step S1031, may further include the following steps:

[0078] Step S10311, determining a first matching result according to the first target information and the second target information;

[0079] Step S10312, determining a second matching result according to the text content and the positioning identifier;

[0080] Step S10313: Determine the matching relationship between the text content and the positioning identifier according to the first matching result and the second matching result.

[0081] Optionally, in some embodiments, determining the first matching result according to the first target information and the second target information, that is, step S10311, may further include the following steps:

[0082] Step S103111, determining a first type of matching result according to the first text panel position and the second text panel position; and / or,

[0083] Step S103112, determining a second type of matching result according to the first text panel name and the second text panel name; and / or,

[0084] Step S103113, determining a third type of matching result according to the first panel start frame, the first use case start frame, and the second panel start frame, the second use case start frame;

[0085] Step S10314: Determine a second matching result based on the text content and the positioning identifier.

[0086] The first matching result includes at least one of the first-category matching result, the second-category matching result, and the third-category matching result;

[0087] Correspondingly, determining the matching relationship between the text content and the positioning identifier based on the first matching result and the second matching result can specifically be: determining the matching relationship between the text content and the positioning identifier based on the second matching result and at least one of the first category matching result, the second category matching result and the third category matching result.

[0088] Specifically, in some examples, the first text panel position and the second text panel position may be matched, and if the positions of the first text panel and the second text panel are exactly the same, the first type of matching result may be: matching successful.

[0089] Specifically, in some examples, the first text panel name and the second text panel name are matched, and if the names of the first text panel and the second text panel are exactly the same, the second type of matching result may be: matching successful.

[0090] Furthermore, in some embodiments, determining the third type of matching result according to the first panel start frame, the first use case start frame, and the second panel start frame, the second use case start frame, that is, step S103113 may further include the following steps:

[0091] Step S1031131, determining a first difference value according to the first panel start frame and the first use case start frame;

[0092] Step S1031132, determining a second difference value according to the second panel start frame and the second use case start frame;

[0093] Step S1031133: determine a third type of matching result according to the first difference and the second difference.

[0094] Specifically, in some examples, the difference between the start frame of the first panel and the start frame of the first test case can be calculated to obtain a first difference for characterizing the number of frames that appear in the text panel relative to the start of the test. Correspondingly, the difference between the start frame of the second panel and the start frame of the second test case can be calculated to obtain a second difference for characterizing the number of frames that appear in the text panel relative to the start of the test. If the first difference is equal to the second difference, it can be determined that the start frames of the same text panel when executing the first automated test case and the second automated test case are completely consistent, and correspondingly, the third type of matching result can be: matching successful.

[0095] Furthermore, in some embodiments, determining the second matching result according to the text content and the positioning identifier, that is, step S10312, may further include the following steps:

[0096] According to the numerical warehouse, it is queried whether the text content and the positioning identifier match, and a second matching result is determined; wherein the numerical warehouse is used to record the matching relationship between the text content and the positioning identifier.

[0097] That is, in some examples, after collecting the location identifier, the system can obtain the text content associated with the location identifier by querying the value warehouse. If the text content obtained by querying the value warehouse is the same as the text content obtained by the first automated test case, the fourth matching result can be: matching success.

[0098] Exemplarily, in some examples, when the first type of matching results, the second type of matching results, the third type of matching results and the fourth type of matching results are all matched successfully, an accurate matching relationship between the text content and the positioning identifier can be established, such as Figure 3 and Figure 4 shown.

[0099] Furthermore, after the alignment result of the positioning mark and the text content is generated according to the above alignment rules, the first video and the second video generated by the first automated test case and the second automated test case can be obtained, the first video corresponds to the first display interface, and the second video corresponds to the second display interface; and the context environment of all the positioning marks used in the first video and the second video. After reviewing and publishing these materials, the final storage of the context materials based on the text content can be completed for reference at any time.

[0100] It should be noted that the order of the above steps S103111 to S10313 is only an example, and the order between them can be adjusted arbitrarily according to actual needs, and this embodiment does not make any specific limitations on this.

[0101] It should be noted that this embodiment may also be an improvement based on the first embodiment.

[0102] It is not difficult to find that in the embodiment of the present application, the first matching result is determined according to the first target information and the second target information; the second matching result is determined according to the text content and the positioning identifier; and the matching relationship between the text content and the positioning identifier is determined according to the first matching result and the second matching result. A specific implementation method for determining the matching relationship between the text content and the positioning identifier according to the first target information and the second target information is provided, and a series of alignment rules are provided in the implementation method, such as including the alignment of the time axis of the positioning identifier and the text content in consideration, so that the accuracy of the alignment between the positioning identifier and the text content can be ensured.

[0103] Fourth embodiment

[0104] The fourth embodiment of the present application relates to a method for generating materials. The fourth embodiment is an improvement on the third embodiment, and the specific improvement is: in the third embodiment of the present application, if the first difference is equal to the second difference, the third type of matching result is: matching is successful; and in the fourth embodiment of the present application, considering that the jamming during game operation and the execution delay of test cases may bring some randomness, the above matching rules are optimized.

[0105] Specifically, in some embodiments, determining the third type of matching result according to the first difference and the second difference, that is, step S1031133, may further include the following steps:

[0106] Step a, determining a deviation value between the first difference and the second difference;

[0107] Step b: determining a third type of matching result according to the deviation value and a preset range; wherein the preset range is determined based on the number of frames per second.

[0108] Specifically, in some examples, the difference between the first difference and the second difference may be calculated to obtain the deviation value.

[0109] Exemplarily, the preset range may be ±2.0 times FPS (frames per second).

[0110] Specifically, in some examples, due to the randomness caused by the game jams and test case execution delays, the start frames of the same text panel when executing the automated test case twice may not be completely consistent. However, considering the stability of the overall process of the automated test case, if the frame deviation of the same text panel when executing the automated test case twice is within the range of ±2.0 times FPS (frames per second), they can be considered to be corresponding.

[0111] It should be noted that this embodiment may also be an improvement based on the first embodiment and / or the second embodiment.

[0112] It is not difficult to find that in the embodiment of the present application, considering that the jamming in the game and the execution delay of the test case may bring some randomness, the determination process of the third type of matching results is optimized. The improved scheme has a certain flexibility and can adapt to the slight changes that may occur in actual operation.

[0113] Fifth embodiment

[0114] The fifth embodiment of the present application relates to a method for generating a material. The fifth embodiment is an improvement based on the first embodiment, and the specific improvement is: in the first embodiment of the present application; the first display interface displays the text content, and the second display interface displays the positioning mark. In the fifth embodiment of the present application, the content displayed on the first display interface and / or the second display interface can be switched between the positioning mark and the text content.

[0115] Specifically, in some embodiments, the method may further include the following steps:

[0116] According to a switch set based on the material, the content displayed on the first display interface and / or the second display interface is switched between the positioning mark and the text content.

[0117] Specifically, in some examples, in order to facilitate viewing of the location marker associated with the dynamic text panel, a switch can be deployed, and the switch is used to skip the location marker mapping function. Exemplarily, when the switch is turned on, the operation of obtaining the corresponding text content from the location marker will skip the mapping process, and the location marker will be directly used as the parsing result for subsequent processing. In this way, the effect of displaying each text panel in the game in the form of a location marker can be obtained.

[0118] That is, if the switch is on, it can be determined that the current acquisition mode is the mapping off mode, and the acquired content will be the positioning mark; if the switch is off, it can be determined that the current acquisition mode is the mapping on mode, and the acquired content will be the text content itself;

[0119] It should be noted that this embodiment may also be an improvement based on any one or more of the second to fourth embodiments.

[0120] It is not difficult to find that in the embodiment of the present application, by switching the content displayed on the first display interface and / or the second display interface between the positioning mark and the text content according to a switch set based on the material, it is convenient for relevant personnel to control the opening or closing of the switch according to actual needs, thereby collecting the required content.

[0121] The step division of the above methods is only for clear description. When implemented, they can be combined into one step or some steps can be split and decomposed into multiple steps. As long as they include the same logical relationship, they are all within the scope of protection of this application; adding insignificant modifications to the algorithm or process or introducing insignificant designs without changing the core design of the algorithm and process are all within the scope of protection of this application.

[0122] In summary, this application has at least the following beneficial effects:

[0123] 1. Localization department staff can configure the content that needs to be translated or accepted at any time according to the development progress of simplified Chinese content. From proposing the generation and collection requirements to completing the material upload, the entire process only requires the execution time of an automated test case - about a few hours - to complete and be put into use immediately;

[0124] 2. Replace the existing translation auxiliary information in the form of text descriptions with complete actual performance in the game, providing a more vivid and specific environment and context for the text to be translated;

[0125] 3. Replace the existing real-machine LQA method with complete in-game actual performance, and provide the materials to be LQA to LQA personnel in the form of screen recordings.

[0126] Fifth embodiment

[0127] The fifth embodiment of the present application also provides an electronic device. The electronic device can be various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, etc. The electronic device can also be various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices and other similar computing devices.

[0128] The electronic device includes: one or more processors; and a memory storing computer program instructions, wherein when the computer program instructions are executed, the processor executes the steps of the method provided in any one or more of the above embodiments. Figure 7 An exemplary structural diagram of the electronic device is disclosed. Figure 7 As shown, the electronic device includes: one or more processors 1101, memory 1102, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. The various components are connected to each other using different buses, and can be installed on a common mainboard or installed in other ways as needed. The processor can process instructions executed in the electronic device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as a display device coupled to the interface). In some other embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple electronic devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Among them, the components shown in this article, their connections and relationships, and their functions are only used as examples, and are not intended to limit the implementation of the present application described and / or required herein.

[0129] The electronic device may further include: an input device 1103 and an output device 1104. The processor 1101, the memory 1102, the input device 1103 and the output device 1104 may be connected via a bus or other means. Figure 7 The example of connecting through bus is taken in the following.

[0130] The input device 1103 can receive input digital or character information, and generate key signal input related to the user settings and function control of the electronic device, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator rod, one or more mouse buttons, a track ball, a joystick and other input devices. The output device 1104 may include a display device, an auxiliary lighting device (e.g., an LED) and a tactile feedback device (e.g., a vibration motor), etc. The display device may include, but is not limited to, a liquid crystal display (LCD), a light emitting diode (LED) display and a plasma display. In some embodiments, the display device may be a touch screen.

[0131] To provide interaction with a user, the electronic device may be a computer. The computer has: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or a trackball), through which the user can provide input to the computer. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0132] In the embodiments of the present application, a computer program / instruction is stored on a computer-readable medium, and when the computer program / instruction is executed by a processor, the steps of the method provided by any one or more of the above embodiments are implemented. The computer-readable medium may be included in the electronic device described in the above embodiments; or it may exist independently without being assembled into the device. The above computer-readable medium carries one or more computer-readable instructions.

[0133] The memory 1102 can be used as a non-transient computer-readable storage medium, which can be used to store non-transient software programs, non-transient computer executable programs and modules. The processor 1101 executes various functional applications and data processing of the server by running the non-transient software programs, instructions and modules stored in the memory 1102, so as to implement the program instructions / modules corresponding to the method provided by any one or more embodiments in the embodiments of the present application.

[0134] The memory 1102 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 1102 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory 1102 may optionally include a memory remotely arranged relative to the processor 1101, and these remote memories may be connected to the electronic device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0135] It should be noted that the computer-readable medium described in the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device.

[0136] Computer readable media include permanent and non-permanent, removable and non-removable media, and can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, modules of programs or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission medium that can be used to store information that can be accessed by a computing device.

[0137] Computer program code for performing the operations of the present application may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0138] In the above-described embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. For example, it can be implemented by using an application specific integrated circuit (ASIC), a general-purpose computer or any other similar hardware device. In certain embodiments, the software program of the present application can be executed by a processor to implement the above steps or functions. Similarly, the software program of the present application (including relevant data structures) can be stored in a computer-readable recording medium, for example, a RAM memory, a magnetic or optical drive or a floppy disk and similar devices. In addition, some steps or functions of the present application can be implemented by hardware, for example, as a circuit that cooperates with a processor to perform each step or function.

[0139] The computer program product provided in the embodiment of the present application includes one or more computer programs / instructions, and when the computer program / instructions are executed by the processor, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium, or transmitted from a computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, a computer, a server or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or a data center that includes one or more available media integrations. The available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid state disk solidstate disk (SSD)), etc.

[0140] The flow chart or block diagram in the accompanying drawings shows the possible architecture, function and operation of the equipment, method and computer program product according to various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented with a dedicated system for hardware that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0141] The scope of the present application is defined by the appended claims rather than the above description, and it is intended that all changes that fall within the meaning and scope of the equivalent elements of the claims are included in the present application. Any figure mark in the claims should not be regarded as limiting the claims involved. In addition, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices stated in the device claim may also be implemented by one unit or device through software or hardware. The words "first", "second", etc. are only used to distinguish the description, and do not indicate any particular order, nor can they be understood as indicating or implying relative importance.

[0142] The above is only a specific embodiment of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims, and the above embodiments should be regarded as exemplary and non-restrictive.

Claims

1. A method for producing a material, characterized in that: The method comprises: Determine a first display interface according to a first automated test case; the first display interface carries text content of a target game; According to the second automated test case, a second display interface is determined; the second display interface carries a location identifier of the target game, and the location identifier is used to locate the text content; The materials of the target game are generated according to the text content and the positioning mark; the materials include the first display interface and the second display interface, and there is a matching relationship between the text content in the first display interface and the positioning mark in the second display interface.

2. The method according to claim 1, characterized in that The step of generating the target game material according to the text content and the positioning mark includes: According to the first target information and the second target information, the matching relationship between the text content and the positioning mark is determined; the first target information is used to represent the information that the text content is synchronized with the process of the target game; the second target information is used to represent the information that the positioning mark is synchronized with the process of the target game; According to the matching relationship, materials of the target game are generated.

3. The method according to claim 2, characterized in that The first target information includes at least one of the following: a first text panel position, a first text panel name, a first panel start frame, and a first use case start frame; The first text panel position is used to represent the specific position of the text panel in the game interface; The first text panel name is used to represent the specific name of the text panel in the game interface; The first panel start frame is used to represent the frame number when the text panel appears; The first test case start frame is used to represent the frame number when the first automated test case is started.

4. The method according to claim 2, characterized in that: The second target information includes at least one of the following: a second text panel position, a second text panel name, a second panel start frame, and a second use case start frame; The second text panel position is used to represent the specific position of the text panel in the game interface; The second text panel name is used to represent the specific name of the text panel in the game interface; The second panel start frame is used to represent the frame number when the text panel appears; The second test case start frame is used to represent the frame number when the second automated test case is started.

5. The method according to claim 2, characterized in that: The determining, according to the first target information and the second target information, a matching relationship between the text content and the positioning identifier includes: Determining a first matching result according to the first target information and the second target information; Determining a second matching result according to the text content and the positioning identifier; A matching relationship between the text content and the positioning identifier is determined according to the first matching result and the second matching result.

6. The method according to claim 5, characterized in that Determining the second matching result according to the text content and the positioning identifier includes: According to the numerical warehouse, it is queried whether the text content and the positioning identifier match, and a second matching result is determined; wherein the numerical warehouse is used to record the matching relationship between the text content and the positioning identifier.

7. The method according to claim 5, characterized in that The determining a first matching result according to the first target information and the second target information includes: Determine a first type of matching result according to the first text panel position and the second text panel position; and / or, Determining a second type of matching result according to the first text panel name and the second text panel name; and / or, Determine a third type of matching result according to the first panel start frame, the first use case start frame, the second panel start frame, and the second use case start frame; The first matching result includes at least one of the first-category matching result, the second-category matching result, and the third-category matching result; Correspondingly, the matching relationship between the text content and the positioning identifier is determined based on the first matching result and the second matching result, specifically: the matching relationship between the text content and the positioning identifier is determined based on the second matching result and at least one of the first category matching result, the second category matching result and the third category matching result.

8. The method according to claim 7, characterized in that Determining the third type of matching result according to the first panel start frame, the first use case start frame, and the second panel start frame, the second use case start frame includes: Determining a first difference value according to the first panel start frame and the first use case start frame; Determine a second difference value according to the second panel start frame and the second use case start frame; A third type of matching result is determined according to the first difference and the second difference.

9. The method according to claim 8, characterized in that The determining of a third type of matching result according to the first difference and the second difference includes: determining a deviation value between the first difference and the second difference; A third type of matching result is determined according to the deviation value and a preset range, wherein the preset range is determined based on the number of frames per second.

10. The method according to any one of claims 1 to 9, characterized in that The method further comprises: According to a switch set based on the material, the content displayed on the first display interface and / or the second display interface is switched between the positioning mark and the text content.

11. An electronic device, characterized in that: The electronic device comprises: one or more processors; and A memory storing computer program instructions, which, when executed, cause the processor to perform the steps of the method as claimed in any one of claims 1 to 10.

12. A computer readable medium having a computer program / instruction stored thereon, characterized in that: When the computer program / instructions are executed by a processor, the steps of the method according to any one of claims 1 to 10 are implemented.

13. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the steps of the method according to any one of claims 1 to 10 are implemented.