Game map configuration data scanning method and related device
By scanning multiple game areas of the game map in full and obtaining their full configuration data, the problem of manual query of configuration data in the prior art is solved, and the problem of missed and missed incorrect query is easily solved, achieving more efficient and more accurate game map performance testing.
Patent Information
- Application Number
- CN202311329761.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-12
- Publication Date
- 2025-04-15
AI Technical Summary
When performing performance testing of game maps in the prior art, it takes a long time to query configuration data manually and is prone to missed and missed checks, resulting in low testing efficiency, incompleteness and inaccuracy.
A configuration data scanning method for game maps is provided. By loading multiple game areas in the game map, using the game area scanner to perform full scanning, obtain full fixed configuration data and full random configuration data of the game map, and determine it as full configuration data of the game map.
When the game map is very large, quickly obtain full configuration data to avoid missed checks and errors, improve performance testing efficiency, and make the test more comprehensive and accurate.
Smart Images

Figure CN119818956A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a method for scanning configuration data of a game map and a related device. Background Art
[0002] At present, after the game map is designed and before it is actually applied, it is necessary to perform performance testing on the game map. By querying whether the configuration data of the game map has room for optimization, the configuration data of the game map can be optimized to ensure that the performance of the game map meets the standards.
[0003] In the related art, the method of performance testing a game map refers to: performing performance testing on all resources of the game map through a performance testing tool, and manually querying whether the configuration data of the game map has room for optimization when the performance does not meet the standard, so as to optimize the configuration data of the game map until the performance of the game map meets the standard.
[0004] However, most game maps are very large. The above method of manually querying the configuration data of the game map not only requires a lot of manpower and time, but is also prone to problems such as missed and mischecked configuration data of the game map, resulting in low efficiency, incompleteness, and inaccuracy in the performance test of the game map. Summary of the invention
[0005] In order to solve the above technical problems, the present application provides a scanning method and related devices for the configuration data of a game map. When the game map is very large, not only can the full configuration data of the game map be quickly obtained without consuming a lot of manpower and time, but also the problems of missed and mischecked configuration data of the game map can be avoided; thereby improving the performance testing efficiency of subsequent game maps, making the performance testing of subsequent game maps more comprehensive and accurate.
[0006] The embodiments of the present application disclose the following technical solutions:
[0007] On the one hand, an embodiment of the present application provides a method for scanning configuration data of a game map, the method comprising:
[0008] Load multiple game areas in the game map;
[0009] Scanning the plurality of fixed configuration data in the plurality of game areas in full by using a game area scanner to obtain the full fixed configuration data of the game map;
[0010] Randomly configuring the multiple game areas according to a preset random configuration mode to obtain multiple randomly configured game areas;
[0011] The game area scanner performs a full scan of the multiple random configuration data in the multiple game areas after the random configuration to obtain the full random configuration data of the game map;
[0012] The full amount of fixed configuration data and the full amount of random configuration data are determined as the full amount of configuration data of the game map.
[0013] On the other hand, an embodiment of the present application provides a device for scanning configuration data of a game map, the device comprising: a loading unit, a scanning unit, a configuration unit, and a determination unit;
[0014] The loading unit is used to load multiple game areas in the game map;
[0015] The scanning unit is used to perform a full scan of the multiple fixed configuration data in the multiple game areas through a game area scanner to obtain the full fixed configuration data of the game map;
[0016] The configuration unit is used to randomly configure the multiple game areas according to a preset random configuration mode to obtain multiple game areas after random configuration;
[0017] The scanning unit is further used to perform a full scan of the multiple random configuration data in the multiple game areas after the random configuration through the game area scanner to obtain the full random configuration data of the game map;
[0018] The determining unit is used to determine the full amount of fixed configuration data and the full amount of random configuration data as the full amount of configuration data of the game map.
[0019] On the other hand, an embodiment of the present application provides a computer device, the computer device comprising a processor and a memory:
[0020] The memory is used to store a computer program and transmit the computer program to the processor;
[0021] The processor is configured to execute the method described in any one of the preceding aspects according to instructions in the computer program.
[0022] On the other hand, an embodiment of the present application provides a computer-readable storage medium, which is used to store a computer program. When the computer program is executed on a computer device, the computer device executes the method described in any one of the aforementioned aspects.
[0023] On the other hand, an embodiment of the present application provides a computer program product, including a computer program, which, when executed on a computer device, enables the computer device to execute the method described in any one of the aforementioned aspects.
[0024] It can be seen from the above technical solution that, first, multiple game areas in the game map are loaded; multiple fixed configuration data in multiple game areas are fully scanned by a game area scanner to obtain the full fixed configuration data of the game map; this method can quickly scan the full fixed configuration data of the game map, and avoid problems such as missed inspection and mischeck of the fixed configuration data of the game map. Then, multiple game areas are randomly configured according to a preset random configuration mode to obtain multiple game areas after random configuration; and multiple random configuration data in multiple game areas after random configuration are fully scanned by a game area scanner to obtain the full random configuration data of the game map; this method can quickly scan the full random configuration data of the game map, and avoid problems such as missed inspection and mischeck of the random configuration data of the game map. Finally, the full fixed configuration data and the full random configuration data are used as the full configuration data of the game map; this method can quickly summarize the full fixed configuration data and the full random configuration data of the game map as the full configuration data of the game map, so as to determine whether the configuration data of the game map has optimization space. Based on this, when the game map is very large, this method can quickly obtain the full configuration data of the game map without consuming a lot of manpower and time, and avoid problems such as missed and mischecked configuration data of the game map; thereby improving the efficiency of subsequent performance testing of the game map, making subsequent performance testing of the game map more comprehensive and accurate. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technical members in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0026] Figure 1 A schematic diagram of a method for performance testing of a game map provided for related technologies;
[0027] Figure 2 A schematic diagram of the system architecture of a method for scanning configuration data of a game map provided in an embodiment of the present application;
[0028] Figure 3 A flowchart of a method for scanning configuration data of a game map provided in an embodiment of the present application;
[0029] Figure 4 A flowchart for obtaining full configuration data of a game map provided in an embodiment of the present application;
[0030] Figure 5A flowchart for obtaining full fixed configuration data of a game map provided in an embodiment of the present application;
[0031] Figure 6 A flowchart of obtaining full random configuration data of a game map provided in an embodiment of the present application;
[0032] Figure 7 A schematic diagram of configuring a game area scanner in a game engine editor provided in an embodiment of the present application;
[0033] Figure 8 A schematic diagram of a full amount of fixed configuration data for displaying a game map provided in an embodiment of the present application;
[0034] Fig. 9 A schematic diagram of a fixed configuration data for centrally displaying a game map provided by an embodiment of the present application;
[0035] Fig.10 A flowchart of fixed configuration data for displaying a game map provided by an embodiment of the present application;
[0036] Fig.11 A schematic diagram of a full amount of random configuration data of a game map provided in an embodiment of the present application;
[0037] Fig.12 A flowchart of fixed configuration data for displaying a game map provided by an embodiment of the present application;
[0038] Fig.13 A schematic diagram of an alarm prompt for the number of game objects of multiple random game objects in a sub-game area provided by an embodiment of the present application;
[0039] Fig.14 A structural diagram of a device for scanning configuration data of a game map provided in an embodiment of the present application;
[0040] Fig.15 A structural diagram of a terminal provided in an embodiment of the present application;
[0041] Fig.16 A structural diagram of a server provided in an embodiment of the present application. DETAILED DESCRIPTION
[0042] The embodiments of the present application are described below in conjunction with the accompanying drawings.
[0043] See also Figure 1 , Figure 1A schematic diagram of a method for performance testing a game map provided for related technology; wherein, performance testing is performed on all resources of the game map through the performance testing tool PerfDog. When the performance does not meet the standard, manual frame capture analysis is performed through the graphics debugger RenderDoc to manually query whether the configuration data of the game map has room for optimization, so as to optimize the configuration data of the game map until the performance of the game map meets the standard.
[0044] However, with the rapid development of hardware network technology and the rapid rise of open world games, game maps are becoming more and more diverse and rich. The continuous expansion of game maps makes most game maps very large. For example, the game map of game A can reach 8KM×8KM in size. The above method manually queries the configuration data of the game map, which not only requires a lot of manpower and time, but also easily leads to problems such as missed and erroneous checks of the configuration data of the game map, thereby resulting in low efficiency, incompleteness and inaccuracy in the performance test of the game map.
[0045] An embodiment of the present application provides a method for scanning the configuration data of a game map. When the game map is very large, not only can the full configuration data of the game map be quickly obtained without consuming a large amount of manpower and time, but also problems such as missed and mischecked configuration data of the game map can be avoided; thereby improving the efficiency of performance testing of subsequent game maps, making the performance testing of subsequent game maps more comprehensive and accurate.
[0046] Next, the system architecture of the method for scanning the configuration data of the game map will be introduced. Figure 2 , Figure 2 A schematic diagram of the system architecture of a method for scanning configuration data of a game map provided in an embodiment of the present application, wherein the system architecture includes a computer device 200, and the computer device 200 is used for.
[0047] The computer device 200 loads a plurality of game areas in a game map.
[0048] As an example, the game area is a level, the game map of game A includes 8×8 levels, and the computer device 200 loads 8×8 levels in the game map of game A.
[0049] The computer device 200 uses a game area scanner to perform a full scan of multiple fixed configuration data in multiple game areas to obtain the full fixed configuration data of the game map.
[0050] As an example, the game area scanner is a level scanner (LevelScanner), and the fixed configuration data is Actor data. Based on the above example, the computer device 200 scans the multiple Actor data in 8×8 levels through LevelScanner to obtain the full amount of Actor data of the game map of game A. Among them, Actor data refers to fixed game object data in the level.
[0051] The computer device 200 randomly configures the multiple game areas according to a preset random configuration mode to obtain multiple randomly configured game areas.
[0052] As an example, the preset random configuration mode of the game map of Game A is random configuration mode 1. Based on the above example, the computer device 200 randomly configures 8×8 levels according to random configuration mode 1 to obtain 8×8 levels after random configuration.
[0053] The computer device 200 uses a game area scanner to perform a full scan of multiple random configuration data in multiple game areas after random configuration to obtain the full random configuration data of the game map.
[0054] As an example, the randomly configured data is Pickup data. Based on the above example, the computer device 200 uses LevelScanner to fully scan multiple Pickup data in the 8×8 levels after random configuration to obtain the full Pickup data of the game map of game A. The Pickup data refers to the random game object data configured in the level.
[0055] The computer device 200 determines the full amount of fixed configuration data and the full amount of random configuration data as the full amount of configuration data of the game map.
[0056] As an example, based on the above example, the computer device 200 uses the full amount of Actor data of the game map of Game A and the full amount of Pickup data of the game map of Game A as the full amount of configuration data of the game map of Game A.
[0057] In other words, the above method can quickly scan all the fixed configuration data of the game map, and avoid problems such as missed or mischecked fixed configuration data of the game map; can quickly scan all the random configuration data of the game map, and avoid problems such as missed or mischecked random configuration data of the game map; can quickly summarize all the configuration data of the game map to determine whether the configuration data of the game map has room for optimization. Based on this, when the game map is very large, this method can not only quickly obtain the full configuration data of the game map without consuming a lot of manpower and time, but also avoid problems such as missed or mischecked configuration data of the game map; thereby improving the efficiency of subsequent performance testing of the game map, making the performance testing of subsequent game maps more comprehensive and accurate.
[0058] It should be noted that in the embodiments of the present application, the computer device may be a terminal, and the method provided in the embodiments of the present application may be executed by the terminal alone or by the terminal and the server in cooperation. Figure 2 The corresponding embodiments are mainly introduced by taking the terminal executing the method provided in the embodiments of the present application as an example.
[0059] In addition, when the method provided in the embodiment of the present application is executed by a terminal and a server in cooperation with each other, the steps that need to be reflected on the front-end interface can be executed by the terminal, and some steps that require background calculations and do not need to be reflected on the front-end interface can be executed by the server.
[0060] Among them, the terminal can be a smart phone, a tablet computer, a laptop computer, a desktop computer, an intelligent voice interaction device, a vehicle-mounted terminal, an extended reality device or an aircraft, etc., but is not limited to this. The server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides cloud computing services, but is not limited to this. The terminal and the server can be directly or indirectly connected via wired or wireless communication, and this application does not limit this. For example, the terminal and the server can be connected via a network, which can be a wired or wireless network.
[0061] In addition, the embodiments of the present application can be applied to various scenarios, including but not limited to cloud technology, artificial intelligence, smart transportation, assisted driving, autonomous driving, digital humans, virtual humans, virtual reality, augmented reality, mixed reality, audio and video, etc.
[0062] Next, the method for scanning the configuration data of the game map provided by the embodiment of the present application will be described in detail by taking the terminal executing the method provided by the embodiment of the present application as an example and combining the accompanying drawings. Figure 3 , Figure 3A flowchart of a method for scanning configuration data of a game map provided in an embodiment of the present application, the method comprising:
[0063] S301: Load multiple game areas in the game map.
[0064] In the related art, performance testing is performed on all resources of the game map through performance testing tools. When the performance does not meet the standard, the configuration data of the game map is manually queried to see if there is room for optimization, so as to optimize the configuration data of the game map until the performance of the game map meets the standard. However, most game maps are very large, and manual query of the configuration data of the game map not only requires a lot of manpower and time, but also easily leads to problems such as missed and mischecked configuration data of the game map, resulting in low efficiency, incompleteness, and inaccuracy in the performance test of the game map.
[0065] In an embodiment of the present application, in order to solve the above-mentioned problem, considering that the full configuration data of the game map can be divided into full fixed configuration data and full random configuration data, the full fixed configuration data of the game map can be quickly scanned first to avoid problems such as missed checks and false checks in the fixed configuration data of the game map; and then the full random configuration data of the game map can be quickly scanned to avoid problems such as missed checks and false checks in the random configuration data of the game map; thereby, the full fixed configuration data and the full random configuration data can be quickly aggregated to obtain the full configuration data of the game map, so as to determine whether the full configuration data of the game map has room for optimization.
[0066] Based on the above description, the prerequisite for quickly scanning the full amount of fixed configuration data of the game map is: loading the full amount of fixed configuration data of the game map. Loading multiple game areas in the game map can achieve loading the full amount of fixed configuration data of the game map; therefore, in the embodiment of the present application, it is necessary to first load multiple game areas in the game map.
[0067] Among them, the game area in the game map refers to the game scene, game task or game process in the game map, also known as the level; the game area is mainly created, viewed and modified by placing, transforming and editing the properties of fixed game objects in the game area; in the Unreal Editor, each game area is saved as a separate .umap file, which is different from the .uproject file.
[0068] The above S301 can achieve loading of the full amount of fixed configuration data of the game map by loading multiple game areas in the game map, thereby providing a data basis for subsequent rapid scanning of the full amount of fixed configuration data of the game map.
[0069] As an example of the above S301, the game area is a level, the game map of game A includes 8×8 levels, and the terminal loads 8×8 levels in the game map of game A.
[0070] S302: Fully scan multiple fixed configuration data in multiple game areas using a game area scanner to obtain full fixed configuration data of the game map.
[0071] In an embodiment of the present application, after executing S301 to load multiple game areas in the game map, since multiple game areas in the game map are loaded, it is possible to load the full amount of fixed configuration data of the game map; therefore, in order to quickly perform a full scan of the full amount of fixed configuration data of the game map, a game area scanner can be configured for the game map, and by using the game area scanner to fully scan multiple fixed configuration data in multiple game areas, the full amount of fixed configuration data of the game map can be obtained.
[0072] Among them, the game area scanner is used to scan the configuration data in the game area; the fixed configuration data in the game area refers to the fixed game object data configured in the game area; the full fixed configuration data of the game map refers to all fixed game object data configured in all game areas of the game map.
[0073] The above S302 fully scans multiple fixed configuration data in multiple game areas through the game area scanner. When the game map is very large, it not only does not need to spend a lot of manpower and time, but also can quickly obtain the full amount of fixed configuration data of the game map, and avoids problems such as missed and mischecked fixed configuration data of the game map.
[0074] As an example of the above S302, the game area scanner is a level scanner (LevelScanner), and the fixed configuration data is Actor data. Based on the 8×8 levels in the game map of Game A loaded in the above S301 example, the terminal uses LevelScanner to fully scan multiple Actor data in the 8×8 levels to obtain the full amount of Actor data of the game map of Game A. Among them, Actor data refers to fixed game object data in the level.
[0075] S303: Randomly configure the multiple game areas according to a preset random configuration mode to obtain multiple randomly configured game areas.
[0076] In the embodiment of the present application, after executing S302 to obtain the full fixed configuration data of the game map, it is necessary to further quickly scan the full random configuration data of the game map, and the prerequisite is: loading the full random configuration data of the game map. Randomly configuring multiple game areas in the game map can achieve loading the full random configuration data of the game map; therefore, in the embodiment of the present application, it is necessary to further randomly configure multiple game areas according to the preset random configuration mode to obtain multiple randomly configured game areas.
[0077] Among them, the game map is configured with multiple random configuration modes, and the preset random configuration mode can be one of the multiple random configuration modes of the game map.
[0078] The above S303 can load the full amount of random configuration data of the game map by randomly configuring multiple game areas in the game map in a preset random configuration mode, thereby providing a data basis for subsequent rapid full scanning of the full amount of random configuration data of the game map.
[0079] As an example of the above S303, the preset random configuration mode of the game map of Game A is random configuration mode 1. Based on the 8×8 levels in the game map of Game A loaded in the above S301 example, the terminal randomly configures 8×8 levels according to random configuration mode 1 to obtain 8×8 levels after random configuration.
[0080] S304: Fully scan the multiple random configuration data in the multiple game areas after random configuration through the game area scanner to obtain the full random configuration data of the game map.
[0081] In an embodiment of the present application, after executing S303 to obtain multiple randomly configured game areas, since the multiple randomly configured game areas have loaded the full random configuration data of the game map; therefore, in order to quickly perform a full scan of the full random configuration data of the game map, the multiple random configuration data in the multiple randomly configured game areas can be further fully scanned by a game area scanner to obtain the full random configuration data of the game map.
[0082] Among them, the random configuration data in the game area refers to the random game object data configured in the game area; the full random configuration data of the game map refers to all random game object data configured in all game areas of the game map.
[0083] The above S304 uses a game area scanner to fully scan multiple random configuration data in multiple game areas after random configuration. When the game map is very large, it not only does not require a lot of manpower and time to quickly obtain the full random configuration data of the game map, but also avoids problems such as missed and mischecked random configuration data of the game map.
[0084] As an example of the above S304, the randomly configured data is Pickup data, the game area scanner in the above S302 example is LevelScanner, and based on the 8×8 levels after random configuration in the above S303 example; the terminal uses LevelScanner to fully scan multiple Pickup data in the 8×8 levels after random configuration to obtain the full amount of Pickup data of the game map of game A. The Pickup data refers to the random game object data configured in the level.
[0085] S305: Determine the full amount of fixed configuration data and the full amount of random configuration data as the full amount of configuration data of the game map.
[0086] In an embodiment of the present application, after executing S301-S302 to obtain the full fixed configuration data of the game map, and executing S303-S304 to obtain the full random configuration data of the game map, the full fixed configuration data and the full random configuration data are summarized to determine the full configuration data of the game map; that is, the full fixed configuration data and the full random configuration data are used as the full configuration data of the game map.
[0087] The above S305 uses the full fixed configuration data and the full random configuration data as the full configuration data of the game map, and can quickly obtain the full configuration data of the game map to determine whether the configuration data of the game map has room for optimization.
[0088] As an example of the above S305, based on the above S301 example - the above S304 example, the terminal uses the full amount of Actor data of the game map of Game A and the full amount of Pickup data of the game map of Game A as the full amount of configuration data of the game map of Game A.
[0089] In summary, see Figure 4 , Figure 4 A flowchart for obtaining full configuration data of a game map is provided for an embodiment of the present application; the first step is to load multiple game areas in the game map so as to load the full fixed configuration data of the game map; the second step is to fully scan multiple fixed configuration data in multiple game areas so as to obtain the full fixed configuration data of the game map; the third step is to randomly configure multiple game areas according to a preset random configuration mode so as to load the full random configuration data of the game map; the fourth step is to fully scan multiple random configuration data in multiple game areas after random configuration so as to obtain the full random configuration data of the game map; the fifth step is to obtain the full configuration data of the game map, that is, the full configuration data of the game map is the full fixed configuration data and the full random configuration data of the game map.
[0090] It can be seen from the above technical solution that, first, multiple game areas in the game map are loaded; multiple fixed configuration data in multiple game areas are fully scanned by a game area scanner to obtain the full fixed configuration data of the game map; this method can quickly scan the full fixed configuration data of the game map, and avoid problems such as missed inspection and mischeck of the fixed configuration data of the game map. Then, multiple game areas are randomly configured according to a preset random configuration mode to obtain multiple game areas after random configuration; and multiple random configuration data in multiple game areas after random configuration are fully scanned by a game area scanner to obtain the full random configuration data of the game map; this method can quickly scan the full random configuration data of the game map, and avoid problems such as missed inspection and mischeck of the random configuration data of the game map. Finally, the full fixed configuration data and the full random configuration data are used as the full configuration data of the game map; this method can quickly summarize the full fixed configuration data and the full random configuration data of the game map as the full configuration data of the game map, so as to determine whether the configuration data of the game map has optimization space. Based on this, when the game map is very large, this method can quickly obtain the full configuration data of the game map without consuming a lot of manpower and time, and avoid problems such as missed and mischecked configuration data of the game map; thereby improving the efficiency of subsequent performance testing of the game map, making subsequent performance testing of the game map more comprehensive and accurate.
[0091] For example, for a game map of Game A that is 8KM×8KM in size, using the performance testing method in the related art requires a lot of time, about 11 days per person; using the scanning method provided in the embodiment of the present application does not require a lot of time, only about 0.5 days per person, and avoids problems such as missed and mischecked configuration data of the game map of Game A.
[0092] In addition, this method can save hardware resources by quickly acquiring the full configuration data of the game map to quickly implement performance testing of the game map; and based on the acquired full configuration data of the game map, it can quickly determine whether the configuration data of the game map has room for optimization, so as to optimize the configuration data of the game map until the performance of the game map meets the standards, thereby improving the development efficiency of the game map.
[0093] In the above embodiment, when S301 is specifically implemented, it is considered that the game map is composed of multiple game areas, multiple game areas form a game area set, and there is an association relationship between the multiple game areas; in order to accurately and comprehensively load multiple game areas in the game map, first, it is necessary to obtain the game area set formed by multiple game areas in the game map; then, load the multiple game areas according to the association relationship between the multiple game areas in the game area set, so as to realize the loading of multiple game areas in the game map. Therefore, the present application provides a possible implementation method, S301 includes S3011-S3012 (not shown in the figure):
[0094] S3011: Obtain a game area set of the game map.
[0095] S3012: Load multiple game areas according to the association relationship between multiple game areas in the game area set.
[0096] The above S3011-S3012 obtains the game area set of the game map, and loads multiple game areas according to the association relationship between the multiple game areas in the game area set. When the game map is very large, multiple game areas in the game map can be loaded accurately and comprehensively, thereby avoiding the problems of missed and mischecked game areas in the game map in the future. It provides a data basis for avoiding the problems of missed and mischecked configuration data of the game map in the future.
[0097] As an example of the above S3011-S3012, the game area set of the game map of game A is a level set; on the basis that the game map of game A in the above S301 example includes 8×8 levels, a level set formed by 8×8 levels in the game map of game A is obtained; 8×8 levels are loaded according to the association relationship between the 8×8 levels in the level set; wherein the 8×8 levels include level x0y0, level x1y0, …, level x7y7.
[0098] In the above embodiment, when S302 is specifically implemented, the fixed configuration data of the game map is taken into consideration, that is, the fixed configuration data in the game area is actually the fixed game object data in the game area, and the fixed game object data includes not only the game object identification, game object type and game object position of the fixed game object, but also the component quantity and component identification of multiple game object components of the fixed game object; in order to accurately and comprehensively scan multiple fixed configuration data in multiple game areas, first, the multiple fixed game objects in each game area are fully scanned by the game area scanner to obtain the game object identification, game object type and game object position of each fixed game object in each game area, and the game object quantity of the multiple fixed game objects in each game area is obtained by summarizing; then, the multiple game object components of each fixed game object in each game area are fully scanned by the game area scanner to obtain the component identification of each game object component of each fixed game object in each game area, and the component quantity of the multiple game object components in each game area is obtained by summarizing.
[0099] Finally, for multiple game areas, the game object identifier, game object type and game object position of each fixed game object in each game area, the number of game objects of multiple fixed game objects in each game area, the component identifier of each game object component of each fixed game object in each game area, and the number of components of multiple game object components in each game area are summarized to obtain the full fixed configuration data of the game map. Therefore, the present application provides a possible implementation method, S302 includes S3021-S3023 (not shown in the figure):
[0100] S3021: Perform a full scan of multiple fixed game objects in each game area through a game area scanner to obtain a game object identifier, a game object type and a game object position of each fixed game object in each game area, as well as the number of game objects of the multiple fixed game objects in each game area.
[0101] S3022: Perform a full scan of multiple game object components of each fixed game object in each game area through a game area scanner to obtain a component identifier of each game object component of each fixed game object in each game area and a component quantity of multiple game object components in each game area.
[0102] S3023: Based on multiple game areas, the game object identifier, game object type and game object position of each fixed game object in each game area, the game object quantity of multiple fixed game objects in each game area, the component identifier of each game object component of each fixed game object in each game area, and the component quantity of multiple game object components in each game area are summarized to obtain full fixed configuration data.
[0103] The above S3021-S3023 take into account the constituent data of the fixed configuration data in the game area, and use the game area scanner to fully scan multiple fixed game objects in each game area, as well as multiple game object components of each fixed game object in each game area. When the game map is very large, not only does it not require a lot of manpower and time, but it can also quickly, accurately and comprehensively obtain the full amount of fixed configuration data of the game map, and avoid problems such as missed and mischecked fixed configuration data of the game map.
[0104] Based on the above S3011-S3012 and the above S3021-S3023, see Figure 5 , Figure 5 A flowchart for obtaining full fixed configuration data of a game map provided in an embodiment of the present application; the first step is to obtain a game area set of the game map so as to obtain multiple game areas in the game map; the second step is to load multiple game areas according to the association relationship between the multiple game areas in the game area set so as to load multiple game areas in the game map; the third step is to fully scan multiple fixed game objects in each game area so as to obtain the game object identification, game object type and game object position of each fixed game object in each game area, and the number of game objects of multiple fixed game objects in each game area; the fourth step is to fully scan multiple game object components of each fixed game object in each game area so as to obtain the component identification of each game object component of each fixed game object in each game area, and the number of components of multiple game object components in each game area; the fifth step is to obtain the full fixed configuration data of the game map, that is, the full fixed configuration data of the game map is the game object identification, game object type and game object position of each fixed game object in multiple game areas, the number of game objects of multiple fixed game objects in each game area, the component identification of each game object component of each fixed game object in multiple game areas, and the number of components of multiple game object components in each game area.
[0105] Among them, when implementing the code to obtain the full fixed configuration data of the game map, first, you need to obtain the world manager of the entire game map through context.world, and then control each game area through the game area iterator of the world manager, so as to fully scan multiple fixed game objects in each game area and multiple game object components of each fixed game object.
[0106] As an example of the above S3021-S3023, in the above S301 example, the game area is a level, 8×8 levels in the game map of game A are loaded, the game area scanner in the above S302 example is LevelScanner, and the fixed configuration data is Actor data, the fixed game object is represented as Actor, and the game object component is represented as Component; the terminal scans multiple Actors in each level through LevelScanner to obtain the game object identification, game object type and game object position of each Actor in each level, and summarizes the number of game objects of multiple Actors in each level; through L evelScanner fully scans multiple components of each Actor in each level, obtains the component ID of each component of each Actor in each level, and summarizes the number of components of multiple components in each level; for 8×8 levels, summarizes the game object ID, game object type and game object position of each Actor in each level, the number of game objects of multiple Actors in each level, the component ID of each Component of each Actor in each level, and the number of components of multiple components in each level, and the full amount of Actor data of the game map can be obtained. Among them, multiple Actors can be fixed terrain, fixed buildings, fixed vegetation, fixed ornaments, etc.
[0107] In the above embodiment, when S304 is specifically implemented, the random configuration data of the game map is taken into consideration, that is, the random configuration data in the game area after random configuration is actually the random game object data in the game area. On the basis that the random game object data is random, the focus is on obtaining the number of game objects of multiple random game objects in the sub-game area obtained by dividing the game area after random configuration during scanning; in order to accurately and comprehensively scan multiple random configuration data in multiple game areas after random configuration, first, divide the multiple game areas after random configuration into multiple sub-game areas; then, use the game area scanner to fully scan multiple random game objects in each sub-game area to obtain the number of game objects of multiple random game objects in each sub-game area; finally, for multiple sub-game areas, summarize the number of game objects of multiple random game objects in each sub-game area to obtain the full amount of random configuration data of the game map. Therefore, the present application provides a possible implementation method, S304 includes S3041-S3043 (not shown in the figure):
[0108] S3041: Divide the multiple randomly configured game areas into multiple sub-game areas.
[0109] S3042: Perform a full scan of the multiple random game objects in each sub-game area using a game area scanner to obtain the number of game objects of the multiple random game objects in each sub-game area.
[0110] In the specific implementation of S3042, a scanning starting position is set for multiple sub-game areas, the area size of the interval sub-game area is set, and multiple random game objects in the multiple sub-game areas are traversed and scanned to obtain the number of game objects of the multiple random game objects in each sub-game area. For example, the scanning starting position is the sub-game area at the upper left corner of the entire game map, and the area size of the interval sub-game area is set. Multiple random game objects in multiple sub-game areas can be scanned from left to right and from top to bottom to obtain the number of game objects of the multiple random game objects in each sub-game area.
[0111] S3043: According to the multiple sub-game areas, the number of game objects of the multiple random game objects in each sub-game area is summarized to obtain the full amount of random configuration data.
[0112] The above S3041-S3043 take into account the important data of the randomly configured game area after random configuration. By using the game area scanner to fully scan the multiple random game objects in each sub-game area obtained by dividing the randomly configured game area, when the game map is very large, not only does it not require a lot of manpower and time, but it can also quickly, accurately and comprehensively obtain the full amount of random configuration data of the game map, and avoid problems such as missed and mischecked random configuration data of the game map.
[0113] Based on S3041-S3043 above, see Figure 6 , Figure 6 A flowchart for obtaining the full random configuration data of a game map provided in an embodiment of the present application; the first step is to divide the multiple game areas after random configuration into multiple sub-game areas; the second step is to fully scan the multiple random game objects in each sub-game area to obtain the number of game objects of the multiple random game objects in each sub-game area; the third step is to obtain the full random configuration data of the game map, that is, the full random configuration data of the game map is the number of game objects of the multiple random game objects in each sub-game area.
[0114] As an example of S3041-S3043, in the above S301 example, 8×8 levels in the game map of game A are loaded, the game area scanner in the above S302 example is LevelScanner, and the random configuration data in the above S304 example is Pickup data, the sub-game area is a game unit, and the random game object is represented as Pickup; the terminal divides the 8×8 levels after random configuration into n×n game units, n is a positive integer, n>8; the LevelScanner fully scans multiple Pickups in each game unit to obtain the number of game objects in multiple Pickups in each game unit; for n×n game units, the number of game objects in multiple Pickups in each game unit is summarized to obtain the full Pickup data of the game map. Among them, the game unit can be a 30m×30m grid; multiple Pickups can be various random drops, etc.
[0115] In addition, in the above embodiment, after obtaining the full configuration data of the game map, in order to facilitate subsequent query of the full configuration data of the game map, it is also necessary to store the full configuration data of the game map in the local database; and further send the full configuration data of the game map to the server so that the server stores the full configuration data of the game map. Therefore, the present application provides a possible implementation method, and the method also includes S1-S2 (not shown in the figure):
[0116] S1: Store all configuration data in the local database.
[0117] S2: Send all configuration data to the server.
[0118] The above S1-S2 stores the full configuration data of the game map through the local database, providing a data basis for subsequent queries on the full configuration data of the game map; by sending the full configuration data to the server so that the server can store the full configuration data of the game map, more query channels are provided for subsequent queries on the full configuration data of the game map.
[0119] As an example of the above S1-S2, based on the above S305 example, the terminal stores the full configuration data of the game map of Game A in the local database; and sends the full configuration data of the game map of Game A to the server.
[0120] In addition, since the related art requires that all resources of the game map be packaged before performance testing can be performed through the performance testing tool, it is impossible to pre-test whether the performance of the game map meets the standard during the design phase of the game map, and thus it is impossible to avoid the performance defects of the game map in advance; therefore, in the above embodiment, in order to scan the configuration data of the game map during the design phase of the game map to pre-implement the performance test of the subsequent game map, it is necessary to configure the game area scanner in the game engine editor as a plug-in of the game engine editor. Therefore, the present application provides a possible implementation method, and the game area scanner is a plug-in of the game engine editor.
[0121] See also Figure 7 , Figure 7 A schematic diagram of configuring a game area scanner in a game engine editor is provided for an embodiment of the present application; wherein, the diagram is a partial display page of the game engine editor, and based on the above S302 example in which the game area scanner is LevelScanner, LevelScanner is configured in the game engine editor as a plug-in of the game engine editor.
[0122] In addition, in the above embodiment, after executing S3021-S3023 to obtain the full amount of fixed configuration data of the game map, in order to facilitate the subsequent review of the full amount of fixed configuration data of the game map; it is also possible to display the storage path of each game area based on the multiple storage paths corresponding to the multiple game areas, and for the storage path of each game area, display the game object identification, game object type and game object position of each fixed game object in each game area, and the component identification of each game object component of each fixed game object in each game area. Therefore, the present application provides a possible implementation method, and the method also includes S3 (not shown in the figure): for the multiple storage paths corresponding to the multiple game areas, display the storage path of each game area, the game object identification, game object type and game object position of each fixed game object in each game area, and the component identification of each game object component of each fixed game object in each game area.
[0123] The above S3 can intuitively and comprehensively display the fixed configuration data of the game map by displaying the full amount of fixed configuration data of the game map, and provide a reference method for subsequent reference to the full amount of fixed configuration data of the game map.
[0124] As an example of S3, based on the above S3021-S3023 examples, based on the 8×8 storage paths corresponding to the 8×8 levels in the game map of game A, the storage path of each level is displayed; and for the storage path of each level, the game object identifier, game object type and game object position of each Actor in each level, and the component identifier of each Component of each Actor in each level are displayed. Figure 8 , Figure 8 A schematic diagram of a full amount of fixed configuration data of a game map provided in an embodiment of the present application; wherein the storage path of the level is specifically the Level path, the game object identifier of the Actor is specifically the Actor name, the game object type of the Actor is specifically the Actor type, the game object position of the Actor is specifically the level to which the Actor belongs, and the component identifier of the Component is specifically the Component name; based on this, on the basis of the 8×8 storage paths corresponding to the 8×8 levels in the game map of game A, the storage path of a level is displayed as / Game / Maps / …, and for this / Game / Maps / …, the Actor name of an Actor in the level is displayed as ActorName1 , Actor type is ActorType1, a Component's component identifier is ComponentName1, and another Component of the Actor's component identifier is ComponentName2; another Actor in the level is displayed as ActorName2, Actor type is ActorType2, and a Component's component identifier is ComponentName3; another Actor in the level is displayed as ActorName3, Actor type is ActorType3, and a Component's component identifier is ComponentName4, and so on. In addition, you can also enter one or more of the Level path, Actor name, Actor type, and Component name to query part of the fixed configuration data in the full fixed configuration data of the game map.
[0125] In addition, in an embodiment of the present application, in order to more conveniently consult the number of game objects of multiple fixed game objects in each game area, and the number of components of multiple game object components in each game area; thumbnail schematic diagrams of multiple game areas can also be combined to display the regional position of each game area in the game map, and display the number of game objects of multiple fixed game objects in each game area, and the number of components of multiple game object components in each game area. Therefore, the present application provides a possible implementation method, and the method also includes S4 (not shown in the figure): according to the thumbnail schematic diagrams of multiple game areas, the regional position of each game area in the game map, the number of game objects of multiple fixed game objects in each game area, and the number of components of multiple game object components in each game area are displayed.
[0126] The above-mentioned S4 uses thumbnail diagrams of multiple game areas in the game map to centrally display the number of game objects of multiple fixed game objects in each game area and the number of components of multiple game object components in each game area, so as to more conveniently and centrally display the fixed configuration data of the game map, and provide a reference method for subsequent quick reference to the fixed configuration data of the game map.
[0127] As an example of S4, based on the above S3021-S3023 examples, combined with the thumbnail diagram of 8×8 levels in the game map of game A, the regional location of each level in the game map is displayed, and the number of game objects of multiple Actors in each level and the number of components in each level are displayed. Fig. 9 , Fig. 9 A schematic diagram of a fixed configuration data for centrally displaying a game map provided for an embodiment of the present application; wherein, the number of game objects of multiple Actors is specifically the number of Actors, and the number of components of multiple Components is specifically the number of Components. Based on this, combined with the thumbnail schematic diagram of 8×8 levels in the game map of Game A, the area position of a level in the game map is displayed as (x=302400, y=403200), and the number of Actors and the number of Components in the level are displayed as 370 and 4134. In addition, the number of logical game object components (TickComponent) in the level can also be displayed as 479.
[0128] In addition, in an embodiment of the present application, based on the above S4, taking into account that the number of game objects of multiple fixed game objects in a game area may exceed a certain number threshold, in order to intuitively display in the thumbnail schematic diagrams of multiple game areas that the number of game objects of multiple fixed game objects in the game area exceeds a certain number threshold, it is also necessary to highlight the game area; further taking into account that the degree to which the number of game objects of multiple fixed game objects in different game areas exceeds the certain number threshold may be different, it is also necessary to highlight the different game areas to different degrees.
[0129] Based on this, the upper limit of the number of game objects of multiple fixed game objects in the game area is set to the first number of objects, and the second number of objects is greater than the first number of objects. For each game area, it is determined whether the number of game objects of multiple fixed game objects in the game area is greater than the first number of objects. If it is greater than the first number of objects, it is further determined whether the number of game objects of multiple fixed game objects in the game area is less than the second number of objects. If it is less than the second number of objects, in the thumbnail schematic diagrams of multiple game areas, the game area is displayed in a first highlighting method with a smaller degree of highlighting; if it is greater than or equal to the second number of objects, in the thumbnail schematic diagrams of multiple game areas, the game area is displayed in a second highlighting method with a larger degree of highlighting, so that the thumbnail schematic diagrams of multiple game areas are presented as a heat map of the number of game objects of multiple fixed game objects in multiple game areas. Therefore, the present application provides a possible implementation method, and the method also includes one or more of S5 and S6 (not shown in the figure):
[0130] S5: For each game area, if the number of game objects of multiple fixed game objects in the game area is greater than the first number of objects, and the number of game objects of multiple fixed game objects in the game area is less than the second number of objects, in the thumbnail diagram, the game area is displayed according to the first highlighting method; the second number of objects is greater than the first number of objects.
[0131] S6: If the number of game objects of the plurality of fixed game objects in the game area is greater than or equal to the second number of objects, in the thumbnail diagram, the game area is displayed according to a second highlighting method; the highlighting degree of the second highlighting method is greater than the highlighting degree of the first highlighting method.
[0132] In addition, if the number of game objects of the plurality of fixed game objects in the game area is less than or equal to the first number of objects, the game area is displayed in the thumbnail schematic diagram according to a normal display method.
[0133] The above S5 and the above S6 display the game areas where the number of game objects of multiple fixed game objects exceeds a certain number threshold in the thumbnail schematic diagrams of multiple game areas in a highlighted manner, so that the game areas where the number of game objects of multiple fixed game objects exceeds the certain number threshold can be quickly and intuitively determined from the multiple game areas, so as to quickly check the game areas where the number of game objects of multiple fixed game objects exceeds the certain number threshold; and different degrees of exceeding the certain number threshold are represented by different degrees of highlighting, so that different game areas with different degrees of exceeding the certain number threshold can be more intuitively distinguished.
[0134] Based on S3, S4, S5 and S6 above, see Fig.10 , Fig.10 A flowchart for displaying fixed configuration data of a game map provided in an embodiment of the present application; the process includes: a first step, displaying the full fixed configuration data of the game map, that is, displaying the storage path of each game area, and for the storage path of each game area, displaying the game object identification, game object type and game object position of each fixed game object in each game area, and the component identification of each game object component of each fixed game object in each game area; a second step, centrally displaying the fixed configuration data of the game map based on thumbnail schematic diagrams of multiple game areas, that is, displaying the area position of each game area in the game map, and displaying the number of game objects of multiple fixed game objects in each game area, and the number of components of multiple game object components in each game area; a third step, based on the thumbnail schematic diagrams of multiple game areas, highlighting the game area where the number of game objects of multiple fixed game objects exceeds the standard, that is, when the number of game objects of multiple fixed game objects in the game area is greater than the first object number and less than the second object number, the game area is displayed in the thumbnail schematic diagram according to the first highlighting mode; when the number of game objects of multiple fixed game objects in the game area is greater than or equal to the second object number, the game area is displayed in the thumbnail schematic diagram according to the second highlighting mode.
[0135] As an example of the above S5 and the above S6, the first highlighting mode is a yellow highlighting mode, the second highlighting mode is a red highlighting mode, in the above S4 example and the above Fig. 9On the basis of, the first object number is a, a is a positive integer, the second object number is b, b is a positive integer, a<b, for each level, when the number of Actors in the level is greater than a and the number of Actors is less than b, the level is displayed in yellow in the thumbnail diagram of the 8×8 levels in the game map of game A; when the number of Actors in the level is greater than or equal to b, the level is displayed in red in the thumbnail diagram of the 8×8 levels in the game map of game A. In addition, the normal display mode is the green display mode, when the number of Actors in the level is less than or equal to a, the level is displayed in green in the thumbnail diagram of the 8×8 levels in the game map of game A.
[0136] In addition, in the embodiment of the present application, after executing S3041-S3043 to obtain the full random configuration data of the game map, in order to facilitate the subsequent review of the full random configuration data of the game map; it is also possible to display the regional position of each sub-game area in the game map and the number of game objects of multiple random game objects in each sub-game area based on multiple sub-game areas. Therefore, the present application provides a possible implementation method, and the method also includes S7 (not shown in the figure): for multiple sub-game areas, display the regional position of each sub-game area in the game map and the number of game objects of multiple random game objects in each sub-game area.
[0137] The above-mentioned S7 can intuitively and comprehensively display the random configuration data of the game map by displaying the full amount of random configuration data of the game map, and provide a reference method for subsequent careful reference to the full amount of random configuration data of the game map.
[0138] As an example of the above S7, based on the above S3041-S3043 examples, based on n×n game units, the regional position of each game unit on the game map and the number of game objects of multiple pickups in each game unit are displayed. Fig.11 , Fig.11A schematic diagram of a full amount of random configuration data of a game map is provided for an embodiment of the present application; wherein, the regional position of a game unit in the game map is specifically the position value of the cell (Cell), and the number of game objects of the pickup is specifically the value of the number (Count); based on this, on the basis of n×n game units, the regional position of a game unit in the game map is displayed as Cell=102000_51000 and the number of game objects of multiple pickups in the game unit is Count=1; the regional position of another game unit in the game map is displayed as Cell=102000_54000 and the number of game objects of multiple pickups in the game unit is Count=1; the regional position of another game unit in the game map is displayed as Cell=102000_57000 and the number of game objects of multiple pickups in the game unit is Count=5, and so on; in addition, the total number of game objects of multiple pickups in n×n game units can also be displayed as PickupCount=35076.
[0139] In addition, in the embodiment of the present application, considering that the number of game objects of multiple random game objects in the sub-game area is actually random with probability within a certain object number range, the number of game objects of multiple random game objects in the sub-game area may also exceed a certain number threshold. In order to timely discover that the number of game objects of multiple random game objects in the sub-game area exceeds a certain number threshold, it is also necessary to give an alarm to the sub-game area. Based on this, the upper limit of the number of game objects of multiple random game objects in the sub-game area is set to the third object number. For each sub-game area, it is determined whether the number of game objects of multiple random game objects in the sub-game area is greater than the third object number. If it is greater than the third object number, combined with the preset random configuration mode and the version identification of the game map, the regional position of the sub-game area in the game map and the number of game objects of multiple random game objects in the sub-game area are given an alarm. Therefore, the present application provides a possible implementation method, and the method also includes S8 (not shown in the figure): for each sub-game area, if the number of game objects of multiple random game objects in the sub-game area is greater than the third object number, according to the preset random configuration mode and the version identification of the game map, the regional position of the sub-game area in the game map and the number of game objects of multiple random game objects in the sub-game area are given an alarm.
[0140] The above-mentioned S8 notifies the sub-game areas where the number of game objects of multiple random game objects exceeds a certain number threshold through an alarm prompt, and can quickly and timely discover the sub-game areas where the number of game objects of multiple random game objects exceeds a certain number threshold from multiple sub-game areas, so as to quickly check the sub-game areas where the number of game objects of multiple random game objects exceeds a certain number threshold, and facilitate the subsequent adjustment of the sub-game areas where the number of game objects of multiple random game objects exceeds a certain number threshold.
[0141] See also Fig.12 , Fig.12 A flowchart for displaying fixed configuration data of a game map provided in an embodiment of the present application; the flow includes: a first step, displaying the full amount of random configuration data of the game map, that is, displaying the regional position of each sub-game area in the game map and the number of game objects of multiple random game objects in each sub-game area; a second step, determining the sub-game area where the number of game objects of multiple random game objects exceeds the standard, that is, determining the sub-game area where the number of game objects of multiple random game objects is greater than the third number of objects; a third step, issuing an alarm for the sub-game area where the number of game objects of multiple random game objects exceeds the standard, that is, when the number of game objects of multiple random game objects in the sub-game area is greater than the third number of objects, according to the preset random configuration mode and the version identifier of the game map, issuing an alarm for the regional position of the sub-game area in the game map and the number of game objects of multiple random game objects in the sub-game area.
[0142] As an example of S8, the third number of objects is c, where c is a positive integer. In S303, the random configuration mode is preset as random configuration mode 1, and based on the example of S7, for each game unit, when the number of game objects of multiple pickups in the game unit is greater than c, combined with random configuration mode 1 and the version identifier of the game map of game A, an alarm is given for the regional position of the game unit in the game map and the number of game objects of multiple pickups in the game unit. Fig.13 , Fig.13A schematic diagram of an alarm prompt for the number of game objects of multiple random game objects in a sub-game area provided in an embodiment of the present application; wherein, c=80, the number of game objects of multiple Pickups in a game unit is greater than c, that is, one Count=94>80, and the regional position of the game unit in the game map is Cell=213000_423000; the number of game objects of multiple Pickups in another game unit is greater than c, that is, another Count=143>80, and the regional position of the game unit in the game map is Cell=216000_420000; in combination with random configuration mode 1 and the version identifier of the game map of game A, the robot is notified through Pickup to the alarm prompt Cell=213000_423000, Count=94>80, and Cell=216000_420000, Count=143>80.
[0143] It should be noted that, based on the implementation methods provided in the above aspects, this application can also be further combined to provide more implementation methods.
[0144] based on Figure 2 Corresponding to the method for scanning the configuration data of the game map provided in the embodiment, the embodiment of the present application also provides a device for scanning the configuration data of the game map, see Fig.14 , Fig.14 A structural diagram of a device for scanning configuration data of a game map provided in an embodiment of the present application, wherein the device 1400 for scanning configuration data of a game map comprises: a loading unit 1401, a scanning unit 1402, a configuration unit 1403, and a determination unit 1404;
[0145] The loading unit 1401 is used to load multiple game areas in the game map;
[0146] The scanning unit 1402 is used to perform a full scan of multiple fixed configuration data in multiple game areas through a game area scanner to obtain the full fixed configuration data of the game map;
[0147] The configuration unit 1403 is used to randomly configure the multiple game areas according to a preset random configuration mode to obtain the multiple game areas after random configuration;
[0148] The scanning unit 1402 is further used to perform a full scan of the multiple random configuration data in the multiple game areas after random configuration through a game area scanner to obtain the full random configuration data of the game map;
[0149] The determination unit 1404 is used to determine the full amount of fixed configuration data and the full amount of random configuration data as the full amount of configuration data of the game map.
[0150] In a possible implementation, the loading unit 1401 is specifically configured to:
[0151] Get the game area collection of the game map;
[0152] Load multiple game areas according to the association relationship between multiple game areas in the game area set.
[0153] In a possible implementation, the scanning unit 1402 is specifically configured to:
[0154] Performing a full scan of multiple fixed game objects in each game area through a game area scanner to obtain a game object identifier, a game object type and a game object position of each fixed game object in each game area, as well as the number of game objects of the multiple fixed game objects in each game area;
[0155] Performing a full scan of multiple game object components of each fixed game object in each game area through a game area scanner to obtain a component identifier of each game object component of each fixed game object in each game area and a component quantity of multiple game object components in each game area;
[0156] According to multiple game areas, the game object identification, game object type and game object position of each fixed game object in each game area, the number of multiple fixed game objects in each game area, the component identification of each game object component of each fixed game object in each game area, and the number of components of multiple game object components in each game area are summarized to obtain the full fixed configuration data.
[0157] In a possible implementation, the scanning unit 1402 is specifically configured to:
[0158] Dividing the randomly configured multiple game areas into multiple sub-game areas;
[0159] Perform a full scan of multiple random game objects in each sub-game area through a game area scanner to obtain the number of game objects of the multiple random game objects in each sub-game area;
[0160] According to multiple sub-game areas, the number of game objects of multiple random game objects in each sub-game area is summarized to obtain full random configuration data.
[0161] In a possible implementation, the device further includes: a storage unit and a sending unit;
[0162] A storage unit, used to store all configuration data in a local database;
[0163] The sending unit is used to send the full configuration data to the server.
[0164] In one possible implementation, the game area scanner is a plug-in for a game engine editor.
[0165] In a possible implementation, the device further includes: a first display unit;
[0166] The first display unit is used to display the storage path of each game area, the game object identification of each fixed game object in each game area, the game object type and the game object position, and the component identification of each game object component of each fixed game object in each game area for multiple storage paths corresponding to the multiple game areas.
[0167] In a possible implementation, the device further includes: a second display unit;
[0168] The second display unit is used to display the regional position of each game area in the game map, the number of game objects of multiple fixed game objects in each game area, and the number of components of multiple game object components in each game area according to thumbnail schematic diagrams of multiple game areas.
[0169] In a possible implementation, the second display unit is further used for:
[0170] For each game area, if the number of game objects of multiple fixed game objects in the game area is greater than the first number of objects, and the number of game objects of multiple fixed game objects in the game area is less than the second number of objects, in the thumbnail diagram, the game area is displayed according to the first highlighting method; the second number of objects is greater than the first number of objects.
[0171] If the number of game objects of the multiple fixed game objects in the game area is greater than or equal to the second number of objects, in the thumbnail diagram, the game area is displayed according to the second highlighting method; the highlighting degree of the second highlighting method is greater than the highlighting degree of the first highlighting method.
[0172] In a possible implementation, the device further includes: a third display unit;
[0173] The third display unit is used to display, for multiple sub-game areas, the area position of each sub-game area in the game map and the number of game objects in the multiple random game objects in each sub-game area.
[0174] In a possible implementation, the device further includes: a prompting unit;
[0175] A prompt unit is used to, for each sub-game area, if the number of game objects of multiple random game objects in the sub-game area is greater than the third object number, give an alarm prompt for the area position of the sub-game area in the game map and the number of game objects of multiple random game objects in the sub-game area according to a preset random configuration mode and a version identifier of the game map.
[0176] It can be seen from the above technical solution that the scanning device for the configuration data of the game map includes a loading unit, a scanning unit, a configuration unit and a determination unit. Among them, the loading unit is used to load multiple game areas in the game map; the scanning unit is used to scan multiple fixed configuration data in multiple game areas through a game area scanner to obtain the full fixed configuration data of the game map; it can quickly scan the full fixed configuration data of the game map, and avoid problems such as missed inspection and mischeck of the fixed configuration data of the game map. The configuration unit is used to randomly configure multiple game areas according to a preset random configuration mode to obtain multiple game areas after random configuration; the scanning unit is also used to scan multiple random configuration data in multiple game areas after random configuration through a game area scanner to obtain the full random configuration data of the game map; it can quickly scan the full random configuration data of the game map, and avoid problems such as missed inspection and mischeck of the random configuration data of the game map. The determination unit is used to use the full fixed configuration data and the full random configuration data as the full configuration data of the game map; it can quickly summarize the full configuration data of the game map to determine whether the configuration data of the game map has room for optimization. Based on this, when the game map is very large, the device can not only quickly obtain the full configuration data of the game map without consuming a lot of manpower and time, but also avoid problems such as missed and mischecked configuration data of the game map; thereby improving the efficiency of subsequent performance testing of game maps, making subsequent performance testing of game maps more comprehensive and accurate.
[0177] The present application also provides a computer device, which may be a terminal. Fig.15 , Fig.15 A structural diagram of a terminal provided for an embodiment of the present application. Taking a smartphone as an example, the smartphone includes: a radio frequency (RF) circuit 1510, a memory 1520, an input unit 1530, a display unit 1540, a sensor 1550, an audio circuit 1560, a wireless fidelity (WiFi) module 1570, a processor 1580, and a power supply 15120 and other components. The input unit 1530 may include a touch panel 1531 and other input devices 1532, the display unit 1540 may include a display panel 1541, and the audio circuit 1560 may include a speaker 1561 and a microphone 1562. Those skilled in the art will understand that Fig.15 The structure of the smartphone shown in the figure does not constitute a limitation of the smartphone, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0178] The memory 1520 can be used to store software programs and modules. The processor 1580 executes various functional applications and data processing of the smartphone by running the software programs and modules stored in the memory 1520. The memory 1520 may mainly 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 (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the smartphone (such as audio data, a phone book, etc.), etc. In addition, the memory 1520 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0179] The processor 1580 is the control center of the smartphone, which uses various interfaces and lines to connect various parts of the entire smartphone, and executes various functions of the smartphone and processes data by running or executing software programs and / or modules stored in the memory 1520, and calling data stored in the memory 1520. Optionally, the processor 1580 may include one or more processing units; preferably, the processor 1580 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 1580.
[0180] In this embodiment, the processor 1580 in the smart phone can execute the methods provided in various optional implementations of the above embodiments.
[0181] The computer device provided in the embodiment of the present application may also be a server. Fig.16 , Fig.16A structural diagram of a server provided in an embodiment of the present application, the server 1600 may have relatively large differences due to different configurations or performances, and may include one or more processors, such as CPU 1622, and memory 1632, one or more storage media 1630 (such as one or more mass storage devices) storing application programs 1642 or data 1644. Among them, the memory 1632 and the storage medium 1630 can be short-term storage or persistent storage. The program stored in the storage medium 1630 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the server. Furthermore, the central processing unit 1622 can be configured to communicate with the storage medium 1630 and execute a series of instruction operations in the storage medium 1630 on the server 1600.
[0182] The server 1600 may also include one or more power supplies 1626, one or more wired or wireless network interfaces 1650, one or more input and output interfaces 1658, and / or one or more operating systems 1641, such as Windows Server 2000. TM , Mac OS X TM , Unix TM ,Linux TM , FreeBSD TM etc.
[0183] In this embodiment, the central processor 1622 in the server 1600 can execute the methods provided in various optional implementations of the above embodiments.
[0184] According to one aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium is used to store a computer program. When the computer program is executed on a computer device, the computer device executes the methods provided in various optional implementations of the above embodiments.
[0185] According to one aspect of the present application, a computer program product is provided, the computer program product comprising a computer program, the computer program being stored in a computer-readable storage medium. A processor of a computer device reads the computer program from the computer-readable storage medium, and the processor executes the computer program, so that the computer device executes the method provided in various optional implementations of the above-mentioned embodiments.
[0186] The descriptions of the processes or structures corresponding to the above-mentioned figures have different emphases. For parts that are not described in detail in a certain process or structure, please refer to the relevant descriptions of other processes or structures.
[0187] The terms "first", "second", etc. in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchangeable in appropriate circumstances, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein, for example. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, the process, method, system, product or equipment comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or equipment.
[0188] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0189] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0190] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0191] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or all or part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc. Various media that can store computer programs.
[0192] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, ordinary technical members in the art should understand that they can still modify the technical solutions recorded in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for scanning configuration data of a game map, characterized in that: The method comprises: Load multiple game areas in the game map; Scanning the plurality of fixed configuration data in the plurality of game areas in full by using a game area scanner to obtain the full fixed configuration data of the game map; Randomly configuring the multiple game areas according to a preset random configuration mode to obtain multiple randomly configured game areas; The game area scanner performs a full scan of the multiple random configuration data in the multiple game areas after the random configuration to obtain the full random configuration data of the game map; The full amount of fixed configuration data and the full amount of random configuration data are determined as the full amount of configuration data of the game map.
2. The method according to claim 1, characterized in that: The loading of multiple game areas in the game map includes: Obtain a game area set of the game map; The multiple game areas are loaded according to the association relationship between the multiple game areas in the game area set.
3. The method according to claim 1, characterized in that The step of scanning the plurality of fixed configuration data in the plurality of game areas by a game area scanner to obtain the full amount of fixed configuration data of the game map includes: Performing a full scan of multiple fixed game objects in each game area by the game area scanner to obtain a game object identifier, a game object type and a game object position of each fixed game object in each game area, and the number of game objects of the multiple fixed game objects in each game area; Performing a full scan of multiple game object components of each fixed game object in each game area by the game area scanner to obtain a component identifier of each game object component of each fixed game object in each game area and a component quantity of the multiple game object components in each game area; According to the multiple game areas, the game object identifier, game object type and game object position of each fixed game object in each game area, the number of multiple fixed game objects in each game area, the component identifier of each game object component of each fixed game object in each game area, and the number of components of multiple game object components in each game area are summarized to obtain the full fixed configuration data.
4. The method according to claim 1, characterized in that: The step of scanning the random configuration data in the random configuration game areas by the game area scanner to obtain the random configuration data of the game map includes: Dividing the randomly configured multiple game areas into multiple sub-game areas; Performing a full scan of the multiple random game objects in each sub-game area by the game area scanner to obtain the number of game objects of the multiple random game objects in each sub-game area; According to the multiple sub-game areas, the numbers of game objects of the multiple random game objects in each sub-game area are summarized to obtain the full amount of random configuration data.
5. The method according to any one of claims 1 to 4, characterized in that: The method further comprises: Storing the full configuration data in a local database; Send the full configuration data to the server.
6. The method according to any one of claims 1 to 4, characterized in that: The game area scanner is a plug-in for the game engine editor.
7. The method according to claim 4, characterized in that The method further comprises: For the multiple storage paths corresponding to the multiple game areas, the storage path of each game area, the game object identifier, the game object type and the game object position of each fixed game object in each game area, and the component identifier of each game object component of each fixed game object in each game area are displayed.
8. The method according to claim 4, characterized in that The method further comprises: According to the thumbnail schematic diagrams of the multiple game areas, the area position of each game area in the game map, the number of game objects of the multiple fixed game objects in each game area, and the number of components of the multiple game object components in each game area are displayed.
9. The method according to claim 8, characterized in that The method further comprises: For each of the game areas, if the number of game objects of the multiple fixed game objects in the game area is greater than the first number of objects, and the number of game objects of the multiple fixed game objects in the game area is less than the second number of objects, in the thumbnail diagram, the game area is displayed according to the first highlighting method; the second number of objects is greater than the first number of objects. If the number of game objects of the multiple fixed game objects in the game area is greater than or equal to the second number of objects, in the thumbnail diagram, the game area is displayed according to a second highlighting method; the highlighting degree of the second highlighting method is greater than the highlighting degree of the first highlighting method.
10. The method according to claim 5, characterized in that The method further comprises: For the multiple sub-game areas, the area position of each sub-game area in the game map and the number of game objects of the multiple random game objects in each sub-game area are displayed.
11. The method according to claim 5, characterized in that The method further comprises: For each sub-game area, if the number of game objects of the multiple random game objects in the sub-game area is greater than the third object number, based on the preset random configuration mode and the version identifier of the game map, an alarm prompt is given for the area position of the sub-game area in the game map and the number of game objects of the multiple random game objects in the sub-game area.
12. A device for scanning configuration data of a game map, characterized in that: The device comprises: a loading unit, a scanning unit, a configuration unit and a determination unit; The loading unit is used to load multiple game areas in the game map; The scanning unit is used to perform a full scan of the multiple fixed configuration data in the multiple game areas through a game area scanner to obtain the full fixed configuration data of the game map; The configuration unit is used to randomly configure the multiple game areas according to a preset random configuration mode to obtain multiple game areas after random configuration; The scanning unit is further used to perform a full scan of the multiple random configuration data in the multiple game areas after the random configuration through the game area scanner to obtain the full random configuration data of the game map; The determining unit is used to determine the full amount of fixed configuration data and the full amount of random configuration data as the full amount of configuration data of the game map.
13. A computer device, characterized in that: The computer device comprises a processor and a memory: The memory is used to store a computer program and transmit the computer program to the processor; The processor is configured to execute the method according to any one of claims 1 to 11 according to the instructions in the computer program.
14. A computer-readable storage medium, characterized in that: The computer-readable storage medium is used to store a computer program, and when the computer program is executed on a computer device, the computer device executes the method according to any one of claims 1 to 11.
15. A computer program product comprising a computer program, characterized in that When the computer program is executed on a computer device, the computer device is caused to execute the method according to any one of claims 1 to 11.