CN109821233B - Data analysis method and device - Google Patents

Data analysis method and device Download PDF

Info

Publication number
CN109821233B
CN109821233B CN201910054526.0A CN201910054526A CN109821233B CN 109821233 B CN109821233 B CN 109821233B CN 201910054526 A CN201910054526 A CN 201910054526A CN 109821233 B CN109821233 B CN 109821233B
Authority
CN
China
Prior art keywords
grid
scene
thermodynamic diagram
aerial
game scene
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
Application number
CN201910054526.0A
Other languages
Chinese (zh)
Other versions
CN109821233A (en
Inventor
孙晓磊
叶均杰
温中凯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN201910054526.0A priority Critical patent/CN109821233B/en
Publication of CN109821233A publication Critical patent/CN109821233A/en
Application granted granted Critical
Publication of CN109821233B publication Critical patent/CN109821233B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

The embodiment of the invention provides a data analysis method and a data analysis device, wherein the method comprises the following steps: acquiring an offline position of a virtual character of a churning player in the game scene; mapping the off-line position to a preset map grid corresponding to the game scene; counting the number of virtual roles corresponding to the offline positions contained in each grid; and mapping each grid into the color corresponding to the number to generate a grid thermodynamic diagram. By recording the geographic position of the player and drawing a grid thermodynamic diagram according to the offline position of the attrition player, the association of the attrition player on the geographic position is visually shown, and the efficiency of data analysis of the attrition player is improved.

Description

Data analysis method and device
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a data analysis method and a data analysis apparatus.
Background
Successful game products have very high requirements on the technology of the product and the user experience. One way to obtain the player feedback directly is to use game data logs, which provide game product developers with an excellent way to study player behavior and improve game design.
However, for the analysis of game data logs, the conventional method is to directly find a log of the report of the related user behavior, for example, find a log of the player churn behavior, filter and filter the log, extract valuable information or information sets thereof, obtain the user behavior by methods such as mathematical statistics or manual analysis, etc., and then infer the cause of the game player churn based on the user behavior, so as to respond quickly to stop the churn. This method of directly analyzing the game log has at least the following disadvantages:
(1) Information among the various types of logs may not have correlation and needs to be analyzed by experiential persons;
(2) Each time the user behavior is analyzed, the historical log of the user needs to be filtered, and the task, the scene or the copy where the user is located is analyzed according to the keywords in the historical log. The work efficiency of the filtering statistical operation is low through repetition, and errors are prone to occur and the error may exist with the real scene where the user runs off;
(3) The log recording is difficult to guarantee, and information which is not recorded by the log is easy to be ignored by the analyst. The log size will be very large if necessary. There is a need for an intuitive and comprehensive form of recording player data;
(4) The existing log record quantity is large, and the reason of player loss is not easy to determine;
(5) The conclusion is not intuitive enough, and the time consumption and the efficiency for processing data are low.
Disclosure of Invention
In view of the above problems, embodiments of the present invention are proposed to provide a data analysis method and a corresponding data analysis apparatus that overcome or at least partially solve the above problems.
In order to solve the above problem, an embodiment of the present invention discloses a data analysis method, including:
acquiring an offline position of a virtual character of a churning player in the game scene;
mapping the off-line position to a preset map grid corresponding to the game scene;
counting the number of virtual roles corresponding to the offline positions contained in each grid;
and mapping each grid into the color corresponding to the number to generate a grid thermodynamic diagram.
Optionally, the counting the number of the virtual roles corresponding to the offline positions included in each grid includes:
setting the number of each grid;
sequentially adopting the off-line position and the position of each grid to judge whether the off-line position is in each grid;
if yes, outputting the number of each grid;
and counting the number of the numbers of each grid, and determining the number of the virtual roles contained in each grid.
Optionally, the method further includes:
shooting a scattered aerial photography image of the game scene according to preset shooting parameters;
splicing the scattered aerial photography images of the game scene to generate a scene aerial photography image;
determining a mapping relation between the scene aerial photography graph and the coordinates of the grid thermodynamic diagram;
and overlaying the grid thermodynamic diagram on the scene aerial photography diagram according to the mapping relation.
Optionally, the preset shooting parameters include: the method comprises the following steps of presetting a radius parameter, a position parameter and a magnification ratio parameter, and shooting a scattered aerial photo of a game scene according to preset shooting parameters, wherein the method comprises the following steps:
determining the position of a virtual camera by adopting the preset position parameters;
and moving the positions of the virtual cameras according to the preset radius parameter and the preset magnification ratio parameter, and shooting a scattered aerial photography image of the game scene at each virtual camera position.
Optionally, the splicing the scattered aerial photography images of the game scene to generate the scene aerial photography image includes:
determining the position relation between the scattered aerial images of each game scene according to the virtual camera position corresponding to the scattered aerial image of each game scene;
and splicing the scattered aerial photography images of the game scene according to the position relation to generate a scene aerial photography image.
Optionally, the determining a mapping relationship between the scene aerial photography image and the coordinates of the grid thermodynamic diagram includes:
determining two first positions in the grid thermodynamic diagram and two second positions corresponding to the two positions in the scene aerial image respectively;
and determining the mapping relation between the scene aerial photography graph and the coordinates of the grid thermodynamic diagram by adopting two first positions in the grid thermodynamic diagram and two second positions in the scene aerial photography graph.
Optionally, the method further includes:
obtaining the latest time information of the player log file and the current time information of the server;
determining a time difference value between the latest time information and the current time information of the server;
judging whether the time difference value exceeds a preset time threshold value or not;
if so, the player is determined to be an attrition player.
The embodiment of the invention also discloses a data analysis device, which comprises:
the offline position acquisition module is used for acquiring the offline position of the virtual character of the attrition player in the game scene;
the off-line position mapping module is used for mapping the off-line position to a preset map grid corresponding to the game scene;
the quantity counting module is used for counting the quantity of the virtual roles corresponding to the off-line positions contained in each grid;
and the grid thermodynamic diagram generation module is used for mapping each grid into the color corresponding to the number to generate the grid thermodynamic diagram.
Optionally, the quantity statistics module includes:
the number setting submodule is used for setting the number of each grid;
the grid judgment submodule to which the off-line position belongs is used for judging whether the off-line position is in each grid or not by sequentially adopting the off-line position and the position of each grid;
the number output submodule is used for outputting the number of each grid if the grid is the same as the grid;
and the virtual role number counting submodule is used for counting the number of the serial numbers of each grid and determining the number of the virtual roles contained in each grid.
Optionally, the apparatus further comprises:
the shooting module of the scattered aerial photography image is used for shooting the scattered aerial photography image of the game scene according to preset shooting parameters;
the scattered aerial photo splicing module is used for splicing the scattered aerial photo of the game scene to generate a scene aerial photo;
the mapping relation determining module is used for determining the mapping relation between the scene aerial photography graph and the coordinates of the grid thermodynamic diagram;
and the grid thermodynamic diagram covering module is used for covering the grid thermodynamic diagrams on the scene aerial photography image according to the mapping relation.
Optionally, the preset shooting parameters include: presetting a radius parameter, a position parameter and an amplification ratio parameter, wherein the shooting module for the scattered aerial photography image comprises:
the virtual camera position determining submodule is used for determining the position of the virtual camera by adopting the preset position parameters;
and the shooting submodule of the scattered aerial photography image is used for moving the positions of the virtual cameras according to the preset radius parameter and the preset magnification ratio parameter and shooting the scattered aerial photography image of the game scene at each virtual camera position.
Optionally, the piecing module of the scattered aerial photography map includes:
the position relation determining submodule is used for determining the position relation between the scattered aerial images of each game scene according to the virtual camera position corresponding to the scattered aerial image of each game scene;
and the scattered aerial photo splicing submodule is used for splicing the scattered aerial photo of the game scene according to the position relation to generate a scene aerial photo.
Optionally, the mapping relationship determining module includes:
the position selection submodule is used for determining two first positions in the grid thermodynamic diagram and determining two second positions which respectively correspond to the two positions in the scene aerial image;
and the mapping relation determining submodule is used for determining the mapping relation between the scene aerial photography image and the coordinates of the grid thermodynamic diagram by adopting two first positions in the grid thermodynamic diagram and two second positions in the scene aerial photography image.
Optionally, the apparatus further comprises:
the time information acquisition module is used for acquiring the latest time information of the player log file and the current time information of the server;
the time difference value determining module is used for determining the time difference value between the latest time information and the current time information of the server;
the judging module is used for judging whether the time difference value exceeds a preset time threshold value or not;
and if so, determining the player as the attrition player.
The embodiment of the invention also discloses a device, which comprises:
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 apparatus to perform one or more methods as described in embodiments of the invention.
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 methods as described in embodiments of the invention.
The embodiment of the invention has the following advantages:
in the embodiment of the invention, the offline position of the virtual character of the attrition player in the game scene is obtained, and the offline position is mapped into the preset map grid corresponding to the game scene; the number of virtual characters corresponding to the offline positions of each grid is counted, each grid is mapped to the color corresponding to the number, a grid thermodynamic diagram is generated, the geographic positions of players are recorded, the grid thermodynamic diagram is drawn according to the offline positions of the lost players, the association of the lost players on the geographic positions is visually displayed, and the data analysis efficiency of the lost players is improved.
Drawings
FIG. 1 is a flow chart of the steps of one embodiment of a data analysis method of the present invention;
FIG. 2 is a schematic illustration of a game log file of the present invention recording the location of a virtual character;
FIG. 3 is a diagram illustrating the game log file recording the latest time information of the virtual character according to the present invention
FIG. 4 is a schematic diagram of server current time information in accordance with the present invention;
FIG. 5 is a schematic diagram of a two-dimensional coordinate system including a predetermined map grid according to the present invention;
FIG. 6 is a schematic representation of a scatter plot of churn behavior of game players in accordance with the present invention;
FIG. 7 is a graphical illustration of the color to quantity percentage relationship of the present invention;
8A-8B are schematic diagrams of an overlay of a grid thermodynamic diagram on a scene aerial image in accordance with the present invention;
9A-9C are schematic diagrams of a thermodynamic diagram for attrition player data without channels in accordance with the present invention;
fig. 10 is a block diagram showing the structure of an embodiment of a data analysis device according to the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
Referring to fig. 1, a flowchart illustrating steps of an embodiment of a data analysis method according to the present invention is shown, where a graphical user interface is obtained by executing a software application on a processor of a mobile terminal and rendering the software application on a touch display of the mobile terminal, where the graphical user interface includes a part of a game scene and at least a part of a virtual character, and the method specifically includes the following steps:
step S101, acquiring an offline position of a virtual character of a churning player in the game scene;
in the embodiment of the present invention, a game application may be run on a mobile terminal, where the mobile terminal may include a mobile Phone, a tablet computer, a game machine, a PDA, and the like, and an operating system of the mobile terminal may include Android (Android), iOS, windows Phone, windows, and the like, and may generally support running of various game applications.
The method comprises the steps of running a game application on the mobile terminal and rendering a graphical user interface on a touch display of the mobile terminal, wherein the content displayed by the graphical user interface at least partially comprises a partial or whole game scene, and the specific form of the game scene can be a square shape or other shapes (such as a circular shape).
Specifically, the game scene includes at least one virtual character, the virtual character may be a game virtual character controlled by the player through the mobile terminal, and may be presented through a graphical user interface, and the presented content may include all of the virtual character or a part of the virtual character. For example, in the third person perspective game, the content presented by the graphic user interface may contain all of the virtual character, or, in the first person perspective game, the content presented by the graphic user interface may contain part or part of the virtual character.
In addition, the game scene also includes at least one virtual object, and the virtual object may be a game virtual Character controlled by an enemy player in the game, or may be a Non-player Character (NPC) preset by a game developer in a specific game scene.
In the embodiment of the invention, the game application can record the behavior log of the virtual character controlled by the game player in the game scene to generate the game log file.
Because of the need to integrate all player log information, there is a need to artificially correlate the same type of behavior to these players. In the game world, each abstract task and play can be mapped to the existence of one game entity, and some physical associations must exist among the game entities. If each geodetic map in the game world is divided into scenes, and one scene is regarded as a coordinate system, the game entity necessarily has a position in the corresponding scene, and can be accurately positioned to the specific position where the game entity is located in a coordinate mode.
In the embodiment of the invention, the association of the virtual character on the position of the game scene can be established according to the churning behavior of the player, and the position relation of the churning of the player in the game scene is analyzed.
Therefore, the position of the virtual character controlled by the player in the game scene can be recorded in the game log file of the player, and when the attrition player needs to be analyzed, the offline position of the virtual character controlled by the attrition player is acquired for analysis.
Specifically, the game application may record the position of the virtual character controlled by the player through the engine module, and the log recording module may call the position query module to obtain the position of the virtual character controlled by the player and write the position into the game log file. As shown in fig. 2, the three-dimensional position coordinates of the virtual character recorded in the game log file are (-7407.681641, 2329.062256, 7022.786133).
In particular implementations, attrition players may also be defined, for example, players that are not online for more than a certain time may be defined as attrition players. As an example, a player who has not logged in for 10 consecutive days is defined as an attrition player, and of course, a person skilled in the art may also define the attrition player according to actual needs, which is not limited by the embodiment of the present invention.
In a preferred embodiment of the embodiments of the present invention, the method may further include the steps of:
obtaining the latest time information of the player log file and the current time information of the server;
determining a time difference value between the latest time information and the current time information of the server;
judging whether the time difference value exceeds a preset time threshold value or not;
if so, the player is determined to be an attrition player.
In an embodiment of the present invention, the latest time information may refer to time information in the latest log of the player recorded in the log file. As shown in fig. 3, the time information recorded in the log file in the latest log of the player is: 2018, 7, 31, 13.
The server current time information may refer to server current time information of the game application, and in general, the server current time information of the game application may be the same as the time of the player in the real world. In specific implementation, the network time can be directly acquired as the current time information of the server of the game application, and a time query instruction can be input at a background server of the game application to acquire the current time of the server. As shown in fig. 4, the current time information of the server obtained by inputting the time query instruction is: 2018, 7, 31, 14.
In the embodiment of the invention, whether the player runs away or not can be determined by calculating the time difference value between the latest time information of the player log file and the current time information of the server.
For example, the preset time threshold is 15 days, and the latest time information of the player log file is: 14, 11 and 30 in 2018, 00, and the current time information of the server is: 12 in 2018, month 12, day 26, day 15 00, and the time difference between the latest time information and the current time information of the server is: 26 days for 1 hour. Because the time difference value of 26 days and 1 hour exceeds the preset time threshold value of 15 days, the condition is met, and therefore, the player is an attrition player, and the log file of the player can be obtained for attrition behavior analysis.
Step S102, mapping the off-line position to a preset map grid corresponding to the game scene;
the preset map grid may refer to a grid created in advance for a game scene map.
In the embodiment of the invention, the game scene map is divided into the equal-division grids, and the size of the grids can be determined according to the size of the game scene map and the density of entities in the game scene map.
For example, the grid size may be set to a visual distance of a player in a game scene, and the game scene within the visual distance range may be finely rendered. If the player's visible distance in the game scene is 200m in the corresponding game scene, the grid may be set to a square with a side length corresponding to 200m in the game scene.
In the embodiment of the present invention, a two-dimensional coordinate system may be established for the game scene map, and a mesh may be added in the two-dimensional coordinate system according to a preset mesh size, for example, a two-dimensional coordinate system including a preset map mesh as shown in fig. 5 may be established.
Since the location information recorded in the log file includes the height of the virtual character, the grid can be considered as a space containing an arbitrary height that satisfies the size of the grid. Therefore, when the offline position is mapped to the preset map grid corresponding to the game scene, the offline position can be directly mapped according to the abscissa and the ordinate of the offline position without considering the height of the virtual character.
The offline position of the virtual character of each attrition player in the game scene corresponds to a game scene map containing a preset map grid. Therefore, the churn behavior of each churn player corresponds to one point in the game scene map, and the churn behaviors of a plurality of churn players are drawn into the game scene map to generate a churn behavior scatter diagram. For example, a game player churn behavior scatter plot may be generated as shown in FIG. 6.
Step S103, counting the number of virtual roles corresponding to the offline positions contained in each grid;
generally, the player churn may be caused by poor experience in a certain game scene, for example, a BUG exists in a game scene map, and a player is easily stuck in the game scene map and cannot move, and at this time, the player may quit the game after being stuck and no longer go online, which causes the player churn; it may also be that a copy of the game scene does not pass well, and the player cannot pass in the copy for many attempts, resulting in the player losing the interest of continuing to experience the game.
In the embodiment of the invention, the number of the virtual characters corresponding to the off-line positions contained in each grid can be counted to determine that the player loses more in the game scene corresponding to which grid, so as to improve the game in a targeted manner and stop loss in time.
In a preferred embodiment of the present invention, the step S103 may include the following sub-steps:
setting the number of each grid;
sequentially adopting the off-line position and the position of each grid to judge whether the off-line position is in each grid;
if yes, outputting the number of each grid;
and counting the number of the serial numbers of each grid, and determining the number of the virtual roles contained in each grid.
In the embodiment of the present invention, each grid may be numbered, and the number of the grid is output by determining whether the offline position is in the grid, and when the offline position coordinate point is in the grid, the number of each grid is further counted, so as to determine the number of each grid including the virtual character.
In a specific implementation, since the grid divides the game scene map into N equal parts, the side length a of each grid region is a fixed value, and therefore, the range of the grid region can be determined by using one coordinate point in four corners of the grid region.
In the embodiment of the present invention, it is assumed that the bottom-right corner coordinates (Xn, zn) of the grid region are used as a base point for determining which grid the target offline position is located in, and the side length of the grid region is grid _ length.
The offline position of the virtual character of the attrition player in the game scene is (Ux, uz).
Taking the coordinates Px, pz = Xn, zn of the lower right corner of the current grid area, if the offline position of the virtual character of the attrition player in the game scene satisfies the condition: (Ux < Px and Px < = (Ux + grid _ length)) and (Uz < Pz and Pz < = (Uz + grid _ length)), the offline position is determined to be in the grid region. And sequentially traversing each grid and each off-line position until all the map grids and all the off-line positions are traversed.
And step S104, mapping each grid into the color corresponding to the number, and generating a grid thermodynamic diagram.
In the embodiment of the invention, in order to more intuitively judge which game scene grid map has more loss behaviors, the number percentage of the number of the virtual characters in each grid to the total number of the virtual characters can be calculated, the number percentage intervals are divided, and different number percentage intervals correspond to different colors, so that each grid is further mapped to the color corresponding to the number, and the grid thermodynamic diagram is generated.
For example, the correspondence of the color to the number percentage as shown in fig. 7 may be set.
In a preferred embodiment of the embodiments of the present invention, the method may further include the steps of:
shooting a scattered aerial photography image of the game scene according to preset shooting parameters;
splicing the scattered aerial photography images of the game scene to generate a scene aerial photography image;
determining a mapping relation between the scene aerial photography graph and the coordinates of the grid thermodynamic diagram;
and overlaying the grid thermodynamic diagram on the scene aerial image according to the mapping relation.
In the embodiment of the invention, in order to more intuitively observe the game scene where the churning behavior of the churning players is located, the completed grid thermodynamic diagram can be overlaid on the game scene aerial photograph diagram for observation and analysis.
The game scene aerial photo can be obtained by further splicing scattered aerial photo according to the scattered aerial photo shot in the game scene according to preset shooting parameters.
Specifically, coordinate points of two positions in the grid thermodynamic diagram are obtained, and coordinate points corresponding to the two positions in the grid thermodynamic diagram in the scene aerial photography diagram are obtained, so that the mapping relation between the scene aerial photography diagram and the coordinates of the grid thermodynamic diagram is calculated.
In a specific implementation, because both the grid thermodynamic diagrams and the scene aerial images are specific to the game scene world, one of the grid thermodynamic diagrams and the scene aerial images can be enlarged or reduced directly according to the mapping relation of the grid thermodynamic diagrams and the scene aerial images, so that the grid thermodynamic diagrams and the scene aerial images are as large as each other, and the grid thermodynamic diagrams are further overlaid on the scene aerial images.
For example, the mapping relationship between the scene aerial photography map and the coordinates of the grid thermodynamic map is as follows: world _ x =2 × map _x; world _ z =2 × map _z, the scene aerial image may be doubled to further overlay the mesh thermodynamic diagram over the scene aerial image.
Fig. 8A-8B are schematic diagrams illustrating overlaying a grid thermodynamic diagram on a scene aerial image according to an embodiment of the present invention. The game application developer can quickly analyze high incidence areas of player churn behavior directly by observing the scene map overlaying the grid thermodynamic diagram on the scene aerial map as shown in fig. 8A, 8B.
The churn of the game player is bound to have one or more reasons, a scene with high churn of the player with certain specified attributes (for example, the churn of the Android player in a game scene map A is high) can be counted through the method for displaying the grid thermodynamic diagram, and key points which possibly cause the churn of the player are counted according to churn areas in the game scene.
In specific implementation, aiming at the grid thermodynamic diagram, the player loss degree can be observed in different areas by taking a grid area as a unit, and the reason for possibly causing the player loss is more accurate and visual according to the area investigation. Such as whether the player has arranged what play, copies, graphics rendering problems with the zone, or more severe bugs, for locations where player churn is severe.
As shown in fig. 8B, for the grid thermodynamic diagram, only the churn scenario in which the percentage of the number of virtual characters in each grid to the total number of virtual characters is greater than 5% is analyzed, and from the perspective of the game scenario tasks corresponding to different grid areas, the task distribution of the area in the game scenario map where the player churn rate exceeds 5% is:
1) Boss number two; 2) Curing soldier tasks; 3) To assist in defeating the demon; 4) The birth point.
It can be intuitively observed from fig. 8B that if the player churn reaches a peak when the 4 game scene task nodes are analyzed from the perspective of the game scene task distribution, the player churn can be used as one of the reference standards for subsequent optimization and development of game applications according to the analysis conclusion.
Further, churn of players with different attributes in the same game scene can be compared in a convenient and lateral manner, wherein the attributes of the players can be distinguished in a plurality of ways, such as: server, channel, system version, etc.
As shown in fig. 9A-9C, data collection is performed for attrition player logs of different channels and a thermodynamic diagram is drawn. Wherein, 9A represents the churn of the iOS system user in the game scene, 9B represents the churn of the PC end user in the game scene, and 9C represents the churn of the android system user in the game scene.
By observing the diagrams in FIGS. 9A-9C, it can be concluded roughly that the player churning areas in the above channels are distributed roughly, and android > ios > pc on the player churning amount, based on which more user behaviors with the same user attributes can be compared transversely.
In some scenes, the real reason of the player churn needs data which cannot be shown on the graph to be proved, so that the key data of the player churn can be further counted in order to improve the credibility of the key points of the player churn.
For example: experience level, talent level, battlefield participation times, task completion progress, achievement condition, recharging condition and other data, and the statistical procedure of the player key data is always carried out synchronously. Then, extracting the data of the lost players with the same attributes in the same game scene, screening the data through a statistical program, and then using the key data statistical analogy to find out and list the statistical data with high similarity among the players. Finally, the player loss reasons analyzed by the heat map are compared with statistical data with high similarity of similar lost players counted by a program, so that the subjective judgment error of an analyst is reduced, and more data supports which cannot be displayed on the graph are provided for player loss analysis.
In a preferred embodiment of the present invention, the preset shooting parameters include: the method comprises the following steps of presetting a radius parameter, a position parameter and a magnification ratio parameter, wherein the shooting of the scattered aerial photography map of the game scene according to the preset shooting parameters specifically comprises the following steps:
determining the position of the virtual camera by adopting the preset position parameters;
and moving the positions of the virtual cameras according to the preset radius parameter and the preset magnification ratio parameter, and shooting a scattered aerial photography image of the game scene at each virtual camera position.
In the embodiment of the invention, the whole game scene map can be scanned by moving the virtual cameras at equal intervals in the game scene, and the scattered map is shot.
In a preferred embodiment of the present invention, the step of splicing the scattered aerial photography images of the game scene to generate the scene aerial photography image may specifically include the following steps:
determining the position relation between the scattered aerial images of each game scene according to the virtual camera position corresponding to the scattered aerial image of each game scene;
and splicing the scattered aerial photography images of the game scene according to the position relation to generate a scene aerial photography image.
In the embodiment of the invention, because the virtual cameras are moved equidistantly to take photos when the scattered aerial photo is shot, the position relationship between the scattered aerial photo is fixed, the position relationship between the scattered aerial photo can be directly determined according to the position of the virtual camera when the scattered aerial photo is shot, and the scattered aerial photo is spliced according to the position relationship.
In a preferred embodiment of the present invention, the step of determining the mapping relationship between the scene aerial photography image and the coordinates of the grid thermodynamic diagram specifically includes the following steps:
determining two first positions in the grid thermodynamic diagram and two second positions respectively corresponding to the two positions in the scene aerial image;
and determining the mapping relation between the scene aerial photography graph and the coordinates of the grid thermodynamic diagram by adopting two first positions in the grid thermodynamic diagram and two second positions in the scene aerial photography graph.
In a specific implementation, the coordinate points on the scene aerial photography graph are (map _ x, map _ z), and the corresponding coordinate points on the grid thermodynamic diagram are (world _ x, world _ z), so that the formula of the mapping relationship between the scene aerial photography graph and the coordinates of the grid thermodynamic diagram is as follows:
world_x=map_x*scale_x+offset_x;
world_z=map_z*scale_z+offset_z。
therefore, the coefficients scale _ x, offset _ x and scale _ z, offset _ z can be calculated from the coordinate points of the two positions.
As an example, two first positions w0 (200 ) and w1 (400 ) in the grid thermodynamic diagram are selected, two second positions p0 (100 ) and p1 (200 ) in the scene aerial diagram are respectively selected, and the above formula of the mapping relationship between the scene aerial diagram and the coordinates of the grid thermodynamic diagram is substituted to obtain scale _ x =2, offset u x =0, and scale _ z =2, offset u z =0. Therefore, the mapping relationship between the scene aerial photography graph and the coordinates of the grid thermodynamic diagram is as follows: world _ x =2 × map _x; world _ z =2 × map _z.
In the embodiment of the invention, the offline position of the virtual character of the attrition player in the game scene is obtained, and the offline position is mapped to the preset map grid corresponding to the game scene; the number of virtual characters corresponding to the offline positions of each grid is counted, each grid is mapped to the color corresponding to the number, a grid thermodynamic diagram is generated, the geographic positions of players are recorded, the grid thermodynamic diagram is drawn according to the offline positions of the lost players, the association of the lost players on the geographic positions is visually displayed, and the data analysis efficiency of the lost players is improved.
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. 10, a block diagram of a data analysis apparatus according to an embodiment of the present invention is shown, where a graphical user interface is obtained by executing a software application on a processor of a mobile terminal and rendering the software application on a touch display of the mobile terminal, where the graphical user interface includes a part of a game scene and at least a part of a virtual character, and the data analysis apparatus specifically includes the following modules:
an offline position obtaining module 1001, configured to obtain an offline position of a virtual character of a churning player in the game scene;
an offline position mapping module 1002, configured to map the offline position to a preset map grid corresponding to the game scene;
the quantity counting module 1003 is configured to count the quantity of the virtual roles corresponding to the offline positions included in each grid;
and a grid thermodynamic diagram generating module 1004 for mapping each grid into a color corresponding to the number to generate a grid thermodynamic diagram.
In a preferred embodiment of the present invention, the quantity statistics module 1003 may include the following sub-modules:
the number setting submodule is used for setting the number of each grid;
the grid judgment submodule to which the off-line position belongs is used for judging whether the off-line position is in each grid or not by sequentially adopting the off-line position and the position of each grid;
a number output submodule, configured to output the number of each grid if the grid is a grid with a plurality of grids;
and the virtual role number counting submodule is used for counting the number of the serial numbers of each grid and determining the number of the virtual roles contained in each grid.
In a preferred embodiment of the present invention, the apparatus may further include the following modules:
the shooting module of the scattered aerial photography image is used for shooting the scattered aerial photography image of the game scene according to preset shooting parameters;
the scattered aerial photo splicing module is used for splicing the scattered aerial photo of the game scene to generate a scene aerial photo;
the mapping relation determining module is used for determining the mapping relation between the scene aerial photography graph and the coordinates of the grid thermodynamic diagram;
and the grid thermodynamic diagram overlaying module is used for overlaying the grid thermodynamic diagram on the scene aerial photograph according to the mapping relation.
In a preferred embodiment of the present invention, the preset shooting parameters include: the system comprises a shooting module, a shooting module and a control module, wherein the shooting module comprises a preset radius parameter, a preset position parameter and a preset magnification parameter, and the shooting module for the scattered aerial photography image can comprise the following sub-modules:
the virtual camera position determining submodule is used for determining the position of the virtual camera by adopting the preset position parameters;
and the shooting submodule of the scattered aerial photography image is used for moving the positions of the virtual cameras according to the preset radius parameter and the preset magnification ratio parameter and shooting the scattered aerial photography image of the game scene at each virtual camera position.
In a preferred embodiment of the present invention, the piecing module of the scattered aerial photograph may include the following sub-modules:
the position relation determining submodule is used for determining the position relation between the scattered aerial images of each game scene according to the virtual camera position corresponding to the scattered aerial image of each game scene;
and the scattered aerial photo splicing submodule is used for splicing the scattered aerial photo of the game scene according to the position relation to generate a scene aerial photo.
In a preferred embodiment of the present invention, the mapping relation determining module may include the following sub-modules:
the position selection submodule is used for determining two first positions in the grid thermodynamic diagram and two second positions corresponding to the two positions in the scene aerial image respectively;
and the mapping relation determining submodule is used for determining the mapping relation between the scene aerial photography image and the coordinates of the grid thermodynamic diagram by adopting two first positions in the grid thermodynamic diagram and two second positions in the scene aerial photography image.
In a preferred embodiment of the present invention, the apparatus may further include the following modules:
the time information acquisition module is used for acquiring the latest time information of the player log file and the current time information of the server;
the time difference value determining module is used for determining the time difference value between the latest time information and the current time information of the server;
the judging module is used for judging whether the time difference value exceeds a preset time threshold value or not;
and the lost player determining module is used for determining the player as a lost player if the player is determined to be a lost player.
For the embodiment of the data analysis device, since it is basically similar to the embodiment of the data analysis method, the description is relatively simple, and for relevant points, refer to the partial description of the embodiment of the data analysis method.
An embodiment of the present invention further provides an apparatus, 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 apparatus to perform a data analysis method as described by embodiments of the invention.
Embodiments of the present 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 data analysis methods described in embodiments of the present 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 so forth) 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 preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, in this document, relational terms such as first and second, and the like are 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 phrases "comprising one of \ 8230; \8230;" does not exclude the presence of additional like elements in a process, method, article, or terminal device that comprises the element.
The data analysis method and the data analysis device provided by the present invention are described in detail above, and the principle and the implementation of the present invention are explained in the present document by applying specific examples, and the description of the above examples 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, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (8)

