Target guidance method, device and electronic equipment

By using communication between terminal devices and servers in online games to obtain and update the location information of the target object, the problems of low position accuracy and target omission during the target boot process are solved, and the user experience is improved.

CN114797104BActive Publication Date: 2025-03-04NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210239303.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-11
Publication Date
2025-03-04
Estimated Expiration
2042-03-11

AI Technical Summary

Technical Problem

In online games, the existing technology has low position accuracy and target misses in the target guidance process, which affects the user experience.

Method used

Through communication between the terminal device and the server, in response to the target boot command, the area information in the virtual object's area of ​​interest is obtained, and the target object is found in the area. If the target object is in the area of ​​interest, the first location information of its location is displayed; if it is not present, the second location information of the target object from the server is obtained for guidance.

Benefits of technology

Improve the position accuracy of the target object during the guidance process, avoid target omissions, and thus improve user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114797104B_ABST
    Figure CN114797104B_ABST
Patent Text Reader

Abstract

The present invention provides a target guidance method, device and electronic device, which, in response to a target guidance instruction from a server, obtains area information within an area of ​​interest of a virtual object; searches for a target object contained in the target guidance instruction in the area information of the area of ​​interest; if the target object is found, displays first position information of the position of the target object in the area of ​​interest; if the target object is not found, obtains second position information of the target object from the server and displays the second position information. In the above method, since the client updates the position of the object in the area of ​​interest at a high frequency, the task guidance is performed through the position of the target object in the area of ​​interest, thereby improving the accuracy of the position of the target object during the guidance process; and when the target object is outside the area of ​​interest, the guidance is performed through the position information sent by the server, thereby avoiding the phenomenon of target omission, thereby improving the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of online games, and in particular to a target guiding method, device and electronic equipment. Background Art

[0002] In online games, in order to increase the fun of the game, some tasks for finding target objects in the game scene are usually set. In the related art, the server or client is usually used to guide the player based on the task with the target object. However, when the server is used for task guidance, the frequency of obtaining the task target is usually affected by the computing power of the server. When the computing power of the server is tight, the frequency of obtaining the task target is low, and the position accuracy of the task target is low during the guidance process; when the client is used for task guidance, since the client usually only synchronizes the objects in the area of ​​interest based on the player, when the task target does not exist in the area of ​​interest, the task guidance process will result in the phenomenon of missing the target, affecting the user experience. Summary of the invention

[0003] In view of this, the object of the present invention is to provide a target guidance method, device and electronic device to improve the accuracy of the position of the target object during the target guidance process and avoid the phenomenon of target omission, thereby improving the user experience.

[0004] In a first aspect, an embodiment of the present invention provides a target guidance method, which is applied to a terminal device; the terminal device is communicatively connected to a preset server; the method comprises: in response to a target guidance instruction from the server, obtaining area information within an area of ​​interest of a virtual object; wherein the virtual object is manipulated through the terminal device, and the area information comprises position information of an object located within the area of ​​interest; the target guidance instruction comprises a target object; searching for the target object in the area information of the area of ​​interest; if found, displaying first position information of the position of the target object within the area of ​​interest; if not found, obtaining second position information of the target object from the server, and displaying the second position information.

[0005] The above-mentioned step of displaying the first position information of the target object in the area of ​​interest includes: generating display parameters of the guide marker based on the position of the target object in the area of ​​interest; updating the game screen based on the display parameters of the guide marker and the game resources corresponding to the area of ​​interest; the guide marker is displayed on the updated game screen according to the display parameters, so as to indicate the first position information of the target object in the area of ​​interest.

[0006] The above-mentioned steps of obtaining the second position information of the target object from the server and displaying the second position information include: if the second position information of the target object sent by the server is received, based on the second position information of the target object, generating display parameters of a preset guide logo of the target object; based on the display parameters of the guide logo and the game resources corresponding to the area of ​​interest, updating the game screen; the guide logo is displayed on the updated game screen according to the display parameters, to indicate the second position information of the target object.

[0007] The above method also includes: sending the location information of the virtual object to the server at a first set frequency, so that the server updates the area information within the virtual object's area of ​​interest based on the location information of the virtual object; if the updated area information within the area of ​​interest of the virtual object sent by the server is received, for the object located in the area of ​​interest, based on the location information of the object before the update and the location information of the object after the update, generating trajectory parameters corresponding to the object; the trajectory parameters include positions corresponding to multiple target moments; and determining the trajectory parameters as the updated area information within the area of ​​interest.

[0008] The above-mentioned area information includes the position information of objects in the area of ​​interest corresponding to each target moment; the step of obtaining the area information in the area of ​​interest of the virtual object includes: determining the position information of the objects in the area of ​​interest corresponding to the next target moment closest to the current moment as the acquired area information in the area of ​​interest of the virtual object.

[0009] In a second aspect, an embodiment of the present invention provides a target guidance method, which is applied to a server; the server is communicatively connected to a preset terminal device; the method includes: if a target guidance task for a virtual object is acquired, a target guidance instruction is sent to the terminal device so that the terminal device acquires area information within an area of ​​interest of the virtual object; wherein the virtual object is manipulated by the terminal device, and the area information includes location information of an object located within the area of ​​interest; the target guidance instruction includes a target object; searching for the target object in the area information of the area of ​​interest; if found, displaying first location information of the target object within the area of ​​interest; updating the second location information of the target object, and sending the second location information of the target object to the terminal device so that if the terminal device does not find the target object in the area information of the area of ​​interest, the second location information is displayed.

