CN109806592B - Game resource monitoring method and device - Google Patents
Game resource monitoring method and device Download PDFInfo
- Publication number
- CN109806592B CN109806592B CN201910046778.9A CN201910046778A CN109806592B CN 109806592 B CN109806592 B CN 109806592B CN 201910046778 A CN201910046778 A CN 201910046778A CN 109806592 B CN109806592 B CN 109806592B
- Authority
- CN
- China
- Prior art keywords
- resource
- game
- distribution data
- resources
- configuration file
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Landscapes
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The embodiment of the invention provides a method and a device for monitoring game resources, wherein the method comprises the following steps: responding to the change of a resource configuration file in a specified directory, and acquiring the resource configuration file; extracting resource distribution data from the resource configuration file; the resource distribution data comprises resource point distribution data of each game resource in each game scene; and displaying the game resources in the game scene according to the resource point distribution data. The embodiment of the invention can display the game resources in a visual form in the game scene, assist the resource distributor and the tester to detect, and improve the detection speed and accuracy.
Description
Technical Field
The invention relates to the technical field of internet, in particular to a game resource monitoring method and a game resource monitoring device.
Background
The game resources are an important part of the game, and specifically comprise articles such as treasure boxes, props, equipment and the like in the game. Most game resources are directly arranged in game scenes by art or plan (resource arrangers), and as the game scenes are usually very large, the game resources in specific areas in the scenes are distributed in each area, and even the resource arrangers are difficult to integrally control the distribution of the game resources in the game scenes.
For monitoring the game resource distribution, no effective technical scheme exists at present. The resource arranger completes the arrangement of the game resources in the scene editor, and also needs to fill in the falling condition of the arranged game resources in a form, the resource arranger performs verification, or a tester performs testing, generally, after the resource arranger finishes the arrangement of the game resources, the resource arranger finds out the problems of the distribution of the game resources by checking the scene, the impression of the resource arranger or the feedback of a player, and then passively modifies the areas with the problems.
Disclosure of Invention
In view of the above problems, embodiments of the present invention are provided to provide a method for monitoring a game resource and a corresponding apparatus for monitoring a game resource, which overcome or at least partially solve the above problems.
In order to solve the above problems, an embodiment of the present invention discloses a method for monitoring game resources, including:
responding to the change of a resource configuration file in a specified directory, and acquiring the resource configuration file;
extracting resource distribution data from the resource configuration file; the resource distribution data comprises resource point distribution data of each game resource in each game scene;
and displaying the game resources in the game scene according to the resource point distribution data.
Preferably, the resource point distribution data includes location, quantity, category, and model path data used by the resource, and after the game resource is displayed in the game scene according to the resource point distribution data, the method further includes:
judging whether the game resources are in illegal positions in game scenes according to the positions;
and when the game resources are positioned at illegal positions in the game scene, generating illegal position prompt information.
Preferably, after the game resource is displayed in the game scene according to the resource point distribution data, the method further includes:
counting the resource density of game resources in at least one area in the game scene;
judging whether the resource density meets a preset condition or not by adopting the preset resource density threshold value;
and when the resource density does not meet the preset condition, generating prompt information that the resource density is unreasonable.
Preferably, the resource configuration file has corresponding time data, and after the game resource is displayed in the game scene according to the resource point distribution data, the method further includes:
and marking the game resources with different time data in different colors in the game scene.
Preferably, the displaying the game resources in the game scene according to the resource point distribution data includes:
receiving a viewing request of game resources, and screening target game resources from the game resources according to the viewing request;
and displaying the target game resources in the game scene according to the resource point distribution data.
The embodiment of the invention discloses a monitoring device of game resources, which comprises:
the resource configuration file acquisition module is used for responding to the change of the resource configuration file in the specified directory and acquiring the resource configuration file;
the resource distribution data extraction module is used for extracting resource distribution data from the resource configuration file; the resource distribution data comprises resource point distribution data of each game resource in each game scene;
and the game resource display module is used for displaying the game resources in the game scene according to the resource point distribution data.
Preferably, the resource point distribution data includes location, quantity, category, and model path data used by the resource, and further includes:
the position judgment module is used for judging whether the game resources are in illegal positions in a game scene according to the positions;
and the first prompting module is used for generating illegal position prompting information when the game resource is positioned at an illegal position in a game scene.
Preferably, the method further comprises the following steps:
the resource density counting module is used for counting the resource density of game resources in at least one region in the game scene;
the resource density judging module is used for judging whether the resource density meets a preset condition or not by adopting the preset resource density threshold value;
and the second prompting module is used for generating prompting information that the resource density is unreasonable when the resource density does not meet the preset condition.
The embodiment of the invention also discloses an electronic device, which comprises:
one or more processors; and
one or more machine readable media having instructions stored thereon that, when executed by the one or more processors, cause the electronic device to perform one or more methods as described above.
Embodiments of the invention also disclose one or more machine-readable media having instructions stored thereon, which when executed by one or more processors, cause the processors to perform one or more of the methods described above.
The embodiment of the invention has the following advantages:
in the embodiment of the invention, the designated directory is monitored in real time, the resource configuration file is obtained from the designated directory, and after the resource distribution data is extracted from the resource configuration file, the resource distribution data is displayed in a game scene according to the resource point distribution data of each resource in the resource distribution data. The game resources can be displayed in a visual form in a game scene, a resource distributor and a tester are assisted to detect, and the detection speed and accuracy are improved.
Drawings
FIG. 1 is a flow chart of steps of a method of monitoring game resources according to an embodiment of the present invention;
FIG. 2 is an overall block diagram of an automated resource distribution monitoring and display of the present invention;
FIG. 3 is a flow diagram of game resource monitoring and testing of the present invention;
FIG. 4 is an architectural diagram of an inspection and presentation platform of the present invention;
fig. 5 is a block diagram of a monitoring apparatus for game resources according to an embodiment of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention more comprehensible, the present invention is described in detail with reference to the accompanying drawings and the detailed description thereof.
Specifically, by monitoring the distribution of game resources through a race scene, an impression of a resource arranger, or through feedback of a player, there are disadvantages as follows:
1. the impression of the resource arranger on the arrangement of the game resources is not always completely correct, which may cause strong instability in the arrangement of the game resources, for example, one area may arrange too many game resources, while another area may arrange too few game resources, which is difficult to detect.
2. The game resources arranged by the resource arranger each time can not be effectively compared and the difference can be found, the verification steps are complicated, and the difficulty is high.
3. Checking the distribution of game resources through the search scenes requires a lot of labor and time, and since the game scenes are too large, it is not always possible to accurately check each area. The traditional running scene needs testers to enter a game scene in person and walk around each corner of the scene to check whether the positions, the quantity and the types of the refreshed game resources are correct, but because the types and the quantity of the resources generated when the testers enter the scene each time are random, whether the game resources meet the requirements of resource distributors or not cannot be verified at one time.
4. After the resource allocator arranges the game resources, there are some particularly obvious problems, for example, a plurality of precious game resources are arranged in a very close area and cannot be discovered in time.
Aiming at the problems, the embodiment of the invention provides a game resource monitoring method, which can macroscopically display the distribution situation of game resources in the whole game scene, can perform error check and help a resource distributor and related testers to control the resource distribution situation of the whole game scene.
Referring to fig. 1, a flowchart illustrating steps of an embodiment of a method for monitoring game resources according to the present invention is shown, which may specifically include the following steps:
Some key terms related to the embodiments of the present invention are first described:
bootstrap: a front-end development framework;
echarts: a Javascript-based data visualization chart library;
jenkins: the continuous integration tool is developed based on Java and is used for monitoring continuous and repeated work;
SVN: the version control system of the open source code can realize that extra processing logic is executed before and after submission through hook;
django: a Web application framework of an open source code, which is written by Python;
ajax: a technique is provided for updating a portion of a web page without reloading the entire web page.
In a specific implementation, a resource arranger generates a resource configuration file each time after completing new game resource arrangement, and each game scene has a resource configuration file of its own. When a resource profile in a designated directory (SVN directory) is monitored, the resource profile will be exported.
In the embodiment of the invention, the SVN directory can be monitored in real time by using the SVN-hook, once a newly submitted resource configuration file exists, an export task on Jenkins is triggered, and the resource configuration file is exported to the resource distribution data of each game scene.
And 103, displaying the game resources in the game scene according to the resource point distribution data.
Jenkins uploads the resource distribution data to a checking and displaying platform, and the checking and displaying platform draws and displays the resource point distribution data based on each resource in the resource distribution data in a game scene.
In a preferred embodiment of the present invention, the resource point distribution data includes location data of the resource, and the method may further include the steps of:
judging whether the game resources are in illegal positions in a game scene according to the positions;
and when the game resources are positioned at illegal positions in the game scene, generating illegal position prompt information.
In an example, the embodiment of the present invention may determine whether the resource appears at an illegal position according to the position of the game resource, and if the resource appears at the illegal position, generate a prompt message indicating that the position is illegal, and display the prompt message at a corresponding position of the resource in a game scene to remind a tester to modify the resource.
In a preferred embodiment of the present invention, the method may further comprise the steps of:
counting the resource density of game resources in at least one area in the game scene;
judging whether the resource density meets a preset condition or not by adopting the preset resource density threshold value;
and when the resource density does not meet the preset condition, generating prompt information that the resource density is unreasonable.
In an example, the embodiment of the present invention may count the resource density of a certain area or a plurality of areas in a game scene, determine whether the resource density of the area exceeds a preset resource density threshold to determine whether the resource density meets a preset condition, if the resource density does not meet the preset condition, generate an unreasonable density prompt message, and display the unreasonable density prompt message at a corresponding position in the game scene to prompt a tester to modify the message.
In a preferred embodiment of the present invention, the method may further comprise the steps of:
and marking the game resources with different time data in different colors in the game scene.
In the embodiment of the invention, game resources in a plurality of time periods (time data) can be selected and marked with different colors on a game scene for display, so that a placer can compare the difference of game resource placement at any time conveniently.
In a preferred embodiment of the present invention, the step 103 may comprise the following sub-steps:
receiving a viewing request of game resources, and screening target game resources from the game resources according to the viewing request;
and displaying the target game resources in the game scene according to the resource point distribution data.
In the embodiment of the invention, the corresponding resource list is generated according to the resource configuration file of the game scene, wherein the resource list mainly plays a role in screening, for example, the game resources comprise clothes, hats, weapons, shoes and treasure boxes, and the resources in the clothes comprise clothes 1, clothes 2 and clothes 3. And under the default condition, the distribution conditions of all game resources can be displayed in the checking and displaying platform, if a tester only cares about the distribution condition of a certain specific game resource, the tester can select the corresponding resource through the resource list to check, and after a specific game resource is selected, the distribution condition of the resource can be only displayed on a game scene.
In the embodiment of the invention, the designated directory is monitored in real time, the resource configuration file is obtained from the designated directory, the resource distribution data is extracted from the resource configuration file, and then the resource point distribution data of each resource in the resource distribution data is displayed in a game scene. The game resources can be displayed in a visual form in a game scene, a resource distributor and a tester are assisted to detect, and the detection speed and accuracy are improved.
The embodiment of the invention realizes a resource monitoring website (checking and displaying platform), can improve the efficiency and the accuracy of resource arrangement, and improves the efficiency of verifying the resource arrangement by development and test personnel. The resource monitoring website is built on a Linux server and can be accessed and used through a PC or a mobile device (such as a tablet computer, a smart phone and the like) with network and browser functions.
After a resource arranger completes new resource arrangement each time, a resource configuration file is generated, each game scene has a resource configuration file, SVN catalogues are monitored in real time through SVN-hook, once a newly submitted resource configuration file exists, an export task on Jenkins is triggered, the resource configuration files are exported to be resource distribution data of each scene, the resource distribution data are uploaded to a resource monitoring website, and the resource monitoring website is displayed after being processed. The SVN-hook and Jenkins can realize real-time monitoring of the resource configuration file, can update the display of the resource in real time, and ensure that development and test personnel see the latest resource distribution condition on a resource monitoring website.
According to the embodiment of the invention, for the latest resource distribution data uploaded in real time, the resource monitoring website firstly verifies the validity of the data and then gives the resource list corresponding to the resource configuration file of each game scene. The quantity of each resource, the distribution on the game scene and the resource density in each cell range of the game scene are displayed and marked on the corresponding game scene in a visual mode. When the tester stops the cursor on a certain resource point, all information of the resource point can be displayed immediately, including name, category, position, corresponding model path and the like.
The back end of the resource monitoring website is realized by using a Django architecture, the front end controls page styles by using Bootstrap, a chart is displayed by using Echarts, the resource monitoring website stores resource distribution data uploaded in all time periods, the time is displayed in a list mode, and resources uploaded in any time period can be selected and inquired. For each time period of the resources, any type of resources can be selected to be queried for display on the map. In addition, for the difference of resources in different time periods, the resources in a plurality of time periods can be selected to be marked and displayed in different colors on the map, so that arrangement personnel can compare the difference of resource arrangement in any time conveniently.
After the resource distribution data is uploaded to a resource monitoring website, resource arrangement rationality check is automatically carried out according to a set standard (like the same-level resource arrangement upper limit in the same area), namely whether a preset condition is met is judged, and found problems are graded according to the severity degree, wherein the most serious error triggers a notice to remind a resource arranger to carry out immediate modification, and all error results can be displayed on a map of a game scene corresponding to the website, so that the resource arranger can modify the distribution of resources in time.
The embodiment of the invention can bring about at least the following three advantages: 1. the game resources distributed by the resource distributor each time are displayed in a visual form in a game scene, so that development testers are assisted to verify whether the density, the positions, the quantity and the like of the resources are reasonable, and the verification speed and the verification accuracy are improved; 2. the distribution condition of the resources at each time is provided, so that the tester can compare the difference of the resource arrangement at each time conveniently; 3. after the resource distribution data is exported every time, the unreasonable resource arrangement mode is automatically checked, and a resource stationer is timely notified to modify the resource distribution mode.
In order that those skilled in the art will better understand the embodiments of the present invention, specific examples are given below. Referring to fig. 2, an overall structure diagram of an automated resource distribution monitoring and display of the present invention is shown. Firstly, a resource arranger carries out resource arrangement through a scene editor, and then a resource configuration file is generated and submitted to an SVN directory. At the moment, the SVN hook monitors the submission of the resource configuration file, triggers the corresponding Jenkins task, and then the resource configuration file can derive different resource distribution data according to different game scenes and upload the data to a checking and displaying platform.
And the checking and displaying platform is used for storing the corresponding resource distribution data to the corresponding date, checking and arranging the error resources according to the rule and displaying the error resources to related testers. Wherein, the serious error can be directly informed to the corresponding arranger for modification through instant messaging software and mails. The resource distribution data for each time period may be presented to the relevant tester using an Echarts graphical presentation.
Referring to fig. 3, a schematic flow chart of game resource monitoring and testing of the present invention is shown, and the specific detailed steps are as follows:
s1, the resource arranger submits the resource configuration file. The resource arranger submits the resource configuration file to a designated repository through the SVN. The resource configuration file is an XML file, and information such as resource types, coordinates, zooming, rotation, colors, shapes and names is recorded in the resource configuration file;
s2, SVN hook monitors that the task of exporting resource distribution data on jenkins is triggered after submission;
s3, Jenkins updates the resource configuration file and exports resource distribution data;
s4, Jenkins uploads the resource distribution data to an inspection and display platform;
s5, the checking and displaying platform explains the resource distribution data and stores the data according to the date;
s6, the checking and showing platform checks the resource distribution data and informs the arranger of the part which does not pass. The checking and displaying platform analyzes the received resource distribution data to obtain the resource types and coordinate information of all areas on the game scene, converts the resource types and coordinate information into JSON files to be stored, stores the JSON files in corresponding dates, simultaneously checks the types and densities of the resources, generates prompt information for the resources which do not accord with the regulation, and informs a resource distributor to modify the prompt information through instant messaging software;
and S7, verifying the resource distribution condition by the development tester according to the data displayed by the checking and displaying platform. The checking and showing platform draws the distribution and density of the resources in the game scene through Echarts and provides the information of the total amount of the resources. For a particular resource, its name, coordinates, quantity, category, model information, etc. are provided. Development testers can check corresponding resource distribution conditions by selecting dates, scene numbers and resource copy numbers, and can also compare data of different dates, so that the effects of verification and acceptance are achieved.
The steps of generating the resource configuration file are specifically as follows:
s11, after the resource distributor distributes the resource, it generates an XML file of the whole resource, namely the resource configuration file;
s12, each attr element in the resource configuration file corresponds to a resource, and information in each attr element of the XML file is extracted to obtain information such as resource type, coordinates and the like;
s13, correspondingly generating a dictionary which takes 0 as a key and takes scene coordinates and resource type numbers as values for the resources in each attr element, and independently putting the dictionary into a file of scene _ spawn _ xxx, wherein xxx is the scene number;
and S14, generating 60 standby resource number files scene _ items _ xxx _ yy according to the probability of generating different types of resources in the filling table of the resource arranger, wherein xxx is the scene number, yy is the yy file, and the file also stores data in a key-value pair mode. The key is the value of the resource type number, the value is a list of specific resource numbers and the number of the specific resource numbers, and one file can be randomly used as resource refreshing data of a current game scene in a game;
and S5, uploading all the generated resource configuration files to an inspection and display platform for processing.
Referring to fig. 4, there is shown a schematic diagram of an architecture of an inspection and exhibition platform according to the present invention, the inspection and exhibition platform is composed of three parts, namely a storage module, a processing module and an exhibition module, and strictly complies with the MVC design mode, wherein the storage module and the processing module are implemented by Django.
A display module: and the system is responsible for showing resource distribution data to a tester and providing interaction. The interface layout is realized by Bootstrap, the resource distribution is realized by Echarts drawing, and the front-end logic is realized by Javascript and Jquery. And the display module and the background interact by adopting the Ajax technology.
A storage module: and the data storage module is responsible for storing the received resource distribution data in a JSON format according to the date and reading the resource distribution data.
A processing module: and the system is responsible for analyzing, converting and checking the resource distribution data. When the tester interacts with the display module, the processing module is responsible for executing corresponding processing logic, such as counting the number of resources, total distribution number, acquisition date list, scene list, resource list and the like of one grid on the map.
By applying the embodiment of the invention, at least the following advantages can be achieved:
high efficiency: the resource configuration file is monitored by using the SVN-hook, and the Jenkins is utilized to realize the automatic flow of exporting resource distribution data and checking, informing and displaying, so that the labor and time expenditure for the development and test personnel to accept the resource distribution can be effectively reduced, and the working efficiency is improved.
Ease of use: by means of strong graphical display and interaction capacity of Echarts, development and test personnel can intuitively and systematically acquire the distribution situation of resources of a whole map (game scene) and data of each resource, and can conveniently compare and find out differences.
Timeliness: the monitoring of SVN-hook and the execution of Jenkins are combined, so that the data of the checking and displaying platform can be updated in time, and the data on the checking and displaying platform can be timely and effective.
Easy transplantation: the inspection and display platform is manufactured by Django, and because Django has good support for migration and the deployment of SVN-hook and Jenkins is very mature and convenient, the inspection and display platform has the characteristic of easy transplantation and can be quickly applied to projects with similar requirements.
And (3) expandable: the display platform is developed by using the MVC framework, functions of the modules are mutually independent, and new functional modules can be added rapidly. In addition, the graphs supported by Echarts are numerous and can meet different drawing requirements, and besides drawing of resource distribution, other graphs can also be supported. The Svn-hook and Jenkins can also adapt to the monitoring of different files and execute different tasks, so that the system has high expandability.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Referring to fig. 5, a block diagram of a monitoring apparatus for game resources according to an embodiment of the present invention is shown, which may specifically include the following modules:
a resource configuration file obtaining module 201, configured to respond to a change of a resource configuration file in a specified directory, and obtain the resource configuration file;
a resource distribution data extraction module 202, configured to extract resource distribution data from the resource configuration file; the resource distribution data comprises resource point distribution data of each game resource in each game scene;
and the game resource display module 203 is configured to display the game resources in the game scene according to the resource point distribution data.
In a preferred embodiment of the present invention, the resource point distribution data includes location, quantity, category, and model path data used for the resource, and further includes:
the position judging module is used for judging whether the game resources are in illegal positions in game scenes according to the positions;
and the first prompting module is used for generating illegal position prompting information when the game resource is positioned at an illegal position in a game scene.
In a preferred embodiment of the present invention, the apparatus may further include:
the resource density counting module is used for counting the resource density of game resources in at least one region in the game scene;
the resource density judging module is used for judging whether the resource density meets a preset condition or not by adopting the preset resource density threshold value;
and the second prompting module is used for generating prompting information that the resource density is unreasonable when the resource density does not meet the preset condition.
In a preferred embodiment of the present invention, the resource configuration file has corresponding time data, and the apparatus may further include:
and marking the game resources with different time data in different colors in the game scene.
In a preferred embodiment of the present invention, the game resource exhibition module 203 may include:
the target game resource screening submodule is used for receiving a viewing request of game resources and screening the target game resources from the game resources according to the viewing request;
and the target game resource display submodule is used for displaying the target game resources in the game scene according to the resource point distribution data.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
An embodiment of the present invention further provides an electronic device, including:
one or more processors; and
one or more machine-readable media having instructions stored thereon, which when executed by the one or more processors, cause the electronic device to perform methods as described in embodiments of the invention.
Embodiments of the invention also provide one or more machine-readable media having instructions stored thereon, which when executed by one or more processors, cause the processors to perform the methods described in embodiments of the invention.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including the preferred embodiment and all changes and modifications that fall within the true scope of the embodiments of the present invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in the process, method, article, or terminal equipment comprising the element.
The above detailed description is provided for a method and a device for monitoring game resources, and a specific example is applied in this document to explain the principle and the implementation of the present invention, and the description of the above embodiment is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, the specific embodiments and the application range may be changed, and in summary, the content of the present specification should not be construed as a limitation to the present invention.
Claims (9)
1. A method for monitoring game resources, comprising:
responding to the change of a resource configuration file in a specified directory, and acquiring the resource configuration file;
extracting resource distribution data from the resource configuration file; the resource distribution data comprises resource point distribution data of each game resource in each game scene;
displaying the game resources in the game scene according to the resource point distribution data; after the resource distribution data are extracted from the resource configuration file each time, automatically checking an unreasonable resource arrangement mode and notifying; the resource configuration file has corresponding time data;
and marking game resources with different time data in the game scene by using different colors.
2. The method of claim 1, wherein the resource point distribution data comprises location, quantity, category, and model path data used for resources, and further comprises, after the game resource is displayed in the game scene according to the resource point distribution data:
judging whether the game resources are in illegal positions in game scenes according to the positions;
and when the game resources are positioned at illegal positions in the game scene, generating illegal position prompt information.
3. The method of claim 1 or 2, after said presenting said game resources in said game scene according to said resource point distribution data, further comprising:
counting the resource density of game resources in at least one area in the game scene;
judging whether the resource density meets a preset condition or not by adopting a resource density threshold;
and when the resource density does not meet the preset condition, generating prompt information that the resource density is unreasonable.
4. The method of claim 1, wherein said exposing said game resources in said game scene according to said resource point distribution data comprises:
receiving a viewing request of game resources, and screening target game resources from the game resources according to the viewing request;
and displaying the target game resources in the game scene according to the resource point distribution data.
5. A game resource monitoring apparatus, comprising:
the resource configuration file acquisition module is used for responding to the change of the resource configuration file in the specified directory and acquiring the resource configuration file;
the resource distribution data extraction module is used for extracting resource distribution data from the resource configuration file; the resource distribution data comprises resource point distribution data of each game resource in each game scene;
the game resource display module is used for displaying the game resources in the game scene according to the resource point distribution data; after the resource distribution data are extracted from the resource configuration file each time, automatically checking an unreasonable resource arrangement mode and notifying; the resource configuration file has corresponding time data; and marking the game resources with different time data in different colors in the game scene.
6. The apparatus of claim 5, wherein the resource point distribution data comprises location, quantity, category, model path data used, and further comprising:
the position judging module is used for judging whether the game resources are in illegal positions in game scenes according to the positions;
and the first prompting module is used for generating illegal position prompting information when the game resource is positioned at an illegal position in a game scene.
7. The apparatus of claim 5 or 6, further comprising:
the resource density counting module is used for counting the resource density of game resources in at least one region in the game scene;
the resource density judging module is used for judging whether the resource density meets a preset condition or not by adopting a resource density threshold;
and the second prompting module is used for generating prompting information that the resource density is unreasonable when the resource density does not meet the preset condition.
8. An electronic device, comprising:
one or more processors; and
one or more machine-readable media having instructions stored thereon that, when executed by the one or more processors, cause the electronic device to perform the method of any of claims 1-4.
9. One or more machine-readable media having instructions stored thereon, which when executed by one or more processors, cause the processors to perform the method recited in any of claims 1-4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910046778.9A CN109806592B (en) | 2019-01-18 | 2019-01-18 | Game resource monitoring method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910046778.9A CN109806592B (en) | 2019-01-18 | 2019-01-18 | Game resource monitoring method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109806592A CN109806592A (en) | 2019-05-28 |
CN109806592B true CN109806592B (en) | 2022-09-30 |
Family
ID=66603491
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910046778.9A Active CN109806592B (en) | 2019-01-18 | 2019-01-18 | Game resource monitoring method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109806592B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110201397B (en) * | 2019-06-28 | 2022-07-22 | 北京金山安全软件有限公司 | Game resource allocation method and device and electronic equipment |
CN110935170B (en) * | 2019-10-29 | 2023-09-15 | 广州西山居网络科技有限公司 | Game art resource distribution consulting method and system |
CN111494957B (en) * | 2020-04-17 | 2023-04-07 | 网易(杭州)网络有限公司 | Data processing method, device and equipment for game scene and storage medium |
CN111939566B (en) * | 2020-09-03 | 2024-01-26 | 网易(杭州)网络有限公司 | Virtual material deployment method and device |
CN115225588B (en) * | 2022-02-22 | 2024-02-23 | 珠海金山数字网络科技有限公司 | Data processing method and device |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7677979B2 (en) * | 2005-10-14 | 2010-03-16 | Leviathan Entertainment, Llc | Method and system for allocating resources in a video game |
CN102955789A (en) * | 2011-08-22 | 2013-03-06 | 幻音科技(深圳)有限公司 | Resource display method and resource display system |
CN108108297B (en) * | 2016-11-25 | 2021-05-18 | 腾讯科技(深圳)有限公司 | Method and device for automatic testing |
CN107050862B (en) * | 2017-05-19 | 2018-06-15 | 网易(杭州)网络有限公司 | Display control method and system, the storage medium of scene of game |
CN112698781B (en) * | 2017-11-03 | 2022-06-07 | 腾讯科技(深圳)有限公司 | Target positioning method, device, medium and electronic equipment in virtual environment |
CN107803030B (en) * | 2017-11-30 | 2020-12-25 | 腾讯科技(成都)有限公司 | Refreshing method and device for resource site on virtual map |
-
2019
- 2019-01-18 CN CN201910046778.9A patent/CN109806592B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN109806592A (en) | 2019-05-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109806592B (en) | Game resource monitoring method and device | |
CN109783388B (en) | UI (user interface) automatic testing method and device and electronic equipment | |
CN104050078B (en) | Test script generates system | |
JP5522065B2 (en) | Board inspection system | |
CN111930381A (en) | Personalized page configuration method supporting SaaS multi-tenant system | |
CN109634837A (en) | Automated testing method, device, equipment and storage medium | |
CN112597028A (en) | Method and device for displaying case test result and readable storage medium | |
CN113448862B (en) | Software version testing method and device and computer equipment | |
CN113868126A (en) | Application debugging method, device and storage medium of equipment | |
CN112732587B (en) | Automatic test log acquisition method and device, electronic equipment and storage medium | |
CN110765015A (en) | Method for testing application to be tested and electronic equipment | |
CN112445693A (en) | Page update detection method, device, equipment and storage medium | |
CN111966580A (en) | Automatic testing method, device, equipment and storage medium based on artificial intelligence | |
CN105868956A (en) | Data processing method and device | |
CN108089858B (en) | Method and device for creating visual interface | |
CN112069073A (en) | Test case management method, terminal and storage medium | |
CN113807062A (en) | Online drawing method and device for combined density map and electronic equipment | |
CN112560422A (en) | Chart processing method, device, equipment and medium | |
CN114610286A (en) | Development document generation method and device, computer equipment and storage medium | |
JP2018073054A (en) | Object analyzing device, object analyzing method, and program | |
CN108073511A (en) | test code generating method and device | |
CN116301856B (en) | Design method, device, equipment and medium of visual form designer | |
CN114564773A (en) | Component screening and checking method and system based on BIM (building information modeling) | |
CN113577775A (en) | Method and device for checking art resource file, electronic device and storage medium | |
CN108108101B (en) | Picture testing method, device, system, computer equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |