Method, device, electronic device and computer program for processing messages in a virtual scene
By using a map interface to send point-to-point messages in virtual scenes through position mark controls, the method addresses interference and resource consumption issues in existing communication methods, enabling efficient and accurate message transmission.
Patent Information
- Application Number
- JP2024532338
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2022-05-23
- Filing Date
- 2023-03-23
- Publication Date
- 2024-12-03
- Estimated Expiration
- 2043-03-23
AI Technical Summary
Existing methods for communicating messages in virtual scenes, such as games, often interfere with unintended recipients and require voice or text input, which may not be feasible for all users and consume computing resources.
A method and apparatus for displaying a map interface in a virtual scene that allows users to send point-to-point messages by moving a position mark control on the map to a specific virtual object, enabling efficient and accurate message transmission without voice or text input.
This approach reduces interference with unintended recipients, saves computing resources, and allows for quicker message sending by directly targeting specific users, enhancing interaction efficiency in virtual scenes.
Smart Images

Figure 2024544634000001_ABST
Abstract
Description
[Technical field]
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS This application is filed based on and claims priority to a Chinese patent application having application number 202210563612.6 and filing date May 23, 2022, the entire contents of which are incorporated herein by reference.
[0002] The present application relates to computer technology, and in particular to a method, an apparatus, an electronic device, a computer-readable storage medium and a computer program product for processing messages in a virtual scene. [Background technology]
[0003] Display technologies based on graphics processing hardware have expanded the means of recognizing the environment and obtaining information. In particular, virtual scene display technologies can realize diverse interactions between virtual objects controlled by users or artificial intelligence according to actual application needs, and have a variety of typical application scenes; for example, in virtual scenes such as games, the actual battle process between virtual objects can be simulated.
[0004] In virtual scenes, the ways in which users communicate with other users include voice communication, in-game quick markers, quick messages, etc. These messages are usually sent to everyone in the same camp or team, so some teammates may be disturbed by messages that are not relevant to them. Although efficient communication can be achieved with respect to specific teammates through voice, some users' terminal devices may not be equipped with hardware or software devices related to voice communication. In the related art, technical means for efficiently sending messages to specific users have not yet been proposed. Summary of the Invention
[0005] Embodiments of the present application provide a method, apparatus, electronic device, computer-readable storage medium, and computer program product for processing messages in a virtual scene that can efficiently transmit point-to-point messages in the virtual scene, eliminating the disruption of messages to unrelated users.
[0006] The technical means of the embodiments of the present application are realized as follows.
[0007] An embodiment of the present application provides a method for processing messages in a virtual scene, the method comprising: displaying a map of at least a sub-area of the virtual scene in a map interface corresponding to a first virtual object; displaying, in response to the appearance of at least one second virtual object in the sub-region, a location mark control on the map to represent a first location where the second virtual object is currently located, the second virtual object being any virtual object belonging to the same faction as the first virtual object; and in response to a move operation on the place mark control, moving the place mark control from a first position to a second position and sending a message to a second virtual object, the message being used to instruct the second virtual object to reach the second position and execute the command.
[0008] An embodiment of the present application provides an apparatus for processing messages in a virtual scene, the apparatus comprising: a display module arranged to display a map of at least a sub-area of the virtual scene in a map interface corresponding to a first virtual object, The display module is further arranged to display, in response to the appearance of at least one second virtual object in the partial region, a location mark control on the map to represent a first location where the second virtual object is currently located, and the second virtual object is any virtual object belonging to the same camp as the first virtual object; and a message sending module arranged to, in response to a movement operation on the place mark control, move the place mark control from the first position to the second position and send a message to the second virtual object, the message being used to instruct the second virtual object to reach the second position and execute a command.
[0009] An embodiment of the present application provides an electronic device. The electronic device includes: a memory for storing executable instructions; A processor for implementing a method for processing messages in a virtual scene according to an embodiment of the present application when executing executable instructions stored in the memory.
[0010] An embodiment of the present application provides a computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, implements a method for processing messages in a virtual scene according to an embodiment of the present application.
[0011] An embodiment of the present application provides a computer program product including a computer program or instructions which, when executed by a processor, implements a method for processing messages in a virtual scene according to an embodiment of the present application.
[0012] The embodiments of the present application have the following beneficial effects:
[0013] A location mark control of a second virtual object in the same camp as the first virtual object is displayed on the map interface, and when the location mark control of the second virtual object is moved, a corresponding command and message is sent to the second virtual object based on the moving operation, thereby realizing rapid point-to-point message transmission using the map interface of the virtual scene. Compared with the related art of sending messages by voice transmission or character input, the message transmission is made faster by dragging the location mark control, and the time required for message transmission can be reduced.
[0014] By sending messages only to the second virtual object, accurate transmission of point-to-point messages is achieved and interference with other virtual objects of the same faction is prevented.
[0015] Multiplexing the position mark controls in the map interface of the virtual scene to send messages simplifies the interaction logic of the virtual scene, improves operation efficiency, and realizes point-to-point message transmission without using sound collection equipment (e.g., a microphone), thereby saving the computing resources required for the virtual scene, compared with setting up a new control for message sending in the human-computer interaction interface. [Brief description of the drawings]
[0016] [Figure 1A] FIG. 2 is a schematic diagram of an application mode of a message processing method in a virtual scene according to an embodiment of the present application; [Figure 1B] FIG. 2 is a schematic diagram of an application mode of a message processing method in a virtual scene according to an embodiment of the present application; [Diagram 2] 4 is a schematic diagram showing the configuration of a terminal device 400 according to an embodiment of the present application. [Figure 3A] 2 is a flowchart of a method for processing a message in a virtual scene according to an embodiment of the present application; [Figure 3B]2 is a flowchart of a method for processing a message in a virtual scene according to an embodiment of the present application; [Figure 3C] 2 is a flowchart of a method for processing a message in a virtual scene according to an embodiment of the present application; [Figure 3D] 2 is a flowchart of a method for processing a message in a virtual scene according to an embodiment of the present application; [Figure 3E] 2 is a flowchart of a method for processing a message in a virtual scene according to an embodiment of the present application; [Figure 3F] 2 is a flowchart of a method for processing a message in a virtual scene according to an embodiment of the present application; [Figure 4A] FIG. 2 is a schematic diagram of a map interface displayed in a virtual scene interface according to an embodiment of the present application. [Figure 4B] FIG. 2 is a schematic diagram of a map interface independent of a virtual scene interface according to an embodiment of the present application. [Figure 5A] FIG. 2 is a schematic diagram of a map of a message processing method in a virtual scene according to an embodiment of the present application; [Figure 5B] FIG. 2 is a schematic diagram of a map of a message processing method in a virtual scene according to an embodiment of the present application; [Figure 5C] FIG. 2 is a schematic diagram of a map of a message processing method in a virtual scene according to an embodiment of the present application; [Figure 5D] FIG. 2 is a schematic diagram of a map of a message processing method in a virtual scene according to an embodiment of the present application; [Figure 5E] FIG. 2 is a schematic diagram of a map of a message processing method in a virtual scene according to an embodiment of the present application; [Figure 5F] FIG. 2 is a schematic diagram of a map of a message processing method in a virtual scene according to an embodiment of the present application; [Figure 6A] FIG. 2 is a schematic diagram of a map of a message processing method in a virtual scene according to an embodiment of the present application; [Figure 6B] FIG. 2 is a schematic diagram of a map of a message processing method in a virtual scene according to an embodiment of the present application; [Figure 6C]FIG. 2 is a schematic diagram of a map of a message processing method in a virtual scene according to an embodiment of the present application; [Figure 6D] FIG. 2 is a schematic diagram of a map of a message processing method in a virtual scene according to an embodiment of the present application; [Figure 6E] FIG. 2 is a schematic diagram of a map of a message processing method in a virtual scene according to an embodiment of the present application; [Figure 6F] FIG. 2 is a schematic diagram of a map of a message processing method in a virtual scene according to an embodiment of the present application; [Figure 6G] FIG. 2 is a schematic diagram of a map of a message processing method in a virtual scene according to an embodiment of the present application; [Figure 7A] FIG. 2 is a schematic diagram of a command control arrangement according to an embodiment of the present application. [Figure 7B] FIG. 13 is a schematic diagram of a virtual scene interface corresponding to a second virtual object according to an embodiment of the present application. [Figure 8] 1 is a selectable flowchart of a method for processing messages in a virtual scene according to an embodiment of the present application. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0017] In order to make the objectives, technical means and advantages of the present application clearer, the present application will be described in detail below with reference to the drawings. The described embodiments should not be considered as limiting the present application. All other embodiments obtained by those skilled in the art without creative efforts belong to the scope of protection of the present application.
[0018] In the following description, references to "some embodiments" describe a subset of all possible embodiments, but it should be understood that "some embodiments" may be the same or different subsets of all possible embodiments and may be combined with each other unless inconsistent.
[0019] In the following description, references to the terms "first," "second," and "third" are merely intended to distinguish between similar objects and do not indicate a particular order of the objects. It should be noted that the terms "first," "second," and "third" may be interchanged with respect to a particular order or order when permitted such that the described embodiments of the present application may be practiced in orders other than those shown or described herein.
[0020] It should be noted that in the embodiments of the present application, relevant data such as user information, user feedback data, etc. are mentioned, and when the embodiments of the present application are applied to a specific product or technology, user permission or consent is required, and the collection, use and processing of the relevant data should comply with the relevant laws, regulations and standards of the relevant countries and regions.
[0021] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art. The terms used herein are not intended to limit the present application, but are merely intended to describe the embodiments of the present application.
[0022] Before describing the embodiments of the present application in more detail, the nouns and terms contained in the embodiments of the present application will be explained, and the nouns and terms contained in the embodiments of the present application are suitable for the following interpretation.
[0023] 1) Virtual Scene: A scene output by a device that is different from the real world. With the naked eye or with the aid of a device, a visual perception of the virtual scene can be formed, for example, a two-dimensional image output by a display, or a three-dimensional image output by a stereoscopic display technology such as stereoscopic projection, virtual reality, or augmented reality technology. In addition, various perceptions that simulate the real world, such as auditory perception, tactile perception, olfactory perception, and kinesthetic perception, can also be formed with various possible hardware.
[0024] 2) In response to: Used to express a condition or state on which an operation to be performed depends. When the dependent condition or state is met, the operation or operations to be performed may be in real time or may have a set delay. Unless otherwise stated, the execution order of the operations to be performed is not limited to a chronological order.
[0025] 3) Virtual object: An object that interacts in a virtual scene and is controlled by a user or a robot program (e.g., a robot program based on artificial intelligence) and can be stationary, move, and perform various actions in the virtual scene, such as various characters in a game.
[0026] 4) Map: Used to display the terrain and various elements of the ground (e.g. buildings, virtual vehicles, virtual objects) of at least a sub-area of the virtual scene.
[0027] 5) Point-to-point message: A message sent from one terminal device to another in a point-to-point manner.
[0028] Embodiments of the present application provide a message processing method in a virtual scene, a message processing device in a virtual scene, an electronic device, a computer-readable storage medium, and a computer program product that can efficiently transmit point-to-point messages in a virtual scene to eliminate the disturbance of unrelated users of the messages.
[0029] The electronic devices of the embodiments of the present application may be implemented as various types of user terminals, such as laptops, tablets, desktop computers, set-top boxes, mobile devices (e.g., mobile phones, portable music players, personal digital assistants, dedicated messaging devices, portable gaming devices, car-mounted terminals), or as servers.
[0030] In one embodiment, referring to Fig. 1A, Fig. 1A is a schematic diagram of an application mode of a message processing method in a virtual scene according to an embodiment of the present application, which is suitable for several application modes that completely complete the calculation of relevant data of the virtual scene by the computing capability of the graphics processing hardware of the terminal device 400. For example, a standalone version or an offline mode game, etc., realizes the output of the virtual scene by various different types of terminal devices 400, such as a smartphone, a tablet, a virtual reality device, an augmented reality device, etc.
[0031] By way of example, types of graphics processing hardware include Central Processing Units (CPUs) and Graphics Processing Units (GPUs).
[0032] As an example, the terminal device 400 executes a client 401 (e.g., a stand-alone version of a game application). During execution of the client 401, a virtual scene including role-playing is output, and the virtual scene may be an environment for game characters to interact, for example, a plain, a highway, a valley, etc., for game characters to fight. In the example of displaying a virtual scene from a first-person perspective, a first virtual object and a projectile (e.g., a shooting tool or a throwing tool) held by the first virtual object with a gripping part (e.g., a hand) are displayed in the virtual scene. Here, the first virtual object may be a game character controlled by a user. That is, the first virtual object is controlled by a real user and moves in the virtual scene in response to the real user's operation of a controller (e.g., a touch screen, a sound switch, a keyboard, a mouse, a joystick, etc.). For example, when the real user moves the joystick to the right, the first virtual object moves to the right in the virtual scene and can be controlled to stand still at the current location, jump, perform shooting operations, etc. The second virtual object is a virtual object of the same camp as the first virtual object. The map interface is displayed in a floating layer in a partial area of the virtual scene interface, or the map interface of the virtual scene is displayed in an interface independent of the virtual scene interface.
[0033] For example, the first virtual object may be a virtual object controlled by a user, and the client 401 displays a map 102 of at least a sub-area of the virtual scene 101 in a map interface corresponding to the first virtual object. In response to the appearance of at least one second virtual object (of the same faction as the first virtual object) in the sub-area, the client 401 displays a location mark control on the map to represent a first location where the second virtual object is currently located. In response to a move operation on the location mark control, the client 401 moves the location mark control from the first location to a second location and sends a message to the second virtual object, where the message includes the second location and an instruction, and the message is used to instruct the second virtual object to reach the second location and execute the instruction.
[0034] In another embodiment, refer to FIG. 1B. FIG. 1B is a schematic diagram of an application mode of the message processing method in a virtual scene according to an embodiment of the present application, which is applied to a terminal device 400 and a server 200, and is suitable for an application mode in which the calculation of the virtual scene is realized by the computing capability of the server 200, and the virtual scene is output by the terminal device 400.
[0035] Taking the example of forming a visual perception of a virtual scene, the server 200 calculates display data (e.g., scene data) related to the virtual scene and transmits it to the terminal device 400 via the network 300, and the terminal device 400 loads, analyzes and renders the calculated display data using graphics calculation hardware, and outputs the virtual scene using graphics output hardware to form a visual perception. For example, a two-dimensional video frame can be displayed on the display screen of a smartphone, or a video frame can be projected on the lens of an augmented reality / virtual reality eyeglasses to realize a three-dimensional display effect. It should be understood that in the case of a perception in the form of a virtual scene, the corresponding hardware of the terminal device 400 can be used to output, for example, a microphone can be used to form an auditory perception, and a vibrator can be used to form a tactile perception.
[0036] As an example, a client 401 (e.g., a network version game application) is executed in the terminal device 400. The terminal device 400 connects to a server 200 (e.g., a game server) to interact with other users in the game, and outputs a virtual scene 101 of the client 401. A first virtual object and a projectile (e.g., a shooting tool or a throwing tool) held by the first virtual object with a gripping part (e.g., a hand) are displayed in the virtual scene. Here, the first virtual object may be a game character controlled by a user. That is, the first virtual object is controlled by a real user and moves in the virtual scene in response to the real user's operation of a controller (e.g., a touch screen, a sound switch, a keyboard, a mouse, a joystick, etc.). For example, when the real user moves the joystick to the right, the first virtual object moves to the right in the virtual scene, and can also be controlled to stop at a current location, jump, perform a shooting operation, etc. The second virtual object is a virtual object of the same camp as the first virtual object. The map interface is displayed in a floating layer in a partial area of the virtual scene interface, or the map interface of the virtual scene is displayed in an interface independent of the virtual scene interface. The map 102 of FIG. 1A is displayed in the virtual scene 101 in a floating layer.
[0037] For example, the first virtual object may be a virtual object controlled by a user, and the client 401 displays a map 102 of at least a sub-area of the virtual scene 101 in a map interface corresponding to the first virtual object. In response to the appearance of at least one second virtual object (of the same faction as the first virtual object) in the sub-area, the client 401 displays a location mark control on the map to represent a first location where the second virtual object is currently located. In response to a move operation on the location mark control, the client 401 moves the location mark control from the first location to a second location and sends a message to the second virtual object, where the message includes the second location and an instruction, and the message is used to instruct the second virtual object to reach the second location and execute the instruction.
[0038] Taking a computer program as an example of the application program, an application program supporting a virtual scene is executed in the terminal device 400. The application program may be any one of a first-person shooter game (FPS), a third-person shooter game, a virtual reality application program, a three-dimensional map program, or a multiplayer survival game. A user uses the terminal device 400 to operate a virtual object in a virtual scene to perform an action. The action includes, but is not limited to, at least one of adjusting a body posture, crawling, walking, running, riding, jumping, driving, picking up, shooting, attacking, throwing, and constructing a virtual building. Exemplarily, the virtual object may be a virtual character such as a simulation character or an animation character.
[0039] In some other embodiments, the embodiments of the present application may be realized by cloud technology, which is a hosting technology that integrates a set of resources such as hardware, software, and networks within a wide area network or a local area network to realize data calculation, storage, processing, and sharing.
[0040] Cloud technology is a collective term for network technology, information technology, integration technology, management platform technology, and application technology based on the cloud computing business model. It can form a resource pool and use it as needed, which is flexible and convenient. Cloud computing technology is an important supporting technology. The background service of technical network systems requires a large amount of computing and storage resources. Cloud gaming, also known as gaming on demand, is an online gaming technology based on cloud computing technology. Cloud gaming technology enables thin clients with relatively limited graphics processing and data computing capabilities to run high-quality games. In a cloud gaming scenario, the game is run on a cloud server instead of the player's game terminal, and the cloud server renders the game scene into a video and audio stream and transmits it to the player's game terminal over the network. The player's game terminal does not need to have powerful graphics computing and data processing capabilities, but only needs to have basic streaming media playback functions and the ability to obtain the player's input commands and send them to the cloud server.
[0041] 1B may be an independent physical server, a server cluster or a distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, Content Delivery Networks (CDNs), and big data and artificial intelligence platforms. The terminal device 400 and the server 200 may be directly or indirectly connected to each other via wired or wireless communications, but the embodiments of the present application are not limited thereto.
[0042] The configuration of the terminal device 400 shown in FIG. 1A will be described below. Referring to FIG. 2, FIG. 2 is a schematic diagram of the configuration of the terminal device 400 according to an embodiment of the present application. The terminal device 400 shown in FIG. 2 includes at least one processor 410, a memory 450, at least one network interface 420, and a user interface 430. The components in the terminal device 400 are connected via a bus system 440. The bus system 440 is used to realize connection and communication between these components. The bus system 440 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For convenience of explanation, the buses in FIG. 2 are collectively referred to as the bus system 440.
[0043] The processor 410 may be an integrated circuit chip having signal processing capabilities, such as a general purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc., where the general purpose processor may be a microprocessor or any conventional processor, etc.
[0044] User interface 430 includes one or more output devices 431 that enable display of media content, including one or more speakers and / or one or more visual displays. User interface 430 further includes one or more input devices 432 that include user interface components that facilitate user input, such as, for example, a keyboard, a mouse, a microphone, a touch screen display, a camera, other input buttons and widgets, etc.
[0045] Memory 450 may be removable, non-removable, or a combination thereof. Memory 450 may include volatile memory or non-volatile memory, or may include both volatile and non-volatile memory. In some embodiments, memory 450 may store data to support various operations, examples of which may include programs, modules, data structures, or a subset or superset thereof, as illustratively described below.
[0046] Operating system 451: Includes system programs such as a framework layer, a core library layer, and a driver layer for processing various basic system services and executing hardware-related tasks, and is used to realize various basic operations and process hardware-based tasks.
[0047] Network communications module 452: used to reach other computing devices via one or more (wired or wireless) network interfaces 420. Exemplary network interfaces 420 include Bluetooth, Wireless Fidelity (WiFi), Universal Serial Bus (USB), etc.
[0048] Presentation module 453: Used to enable display of information via one or more output devices 431 (e.g., displays, speakers, etc.) associated with the user interface 430 (e.g., a user interface for operating peripheral devices and displaying content and information).
[0049] Input processing module 454: used to detect one or more user inputs or interactions from one of the one or more input devices 432 and to transform the detected inputs or interactions.
[0050] In some embodiments, the message processing device in the virtual scene according to the embodiment of the present application may be realized in the form of software. Fig. 2 shows a message processing device 455 in the virtual scene stored in the memory 450, which may be software in the form of a program, a plug-in, etc., and includes software modules of a display module 4551 and a message sending module 4552. These modules are logical, so they may be arbitrarily combined or further divided according to the functions to be realized.
[0051] Hereinafter, a method for processing a message in a virtual scene according to an embodiment of the present application will be described in detail with reference to the drawings. The method for processing a message in a virtual scene according to an embodiment of the present application can be performed by the terminal device 400 in FIG. 1A. Referring to FIG. 3A, FIG. 3A is a flowchart of the method for processing a message in a virtual scene according to an embodiment of the present application. The following description will be given with reference to the steps shown in FIG. 3A.
[0052] Step 301A displays a map of at least a sub-region of the virtual scene in a map interface corresponding to a first virtual object.
[0053] Exemplarily, the map is a preview of the entire area of the virtual scene, or the map is a preview of a partial area of the virtual scene, where the partial area is an area that radiates outward from the first virtual object. In the embodiment of the present application, the first virtual object is a virtual object corresponding to the user. The second virtual object is another virtual object of the same camp as the first virtual object, and may be controlled by another user or controlled by artificial intelligence, and in the embodiment of the present application, the second virtual object is controlled by another user. The first virtual object is a virtual object that sends a message, and the second virtual object is a virtual object that receives a message.
[0054] For example, refer to FIG. 5A, which is a schematic diagram of a map of a message processing method in a virtual scene according to an embodiment of the present application. The map 501A is a preview of the entire area of the virtual scene, and a map zoom control 503A is provided on the outer edge of the map 501A. The map zoom control 503A is used to adjust the ratio of the map to the virtual scene, and moving the circular icon of the map zoom control 503A toward the plus sign 504A enlarges the map, and moving it toward the minus sign 505A reduces the map. The position mark control X2 is a position mark control of a first virtual object, and a line segment representing the viewing direction of the first virtual object in the virtual scene is displayed on the position mark control X2. The number 2 indicates that the number of the first virtual object in the team or camp is 2, and the number is used to distinguish the position mark controls of different virtual objects in the same camp. The position mark control X3 is a second virtual object with the number 3.
[0055] In some embodiments, prior to step 301A, a map interface may be displayed by either:
[0056] 1. Display a virtual scene in a virtual scene interface, and display a map interface in a floating layer that covers a partial area of the virtual scene interface (e.g., areas such as the upper corners and lower corners of the interface).
[0057] Exemplarily, the map interface may be continuously displayed, or may be displayed in response to a call operation on the map interface, or may be hidden in response to a cancel operation on the map interface. As shown in FIG. 1B or FIG. 1A, the map 102 is continuously displayed in a floating layer in the upper right corner of the virtual scene 101. Referring to FIG. 4A, FIG. 4A is a schematic diagram of a map interface displayed in a virtual scene interface according to an embodiment of the present application. In the virtual scene interface 401A, in response to a call operation on the map interface 402A (e.g., clicking a shortcut key corresponding to the map interface), the map interface 402A is displayed in the virtual scene interface 401A in a floating layer.
[0058] 2. Displaying a virtual scene in a virtual scene interface, and displaying a map interface in an area other than the virtual scene interface. Referring to FIG. 4B, FIG. 4B is a schematic diagram of a map interface independent of a virtual scene interface according to an embodiment of the present application. In FIG. 4B, a map interface 402B and a virtual scene interface 401B correspond to different tab pages, and the map interface 402B is displayed independent of the virtual scene interface 401B. By way of example, the display method of the tab page is only one method for displaying independently of the virtual scene interface, and in actual implementation, the map interface 402B can also be displayed independently by other methods.
[0059] In step 302A, in response to the appearance of at least one second virtual object in the partial region, a location mark control is displayed on the map to represent a first location where the second virtual object is currently located.
[0060] Here, the second virtual object is any virtual object that belongs to the same camp as the first virtual object.
[0061] For example, the position mark control of the virtual object moves in the map in synchronization with the movement of the virtual object in the virtual scene. In addition to displaying the position mark control of the virtual object on the map, the position mark control of the marker or the virtual vehicle can also be displayed. The marker is a point at a fixed position on the map.
[0062] In some examples, markers may be generated on the map as follows: in response to a trigger operation on a first mark control on the map, an indication of entering a point marking mode is displayed, in response to a click operation on the map, a first custom marker is displayed at the click location on the map, and in response to a trigger operation on a second mark control on the map, a second custom marker is displayed at a first location on the map where a first virtual object is currently located.
[0063] Here, the first custom marker is used to be synchronously displayed on the map interface corresponding to the second virtual object.The second custom marker is used to be synchronously displayed on the map interface corresponding to the second virtual object.
[0064] Illustratively, the point marking mode may be indicated by either a textual indication that point marking mode has been entered, by changing the map background color to a different color, or by highlighting grid lines used as location references for the map.
[0065] In the embodiment of the present application, the custom marker is synchronously displayed on the map interface of the second virtual object, so that the teammates can share the location information corresponding to the marker, and the teamwork between the teammates of the same camp based on different location marks is promoted. And the marker can be used as a reference point for different positions on the map, so that the user can drag the location mark control to a desired position based on the reference point, and the accuracy of the second position included in the message is improved.
[0066] Exemplarily, referring to FIG. 5D, FIG. 5D is a schematic diagram of a map of a message processing method in a virtual scene according to an embodiment of the present application. In the map 501A, a first mark control 501D and a second mark control 502D are displayed on the inner edge of the map, respectively. A place marking mode can be entered by triggering the first mark control 501D (see FIG. 5A, FIG. 5D. The map 501A in FIG. 5D is displayed in a different color compared to the map 501A in FIG. 5A). In the place marking mode, in response to a click operation on any position on the map, a first custom marker, for example, a first custom marker D1, is displayed at the click position on the map. When the second mark control 502D is triggered, a second custom marker D2 is displayed at the position of the position mark control X2 of the first virtual object.
[0067] In the embodiment of the present application, the second virtual object is a teammate of the first virtual object, and the custom marker is used to synchronously display on the map interface corresponding to the second virtual object, that is, a user shares a custom marker marked on his / her map with the map of another teammate, so that each user on the same team can see the custom marker on the corresponding map, thereby realizing the sharing of markers and improving the interaction efficiency.
[0068] In some embodiments, a location mark control corresponding to a virtual vehicle may also be displayed as follows: In response to at least one virtual vehicle (e.g., a car, a motorcycle, an airplane, etc.) appearing in the sub-region, a location mark control is displayed on the map to indicate that the virtual vehicle is located at a second location, where a mark type of the location mark control for the virtual vehicle is a virtual vehicle location mark.
[0069] Illustratively, the virtual vehicle is a tool for carrying a virtual object in a virtual scene, and a screen of the virtual vehicle carrying and moving a virtual object in response to a driving operation on the virtual vehicle is displayed in the virtual scene. The position mark control of the virtual vehicle in the map moves as the position of the virtual vehicle in the virtual scene changes. Referring to FIG. 6A, FIG. 6A is a schematic diagram of a map of a message processing method in a virtual scene according to an embodiment of the present application. The position mark control Z1 of the virtual vehicle is displayed adjacent to the position mark control X2 of the first virtual object. When the first virtual object drives the virtual vehicle corresponding to the position mark control Z1, the position mark control Z1 and the position mark control X2 are displayed superimposed on each other, and the position mark control X2 and the position mark control Z1 move synchronously.
[0070] In step 303A, in response to a move operation on the place mark control, the place mark control is moved from a first position to a second position.
[0071] In some embodiments, refer to Fig. 3B, which is a flowchart of a method for processing a message in a virtual scene according to an embodiment of the present application. Step 303A can be realized by steps 3031B to 3033B. The following will be described in detail.
[0072] In step 3031B, in response to the duration of the pressing operation on the position mark control reaching the pressing time threshold, the position mark control corresponding to the pressing operation is displayed in an enlarged mode.
[0073] Exemplarily, the enlarged mode enlarges the location mark control to a size of a preset magnification of the original size, the preset magnification being greater than 1, for example 1.2 times the original size. Referring to FIG. 5B, FIG. 5B is a schematic diagram of a map of a message processing method in a virtual scene according to an embodiment of the present application. The location mark control X3 in FIG. 5B is displayed in the enlarged mode and is larger than the location mark control X3 displayed in the original size in FIG. 5A. The hand shape indicates a pressing operation on the location mark control X3, and the pressing time threshold may be less than or equal to 0.5 seconds. When the duration of the pressing operation reaches the pressing time threshold, the location mark control X3 is displayed in the enlarged mode. The location mark control X3 may be moved.
[0074] In step 3032B, in response to a movement operation on the position mark control, the position mark control displayed in the enlarged mode is controlled to move synchronously from the first position.
[0075] Exemplarily, the first position is the start position of the move operation. Synchronous move means that in response to the user's continuous pressing of the location mark control X3 during the move operation, the location mark control X3 is controlled to be synchronously displayed at the pressed position corresponding to the move operation on the map. Still referring to FIG. 5B, the location mark control X3' represents the moved location mark control X3, the direction of the arrow between them is the direction of the move operation, and the dotted line is the movement trajectory of the location mark control X3.
[0076] In step 3033B, in response to the move operation being released at the second position, the position mark control displayed in the enlarged mode is moved to the second position.
[0077] Exemplarily, the moving operation is released at the second position means that the user's finger is released to stop pressing the map when the finger is moved to the second position, and the second position is the end position of the moving operation. Still referring to FIG. 5B, the second position where the location mark control X3′ is located on the map 501A is the end position of the moving operation.
[0078] In some examples, when multiple location mark controls are displayed on a map, redundant location mark controls can be deleted as follows: in response to a selection operation on any of the location mark controls, the selected location mark control is displayed in a selected state (e.g., contrasting color, highlight, check mark, cross mark, etc.), and in response to a delete operation on a selected location mark control, the selected location mark control is deleted.
[0079] For example, when location mark controls of a plurality of second virtual objects are displayed, the location mark controls of some of the second virtual objects may be deleted, i.e., only the location mark control of the second virtual object to which the message was sent may be reserved. Deletion means hiding or blocking the location mark control of the second virtual object on the map, or displaying the location mark control of the second virtual object in a blurred manner.
[0080] Referring to Fig. 6B, Fig. 6B is a schematic diagram of a map of a message processing method in a virtual scene according to an embodiment of the present application. In the upper diagram of Fig. 6B, a map 501A includes a marker Q1, a location mark control X4 (representing a second virtual object numbered 4), and a delete control 601B. A cross mark 602B is displayed on the selected marker Q1 and location mark control X4 to indicate a selected state, and the selected marker Q1 and location mark control X4 are deleted in response to the delete control 601B being triggered. The lower diagram of Fig. 6B shows the map 501A from which the marker Q1 and location mark control X4 have been deleted.
[0081] In some embodiments, the place mark controls may also be automatically removed as follows: In response to a move operation on any of the place mark controls, hide the place mark control of each second virtual object that is not being moved.
[0082] Referring to FIG. 6C, FIG. 6C is a schematic diagram of a map of a message processing method in a virtual scene according to an embodiment of the present application. In the upper diagram of FIG. 6C, a pressing operation is performed on the position mark control X3, and the map 501A includes a position mark control X5 (representing a second virtual object numbered 5) and a position mark control X4. In the lower diagram of FIG. 6C, while the position mark control X3 is being moved, the position mark control X5 and the position mark control X4 that are not being moved are hidden. Exemplarily, when the moving operation on the position mark control X3 is released, the hidden position mark control X5 and the position mark control X4 are restored.
[0083] In the embodiment of the present application, by deleting some of the position mark controls, it is possible to prevent the map from being obscured by unnecessary position mark controls, thereby saving resources consumed in graphics calculations, and it is also possible to facilitate the user to observe and operate the map and move the position mark control of the second virtual object receiving the message to the user's desired position, thereby improving the efficiency of human-computer interaction.
[0084] Step 304A sends a message to a second virtual object.
[0085] Here, the message is used to instruct a second virtual object to reach a second location and execute a command, the message includes the second location and the command, and the message is a point-to-point message.
[0086] Illustratively, steps 303A and 304A are performed simultaneously, and the message types include voice messages, text messages, and mixed voice and text messages.
[0087] In some implementations, a message can be sent to the second virtual object by either:
[0088] 1. In response to a move operation on the position mark control being released, display a message type selection control, and in response to a selection operation on the type selection control, send a message to a second virtual object based on the selected message type, where the message type selection control includes message types of a voice message, a text message, and a mixed voice and text message. The mixed voice and text message is realized by displaying the text of the message in a human-computer interaction interface of the second virtual object, and simultaneously playing the text message and the corresponding voice to the second virtual object.
[0089] 2. In response to the release of the movement operation on the position mark control, a message is transmitted to a second virtual object based on the set message type.
[0090] In some embodiments, the method for indicating a second virtual object through a message includes:
[0091] 1. Present message content to the second virtual object in the form of voice or text, where the message content includes an instruction and a second location. For example, the text content of the text message is “Go to Building B (1234,5678)”, where “Building B (1234,5678)” is the second location, “Go” represents a movement instruction, and (1234,5678) is the coordinate location of Building B on the map.
[0092] 2. Present message content including instructions to a second virtual object in the form of voice or text, and display at least one of a location mark of the second location, a direction of the second location relative to the location mark control of the second virtual object, and a route between the location mark control of the second virtual object and the second location on a map interface corresponding to the second virtual object. In this method, the voice or text message does not need to include the second location.
[0093] For example, the text content of the text message is "attack the enemy," and a path between the second virtual object and a second location where the enemy virtual object is located is displayed on a map interface corresponding to the second virtual object. Although the text content does not include an explicit second location, displaying the path indicates the second virtual object to the second location.
[0094] 3. Present message content in the form of voice or text to the second virtual object, where the message content includes an instruction and a second location, and display at least one of a location mark of the second location, a direction of the second location relative to the location mark control of the second virtual object, and a path between the location mark control of the second virtual object and the second location on a map interface corresponding to the second virtual object.
[0095] For example, the message content is “Attack the enemy on the plain (3216, 4578)”, and the route between the second virtual object and the second location where the enemy virtual object is located is displayed on the map interface corresponding to the second virtual object, where (3216, 4578) is the location coordinate of the second location, and “on the plain” is the description of the second location.
[0096] In some implementations, the second location can be displayed as follows: If a place mark control or place mark is present at the second location, highlight the place mark control or place mark (e.g., highlight, surround with a callout frame, display in a different color, bold, blink, etc.). If no place mark control or place mark is present at the second location, display a single place mark at the second location.
[0097] The following describes an example of a process of instructing a second virtual object through a message based on the above method 2. Referring to FIG. 7B, FIG. 7B is a schematic diagram of a virtual scene interface corresponding to a second virtual object according to an embodiment of the present application. A map 702 is displayed in the upper right corner of the virtual scene 701, and a screen related to a moving operation in the map corresponding to the first virtual object is synchronously displayed on the map 702 of the second virtual object, so that the message is easy to see and the timely response of the user corresponding to the second virtual object is facilitated. The virtual scene 701 presents a text content 703 of a message "please gather at the second teammate", that is, gather at the position of the virtual object corresponding to the user who sent the message, where the second teammate is the first virtual object. The map 702 displays the direction and route between the position mark control of the second virtual object and the second position.
[0098] In some embodiments, prior to step 303, the command included in the message can be determined as follows: Display a command control inside or outside the map, where the command control includes a plurality of types of candidate commands, and in response to a command selection operation on any of the candidate commands in the command control (the command selection operation may be performed before or after the movement operation), display the selected candidate command in a selected state, and make the selected candidate command the command included in the message.
[0099] Illustratively, still referring to FIG. 5A, in FIG. 5A, a command control 502A is displayed outside the map 501A. Referring to FIG. 7A, FIG. 7A is a schematic diagram of an arrangement of command controls according to an embodiment of the present application. Command types corresponding to the command control 502A include attack commands, defense commands, and movement commands. A dark colored portion indicates that the candidate command is in a selected state. The selected state can also be displayed by highlighting, bolding, a check mark, etc.
[0100] In some embodiments, for the selected state, in response to a command selection operation on any of the candidate commands in the command control, the selected candidate command is maintained in the selected state before receiving a next command selection operation, or after sending a point-to-point message to the second virtual object, the indication switches from that the selected candidate command is in the selected state to that that the default command is in the selected state.
[0101] Here, the default command is a candidate command that is set to an automatic selection state from among a plurality of types of candidate commands.
[0102] Exemplarily, the default command may be the first command in the descending order of usage probability corresponding to all the candidate commands, for example, since the movement command is often used in the virtual scene, the movement command is set as the default command. For example, when the default command is a movement command, when the user selects an attack command and sends a message, the selected attack command is switched to a non-selected state, and the movement command is switched to a selected state. As another example, when the user selects a movement command, the movement command is maintained in the selected state until the next command selection operation.
[0103] In an embodiment of the present application, the selection state of a candidate command in a command control is automatically maintained or a default command is switched to a selected state, thereby preventing the user from repeatedly operating the command control, and saving message transmission time and computing resources.
[0104] In some embodiments, prior to step 303, the command included in the message may be determined as follows: Display a command control inside or outside the map, where the command control includes a plurality of types of candidate commands, and one candidate command among the plurality of types of candidate commands is in an automatic selection state. In response to not receiving a command selection operation for any of the candidate commands in the command control within a set time, the candidate command in the automatic selection state is taken as the command included in the message.
[0105] For example, the set time may be 5 minutes. Assuming that the movement command in the command control is in an automatic selection state, if no command selection operation is received within 5 minutes, the movement command in the automatic selection state is set as the command included in the message.
[0106] In an embodiment of the present application, by setting the command to an automatic selection state, the command included in the message can be selected for the user without the user having to perform frequent operations, thereby saving message transmission time and computing resources.
[0107] In some embodiments, when a command control includes multiple candidate commands, the multiple candidate commands may be sorted by any of the following:
[0108] 1. Sorting candidate commands in ascending or descending order according to the frequency of use of each candidate command. For example, if the frequency of use of candidate commands of a certain first virtual object is statistically calculated, and the frequency of attack commands, the frequency of movement commands, and the frequency of defense commands match in order from highest to lowest, the candidate commands are sorted in order from highest to lowest frequency, and the sorted command controls are displayed on the map of the first virtual object.
[0109] 2. Sorting the candidate commands in the order in which they are set. For example, the order of the candidate commands is set by the user as movement commands, attack commands, and defense commands.
[0110] 3. Sort the candidate commands in ascending or descending order according to their respective usage probabilities.
[0111] Exemplarily, the sorting according to the usage probability changes adaptively according to the second virtual object dragged each time. That is, the sorting order differs according to the type of the second virtual object. For example, when the second virtual object A often receives messages including an attack command, the order of the attack command is the highest and the order of other commands is low in the sorting order corresponding to the second virtual object A when referring to the command control 502A' of FIG. 7A. Or, when the second virtual object B often receives messages including an attack command, the order of the move command is the highest in the sorting order corresponding to the second virtual object B when referring to the command control 502A of FIG. 7A.
[0112] In an embodiment of the present application, by sorting commands, the user's frequently used commands or frequently used commands for a certain second virtual object are displayed at the top position of the command control, allowing the user to quickly find the required command and enabling efficient message sending.
[0113] In some embodiments, the usage probability of each of the candidate commands can be determined as follows: A neural network model is invoked to perform a prediction process based on parameters of virtual objects in a virtual scene to obtain a usage probability corresponding to each of the candidate commands.
[0114] Here, the parameters of the virtual objects include at least one of the position and attribute values including combat power, life value, defense value, etc. of the first virtual object, the position and attribute value of the second virtual object, and the difference between the attribute value of the camp to which the first virtual object belongs and the attribute value of the enemy camp (the difference in attribute values can represent a comparison of combat power with the enemy camp).
[0115] Here, the neural network model is obtained by training based on battle data of at least two camps, and the battle data includes positions, attribute values, and commands executed by the virtual objects of the winning camp and the losing camp, for a plurality of virtual objects in the at least two camps. Each tag of the command executed by the virtual object of the winning camp has a probability of 1, and each tag of the command executed by the virtual object of the losing camp has a probability of 0.
[0116] Exemplarily, the neural network model may be a graph neural network model or a convolutional neural network model. An initial neural network model is trained based on the match data, and the predicted probability is calculated based on the match data through the initial neural network model, and the difference between the actual probability of the tag is taken as the difference between the actual probability of the tag and is input into a loss function to calculate a loss value. The loss function may be a mean squared error loss function, a mean absolute error loss, a quantile loss, a cross-entropy loss function, etc. By performing back propagation on the initial neural network model based on the loss value and updating the parameters of the neural network model by a back propagation (BP) algorithm, the trained neural network model can predict the use probability of each of the candidate commands currently used by the first virtual object based on the current parameters of the virtual objects of the same camp.
[0117] In an embodiment of the present application, the accuracy of obtaining the usage probability is improved by obtaining the usage probability using a neural network model, and by sorting the candidate commands based on the usage probability, the user can quickly find the required command, thereby enabling efficient message transmission.
[0118] In some embodiments, refer to FIG. 3C, which is a flowchart of a method for processing a message in a virtual scene according to an embodiment of the present application. Before step 304A, a message to be sent to the second virtual object can be determined by steps 3041C to 3042C. The following will be described in detail.
[0119] In step 3041C, a start position characteristic and an end position characteristic corresponding to the movement operation in the virtual scene are determined based on the movement operation, the first position, and the second position, and the start position characteristic and the end position characteristic are set as trigger conditions.
[0120] For example, the start position of the moving operation is the first position, and the end position of the moving operation is the second position. The position feature may be an area in which the position exists, the presence or absence of a mark near the position, and the like.
[0121] In some embodiments, step 3041C can be implemented as follows: Determine a first area (e.g., a non-safe area or a safe area) in which the first position is located in the virtual scene, and a second area (e.g., a non-safe area or a safe area) in which the second position is located in the virtual scene; Determine a mark type corresponding to the second position in the map interface, where the mark type includes no mark, a virtual object position mark, and a virtual vehicle position mark; Determine the first area as a start position characteristic of the movement operation, and the second area and mark type as an end position characteristic of the movement operation.
[0122] Illustratively, in the non-safety area, the life value of the virtual object is periodically decreased. Conversely, the safety area is an area in the virtual scene where the life value of the virtual object is not periodically decreased. Referring to FIG. 5C, FIG. 5C is a schematic diagram of a map of a message processing method in a virtual scene according to an embodiment of the present application. The first position corresponding to the position mark control X3 is in the safety area 501C, and the end position of the moving operation is within the safety area 501C (the position of the position mark control X3'), and the mark type of the end position is no mark.
[0123] In some embodiments, the mark type corresponding to the second position in the map interface can be determined as follows: A partial region centered on the second position in the map is detected. For example, refer to FIG. 6G, which is a schematic diagram of a map of a message processing method in a virtual scene according to an embodiment of the present application. The partial region 601G may be a circular region centered on the second position, and the radius R of the circular region is positively correlated with the recognition accuracy of the erroneous operation. When at least one location mark control is detected, the mark type corresponding to the location mark control closest to the detected second position is determined as the mark type corresponding to the second position in the map interface. When no location mark control is detected, no mark is determined as the mark type corresponding to the second position in the map interface.
[0124] Still referring to FIG. 6G, if there is a location mark control X4 in the sub-region, the mark type corresponding to the second location in the map interface is a virtual object location mark.
[0125] Step 3042C queries the database based on the trigger condition to obtain messages that match the trigger condition.
[0126] Here, the database can store correspondence between different messages and different trigger conditions.
[0127] In some embodiments, when the type of the command is a movement command and there is a virtual vehicle within a preset range around the second location, the content of the message is to go to the second location to gather and enter the virtual vehicle. In the embodiment of the present application, the virtual vehicle is a drivable vehicle. With continued reference to FIG. 6A, the position mark control Z1 of the virtual vehicle is displayed near the position mark control X2 of the first virtual object. When the position mark control X3 is moved to the position mark control X2 by the movement operation, the content of the message can be "Please gather at the position of the second teammate and get into the vehicle."
[0128] In some embodiments, if the type of command is a movement command and there is no virtual vehicle at the second location, the content of the message is to go to the second location to meet up. Still referring to FIG. 5B, if there is no virtual vehicle at the second location of the movement operation, the content of the message can be "please move to the specified location."
[0129] In some embodiments, when the type of command is an attack command, the content of the message is to go to the second position and attack. Referring to FIG. 5E, FIG. 5E is a schematic diagram of a map of a message processing method in a virtual scene according to an embodiment of the present application. The command in the current selection state of the command control 502A is an attack command. Then, after the position mark control X3 is moved to the second position, a small icon of the attack command can be displayed near the position mark control X3' after the movement. By synchronously displaying the small icon of the attack command on the map of the second virtual object, it is easy to determine the position where the second virtual object should attack. The content of the message can be "Please attack the specified position".
[0130] In some embodiments, if the type of command is a defense command, the message content is to go to the second location to defend. The defense command is processed in the same way as the attack command, so the description is omitted here. The corresponding message content can be "protect the designated location".
[0131] In some embodiments, when a map of a partial area of a virtual scene is displayed in a map interface, refer to Fig. 3D, which is a flowchart of a message processing method in a virtual scene according to an embodiment of the present application. Steps 302D to 304D can also be used to send a message to a second virtual object outside the map. The following will be described in detail.
[0132] In step 302D, a position mark control of a virtual object that has not yet appeared is displayed outside the map.
[0133] Here, the not-yet-appearing virtual object is a second virtual object that does not currently appear in the partial area.
[0134] For example, refer to Fig. 6D, which is a schematic diagram of a map of a message processing method in a virtual scene according to an embodiment of the present application. The location mark control X4 is a second virtual object numbered 4 and located outside the virtual scene corresponding to the map. The location mark control X4 is displayed on the outer upper edge of the map 501A.
[0135] In step 303D, in response to a move operation on the location mark control of the not-yet-appeared virtual object, the location mark control is moved from outside the map to a second location.
[0136] Illustratively, the moving operation in step 303D is the same as that in step 303A, and therefore the description is omitted here.
[0137] 6D, the hand shape represents a press operation, and in response to a move operation, moves place mark control X4 from outside map 501A to a second position (the position of place mark control X4') inside map 501A. Place mark control X4' is used to represent the moved place mark control X4.
[0138] In step 304D, a message is sent to the not yet appeared virtual object.
[0139] Here, the message includes a second location and a command, and the message is a point-to-point message.
[0140] For example, step 303D and step 304D are executed simultaneously. The method of determining the message content in step 304D can refer to the above steps 3041C to 3042C, and the method of sending the message in step 304D is the same as that in step 304A, so the description is omitted here.
[0141] In an embodiment of the present application, a position mark control of a virtual object that does not appear on the map is displayed outside the map, and a message is sent to the virtual object outside the map by a moving operation, thereby covering efficient message sending of virtual objects of the entire faction in the entire virtual scene, multiplexing the map interface, and saving computing resources related to rendering the virtual scene on the terminal.
[0142] In some embodiments, refer to Fig. 3E, which is a flowchart of a message processing method in a virtual scene according to an embodiment of the present application. When displaying a location mark control on a map to represent a first location where a plurality of second virtual objects are currently located, step 303A can be realized by step 3031E and step 3032E, and step 304A can be realized by step 3041E. The following will be described in detail.
[0143] In step 3031E, in response to a collective selection operation, a plurality of position mark controls are displayed in a selected state.
[0144] Exemplarily, the selected state may be represented by highlighting, bolding, a check mark, etc. Referring to Fig. 6E, Fig. 6E is a schematic diagram of a map of a message processing method in a virtual scene according to an embodiment of the present application. In the upper diagram of Fig. 6E, check marks 601E are added to the location mark control X3, the location mark control X4, and the location mark control X5, and the above three location mark controls are collectively selected and displayed in a selected state.
[0145] At step 3032E, in response to the move operation, the plurality of place mark controls are moved from their respective first positions to second positions.
[0146] Exemplarily, the move operation is for any of the selected multiple location mark controls. Still referring to FIG. 6E, in the upper diagram of FIG. 6E, the hand shape is pressed on the location mark control X3, and the move operation acts only on the location mark control X3, and the location mark control X3 moves according to the movement trajectory of the move operation on the map. When the move operation is released at the second position, each of the selected location mark controls that have not moved according to the move operation moves from the first position to the second position corresponding to each of the location mark controls. In the lower diagram of FIG. 6E, the hand shape remains at the second position, i.e., the move operation is released at the second position, and the location mark control X4 and the location mark control X5 are moved to the second position.
[0147] Step 3041E transmits a message to a second virtual object corresponding to each of the plurality of place mark controls.
[0148] Here, the message includes a second location and a command, and each of the second virtual objects receives the same second location and command.
[0149] Illustratively, step 3032E and step 3041E are executed simultaneously. The message sending method in step 3041E is the same as that in step 304A above, and therefore will not be described here.
[0150] In an embodiment of the present application, by selecting location mark controls collectively, it is possible to multiplex the map and send point-to-point messages to virtual objects of multiple teammates collectively, thereby improving the efficiency of sending messages, preventing interference with teammates who are not related to the message, preventing the occupation of the execution memory of the clients of teammates who are not related to the message, preventing large-scale resource consumption due to highly parallel processing of messages, and saving the computing resources required for sending messages.
[0151] In some embodiments, refer to Fig. 3F, which is a flowchart of a method for processing a message in a virtual scene according to an embodiment of the present application. After step 304, a message can also be sent to a non-moving virtual object through steps 305F to 306F. The following will be described in detail.
[0152] In step 305F, a message sending control corresponding to the unmoved virtual object is displayed on the map.
[0153] Here, the unmoved virtual object is a second virtual object to which a message has not yet been sent, and the message sending control is used to repeatedly send the message.
[0154] For example, refer to FIG. 6F, which is a schematic diagram of a map of a message processing method in a virtual scene according to an embodiment of the present application. When the location mark control X3 is moved to a second position and the second virtual object with number 3 corresponding to the location mark control X3 receives a corresponding message, the location mark control X3 is displayed at the current position of the second virtual object with number 3. Since the location mark control X4 is not moved while the location mark control X3 is moved, the second virtual object corresponding to the location mark control X4 becomes an unmoved object, and a message sending control F1 is displayed near the location mark control X4. The message sending control F1 is used to repeatedly send a previously sent message.
[0155] In step 306F, in response to a trigger operation on any of the message sending controls, a message is sent to the unmoved virtual object corresponding to the triggered message sending control.
[0156] 6F, for illustrative purposes, assume that the message received by the second virtual object corresponding to the location mark control X3 is “Please gather at the specified location.” When the message sending control F1 corresponding to the location mark control X4 is triggered, the second virtual object corresponding to the location mark control X4 also receives the message “Please gather at the specified location.”
[0157] In an embodiment of the present application, by setting the message sending control to repeatedly send a previously sent message, the user can send the same message without having to re-move the map location mark control to the same end position as the previous movement operation, thereby saving the operation time required for message sending.
[0158] In the embodiment of the present invention, the position mark control of the second virtual object in the same camp as the first virtual object is displayed on the map interface, and when the position mark control of the second virtual object is moved, the corresponding command and message are sent to the second virtual object based on the moving operation, thereby realizing the rapid sending of point-to-point messages using the map interface of the virtual scene without sending voice or inputting characters, and the message can be sent quickly by dragging the position mark control, saving the time required for message sending. In addition, since the message is sent only to the second virtual object, the accurate sending of point-to-point messages is realized and the disturbance of other virtual objects in the same camp is prevented. And, since the position mark control of the map interface of the virtual scene is multiplexed, the sending of point-to-point messages can be realized without setting a new control for message sending in the human-computer interaction interface and without using a sound collection device (e.g., a microphone), saving the computing resources required for the virtual scene.
[0159] An exemplary application example of the embodiment of the present application in a multiplayer game will be described below. Multiplayer games provided by the related art include communication methods such as voice communication, shortcut messages preset by the game system, and text input. However, voice communication is limited by sound collection devices and playback devices, and some players may not have sound collection devices such as microphones or playback devices such as headphones. Some players choose text communication because they do not want to use their live voices in the game, but text input takes time. Shortcut messages preset by the game system have limitations and cannot fully express the information that the player wants to convey. Messages visible or audible to the entire team may disturb some teammates (on the one hand, highly parallel processing of messages visible or audible to the entire team may prevent teammates from extracting valid messages, and on the other hand, messages visible to the entire team consume computing resources and occupy the execution memory of the teammates' clients). In addition, these communication methods do not allow individual communication to a specific teammate. A message processing method in a virtual scene according to an embodiment of the present application can quickly send point-to-point messages to teammates by multiplexing a map of the virtual scene and moving a position mark control (e.g., a teammate icon control) corresponding to the teammate on the map, thereby improving the efficiency of message transmission with low computing resource consumption.
[0160] Hereinafter, a description will be given of an example in which the terminal device 400 and the server 200 in FIG. 1B jointly execute the method for processing a message in a virtual scene according to an embodiment of the present application. Referring to FIG. 8, FIG. 8 is a selectable flowchart of the method for processing a message in a virtual scene according to an embodiment of the present application. The description will be given with reference to the steps shown in FIG. 8.
[0161] In step 801, it is determined whether the duration of the press on the teammate icon control on the map is greater than the press duration threshold.
[0162] Exemplarily, the map is a virtual map corresponding to the virtual scene, a coordinate system is set in the virtual map, and the coordinates of each position in the virtual scene are fixed in the virtual map. The teammate icon control is a position mark control on the map for representing a second virtual object in the same team (or the same faction) as the first virtual object corresponding to the user, and is an operable position mark control (for example: a moving operation or a pressing operation).
[0163] Hereinafter, the description will be made with reference to the drawings. Referring to FIG. 5A, FIG. 5A is a schematic diagram of a map of a message processing method in a virtual scene according to an embodiment of the present application. In the map 501A, the position mark control X2 is a position mark control of a first virtual object, and the number 2 indicates that the number of the first virtual object in the team or camp is 2. The position mark control X3 is a second virtual object with the number 3. A map zoom control 503A and a command control 502A are provided on the outer edge of the map 501A. The map zoom control 503A is used to adjust the ratio between the map and the virtual scene, and moving the circular icon of the map zoom control 503A toward the plus sign 504A enlarges the map, and moving it toward the minus sign 505A on the contrary reduces the map. The command control 502A is used to switch the type of command included in the message sent to the teammate.
[0164] Exemplarily, the pressing time threshold may be 0.5 seconds. When the user presses and holds the teammate icon control for 0.5 seconds, it is determined that an icon trigger operation is received, and the teammate icon control can move the map according to the moving operation. In response to the icon trigger operation, the teammate icon control is displayed in an enlarged mode, and the teammate icon control moves with the moving operation (the moving operation means that the pressing position is slid or dragged in the human-computer interaction interface while maintaining the pressing operation). Referring to FIG. 5B, FIG. 5B is a schematic diagram of a map of a message processing method in a virtual scene according to an embodiment of the present application. The location mark control X3 is displayed in an enlarged mode, and is larger than the location mark control X3 in FIG. 5A.
[0165] For example, in an embodiment of the present application, the teammate icon control is displayed in an enlarged mode, so that the operated position mark control is easy to see, the user can operate it easily, and the interaction efficiency is improved.
[0166] In step 802, in response to a move operation on the teammate icon control, the teammate icon control is moved to the end position of the move operation.
[0167] By way of example, the movement operation may be a continuous drag operation or a slide operation.
[0168] Continuing to refer to FIG. 5B, the hand shape represents the pressing operation of the user's finger on the location mark control X3. When the user maintains the pressing operation on the location mark control X3 for a time longer than 0.5 seconds, the location mark control X3 can be moved. When the finger is moved from the first position where the location mark control X3 is currently located to the second position in the direction of the arrow, the location mark control X3 moves its position in the human-computer interaction interface according to the moving operation. When the moving operation is stopped or released, the stopped or released position is set as the end position of the moving operation, i.e., the second position. The location mark control X3' at the second position is the moved location mark control, and before the message for the second virtual object is sent, the location mark control X3' is temporarily displayed at the second position. When the message sending is completed, the location mark control of the second virtual object returns to the current position corresponding to the second virtual object in the map.
[0169] In step 803, the currently selected command type is determined.
[0170] For example, refer to Fig. 7A, which is a schematic diagram of a command control arrangement according to an embodiment of the present application. The command types corresponding to the command control 502A include an attack command, a defense command, and a movement command.
[0171] If the command type is move, step 804 is executed to determine the start and end position characteristics of the move operation.
[0172] Exemplarily, the start position characteristic refers to an area of the virtual scene corresponding to the start position, such as a safe area, a non-safe area, etc. In the non-safe area, the life value of the virtual object is periodically decreased. Conversely, the safe area is an area in the virtual scene that does not enter a state in which the life value of the virtual object is periodically decreased.
[0173] Exemplarily, the end position characteristic refers to the presence or absence of a virtual object's position mark control, a virtual vehicle's position mark control, or a marker in the area of the virtual scene corresponding to the end position (e.g., safe area, non-safe area) and the end position (within a circular area centered on the end position). A marker is a point representing a position on a map. Referring to FIG. 5D, FIG. 5D is a schematic diagram of a map of a message processing method in a virtual scene according to an embodiment of the present application. In response to a trigger operation on the first mark control 501D, a marking mode is entered, in response to a selection operation on any position on the map, a first custom marker corresponding to the selected position, for example, a first custom marker D1, is displayed, and in response to a trigger operation on the second mark control 502D, a second custom marker D2 is displayed at the position of the first virtual object's position mark control X2. In FIG. 5D, the end position characteristic corresponding to the move operation is that a marker exists in the safe area and the marker is the first custom marker D1.
[0174] Exemplarily, if a corresponding place mark control or marker is present at the end location, the message may include content related to the place mark control or marker accordingly. For example, if a virtual vehicle is present at the end location, the message may include content such as "Please board the vehicle", "Go to the vehicle location and board the vehicle", etc. If the end location is within a safety zone, the message may include content such as "Please enter the safety zone".
[0175] In step 805, matching corresponding messages in a message trigger condition base based on the start location feature and the end location feature.
[0176] For example, a trigger condition to be sent for each triggerable message is compiled in advance in a database (message trigger condition base). The message trigger condition base stores messages and trigger conditions corresponding to the messages. If the end position feature (or the end position feature and the start position feature) of the movement operation satisfies the trigger condition corresponding to the message, the corresponding message is sent to the teammate corresponding to the moved teammate icon control. After a slide operation on the teammate icon control is recognized, the start position and end position of the slide operation are set as trigger conditions for the slide operation, and the same trigger condition is matched in the trigger condition base. The start position is used to determine the operation content (entering a safe zone / moving) of the virtual object in the sent message. The end position is used to determine the destination noun (designated point / location of virtual object / vehicle) in the message.
[0177] Taking a message corresponding to a movement command as an example, the relationship between the trigger condition and the message is as follows: 1. If there is a marker at the end position where the teammate icon control is moved, and the start and end positions are both within the safe area, the corresponding message will be "Please move to the marker position". 2. If there is a vehicle at the end location where the teammate icon control is moved, and both the start and end locations are within the safe area, the corresponding message will be "Go to the vehicle location and board the vehicle". 3. If the end position to which the teammate icon control is moved is the position of the first virtual object, the corresponding message is “Come to me”. 4. If the start position of the teammate icon control is outside the safe area and the end position is inside the safe area, the corresponding message will be "Please enter the safe area". 5. If the start position of a teammate icon control is in the safe area and there is another teammate icon control at the moved end position, the corresponding message will be "Meet at a teammate".
[0178] In some embodiments, when the command type is a movement command, different start position characteristics and end position characteristics correspond to different messages, as will be described in detail below.
[0179] In response to a moving operation on the teammate icon control of the designated teammate, when the start position of the moving operation is outside the safe area of the virtual scene of the map and the end position is within the safe area of the virtual scene of the map, a message "please enter the safe area quickly" is sent to the designated teammate. Referring to FIG. 5C, FIG. 5C is a schematic diagram of a map of a message processing method in a virtual scene according to an embodiment of the present application. The position mark control X3 moves from outside the safe area 501C to within the safe area 501C. Then, a text message "please enter the safe area quickly" can be sent to the designated teammate, and the end position corresponding to the moving operation can be displayed on the map interface corresponding to the designated teammate.
[0180] In response to a movement operation on a teammate icon control of a designated teammate, if the start position of the movement operation is within the safe area, a point mark exists at the end position, and the end position is within the safe area of the virtual scene of the map, a message "Please go to the designated point" is sent to the designated teammate. The designated point is a position corresponding to the point mark, and the point mark is highlighted on the map interface of the designated teammate (e.g., the point mark is displayed in bold, the point mark is displayed in a different color, or the point mark is highlighted). Similarly, if the teammate is outside the safe area, a message "Please enter the safe area and go to the designated point" is sent. If the end position of the movement operation is at the position of a first virtual object, and there is no vehicle at the position of the first virtual object, a message "Please meet at my place" is sent to the designated teammate. If there is a vehicle at the position of the first virtual object, a message "Please get on the vehicle quickly" or "Please go to a certain point quickly and get on the vehicle" is sent to the designated teammate. Here, the certain point refers to a position in the virtual scene.
[0181] In some embodiments, when the teammate icon control moves according to the movement operation, the server starts a comparison with the trigger condition based on the message trigger condition based on the start position characteristic of the movement operation, and when the movement operation ends, the server continues searching among the multiple messages corresponding to the start position characteristic obtained by the search based on the end position characteristic of the movement operation to obtain a matching trigger condition, and transmits the message corresponding to the matching trigger condition. For example, when the position of a first virtual object corresponding to a user is within a safety area and a movement operation is applied to a teammate icon control outside the safety area, the end position of the movement operation becomes the position where the position mark control of the first virtual object is currently located. At this time, two conditions are satisfied: "the start position is outside the safety area and the end position is within the safety area" and "the end position is a position corresponding to the first virtual object." Therefore, by sending the text content of the message "Please enter the safe area quickly and meet me at my location" to the teammate, and highlighting (e.g., highlighting, surrounding the location mark control with a bubble, displaying it in a different color, displaying it in bold, etc.) corresponding to the first virtual object in the map interface corresponding to the second virtual object (the teammate receiving the message from the first virtual object), it becomes easy for the user to control the second virtual object to go to the location of the first virtual object.
[0182] In step 806, the matching message is sent to the teammate corresponding to the teammate icon control.
[0183] Illustratively, the message is sent when the movement operation stops (e.g., when the user moves the location mark control to a certain position and then stops moving) or when the movement operation is released (e.g., when the user releases the finger that was pressing the location mark control).
[0184] Illustratively, the sending of the message may be a voice message, a text message, and a mixed voice and text message. The method for instructing the second virtual object through a message includes:
[0185] 1. Present message content to the second virtual object in the form of voice or text, where the message content includes a command and a second location.
[0186] For example, the text content of the text message is “Go to Building B (1234,5678)”, where “Building B (1234,5678)” is a second location, “go” represents a movement command, and (1234,5678) is the coordinate location of Building B on the map.
[0187] As another example, the text content of the text message may be "Go to the second floor of building A," where "go" represents a movement instruction and "second floor of building A" is an explicit location of a second location.
[0188] 2. Present message content including instructions to a second virtual object in the form of voice or text, and display at least one of a location mark of the second location, a direction of the second location relative to the location mark control of the second virtual object, and a route between the location mark control of the second virtual object and the second location on a map interface corresponding to the second virtual object. In this method, the voice or text message may not include the second location or may not include an explicit second location.
[0189] For example, refer to FIG. 7B, which is a schematic diagram of a virtual scene interface corresponding to a second virtual object according to an embodiment of the present application. A map 702 is displayed in the upper right corner of the virtual scene 701, and a screen related to a moving operation in the map corresponding to the first virtual object is synchronously displayed in the map 702 of the second virtual object, so that the message is easy to see and the timely response of the user corresponding to the second virtual object is facilitated. The text content 703 of the message "Please gather at the second teammate" is presented in the virtual scene 701, where the second teammate is the first virtual object, that is, to gather at the position of the virtual object corresponding to the user who sent the message. The map 702 displays the direction and route between the position mark control of the second virtual object and the second position.
[0190] 3. Present message content in the form of voice or text to the second virtual object, where the message content includes an instruction and a second location, and display at least one of a location mark of the second location, a direction of the second location relative to the location mark control of the second virtual object, and a path between the location mark control of the second virtual object and the second location on a map interface corresponding to the second virtual object.
[0191] For example, the text content of the message is "please gather at the specified location (1472, 2147)", and the text content is presented in text or audio form in the human-computer interaction interface corresponding to the second virtual object, and the map of the second virtual object displays the location mark of the specified location, the path between the location mark control of the second virtual object and the location mark corresponding to the specified location, and the direction of the specified location relative to the location mark control of the second virtual object. Here, (1472, 2147) is the location coordinate corresponding to the specified location on the map. Referring to FIG. 5F, FIG. 5F is a schematic diagram of a map of a message processing method in a virtual scene according to an embodiment of the present application. A location mark 501F of the second location is synchronously displayed on the map interface of the second virtual object receiving the message. A location mark 501F is displayed at the second position (in FIG. 5F the location mark is circular, in a specific implementation, the location mark can also be displayed with highlight, bubble frame, etc., or marked with a different color, so that the second position is easier to see and the user controlling the second virtual object can find it), the dotted line between the location mark 501F and the location mark control X3 is the path between them, and the arrow pointing to the location mark 501F of the location mark control X3 represents the direction between them.
[0192] Exemplarily, the location mark control is a control that moves the map correspondingly according to the location of the marked object in the virtual scene. When the moving operation is released or stopped and the message is sent to the corresponding teammate, the location mark control returns to the current location of the second virtual object. Still referring to FIG. 5B, when the message sending is completed, the location mark control X3' at the second location is hidden, and if the current location of the second virtual object is maintained at the first location during the message sending, the location mark control X3 that has exited the enlarged mode is redisplayed at the first location (exiting the enlarged mode means displaying the location mark control X3 in its original size).
[0193] If the command type is an attack, execute step 807, and match the corresponding message in the message trigger condition base according to the end position feature of the moving operation.
[0194] Illustratively, in step 807, the method for determining the end position feature is the same as in the above step 804, and the message matching principle is the same as in the above step 805, so the description will be omitted here. Both the defense command and the attack command are commands operated on virtual objects, and the message matching principle corresponding to the defense command is the same as that of the attack command, so the description will be omitted here.
[0195] In some embodiments, in response to a movement operation on the teammate icon control of the designated teammate, if a marker exists at the end position of the movement operation, a message "Please attack the marker position" is sent to the designated teammate. In response to a movement operation on the teammate icon control of the designated teammate, if an enemy virtual object exists at the end position of the movement operation, a text content "Please attack the enemy" is sent to the designated teammate, and a position mark of the second position where the enemy virtual object is located is synchronously displayed on the map interface corresponding to the designated teammate. Referring to FIG. 5E, FIG. 5E is a schematic diagram of a map of a message processing method in a virtual scene according to an embodiment of the present application. The command in the current selection state of the command control 502A is an attack command. Then, after the position mark control X3 is moved to the second position, a small icon of the attack command can be displayed at the second position. By synchronously displaying the small icon of the attack command on the map of the second virtual object, it is easy to determine the position where the second virtual object should attack. Continuing to refer to FIG. 5F, when the move operation is released, the location mark 501F of the second position is displayed in the map interface of the first virtual object, and the location mark 501F of the second position is synchronously displayed in the map interface corresponding to the second virtual object receiving the message.
[0196] In some embodiments, the defensive command is to send a message to the designated teammate saying "Defend the marker position" in response to a movement operation on the designated teammate's teammate icon control, if a marker is present at the end position of the movement operation. In response to a movement operation on the designated teammate's teammate icon control, if another teammate icon control is present at the end position of the movement operation, to send a message to the designated teammate saying "Protect a certain teammate", where a certain teammate refers to a teammate's number or name.
[0197] In an embodiment of the present application, messages are classified and queried based on the type of command, thereby improving the efficiency of querying messages based on message trigger conditions, and messages can be sent immediately when the movement operation is released or terminated, thereby improving the efficiency of message sending.
[0198] After step 807, step 806 is executed to send the matching message to the teammate corresponding to the teammate icon control.
[0199] The specific method for sending the message has been described above, so a detailed description thereof will be omitted here.
[0200] In the embodiment of the present application, by multiplexing the position mark control of the map of the virtual scene, the user can quickly send a point-to-point message to a teammate through a movement operation on the position mark control of the map representing the teammate. Point-to-point message transmission prevents disturbance to unrelated players (players who do not need to receive the message), prevents burden on the execution memory of the clients of unrelated players, saves graphics computing resources required for the virtual scene, and is not limited by sound collection devices or playback devices, realizing efficient message transmission in the virtual scene.
[0201] Hereinafter, an exemplary structure in which the implementation of the message processing device 455 in the virtual scene according to the embodiment of the present application is a software module will be described. In some embodiments, as shown in FIG. 2, the software module of the message processing device 455 in the virtual scene stored in the memory 430 may include a display module 4551 arranged to display a map of at least a partial area of the virtual scene in a map interface corresponding to a first virtual object, and further arranged to display a location mark control on the map to indicate a first location where the second virtual object is currently located in response to at least one second virtual object appearing in the partial area, the second virtual object being any virtual object belonging to the same camp as the first virtual object, and a message sending module 4552 arranged to move the location mark control from the first location to a second location in response to a moving operation on the location mark control and send a message to the second virtual object, the message including the second location and an instruction.
[0202] In some embodiments, the message sending module 4552 is configured to display a command control containing multiple types of candidate commands inside or outside the map, and in response to a command selection operation on any of the candidate commands in the command control, to make the selected candidate command the command included in the message.
[0203] In some embodiments, the message sending module 4552 is further configured to, in response to a command selection operation for any of the candidate commands in the command control, maintain the selected candidate command in a selected state before receiving a next command selection operation, or, after sending the message to the second virtual object, switch from an indication that the selected candidate command is in a selected state to an indication that a default command, which is a candidate command set to an automatic selection state among the plurality of types of candidate commands, is in a selected state.
[0204] In some embodiments, the message sending module 4552 is further configured to, when the command control includes multiple candidate commands, sort the multiple candidate commands by either sorting in descending or ascending order according to the frequency of use of each of the candidate commands, sorting in the order in which each of the candidate commands is set, or sorting in ascending or descending order according to the probability of use of each of the candidate commands.
[0205] In some embodiments, the message sending module 4552 is further configured to perform a prediction process by invoking a neural network model based on parameters of virtual objects in the virtual scene to obtain a usage probability corresponding to each of the candidate commands. The parameters of the virtual objects include a position and attribute values including a combat power and a life value of the first virtual object, a position and attribute value of the second virtual object, and at least one difference between an attribute value of the camp to which the first virtual object belongs and an attribute value of the opposing camp. The neural network model is obtained by training based on battle data of at least two camps, the battle data including positions, attribute values, and commands executed by virtual objects of a winning camp and a losing camp, of a plurality of virtual objects in the at least two camps, and a tag of each of the commands executed by the virtual objects of the winning camp has a probability of 1, and a tag of each of the commands executed by the virtual objects of the losing camp has a probability of 0.
[0206] In some embodiments, when multiple location mark controls are displayed on the map, the message sending module 4552 is further arranged to, in response to a selection operation on any of the location mark controls, display the selected location mark control in a selected state, and to, in response to a deletion operation on the selected location mark control, delete the selected location mark control.
[0207] In some embodiments, when displaying a map of a subregion of the virtual scene in the map interface, the message sending module 4552 is further arranged to display a location mark control of a not-appeared virtual object, which is a second virtual object not currently appearing in the subregion, outside the map, and in response to a move operation on the location mark control of the not-appeared virtual object, move the location mark control from outside the map to the second location and send a message to the not-appeared virtual object to instruct the not-appeared virtual object to reach the second location and execute the command.
[0208] In some embodiments, when displaying location mark controls on the map to represent first locations at which the plurality of second virtual objects are currently located, the message sending module 4552 is further configured to, in response to a collective selection operation, display the plurality of location mark controls in a selected state, and in response to a move operation, move the plurality of location mark controls from the first locations at which they are respectively located to a second location, and send messages to the second virtual objects corresponding to the plurality of location mark controls, respectively, for instructing the second virtual objects corresponding to the plurality of location mark controls, respectively, to reach the second location and execute a command.
[0209] In some embodiments, after sending the message to the second virtual object, the message sending module 4552 is further arranged to display message sending controls on the map for repeatedly sending messages corresponding to unmoved virtual objects, which are second virtual objects to which a message has not been sent, and in response to a trigger operation on any of the message sending controls, send a message to the unmoved virtual object corresponding to the triggered message sending control.
[0210] In some embodiments, if the type of command is a movement command and a virtual vehicle is present at the second location, the content of the message is to go to the second location to gather and enter the virtual vehicle; if the type of command is a movement command and a virtual vehicle is not present at the second location, the content of the message is to go to the second location to gather; if the type of command is a defense command, the content of the message is to go to the second location to defend; and if the type of command is an attack command, the content of the message is to go to the second location to attack.
[0211] In some embodiments, the message sending module 4552 is further arranged to send a message to the second virtual object by either: displaying a message type selection control including message types of a voice message, a text message, and a mixed voice and text message in response to a selection operation on the type selection control; sending a message to the second virtual object based on the selected message type in response to a selection operation on the type selection control; or sending a message to the second virtual object based on the set message type in response to a movement operation on the location mark control being released.
[0212] In some embodiments, prior to displaying the map of at least a subregion of the virtual scene in the map interface corresponding to the first virtual object, the display module 4551 is further arranged to display the map interface by either displaying the virtual scene in the virtual scene interface and displaying the map interface in a floating layer covering the subregion of the virtual scene interface, or displaying the virtual scene in the virtual scene interface and displaying the map interface in an area other than the virtual scene interface.
[0213] In some embodiments, the map is a preview of the entire area of the virtual scene, or the map is a preview of a sub-area of the virtual scene, where the sub-area is an area radiating outward from a center of the first virtual object.
[0214] In some embodiments, the message sending module 4552 is arranged to, in response to the duration of a press operation on a location mark control reaching a press time threshold, display a location mark control corresponding to the press operation in an enlarged mode, in response to a move operation on the location mark control, control the location mark control displayed in the enlarged mode to move synchronously from a first position, and in response to the move operation being released at the second position, move the location mark control displayed in the enlarged mode to the second position.
[0215] In some embodiments, before sending the message to the second virtual object, the message sending module 4552 is further configured to: determine start and end location features corresponding to the move operation in the virtual scene based on the move operation, the first location and the second location, take the start and end location features as trigger conditions, and query a database based on the trigger conditions to obtain messages matching the trigger conditions, where the database stores correspondences between different messages and different trigger conditions.
[0216] In some embodiments, the message sending module 4552 is further configured to determine a first region in which the first location is located in the virtual scene and a second region in which the second location is located in the virtual scene, and determine a mark type corresponding to the second location in the map interface, the mark type including no mark, a virtual object location mark, and a virtual vehicle location mark, and to set the first region as a start location characteristic of the movement operation and the second region and mark type as an end location characteristic of the movement operation.
[0217] In some embodiments, the message sending module 4552 is further configured to detect a sub-area centered on the second location on the map, and if at least one location mark control is detected, set a mark type corresponding to the location mark control closest to the detected second location as the mark type corresponding to the second location in the map interface, and if no location mark control is detected, set no mark as the mark type corresponding to the second location in the map interface.
[0218] In some embodiments, the display module 4551 is further configured to, in response to the appearance of the at least one virtual vehicle in the sub-region, display a location mark control on the map to indicate that the virtual vehicle is located at a second location, where a mark type of the virtual vehicle location mark control is a virtual vehicle location mark.
[0219] In some embodiments, the message sending module 4552 is further configured to, in response to a trigger operation on a first mark control on the map, indicate entering a point marking mode, in response to a click operation on the map, display a first custom marker for synchronously displaying in the map interface corresponding to a second virtual object at the click position on the map, and in response to a trigger operation on a second mark control on the map, display a second custom marker for synchronously displaying in the map interface corresponding to the second virtual object at a first position on the map where the first virtual object is currently located.
[0220] An embodiment of the present application provides a computer program product or a computer program comprising computer instructions stored in a computer-readable storage medium, the computer instructions being read by a processor of a computing device from the computer-readable storage medium and executed by the computing device to perform the method for processing messages in a virtual scene according to the embodiment of the present application.
[0221] An embodiment of the present application provides a computer-readable storage medium having executable instructions stored thereon that, when executed by a processor, cause the processor to perform a method for processing messages in a virtual scene according to an embodiment of the present application, such as the method for processing messages in a virtual scene shown in FIG.
[0222] In some embodiments, the computer-readable storage medium may be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, flash memory, magnetic surface memory, optical disk, or CD-ROM, or may be any device including one or any combination of the above memories.
[0223] In some embodiments, the executable instructions may be in the form of a program, software, software module, script, or code, created in any type of programming language (including compiled or interpreted languages, or declarative or procedural languages), and implemented in any type, for example as a stand-alone program, or as a module, component, subroutine, or other unit suitable for use in a computing environment.
[0224] As an example, the executable instructions may be implemented to execute on one computing device, or on multiple computing devices located at a single location, or on multiple computing devices distributed at multiple locations and interconnected via a communications network.
[0225] In summary, the embodiment of the present application displays the position mark control of a second virtual object in the same camp as the first virtual object on the map, or displays the position mark control of the second virtual object outside the map, and when the position mark control of the second virtual object is moved, a corresponding command and message is sent to the second virtual object based on the moving operation, thereby realizing the rapid sending of point-to-point messages using the map interface of the virtual scene without voice transmission or character input, and by dragging the position mark control, messages can be sent quickly, saving the time required for message sending. In addition, since the message is sent only to the second virtual object, accurate sending of point-to-point messages is realized and interference with other virtual objects in the same camp is prevented. And, since the position mark control of the map interface of the virtual scene is multiplexed, the sending of point-to-point messages can be realized without setting a new control for message sending in the human-computer interaction interface and without using a sound collection device (e.g., a microphone), saving the computing resources required for the virtual scene.
[0226] The above are only examples of the present application, and are not intended to limit the scope of protection of the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and scope of the present application are included in the scope of protection of the present application.
Claims
1. 1. A method for processing messages in a virtual scene, performed by an electronic device, comprising: displaying a map of at least a sub-area of the virtual scene in a map interface corresponding to a first virtual object; displaying a location mark control on the map in response to the appearance of at least one second virtual object in the partial area, the location mark control being for indicating a first location where the second virtual object is currently located, the second virtual object being any virtual object belonging to the same faction as the first virtual object; in response to a move operation on the place mark control, moving the place mark control from the first position to a second position and sending a message to the second virtual object, the message being used to instruct the second virtual object to reach the second position and execute a command; and A method for processing messages in a virtual scene, comprising:
2. Prior to moving the place mark control from the first position to a second position in response to a move operation on the place mark control, the method further comprises: displaying a command control within the map or outside the map, the command control including a plurality of types of candidate commands; in response to a command selection operation on the command control for any one of the candidate commands, the selected candidate command being set as the command included in the message; The method of claim 1 further comprising:
3. The method comprises: in response to a command selection operation on the command control for any of the candidate commands, maintaining the selected candidate command in a selected state before receiving a next command selection operation; or a step of switching a display from a display indicating that the selected candidate command is in a selected state to a display indicating that a default command is in a selected state after transmitting the message to the second virtual object, the default command being a candidate command that is set to an automatic selection state among the plurality of types of candidate commands; The method of claim 2 , further comprising:
4. Prior to moving the place mark control from the first position to a second position in response to a move operation on the place mark control, the method further comprises: displaying a command control inside the map or outside the map, the command control including a plurality of types of candidate commands, one of the plurality of types of candidate commands being in an automatic selection state; in response to not receiving a command selection operation for any of the candidate commands in the command control within a set time, the candidate command in an automatic selection state is set as the command included in the message; The method of claim 1 further comprising:
5. When the command control includes a plurality of the candidate commands, the method further comprises: sorting the candidate commands in ascending or descending order according to their frequency of use; sorting the candidate commands according to a set order; sorting the candidate commands in ascending or descending order according to their respective usage probabilities; The method of any one of claims 2 to 4, further comprising the step of sorting the plurality of candidate commands by any one of the following:
6. The method comprises: and performing a prediction process by invoking a neural network model based on parameters of virtual objects in the virtual scene to obtain a usage probability corresponding to each of the candidate commands; The method according to claim 5 , wherein the parameters of the virtual objects include at least one of a position of the first virtual object and attribute values including combat power and life value, a position and attribute values of the second virtual object, and a difference between an attribute value of a camp to which the first virtual object belongs and an attribute value of an opposing camp.
7. Before calling a neural network model to perform a prediction process based on parameters of a virtual object in the virtual scene, the method further comprises:
6. The method of claim 5, further comprising: training the neural network model based on match data of at least two camps, the match data including positions, attribute values, and instructions performed by virtual objects of a winning camp and instructions performed by virtual objects of a losing camp, wherein a tag of each of the instructions performed by a virtual object of the winning camp has a probability of 1, and a tag of each of the instructions performed by a virtual object of the losing camp has a probability of 0.
8. When displaying a plurality of the place mark controls on the map, the method further comprises: displaying the selected position mark control in a selected state in response to a selection operation on any of the position mark controls; deleting the selected position mark control in response to a delete operation on the selected position mark control; The method of any one of claims 1 to 4, further comprising:
9. When displaying a map of a sub-region of the virtual scene in the map interface, the method further comprises: displaying a position mark control of a not-yet-appeared virtual object outside the map, the not-yet-appeared virtual object being the second virtual object that is not currently appearing in the partial area; moving the location mark control from outside the map to the second position in response to a movement operation on the location mark control of the not-yet-appeared virtual object; sending a message to the not-appeared virtual object, the message being used to instruct the not-appeared virtual object to reach the second location and execute the command; The method of any one of claims 1 to 4, further comprising:
10. When a location mark control for indicating a first location where a plurality of the second virtual objects are currently located is displayed on the map, a step of moving the location mark control from the first location to a second location in response to a movement operation on the location mark control and transmitting a message to the second virtual object includes: displaying a plurality of said position mark controls in a selected state in response to a collective selection operation; moving the plurality of position mark controls from the first positions to the second positions in response to a move operation; sending the message to the second virtual object corresponding to each of the plurality of place mark controls, the message being used to instruct the second virtual object corresponding to each of the plurality of place mark controls to reach the second location and execute the command; The method according to any one of claims 1 to 4, comprising:
11. After sending a message to the second virtual object, the method further comprises: displaying a message sending control on the map corresponding to an unmoved virtual object, the unmoved virtual object being the second virtual object to which the message has not been sent, the message sending control being used to repeatedly send the message; In response to a trigger operation on any of the message sending controls, sending the message to the unmoved virtual object corresponding to the triggered message sending control; The method of any one of claims 1 to 4, further comprising:
12. When the type of the command is a movement command and a virtual vehicle exists at the second location, the content of the message is to go to the second location, gather, and enter the virtual vehicle; When the type of the command is a movement command and no virtual vehicle is present at the second location, the content of the message is to go to the second location and gather thereat; If the type of the command is a defense command, the content of the message is to go to the second location and defend it; The method according to any one of claims 1 to 4, wherein if the type of the command is an attack command, the content of the message is to go to the second location and attack.
13. The method comprises: displaying a message type selection control including message types of a voice message, a text message, and a mixed voice and text message in response to a selection operation on the type selection control, and transmitting the message to the second virtual object based on the selected message type in response to a selection operation on the type selection control; In response to the release of a move operation on the position mark control, transmit the message to the second virtual object based on the set message type; The method according to any one of claims 1 to 4, further comprising the step of sending the message to the second virtual object by any one of the following:
14. Prior to displaying a map of at least a sub-area of the virtual scene in a map interface corresponding to the first virtual object, the method further comprises: displaying the virtual scene in a virtual scene interface and displaying the map interface in a floating layer covering a sub-area of the virtual scene interface; displaying the virtual scene in the virtual scene interface and displaying the map interface in an area other than the virtual scene interface; The method of any one of claims 1 to 4, further comprising the step of displaying the map interface by any one of the following:
15. 5. The method of claim 1, wherein the map is a preview of an entire area of the virtual scene, or wherein the map is a preview of a sub-area of the virtual scene, the sub-area being an area radiating outwards from the first virtual object.
16. The step of moving the place mark control from the first position to the second position in response to a move operation on the place mark control includes: displaying the position mark control corresponding to the pressing operation in an enlarged mode in response to a duration of the pressing operation on the position mark control reaching a pressing time threshold; controlling the position mark control displayed in an enlarged mode to start synchronous movement from the first position in response to a movement operation on the position mark control; in response to the move operation being released at the second position, moving the position mark control displayed in the enlarged mode to the second position; The method according to any one of claims 1 to 4, comprising:
17. Before sending a message to the second virtual object, the method further comprises: determining a start position feature and an end position feature corresponding to the movement operation in the virtual scene based on the movement operation, the first position, and the second position, and setting the start position feature and the end position feature as a trigger condition; Querying a database based on the trigger condition to obtain the messages matching the trigger condition, the database storing correspondences between various messages and various trigger conditions; The method of any one of claims 1 to 4, further comprising:
18. determining a start position feature and an end position feature corresponding to the movement operation in the virtual scene based on the movement operation, the first position, and the second position, determining a first region in which the first location is located in the virtual scene and a second region in which the second location is located in the virtual scene; determining a mark type corresponding to the second location on the map interface, the mark type including no mark, a virtual object location mark, and a virtual vehicle location mark; determining the first region as a start position characteristic of the moving operation, and determining the second region and the mark type as an end position characteristic of the moving operation; 20. The method of claim 17, comprising:
19. Determining a mark type corresponding to the second location in the map interface includes: detecting a sub-region in the map centered on the second location; if at least one of the location mark controls is detected, determining that the mark type corresponding to the detected location mark control closest to the second location is the mark type corresponding to the second location in the map interface; if the location mark control is not detected, then setting no mark as a mark type corresponding to the second location in the map interface; 20. The method of claim 18, comprising:
20. The method comprises:
20. The method of claim 18, further comprising the step of: in response to at least one virtual vehicle appearing in the sub-region, displaying a location mark control on the map to indicate that the virtual vehicle is located at the second location, wherein the mark type of the virtual vehicle location mark control is a virtual vehicle location mark.
21. The method comprises: a step of displaying an indication of entering a point marking mode in response to a trigger operation on a first mark control of the map, and displaying a first custom marker at a click position on the map in response to a click operation on the map, the first custom marker being used for synchronous display on a map interface corresponding to the second virtual object; displaying a second custom marker at the first position where the first virtual object is currently located on the map in response to a trigger operation on a second mark control of the map, the second custom marker being used for synchronous display on a map interface corresponding to the second virtual object; The method of any one of claims 1 to 4, further comprising:
22. An apparatus for processing messages in a virtual scene, comprising: a display module arranged to display a map of at least a sub-area of the virtual scene in a map interface corresponding to a first virtual object, the display module is further arranged to display, in response to the appearance of at least one second virtual object in the partial region, a location mark control on the map to indicate a first location where the second virtual object is currently located, the second virtual object being any virtual object belonging to the same camp as the first virtual object; a message sending module arranged to, in response to a move operation on the place mark control, move the place mark control from the first position to a second position and send a message to the second virtual object, the message being used to instruct the second virtual object to reach the second position and execute a command; A message processing device in a virtual scene comprising:
23. An electronic device, a memory for storing executable instructions; An electronic device comprising: a processor for performing the method for processing messages in a virtual scene according to any one of claims 1 to 20, when executing executable instructions stored in the memory.
24. A computer readable storage medium having executable instructions stored thereon, the executable instructions being configured, when executed by a processor, to perform a method for processing messages in a virtual scene according to any one of claims 1 to 20.
25. A computer program product comprising a computer program or instructions which, when executed by a processor, performs the method for processing messages in a virtual scene according to any one of claims 1 to 20.
Citation Information
Patent Citations
Path information sending method in virtual scene, computer equipment and storage medium
CN112569600A