[0010] In a third aspect, an embodiment of the present invention provides a target guidance device, which is applied to a terminal device; the terminal device is communicatively connected to a preset server; the device includes: an area information acquisition module, which is used to obtain area information within the area of ​​interest of a virtual object in response to a target guidance instruction from the server; wherein the virtual object is manipulated through the terminal device, and the area information includes position information of an object located in the area of ​​interest; the target guidance instruction includes a target object; a target object search module, which is used to search for the target object in the area information of the area of ​​interest; a first display module, which is used to display first position information of the position of the target object in the area of ​​interest if found; and a second display module, which is used to obtain second position information of the target object from the server and display the second position information if not found.

[0011] In a fourth aspect, an embodiment of the present invention provides a target guidance device, which is arranged on a server; the server is communicatively connected to a preset terminal device; the device includes: a guidance instruction sending module, which is used to send a target guidance instruction to the terminal device if a target guidance task for a virtual object is obtained, so that the terminal device obtains area information within the area of ​​interest of the virtual object; wherein the virtual object is controlled by the terminal device, and the area information includes position information of the object located in the area of ​​interest; the target guidance instruction includes the target object; searching for the target object in the area information of the area of ​​interest; if found, displaying the first position information of the position of the target object in the area of ​​interest; a second position information sending module, which is used to update the second position information of the target object, and send the second position information of the target object to the terminal device, so that if the terminal device does not find the target object in the area information of the area of ​​interest, the second position information is displayed.

[0012] In a fifth aspect, an embodiment of the present invention provides an electronic device, including a processor and a memory, wherein the memory stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement the above-mentioned target guidance method.

[0013] In a sixth aspect, an embodiment of the present invention provides a machine-readable storage medium, which stores machine-executable instructions. When the machine-executable instructions are called and executed by a processor, the machine-executable instructions prompt the processor to implement the above-mentioned target boot method.

[0014] The embodiments of the present invention bring the following beneficial effects:

[0015] The above-mentioned target guidance method, device and electronic device obtain the area information of the virtual object in the area of ​​interest in response to the target guidance instruction from the server; search for the target object contained in the target guidance instruction in the area information of the area of ​​interest; if found, display the first position information of the position of the target object in the area of ​​interest; if not found, obtain the second position information of the target object from the server and display the second position information. In the above-mentioned method, since the client updates the position of the object in the area of ​​interest at a high frequency, the task guidance is performed through the position of the target object in the area of ​​interest, which improves the accuracy of the position of the target object during the guidance process; and when the target object is outside the area of ​​interest, it is guided through the position information sent by the server, avoiding the phenomenon of target omission, thereby improving the user experience.

[0016] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention are realized and obtained by the structures particularly pointed out in the description, claims and drawings.

[0017] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without paying any creative work.

[0019] Figure 1 A schematic diagram of a region of interest provided by an embodiment of the present invention;

[0020] Figure 2 A flow chart of a target guidance method provided by an embodiment of the present invention;

[0021] Figure 3 A schematic diagram of a game scene provided by an embodiment of the present invention;

[0022] Figure 4 A flowchart of another target guidance method provided by an embodiment of the present invention;

[0023] Figure 5 A flowchart of another target guidance method provided by an embodiment of the present invention;

[0024] Figure 6A schematic diagram of the structure of a target guiding device provided by an embodiment of the present invention;

[0025] Figure 7 A schematic structural diagram of another target guiding device provided by an embodiment of the present invention;

[0026] Figure 8 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0027] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0028] In online games, in order to increase the fun of the game, some tasks for finding target objects in the game scene are usually set. In order to let players have clear goals and perform tasks more easily, guidance signs are usually displayed on the user interface of the terminal device operated by the player to guide the task. For tasks such as finding targets, there are two requirements for task guidance: providing accurate target locations and real-time refresh. Real-time refresh usually means that the display content of the scene is refreshed at a high frequency, such as refreshing twenty times or more per second.

[0029] In online games, the game system server running on the server has all the information of the entire game and can give accurate target locations; however, computing power is relatively scarce, and it is difficult to refresh in real time when there are many online players. The client running on the terminal device can handle the task guidance of local players, and has sufficient computing power to refresh in real time; however, due to the use of AOI (Area Of Interest), the client can only find objects in a small area near the player, and cannot deal with the situation where the task target is outside the AOI.

[0030] AOI represents the client's field of view in online games; in order to reduce overhead, the client will only synchronize objects within the AOI. This process usually involves the client sending the position coordinates of the virtual character corresponding to the player to the server. The server uses algorithms such as the lighthouse method and the nine-square method to determine the AOI corresponding to the virtual character based on the position coordinates of the virtual character, and sends the object information in the AOI area (such as the location of the object, the corresponding virtual resources, etc.) to the client. The client can synchronize the objects within the AOI based on the received object information. Figure 1The figure shows a scene of a game system server running on a server. In the scene, there is player A and three objects 1, 2, and 3. The area in the circle represents the AOI of player A. From the positions of the objects in the figure, we can see that objects 2 and 3 are within the AOI of player A, and object 1 is outside the AOI of player A. Therefore, player A's terminal device will only synchronize the status of objects 2 and 3, but not the status of object 1.

[0031] In the related art, the following four methods can be used for task guidance:

[0032] 1. Pure server-side guidance, real-time refresh is possible when computing power is sufficient, and low-frequency refresh is possible when computing power is tight. However, this method is greatly limited by the computing power of the server, and can only refresh at a low frequency when there are many players, which is not effective.

[0033] 2. Pure client guidance. This method cannot handle situations where the mission target is outside the AOI.

[0034] 3. Pure server-side guidance requires that the mission targets are static, so only one guidance is required. This method can only be used for games where the mission targets cannot move or disappear, and has a small scope of application.