1. A method of data analysis, comprising:
acquiring an offline position of a virtual character of a lost player in a game scene;
mapping the off-line position to a preset map grid corresponding to the game scene;
counting the number of virtual roles corresponding to the offline positions contained in each grid;
mapping each grid into a color corresponding to the number, generating a grid thermodynamic diagram, and determining the loss degree of each area of the game scene according to the color of each grid of the grid thermodynamic diagram;
further comprising: respectively generating different grid thermodynamic diagrams according to the churn degrees of churn players with different attributes in the same game scene; the attributes are distinguished through a server, a channel and a system version;
the mapping each grid to a color corresponding to the number to generate a grid thermodynamic diagram, comprising:
calculating the quantity percentage of the number of the virtual roles in each grid to the total number of the virtual roles, and dividing quantity percentage intervals;
mapping each grid to a color corresponding to the quantity percentage interval;
further comprising:
shooting a scattered aerial photography image of the game scene according to preset shooting parameters; the preset shooting parameters include: presetting a radius parameter, a position parameter and an amplification ratio parameter;
splicing the scattered aerial photography images of the game scene to generate a scene aerial photography image;
determining a mapping relation between the scene aerial photography graph and the coordinates of the grid thermodynamic diagram;
overlaying the grid thermodynamic diagram on the scene aerial photography graph according to the mapping relation;
the determining the mapping relation between the scene aerial photography graph and the coordinates of the grid thermodynamic diagram comprises:
determining two first positions in the grid thermodynamic diagram and two second positions respectively corresponding to the two first positions in the scene aerial image;
and determining the mapping relation between the scene aerial photography graph and the coordinates of the grid thermodynamic diagram by adopting two first positions in the grid thermodynamic diagram and two second positions in the scene aerial photography graph.
2. The method of claim 1, wherein the counting the number of virtual roles corresponding to offline positions included in each grid comprises:
setting the number of each grid;
sequentially adopting the off-line position and the position of each grid to judge whether the off-line position is in each grid;
if yes, outputting the number of each grid;
and counting the number of the serial numbers of each grid, and determining the number of the virtual roles contained in each grid.
3. The method according to claim 1, wherein the capturing of the fragmented aerial photograph of the game scene according to preset capturing parameters comprises:
determining the position of the virtual camera by adopting the preset position parameters;
and moving the positions of the virtual cameras according to the preset radius parameter and the preset magnification ratio parameter, and shooting a scattered aerial photography image of the game scene at each virtual camera position.
4. The method of claim 3, wherein said stitching the scattered aerial images of the game scene to generate a scene aerial image comprises:
determining the position relation between the scattered aerial images of each game scene according to the virtual camera position corresponding to the scattered aerial image of each game scene;
and splicing the scattered aerial photography images of the game scene according to the position relation to generate a scene aerial photography image.
5. The method of claim 1, further comprising:
obtaining the latest time information of the player log file and the current time information of the server;
determining a time difference value between the latest time information and the current time information of the server;
judging whether the time difference value exceeds a preset time threshold value or not;
if so, the player is determined to be an attrition player.
6. A data analysis apparatus, comprising:
the offline position acquisition module is used for acquiring the offline position of the virtual character of the lost player in a game scene;
the off-line position mapping module is used for mapping the off-line position to a preset map grid corresponding to the game scene;
the quantity counting module is used for counting the quantity of the virtual roles corresponding to the offline positions contained in each grid;
a grid thermodynamic diagram generating module, configured to map each grid into a color corresponding to the number, generate a grid thermodynamic diagram, and determine a churning degree of each region of the game scene according to the color of each grid of the grid thermodynamic diagram;
the grid thermodynamic diagram generation module is further used for respectively generating different grid thermodynamic diagrams according to the churn degrees of churn players with different attributes in the same game scene; the attributes are distinguished through a server, a channel and a system version;
the grid thermodynamic diagram generation module is used for calculating the number percentage of the number of the virtual roles in each grid to the total number of the virtual roles and dividing a number percentage interval; mapping each grid to a color corresponding to the quantity percentage interval;
the device further comprises:
the shooting module of the scattered aerial photography image is used for shooting the scattered aerial photography image of the game scene according to preset shooting parameters; the preset shooting parameters include: presetting a radius parameter, a position parameter and an amplification ratio parameter;
the scattered aerial photo splicing module is used for splicing the scattered aerial photo of the game scene to generate a scene aerial photo;
the mapping relation determining module is used for determining the mapping relation between the scene aerial photography graph and the coordinates of the grid thermodynamic diagram;
the grid thermodynamic diagram overlaying module is used for overlaying the grid thermodynamic diagram on the scene aerial photograph according to the mapping relation;
the mapping relation determining module comprises:
the position selection submodule is used for determining two first positions in the grid thermodynamic diagram and determining two second positions which respectively correspond to the two positions in the scene aerial image;
and the mapping relation determining submodule is used for determining the mapping relation between the scene aerial photography image and the coordinates of the grid thermodynamic diagram by adopting two first positions in the grid thermodynamic diagram and two second positions in the scene aerial photography image.
7. A data analysis apparatus, 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 apparatus to perform the method of any of claims 1-5.
8. 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 by any of claims 1-5.
CN201910054526.0A 2019-01-21 2019-01-21 Data analysis method and device Active CN109821233B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910054526.0A CN109821233B (en) 2019-01-21 2019-01-21 Data analysis method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910054526.0A CN109821233B (en) 2019-01-21 2019-01-21 Data analysis method and device