[0035] 4. Pure server-side guidance, the player decides when to refresh, the server does not refresh automatically, for example, the client has a button to refresh the target position. This method lacks immersion and has a poor experience.

[0036] Based on this, an embodiment of the present invention provides a target guidance method, device and electronic device, and this technology can be applied to target guidance in various game scenarios.

[0037] To facilitate understanding of this embodiment, a target guidance method disclosed in an embodiment of the present invention is first introduced in detail. The method is applied to a terminal device; the terminal device is connected to a preset server for communication; Figure 2 As shown, the method comprises the following steps:

[0038] Step S202, in response to the target guidance instruction from the server, obtaining area information within the area of ​​interest of the virtual object; wherein the virtual object is controlled by the terminal device, the area information includes position information of the object located in the area of ​​interest; the target guidance instruction includes the target object.

[0039] The target guidance instruction is usually sent by the server to the terminal device after obtaining a target search task for a virtual object, so as to notify the terminal device that target guidance is required. The target object is usually other virtual objects in the game scene of the virtual object controlled by the terminal device, which can be one or more. The target object can be a virtual object with a fixed position or a virtual object with a moving position. For this method, it usually refers to a virtual object with a moving position.

[0040] The area information within the area of ​​interest of the above-mentioned virtual object is usually obtained by the terminal device by requesting the server at a certain frequency, and this process is regarded as the process of the client refreshing the area of ​​interest of the virtual object. After receiving the area information within the area of ​​interest sent by the server, the terminal device usually does not refresh the graphical user interface immediately, but caches the area information. Due to the limited resources of the server and the large number of online players, the server responds to the terminal device's request for the area of ​​interest at a low frequency, that is, the update frequency of the area information within the area of ​​interest sent by the server is low, such as once every few seconds. If the game screen is refreshed directly based on the area information sent by the server, the game screen will freeze, and the target object in the area of ​​interest will be fixed in one position for a few seconds, and then instantly move to a longer distance, resulting in a poor gaming experience for the user.

[0041] To improve user experience, terminal devices usually cache the area information sent by the server in sequence, such as caching the area information sent by two adjacent servers, and then generate the positions of each object corresponding to multiple moments between the sending time of the adjacent area information according to the positions of each object in the area of ​​interest in the two area information through a preset algorithm, such as an algorithm for smoothing multiple positions, so as to obtain the area information corresponding to each moment. The terminal device then refreshes the game screen based on the corresponding area information at each moment, and displays the positions of each object in the area of ​​interest, thereby generating the effect that the objects in the area of ​​interest move along a relatively continuous trajectory. When obtaining the area information in the area of ​​interest of a virtual object, the area information generated by the client at the next moment closer to the current moment can be obtained to obtain the real-time position of the object in the area of ​​interest.

[0042] Step S204: searching for a target object in the area information of the area of ​​interest.

[0043] The above-mentioned area information includes the positions of objects in multiple areas of interest, and each object usually has corresponding identification information, such as a code, etc. The above-mentioned guidance instruction usually includes the identification information of the target object, and the identification information of the target object is searched in the area information. If the identification information of the target object is found, it is determined that the target object is in the area of ​​interest. If it is not found, it is determined that the target object is not in the area of ​​interest.

[0044] Step S206: If found, display the first position information of the position of the target object in the region of interest.

[0045] When the target object is within the region of interest, the position of the target object in the region information can be determined as the current position of the target object. When performing target guidance, some guidance marks are usually set. These guidance marks can be pre-stored in the terminal device, or sent to the terminal device through guidance instructions. The above-mentioned guidance mark can be a graphic such as an arrow, set at the position of the target object, or point to the target object. At this time, the position and direction of the guidance mark can be regarded as the above-mentioned first position information. The above-mentioned guidance mark can also be a number, set at a set position of the graphical user interface, displaying the position coordinates of the target object, the relative distance between the target object and the virtual object and other related content, these related contents can be regarded as the above-mentioned first position information.

[0046] In the process of displaying the first position information of the position of the target object in the region of interest, it is necessary to first determine the display position or display value and other parameters of the guide mark on the game screen based on the position of the target object in the region of interest, which can be determined specifically according to the types of different guide marks, and then the current graphical user interface can be refreshed, and the guide mark can be displayed in the refreshed graphical user interface to guide the player in the task. Among them, the game screen is displayed on the graphical user interface provided by the terminal device. In addition to the game screen, the graphical user interface can also display various game controls, controls of the terminal operating system, etc.

[0047] Step S208: if the target object is not found, obtain the second location information of the target object from the server and display the second location information.

[0048] When the target object is not in the region of interest, task guidance is performed based on the location information of the target object sent by the server. Since the update frequency of the location of the target object sent by the server is low, the location of the target object cannot be updated in real time, and the accuracy of the location is low. However, since the target object is outside the region of interest at this time and is far away from the user, the accuracy of its location will hardly have a negative impact on the user's gaming experience during the task guidance process.

[0049] Similar to the above-mentioned process of displaying the second position information, it is also necessary to determine the display position or display value and other parameters of the guide mark in the game screen, and then refresh the current graphical user interface. Since the target object is not within the area of ​​interest, an area is usually set in the game screen to display a map of the entire game scene. Since this area is generally small, it is also called a "mini-map". The guide mark of the target object is usually displayed on the mini-map, which can display the position of the target object and the value of the relative distance between the target object and the virtual object, etc., to guide the player in the task.

[0050] The above target guidance method obtains the area information of the virtual object in the area of ​​interest in response to the target guidance instruction from the server; searches for the target object contained in the target guidance instruction in the area information of the area of ​​interest; if the target object is found, displays the first position information of the position of the target object in the area of ​​interest; if the target object is not found, obtains the second position information of the target object from the server and displays the second position information. In the above method, since the client updates the position of the object in the area of ​​interest at a high frequency, the task guidance is performed through the position of the target object in the area of ​​interest, which improves the accuracy of the position of the target object during the guidance process; and when the target object is outside the area of ​​interest, it is guided through the position information sent by the server, which avoids the phenomenon of missing the target, thereby improving the user experience.

[0051] The following embodiment provides an implementation method for obtaining region information within a region of interest of a virtual object.

[0052] When updating the area information of the area of ​​interest, the terminal device usually sends the location information of the virtual object to the server at a first set frequency, so that the server updates the area information in the area of ​​interest of the virtual object based on the location information of the virtual object; however, due to the limited system resources of the server, the above first set frequency is difficult to meet the needs of the terminal device to update the graphical user interface in real time. Therefore, after the terminal device receives the updated area information in the area of ​​interest of the virtual object sent by the server, for the object located in the area of ​​interest, based on the location information of the object before the update and the location information of the object after the update, the trajectory parameters corresponding to the object are generated; the trajectory parameters include positions corresponding to multiple target moments; and the trajectory parameters are determined as the updated area information in the area of ​​interest.

[0053] When obtaining area information within the area of ​​interest of a virtual object, the position information of the object within the area of ​​interest corresponding to the next target moment closest to the current moment can be determined as the area information within the area of ​​interest of the obtained virtual object, and the target object can be further searched in the obtained area information, thereby realizing real-time refresh of the target object position on the client.

[0054] To explain the above process, see Figure 3 Schematic diagram of the overall game scene shown. Figure 3 In the figure, the order of the moments is t1, t2, t3, and t4. The target object (also called the mission target) moves to the upper right. For the convenience of explanation, player A (i.e., the virtual object) remains stationary. Assuming that the time interval for the terminal device to update the region of interest is (t4-t1), if the terminal device does not generate the trajectory parameters of the target object within the time period from t1 to t4, the target object will move directly from the position at t1 to the position at t4. After the terminal device generates the trajectory parameters, the following will appear in the graphical user interface at t2 and t3: Figure 3 The image of the area of ​​interest in the image is captured to form the motion trajectory of the target object.

[0055] Similarly, due to the limited resources of the server, the server refreshes the location of the task target at a low frequency. Assuming that the server-side task target refresh interval of the game system running on the server is (t4-t1), at times t2 and t3, since the server does not refresh, the target location provided by the server is at time t1, and it is not refreshed until time t4. If it is used directly, it is obviously inaccurate. From time t2, the target object has entered the AOI of player A, and the terminal device has obtained the area information of the new area of ​​interest through the AOI area update, and generated the location of the target object at multiple times based on the new area information. The terminal device can find the location of the target object in the area information, and can use the local location of the target object as the standard, thereby realizing the real-time update of the location of the target object.

[0056] The following embodiment provides an implementation method for displaying the location information of a target object within a region of interest.

[0057] In the process of guiding the task for the target object, it is usually necessary to set a guide mark, which can be a graphic, text or numerical value, or a combination of two or three of them. When displaying the position information of the target object in the area of ​​interest, if the target object is in the area of ​​interest, it is necessary to generate the display parameters of the guide mark based on the position of the target object in the area of ​​interest; the display parameter can be the display position of the guide mark on the game screen, which is usually close to the position of the target object, or it can be the display value of the guide mark on the game screen, such as the distance between the target object and the virtual object is 50m, or it can be the starting point, end point and direction of the guide mark pointed to the target object by the virtual object. Then, based on the display parameters of the guide mark and the game resources corresponding to the area of ​​interest, the game screen is updated; the guide mark is displayed on the updated game screen according to the display parameters, which is used to indicate the first position information of the target object in the area of ​​interest, thereby guiding the player's target object.

[0058] When the real target is not in the region of interest, if the second position information of the target object sent by the server is received, the display parameters of the preset guide mark of the target object are generated based on the second position information of the target object; since the target object is not in the region of interest, the guide mark usually does not include a graphic mark pointing to the target object by the virtual object, and can be other guide marks indicating the position, which are usually displayed in a set area in the game screen, such as a "mini map". Then, the game screen can be updated based on the display parameters of the guide mark and the game resources corresponding to the region of interest; the guide mark is displayed on the updated game screen according to the display parameters to indicate the second position information of the target object, thereby guiding the player's target object.

[0059] Based on the above method embodiment, see Figure 4 Another target guidance method shown is applied to a server; the server is connected to a preset terminal device for communication; the method includes:

[0060] Step S402, if a target guidance task for a virtual object is obtained, a target guidance instruction is sent to a terminal device so that the terminal device obtains area information within the area of ​​interest of the virtual object; wherein the virtual object is controlled by the terminal device, and the area information includes position information of an object located within the area of ​​interest; the target guidance instruction includes a target object; the target object is searched for in the area information of the area of ​​interest; if found, the first position information of the position of the target object within the area of ​​interest is displayed.

[0061] The above-mentioned target guidance task can be triggered after the user sends a message to the server to participate in the task by operating the terminal device, or it can be triggered after the user completes certain specific processes, such as after the novice registration process, the terminal device generates a task trigger message. After the server receives the task trigger message, it obtains the target guidance task for the virtual object in the terminal device, and then starts the task guidance and sends the target guidance instruction to the terminal device.

[0062] Step S404, updating the second location information of the target object, and sending the second location information of the target object to the terminal device, so that if the terminal device does not find the target object in the area information of the area of ​​interest, the second location information is displayed.