Publications (2)

Publication Number Publication Date
CN109821233A CN109821233A (en) 2019-05-31
CN109821233B true CN109821233B (en) 2022-12-16

Family

ID=66861795

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910054526.0A Active CN109821233B (en) 2019-01-21 2019-01-21 Data analysis method and device

Country Status (1)

Country Link
CN (1) CN109821233B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111389016B (en) * 2020-02-27 2024-01-19 网易(杭州)网络有限公司 In-game information processing method and device, terminal equipment and server equipment
CN112221151B (en) * 2020-10-23 2022-03-25 腾讯科技(深圳)有限公司 Map generation method and device, computer equipment and storage medium
CN113457166A (en) * 2021-07-20 2021-10-01 网易(杭州)网络有限公司 Game player churn information processing method, device, equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103646424A (en) * 2013-11-26 2014-03-19 北京空间机电研究所 Aerial seamless virtual roaming system constructing method
WO2015134990A1 (en) * 2014-03-07 2015-09-11 White Shoe Media, Inc. Dynamic content and pricing
WO2015161782A1 (en) * 2014-04-23 2015-10-29 Tencent Technology (Shenzhen) Company Limited Method and system for mining churn factor causing user churn for network application
CN105335430A (en) * 2014-08-08 2016-02-17 腾讯科技(深圳)有限公司 Map scene based user loss path determination method and apparatus
CN106294883A (en) * 2016-08-30 2017-01-04 杭州启冠网络技术有限公司 Based on the user behavior data method and system to analyzing on user behavior figure
CN106485655A (en) * 2015-09-01 2017-03-08 张长隆 A kind of taken photo by plane map generation system and method based on quadrotor
CN106528398A (en) * 2015-09-15 2017-03-22 网易(杭州)网络有限公司 Game software performance visual analysis method

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9600146B2 (en) * 2015-08-17 2017-03-21 Palantir Technologies Inc. Interactive geospatial map
EP3166063A1 (en) * 2015-11-06 2017-05-10 Mastercard International Incorporated Heatmap visualisation of event data
US10463964B2 (en) * 2016-11-17 2019-11-05 Activision Publishing, Inc. Systems and methods for the real-time generation of in-game, locally accessible heatmaps

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103646424A (en) * 2013-11-26 2014-03-19 北京空间机电研究所 Aerial seamless virtual roaming system constructing method
WO2015134990A1 (en) * 2014-03-07 2015-09-11 White Shoe Media, Inc. Dynamic content and pricing
WO2015161782A1 (en) * 2014-04-23 2015-10-29 Tencent Technology (Shenzhen) Company Limited Method and system for mining churn factor causing user churn for network application
CN105335430A (en) * 2014-08-08 2016-02-17 腾讯科技(深圳)有限公司 Map scene based user loss path determination method and apparatus
CN106485655A (en) * 2015-09-01 2017-03-08 张长隆 A kind of taken photo by plane map generation system and method based on quadrotor
CN106528398A (en) * 2015-09-15 2017-03-22 网易(杭州)网络有限公司 Game software performance visual analysis method
CN106294883A (en) * 2016-08-30 2017-01-04 杭州启冠网络技术有限公司 Based on the user behavior data method and system to analyzing on user behavior figure

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
利用游戏中地图界面拼接的完整大地图[完整的8000 X 6000分辨率];十方天地;《trow.cc网址https://trow.cc/board/showtopic=16688》;20111125;全文 *
火焰之纹章系列的整版地图截图是怎么做出来的?;NanoZ,sayno210;《知乎https://www.zhihu.com/question/21751395/answer/25188255》;20140504;第1页 *