[0063] The second position information of the target object generally indicates the position of the target object in the entire game scene. Due to limited server resources, the frequency of updating the second position information of the target object is low, usually once every few seconds, and the position accuracy is low. Since the target object is not in the area of ​​interest and is far away from the virtual object, its position accuracy has almost no adverse effect on the user's gaming experience during the task guidance process.

[0064] Based on the above embodiment, the embodiment of the present invention also provides another target guidance method, which is implemented by the client (equivalent to the above "terminal device") and the server (equivalent to the above "server") interacting. This method avoids the shortcomings of the server not being able to refresh in real time and the client not having complete information by guiding the task in both the server and the client, and achieves real-time refreshing of the accurate task target location.

[0065] like Figure 5 As shown, the implementation process of this method is as follows:

[0066] The server starts the task, and then starts the task guidance, and notifies the client to start the task guidance. When the client starts the task guidance, it first obtains the target position (i.e., the position of the target object), determines whether there is a local target position (i.e., whether the target object is located in the area of ​​interest), and if so, refreshes the interface (equivalent to the above-mentioned graphical user interface) to display the guidance of the target object on the refreshed interface, and then enters a short delay, and also updates the local target position based on the target position. During the task guidance process, the server obtains the target position, and then sends the target position to the client, so that the client refreshes the interface based on the received target position; the server then enters a long delay, that is, updates the target position at a lower frequency.

[0067] The above method can be summarized as follows: when the client searches for the task target in the area of ​​interest, it uses the task guidance of the client (real-time refresh); otherwise, it uses the task guidance of the server (low-frequency refresh). After the server starts the task guidance, the client starts the guidance synchronously; the server updates the target location at a large interval and synchronizes it to the client; the client searches for the task target in real time, and if it is found, it refreshes the interface with the local target location as the data source, otherwise, it uses the target location synchronized by the server as the data source.

[0068] The above method refreshes the position of the task target at a lower frequency on the server side and refreshes it in real time on the client side. If the target can be found, the client side will be used as the standard. Otherwise, the target position provided by the server will be used for target guidance. While saving computing power, the target position refresh interval given by the server is large and has poor timeliness. Therefore, the target position may not be accurate between two refreshes. It can be considered that the server provides a fuzzy position of the target. On the client side, if the target cannot be found, it means that the target is not within the AOI and is far away from the player. Using a fuzzy position does not affect the game experience. When the target enters the player's AOI, the client can find it and refresh the position in real time. At this time, both requirements can be met at the same time.

[0069] For the above method embodiments, see Figure 6 A target guiding device is shown, which is applied to a terminal device; the terminal device is connected to a preset server for communication; the device comprises:

[0070] The region information acquisition module 602 is used to obtain region information in the region of interest of the virtual object in response to the target guidance instruction from the server; wherein the virtual object is controlled by the terminal device, the region information includes position information of the object located in the region of interest; the target guidance instruction includes the target object;

[0071] A target object search module 604 is used to search for a target object in the area information of the area of ​​interest;

[0072] A first display module 606, configured to display first position information of the position of the target object in the region of interest if found;

[0073] The second display module 608 is used to obtain the second location information of the target object from the server if the target object is not found, and display the second location information.

[0074] The above-mentioned target guidance device, in response to the target guidance instruction from the server, obtains the area information of the virtual object in the area of ​​interest; searches for the target object contained in the target guidance instruction in the area information of the area of ​​interest; if found, displays the first position information of the position of the target object in the area of ​​interest; if not found, obtains the second position information of the target object from the server and displays the second position information. In the above-mentioned method, since the client updates the position of the object in the area of ​​interest at a high frequency, the task guidance is performed through the position of the target object in the area of ​​interest, which improves the accuracy of the position of the target object during the guidance process; and when the target object is outside the area of ​​interest, it is guided through the position information sent by the server, which avoids the phenomenon of missing the target, thereby improving the user experience.

[0075] The above-mentioned first position information includes display parameters of the guide mark corresponding to the target object; the above-mentioned position display module is also used to: generate display parameters of the guide mark based on the position of the target object in the area of ​​interest; update the game screen based on the display parameters of the guide mark and the game resources corresponding to the area of ​​interest; the guide mark is displayed on the updated game screen to indicate the position of the target object in the area of ​​interest.

[0076] The above-mentioned second position information of the target object is obtained from the server, and the above-mentioned position display module is also used for: if the second position information of the target object sent by the server is received, based on the second position information of the target object, generating position parameters corresponding to the guide identifier of the target object; based on the display parameters of the guide identifier and the game resources corresponding to the area of ​​interest, updating the game screen; the guide identifier is displayed on the updated game screen to indicate the position of the target object.

[0077] The above-mentioned device also includes: a position information sending module, which is used to send the position information of the virtual object to the server at a first set frequency, so that the server updates the area information within the virtual object's area of ​​interest based on the position information of the virtual object; a trajectory parameter generating module, which is used to generate trajectory parameters corresponding to the object located in the area of ​​interest based on the position information of the object before the update and the position information of the object after the update if the updated area information within the area of ​​interest of the virtual object sent by the server is received; the trajectory parameters include positions corresponding to multiple target moments; the area information updating module is used to determine the trajectory parameters as the area information within the updated area of ​​interest.

[0078] The above-mentioned area information includes the position information of objects in the area of ​​interest corresponding to each target moment; the above-mentioned area information acquisition module is also used to: determine the position information of objects in the area of ​​interest corresponding to the next target moment closest to the current moment as the area information in the area of ​​interest of the acquired virtual object.

[0079] For the above method embodiments, see Figure 7 A target guiding device is shown, which is arranged on a server; the server is connected to a preset terminal device for communication; the device comprises:

[0080] The guidance instruction sending module 702 is used to send a target guidance instruction to the terminal device if a target guidance task for the virtual object is obtained, so that the terminal device obtains the area information in the area of ​​interest of the virtual object; wherein the virtual object is controlled by the terminal device, and the area information includes the position information of the object located in the area of ​​interest; the target guidance instruction includes the target object; searching for the target object in the area information of the area of ​​interest; if the target object is found, displaying the first position information of the position of the target object in the area of ​​interest;

[0081] The second location information sending module 704 is used to update the second location information of the target object and send the second location information of the target object to the terminal device, so that if the terminal device does not find the target object in the area information of the area of ​​interest, the second location information is displayed.

[0082] This embodiment also provides an electronic device, including a processor and a memory, wherein the memory stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement the above-mentioned target guiding method.

[0083] See also Figure 8 As shown, the electronic device includes a processor 100 and a memory 101. The memory 101 stores machine executable instructions that can be executed by the processor 100. The processor 100 executes the machine executable instructions to implement the above-mentioned target guiding method.

[0084] When the electronic device is used as a terminal device, the electronic device is connected to a preset server for communication, and the electronic device can implement the following target guidance method for a game character:

[0085] In response to a target guidance instruction from a server, area information within an area of ​​interest of a virtual object is obtained; wherein the virtual object is manipulated through a terminal device, and the area information includes position information of an object located within the area of ​​interest; the target guidance instruction includes a target object; the target object is searched for in the area information of the area of ​​interest; if the target object is found, first position information of the position of the target object within the area of ​​interest is displayed; if the target object is not found, second position information of the target object is obtained from the server and the second position information is displayed.

[0086] The above-mentioned step of displaying the first position information of the target object in the area of ​​interest includes: generating display parameters of the guide marker based on the position of the target object in the area of ​​interest; updating the game screen based on the display parameters of the guide marker and the game resources corresponding to the area of ​​interest; the guide marker is displayed on the updated game screen according to the display parameters, so as to indicate the first position information of the target object in the area of ​​interest.

[0087] The above-mentioned steps of obtaining the second position information of the target object from the server and displaying the second position information include: if the second position information of the target object sent by the server is received, based on the second position information of the target object, generating display parameters of a preset guide logo of the target object; based on the display parameters of the guide logo and the game resources corresponding to the area of ​​interest, updating the game screen; the guide logo is displayed on the updated game screen according to the display parameters, to indicate the second position information of the target object.

[0088] The above method also includes: sending the location information of the virtual object to the server at a first set frequency, so that the server updates the area information within the virtual object's area of ​​interest based on the location information of the virtual object; if the updated area information within the area of ​​interest of the virtual object sent by the server is received, for the object located in the area of ​​interest, based on the location information of the object before the update and the location information of the object after the update, generating trajectory parameters corresponding to the object; the trajectory parameters include positions corresponding to multiple target moments; and determining the trajectory parameters as the updated area information within the area of ​​interest.

[0089] The above-mentioned area information includes the position information of objects in the area of ​​interest corresponding to each target moment; the step of obtaining the area information in the area of ​​interest of the virtual object includes: determining the position information of the objects in the area of ​​interest corresponding to the next target moment closest to the current moment as the acquired area information in the area of ​​interest of the virtual object.

[0090] In the above method, since the client running on the terminal device updates the position of the object in the area of ​​interest at a high frequency, the task guidance is performed through the position of the target object in the area of ​​interest, thereby improving the accuracy of the position of the target object during the guidance process; and when the target object is outside the area of ​​interest, guidance is performed through the position information sent by the server running on the server, thereby avoiding the phenomenon of target omission, thereby improving the user experience.

[0091] When the electronic device is used as a server, the electronic device is connected to a preset terminal device for communication, and the electronic device can implement the following target guidance method for a game character:

[0092] If a target guidance task for a virtual object is obtained, a target guidance instruction is sent to the terminal device so that the terminal device obtains area information in an area of ​​interest of the virtual object; the virtual object is manipulated by the terminal device, wherein the area information includes position information of an object located in the area of ​​interest; the target guidance instruction includes a target object; searching for the target object in the area information of the area of ​​interest; if the target object is found, displaying first position information of the position of the target object in the area of ​​interest;

[0093] The second location information of the target object is updated, and the second location information of the target object is sent to the terminal device, so that if the terminal device does not find the target object in the area information of the area of ​​interest, the second location information is displayed.

[0094] In the above method, when the target object is outside the area of ​​interest of the virtual object controlled by the terminal device, guidance is performed through the location information sent by the server running on the server, thereby avoiding the phenomenon of target omission, thereby improving the user experience; when the target object is within the area of ​​interest of the virtual object, task guidance is performed through the location of the target object in the area of ​​interest provided by the client running on the terminal device, thereby improving the accuracy of the location of the target object during the guidance process.

[0095] Further, Figure 8 The electronic device shown further includes a bus 102 and a communication interface 103 , and the processor 100 , the communication interface 103 and the memory 101 are connected via the bus 102 .

[0096] The memory 101 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk storage. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 103 (which may be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. may be used. The bus 102 may be an ISA bus, a PCI bus, or an EISA bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 8 Only one bidirectional arrow is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0097] The processor 100 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 100. The above processor 100 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present invention can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in conjunction with the embodiments of the present invention can be directly embodied as a hardware decoding processor for execution, or a combination of hardware and software modules in the decoding processor for execution. The software module may be located in a storage medium mature in the art, such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 101, and the processor 100 reads the information in the memory 101 and completes the steps of the method of the above embodiment in combination with its hardware.