Also Published As

Publication number Publication date
CN109821233A (en) 2019-05-31

Similar Documents

Publication Publication Date Title
CN109821233B (en) Data analysis method and device
US8478767B2 (en) Systems and methods for generating enhanced screenshots
CN106355153B (en) A kind of virtual objects display methods, device and system based on augmented reality
JP6203406B2 (en) System and method for determining plane spread in an augmented reality environment
EP2798616B1 (en) Target aquisition in a three dimensional building display
CN111957040B (en) Detection method and device for shielding position, processor and electronic device
CN109731329B (en) Method and device for determining placement position of virtual component in game
CN111339588B (en) Two-dimensional drawing and three-dimensional model checking method, system and storage medium
JP2011133984A (en) Motion feature extraction device and motion feature extraction method
JP2023172893A (en) Control method, control device, and recording medium for interactive three-dimensional representation of target object
CN114202640A (en) Data acquisition method and device, computer equipment and storage medium
Gimeno et al. An augmented reality (AR) CAD system at construction sites
CN109712197B (en) Airport runway gridding calibration method and system
CN103838861A (en) Method and display system for dynamically displaying information based on three-dimensional GIS
Paliou Visual perception in past built environments: Theoretical and procedural issues in the archaeological application of three-dimensional visibility analysis
JP7004825B2 (en) Methods and equipment for visualization of public welfare activities
WO2020136918A1 (en) Construction site progress appraisal system, method, and program
Herman et al. The design and testing of 3DmoveR: An experimental tool for usability studies of interactive 3D maps
CN115131531A (en) Virtual object display method, device, equipment and storage medium
Gimeno et al. An occlusion-aware AR authoring tool for assembly and repair tasks
CN113836337A (en) BIM display method, device, equipment and storage medium
CN109166182B (en) AR simulation processing method and device, electronic equipment and readable storage medium
Jastrzebski Virtual Underground Training Environment
CN114764833A (en) Plant growth curve determination method and device, electronic equipment and medium
JP2022041049A (en) Flood depth estimation device and method

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