[0098] This embodiment also provides a machine-readable storage medium, which stores machine-executable instructions. When the machine-executable instructions are called and executed by a processor, the machine-executable instructions prompt the processor to implement the above-mentioned target boot method.

[0099] When the electronic device is used as a terminal device, the processor of the electronic device calls and executes the machine executable instructions stored in the machine storable medium to implement the following target guiding method for the game character:

[0100] In response to a target guidance instruction from a server, area information within an area of ​​interest of a virtual object is obtained; wherein the virtual object is manipulated through a terminal device, and the area information includes position information of an object located within the area of ​​interest; the target guidance instruction includes a target object; the target object is searched for in the area information of the area of ​​interest; if the target object is found, first position information of the position of the target object within the area of ​​interest is displayed; if the target object is not found, second position information of the target object is obtained from the server and the second position information is displayed.

[0101] The above-mentioned step of displaying the first position information of the target object in the area of ​​interest includes: generating display parameters of the guide marker based on the position of the target object in the area of ​​interest; updating the game screen based on the display parameters of the guide marker and the game resources corresponding to the area of ​​interest; the guide marker is displayed on the updated game screen according to the display parameters, so as to indicate the first position information of the target object in the area of ​​interest.

[0102] The above-mentioned steps of obtaining the second position information of the target object from the server and displaying the second position information include: if the second position information of the target object sent by the server is received, based on the second position information of the target object, generating display parameters of a preset guide logo of the target object; based on the display parameters of the guide logo and the game resources corresponding to the area of ​​interest, updating the game screen; the guide logo is displayed on the updated game screen according to the display parameters, to indicate the second position information of the target object.

[0103] The above method also includes: sending the location information of the virtual object to the server at a first set frequency, so that the server updates the area information within the virtual object's area of ​​interest based on the location information of the virtual object; if the updated area information within the area of ​​interest of the virtual object sent by the server is received, for the object located in the area of ​​interest, based on the location information of the object before the update and the location information of the object after the update, generating trajectory parameters corresponding to the object; the trajectory parameters include positions corresponding to multiple target moments; and determining the trajectory parameters as the updated area information within the area of ​​interest.

[0104] The above-mentioned area information includes the position information of objects in the area of ​​interest corresponding to each target moment; the step of obtaining the area information in the area of ​​interest of the virtual object includes: determining the position information of the objects in the area of ​​interest corresponding to the next target moment closest to the current moment as the acquired area information in the area of ​​interest of the virtual object.

[0105] In the above method, since the client running on the terminal device updates the position of the object in the area of ​​interest at a high frequency, the task guidance is performed through the position of the target object in the area of ​​interest, thereby improving the accuracy of the position of the target object during the guidance process; and when the target object is outside the area of ​​interest, guidance is performed through the position information sent by the server running on the server, thereby avoiding the phenomenon of target omission, thereby improving the user experience.

[0106] When the electronic device is used as a server, the processor of the electronic device calls and executes the machine executable instructions stored in the machine storable medium to implement the following target guiding method for the game character:

[0107] If a target guidance task for a virtual object is obtained, a target guidance instruction is sent to the terminal device so that the terminal device obtains area information in an area of ​​interest of the virtual object; the virtual object is manipulated by the terminal device, wherein the area information includes position information of an object located in the area of ​​interest; the target guidance instruction includes a target object; searching for the target object in the area information of the area of ​​interest; if the target object is found, displaying first position information of the position of the target object in the area of ​​interest;

[0108] The second location information of the target object is updated, and the second location information of the target object is sent to the terminal device, so that if the terminal device does not find the target object in the area information of the area of ​​interest, the second location information is displayed.

[0109] In the above method, when the target object is outside the area of ​​interest of the virtual object controlled by the terminal device, guidance is performed through the location information sent by the server running on the server, thereby avoiding the phenomenon of target omission, thereby improving the user experience; when the target object is within the area of ​​interest of the virtual object, task guidance is performed through the location of the target object in the area of ​​interest provided by the client running on the terminal device, thereby improving the accuracy of the location of the target object during the guidance process.

[0110] A target guidance method, device and electronic device provided in an embodiment of the present invention include a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the method described in the previous method embodiment. The specific implementation can be found in the method embodiment and will not be repeated here.

[0111] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the system and device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0112] In addition, in the description of the embodiments of the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, and it can be the internal communication of two components. For those skilled in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0113] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0114] In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first", "second", and "third" are used for descriptive purposes only, and cannot be understood as indicating or implying relative importance.

[0115] Finally, it should be noted that the above embodiments are only specific implementations of the present invention, which are used to illustrate the technical solutions of the present invention, rather than to limit them. The protection scope of the present invention is not limited thereto. Although the present invention is described in detail with reference to the above embodiments, those skilled in the art should understand that any person skilled in the art can still modify the technical solutions recorded in the above embodiments within the technical scope disclosed by the present invention, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.

Claims

1. A target guidance method, characterized in that: The method is applied to a terminal device; The terminal device is connected to a preset server for communication; the method comprises: In response to the target guidance instruction from the server, acquiring area information within the region of interest of the virtual object; wherein the virtual object is manipulated by the terminal device, the area information includes position information of an object located within the region of interest; the target guidance instruction includes a target object; Searching for the target object in the area information of the area of ​​interest; If found, display the first location information of the target object in the region of interest; if not found, obtain the second location information of the target object from the server and display the second location information; The method further comprises: Sending the position information of the virtual object to the server at a first set frequency, so that the server updates the area information within the area of ​​interest of the virtual object based on the position information of the virtual object; If the updated region information of the virtual object in the region of interest sent by the server is received, for the object located in the region of interest, based on the position information of the object before the update and the position information of the object after the update, a trajectory parameter corresponding to the object is generated; the trajectory parameter includes positions corresponding to a plurality of target moments; The trajectory parameters are determined as the updated region information within the region of interest.

2. The method according to claim 1, characterized in that The first location information includes display parameters of a preset guide mark of the target object; The step of displaying first position information of the position of the target object in the region of interest comprises: Based on the position of the target object in the region of interest, generating display parameters of the guide mark; Based on the display parameters of the guide mark and the game resources corresponding to the area of ​​interest, the game screen is updated; the guide mark is displayed on the updated game screen according to the display parameters, and is used to indicate the first position information of the target object in the area of ​​interest.

3. The method according to claim 1, characterized in that The step of obtaining the second location information of the target object from the server and displaying the second location information comprises: If the second location information of the target object sent by the server is received, generating a display parameter of a preset guide mark of the target object based on the second location information of the target object; Based on the display parameters of the guide mark and the game resources corresponding to the area of ​​interest, the game screen is updated; the guide mark is displayed on the updated game screen according to the display parameters to indicate the second position information of the target object.

4. The method according to claim 1, characterized in that: The region information includes location information of objects within the region of interest corresponding to each target time; The step of obtaining the area information within the area of ​​interest of the virtual object comprises: The position information of the object in the region of interest corresponding to the next target time closest to the current time is determined as the acquired region information in the region of interest of the virtual object.

5. A target guidance method, characterized in that: The method is applied to a server; the server is connected to a preset terminal device for communication; the method comprises: If a target guidance task for a virtual object is obtained, a target guidance instruction is sent to the terminal device so that the terminal device obtains area information in an area of ​​interest of the virtual object; the virtual object is manipulated by the terminal device, wherein the area information includes position information of an object located in the area of ​​interest; the target guidance instruction includes a target object; searching for the target object in the area information of the area of ​​interest; if the target object is found, displaying first position information of the position of the target object in the area of ​​interest; updating the second location information of the target object, and sending the second location information of the target object to the terminal device, so that if the terminal device does not find the target object in the area information of the area of ​​interest, the second location information is displayed; The method further comprises: receiving the position information of the virtual object sent by the terminal device according to a first set frequency, and updating the area information within the area of ​​interest of the virtual object based on the position information of the virtual object; The updated area information within the area of ​​interest of the virtual object is sent to the terminal device, so that the terminal device generates trajectory parameters corresponding to the object located in the area of ​​interest based on the position information of the object before the update and the position information of the object after the update; the trajectory parameters include positions corresponding to multiple target moments; and the trajectory parameters are determined as the updated area information within the area of ​​interest.

6. A target guidance device, characterized in that: The device is applied to a terminal device; The terminal device is connected to a preset server for communication; the device comprises: A region information acquisition module, configured to acquire region information within a region of interest of a virtual object in response to a target guidance instruction from the server; wherein the virtual object is manipulated by the terminal device, the region information includes position information of an object located within the region of interest; and the target guidance instruction includes a target object; A target object searching module, used for searching the target object in the area information of the area of ​​interest; A first display module, configured to display first location information of the location of the target object in the region of interest if found; A second display module, configured to obtain second location information of the target object from the server if the target object is not found, and display the second location information; The device also includes: A position information sending module, configured to send the position information of the virtual object to a server at a first set frequency, so that the server updates the area information within the area of ​​interest of the virtual object based on the position information of the virtual object; A trajectory parameter generating module, configured to generate, for an object located in the region of interest, trajectory parameters corresponding to the object based on the position information of the object before the update and the position information of the object after the update, if the region information in the region of interest of the virtual object after the update is received from the server; the trajectory parameters include positions corresponding to a plurality of target moments; The region information determination module is used to determine the trajectory parameters as the updated region information within the region of interest.

7. A target guidance device, characterized in that: The device is arranged on a server; the server is connected to a preset terminal device for communication; the device comprises: A guidance instruction sending module, configured to, if a target guidance task for a virtual object is obtained, send a target guidance instruction to the terminal device, so that the terminal device obtains area information in an area of ​​interest of the virtual object; wherein the virtual object is manipulated by the terminal device, and the area information includes position information of an object located in the area of ​​interest; the target guidance instruction includes a target object; searching for the target object in the area information of the area of ​​interest; and if the target object is found, displaying first position information of the position of the target object in the area of ​​interest; A second location information sending module, used for updating the second location information of the target object, and sending the second location information of the target object to the terminal device, so that if the terminal device does not find the target object in the area information of the area of ​​interest, the second location information is displayed; The device also includes: a position information receiving module, configured to receive the position information of the virtual object sent by the terminal device at a first set frequency, and update the area information within the area of ​​interest of the virtual object based on the position information of the virtual object; A region information sending module is used to send the updated region information within the region of interest of the virtual object to the terminal device, so that the terminal device generates trajectory parameters corresponding to the object located in the region of interest based on the position information of the object before the update and the position information of the object after the update; the trajectory parameters include positions corresponding to multiple target moments; and the trajectory parameters are determined as the updated region information within the region of interest.

8. An electronic device, characterized in that: The invention comprises a processor and a memory, wherein the memory stores machine executable instructions that can be executed by the processor, and the processor executes the machine executable instructions to implement the target guiding method according to any one of claims 1 to 5.

9. A machine-readable storage medium, characterized in that: The machine-readable storage medium stores machine-executable instructions, and when the machine-executable instructions are called and executed by a processor, the machine-executable instructions prompt the processor to implement the target guiding method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Regional information synchronizing method and terminal

    CN108144297A

  • Target object image acquisition guiding method and system

    CN112597785A