Virtual resource collection method and device, equipment, storage medium and program product
By displaying the acquisition settings interface in a virtual scene and automatically controlling virtual objects to acquire virtual resources, the problem of cumbersome virtual resource acquisition process is solved, and acquisition efficiency and user experience are improved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- TENCENT TECHNOLOGY (SHENZHEN) CO LTD
- Filing Date
- 2024-10-17
- Publication Date
- 2026-04-17
AI Technical Summary
The current technology for collecting virtual resources is cumbersome, resulting in low collection efficiency and affecting user experience.
The system displays the acquisition settings interface in a virtual scene, displays acquisition parameters through settings, and automatically controls virtual objects to acquire virtual resources in response to confirmation operations, achieving automatic acquisition using personalized parameters.
By automatically collecting virtual resources, tedious manual operations are avoided, the efficiency of virtual resource collection is improved, and the user experience is enhanced.
Smart Images

Figure CN121868841A_ABST
Abstract
Description
Technical Field
[0001] This application relates to computer graphics and image technology, and more particularly to a method, apparatus, device, storage medium, and program product for acquiring virtual resources. Background Technology
[0002] Display technologies based on graphics processing hardware have expanded the channels for perceiving the environment and acquiring 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. They have various typical application scenarios. For example, in virtual scenes such as games, they can simulate the real interaction process between virtual objects.
[0003] In related technologies, players can collect virtual resources such as iron ore to craft virtual items or collect virtual resources such as iron ore as materials to complete corresponding virtual tasks. The manual collection process is often tedious and time-consuming, resulting in poor efficiency in collecting virtual resources and thus affecting the user experience. Summary of the Invention
[0004] This application provides a method, apparatus, device, storage medium, and program product for collecting virtual resources, which can improve the efficiency of virtual resource collection.
[0005] The technical solution of this application embodiment is implemented as follows:
[0006] This application provides a method for collecting virtual resources, including:
[0007] Display virtual scenes;
[0008] In response to meeting the collection settings conditions for virtual resources, a settings interface for collecting the virtual resources is displayed in the virtual scene;
[0009] In response to the setting operation in the setting interface, the collection parameters set for at least one virtual resource to be collected are displayed;
[0010] In response to the setting confirmation operation, the virtual object is controlled to collect the virtual resources to be collected according to the collection parameters.
[0011] This application provides a virtual resource acquisition device, comprising:
[0012] The first display module is used to display the virtual scene;
[0013] The second display module is used to display the setting interface for collecting the virtual resources in the virtual scene in response to the fulfillment of the collection setting conditions for the virtual resources;
[0014] The settings module is used to respond to the settings operation in the settings interface and display the collection parameters set for at least one virtual resource to be collected;
[0015] The acquisition module is used to control the virtual object to acquire the virtual resources to be acquired according to the acquisition parameters in response to the setting confirmation operation.
[0016] This application provides an electronic device, the electronic device comprising:
[0017] Memory is used to store computer programs or computer-executable instructions.
[0018] The processor, when executing a computer program or computer-executable instructions stored in the memory, implements the virtual resource acquisition method provided in the embodiments of this application.
[0019] This application provides a computer-readable storage medium storing a computer program or computer-executable instructions, which, when executed by a processor, implement the virtual resource acquisition method provided in this application.
[0020] This application provides a computer program product, including a computer program or computer executable instructions, which, when executed by a processor, implements the virtual resource acquisition method provided in this application.
[0021] The embodiments of this application have the following beneficial effects:
[0022] In response to meeting the collection settings for virtual resources, a virtual resource collection settings interface is displayed in the virtual scene. Through the settings interface, collection parameters set for at least one virtual resource to be collected are displayed. The virtual object is controlled to automatically collect the virtual resource to be collected according to the set collection parameters. Thus, through personalized collection parameters, automatic collection of virtual resources to be collected is achieved. Compared with the manual collection solutions of related technologies, cumbersome collection operations are avoided, thereby improving the collection efficiency of virtual resources. Attached Figure Description
[0023] Figure 1A This is a schematic diagram of the first application mode of the virtual resource acquisition method provided in the embodiments of this application;
[0024] Figure 1B This is a schematic diagram of the second application mode of the virtual resource acquisition method provided in the embodiments of this application;
[0025] Figure 2 This is a schematic diagram of the structure of an electronic device for collecting virtual resources provided in an embodiment of this application;
[0026] Figure 3A This is a schematic diagram of the first process of the virtual resource acquisition method provided in the embodiments of this application;
[0027] Figure 3B This is a second flowchart illustrating the virtual resource acquisition method provided in this application embodiment;
[0028] Figure 4A This is a schematic diagram of the collection range provided in the embodiments of this application;
[0029] Figure 4B This is a schematic diagram of the data acquisition path provided in an embodiment of this application;
[0030] Figure 4C This is a schematic diagram of the path planning control provided in an embodiment of this application;
[0031] Figure 4D This is a schematic diagram of the data collection type settings and parameter settings for the data collection quantity provided in the embodiments of this application;
[0032] Figure 4E This is a schematic diagram of the candidate acquisition types provided in the embodiments of this application;
[0033] Figure 4F This is a schematic diagram of the confirmation control provided in an embodiment of this application;
[0034] Figure 5 This is a first schematic diagram of the activation acquisition settings panel provided in the embodiments of this application;
[0035] Figure 6 This is a first schematic diagram of the activation acquisition settings panel provided in the embodiments of this application;
[0036] Figure 7 This is a schematic diagram of the resource types provided in the embodiments of this application;
[0037] Figure 8 This is a schematic diagram illustrating the list of resource types provided in an embodiment of this application;
[0038] Figure 9A This is a schematic diagram of the collection range provided in the embodiments of this application;
[0039] Figure 9B This is a schematic diagram of the path planning control provided in an embodiment of this application;
[0040] Figure 10 This is a schematic diagram illustrating the swapping of resource types provided in an embodiment of this application;
[0041] Figure 11 This is a schematic diagram of the settings interface provided in an embodiment of this application;
[0042] Figure 12This is a flowchart illustrating the virtual resource acquisition method provided in this application embodiment.
[0043] It should be noted that the terms "first" and "second" mentioned above are only used to distinguish between different options and do not represent the degree of superiority or inferiority of the options or their priority in the implementation process. Detailed Implementation
[0044] To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings. The described embodiments should not be regarded as limitations on this application. All other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0045] In the following description, the terms "first" and "second" are used merely to distinguish similar objects and do not represent a specific ordering of objects. It is understood that "first" and "second" may be interchanged in a specific order or sequence where permitted, so that the embodiments of this application described herein can be implemented in an order other than that illustrated or described herein.
[0046] In the following description, references are made to “some embodiments,” which describe a subset of all possible embodiments. However, it is understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0047] In this application embodiment, the terms "module" or "unit" refer to a computer program or part of a computer program that has a predetermined function and works with other related parts to achieve a predetermined goal, and can be implemented wholly or partially using software, hardware (such as processing circuitry or memory), or a combination thereof. Similarly, a processor (or multiple processors or memory) can be used to implement one or more modules or units. Furthermore, each module or unit can be part of an overall module or unit that includes the functionality of that module or unit.
[0048] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of this application only and is not intended to limit this application.
[0049] In the implementation of this application, the collection and processing of relevant data should strictly comply with the requirements of relevant laws and regulations, obtain the informed consent or separate consent of the personal information subject, and carry out subsequent data use and processing within the scope of laws and regulations and the authorization of the personal information subject.
[0050] Before providing a further detailed description of the embodiments of this application, the nouns and terms involved in the embodiments of this application will be explained, and the nouns and terms involved in the embodiments of this application shall be interpreted as follows.
[0051] 1) Responding to: used to indicate the conditions or states on which the operation is performed. When the conditions or states on which the operation is performed are met, one or more operations may be performed in real time or with a set delay. Unless otherwise specified, there is no restriction on the order in which the multiple operations are performed.
[0052] 2) Client: An application running on a terminal that provides various services, such as a video playback client, a game client, etc.
[0053] 3) Virtual Scene: A virtual game scene displayed (or provided) when the game program runs on the terminal. This virtual scene can be a simulation of the real world, a semi-simulated / semi-fictional virtual environment, or a purely fictional virtual environment. The virtual scene can be any of a two-dimensional, 2.5-dimensional, or three-dimensional virtual scene; this application does not limit the dimension of the virtual scene. For example, a virtual scene may include the sky, land, ocean, etc., and the land may include environmental elements such as deserts and cities. Users can control virtual objects to move within this virtual scene.
[0054] 4) Virtual Objects: These are interactive images of people and objects within a virtual scene, or movable objects within the virtual scene. These movable objects can be virtual characters, virtual animals, anime characters, etc., such as people or animals displayed in a virtual scene. A virtual object can be a virtual character representing the user within the virtual scene. A virtual scene can include multiple virtual objects, each with its own shape and volume, occupying a portion of the space within the virtual scene.
[0055] 5) Virtual Resources: Virtual resources refer to non-physical items that exist within a virtual environment and can be obtained by players through various means. Virtual resources have important functions and value in the virtual environment, typically used to enhance character abilities and complete virtual tasks. For example, virtual resources can be virtual coins or virtual diamonds, used to purchase virtual equipment, virtual items, or unlock functions; virtual resources can also be virtual armor, virtual accessories, and other virtual equipment used to enhance a character's combat abilities; virtual resources can also be virtual consumables such as potions, runes, and enhancement materials, used to restore health, enhance attributes, or for crafting; virtual resources can also be virtual ores, virtual wood, rare materials, and other resources used to craft or upgrade virtual equipment; virtual resources can also be quest items, special function items, and other items used to complete specific virtual tasks or trigger special events.
[0056] 6) Scene Data: This represents the various characteristics exhibited by virtual objects in a virtual scene during interaction. For example, it can include the position of a virtual object within the virtual scene. Of course, different types of characteristics can be included depending on the type of virtual scene. For example, in a game's virtual scene, scene data can include the waiting time required for various functions configured in the virtual scene (depending on the number of times the same function can be used within a specific time period), and it can also represent the attribute values of various states of game characters, such as health points (also known as red points) and mana points (also known as blue points).
[0057] This application provides a method, apparatus, electronic device, computer-readable storage medium, and computer program product for acquiring virtual resources, which can improve the efficiency of virtual resource acquisition. To facilitate a clearer understanding of the virtual resource acquisition method provided in this application, exemplary implementation scenarios of the virtual resource acquisition method are first described. The virtual scene in the virtual resource acquisition method provided in this application can be entirely based on terminal output, or based on collaborative output from a terminal and a server.
[0058] In some embodiments, the virtual scene can be an environment for game characters to interact, such as a virtual scene for game characters to fight each other. By controlling the actions of the game characters, the two sides can interact in the virtual scene, thereby allowing users to relieve life stress during the game.
[0059] In one implementation scenario, see Figure 1A , Figure 1A This is a schematic diagram of the application mode of the virtual resource acquisition method provided in the embodiments of this application. It is applicable to some application modes that rely entirely on the graphics processing hardware computing power of the terminal 400 to complete the relevant data calculation of the virtual scene 100, such as stand-alone / offline games, and the output of the virtual scene is completed through various types of terminals 400 such as smartphones, tablets and virtual reality / augmented reality devices.
[0060] As an example, types of graphics processing hardware include central processing units (CPUs) and graphics processing units (GPUs).
[0061] When visual perception of virtual scene 100 is formed, terminal 400 calculates the data required for display through graphics computing hardware, and completes the loading, parsing and rendering of display data. The graphics output hardware outputs video frames that can form visual perception of virtual scene. For example, two-dimensional video frames are presented on the display screen of a smartphone, or video frames that achieve three-dimensional display effect are projected on the lenses of augmented reality / virtual reality glasses. In addition, in order to enrich the perception effect, terminal 400 can also use different hardware to form one or more of auditory perception, tactile perception, motion perception and taste perception.
[0062] As an example, a client 410 (e.g., a standalone game application) runs on terminal 400. During the operation of client 410, a virtual scene including virtual objects is output. The virtual scene can be an environment for game characters to interact with, such as a plain, street, or valley for game characters to fight, or a room for game characters to build, etc. Taking the virtual scene 100 displayed in a third-person perspective as an example, virtual objects 110 are displayed in the virtual scene 100. Virtual objects 110 can be game characters controlled by the user (or player). That is, virtual objects 110 are controlled by the real user and will operate in the virtual scene in response to the real user's operation of buttons (including joystick buttons, attack buttons, defense buttons, etc.). For example, when the real user moves the joystick button to the left, the virtual object will move to the left in the virtual scene. It can also stay still, jump, and use various functions (such as skills and items).
[0063] For example, a virtual object 110 controlled by the player is displayed in a virtual scene 100. In response to meeting the collection settings for virtual resources, a virtual resource collection settings interface 120 is displayed in the virtual scene 100. In response to the setting operation in the settings interface 120, collection parameters set for at least one virtual resource to be collected are displayed. In response to the setting confirmation operation, the virtual object 110 is controlled to collect the virtual resource to be collected according to the collection parameters. Thus, through personalized collection parameters, automatic collection of virtual resources to be collected is achieved, avoiding cumbersome collection operations and improving the efficiency of virtual resource collection.
[0064] In another implementation scenario, see Figure 1B , Figure 1B This is a schematic diagram of the application mode of the virtual resource acquisition method provided in the embodiments of this application. It is applied to the terminal 400 and the server 200, and is suitable for the application mode that relies on the computing power of the server 200 to complete the virtual scene calculation and output the virtual scene on the terminal 400.
[0065] Taking the visual perception of virtual scene 100 as an example, server 200 calculates display data related to the virtual scene (such as scene data) and sends it to terminal 400 via network 300. Terminal 400 relies on graphics computing hardware to load, parse, and render the calculated display data, and relies on graphics output hardware to output the virtual scene to form visual perception. For example, two-dimensional video frames can be displayed on the screen of a smartphone, or video frames with a three-dimensional display effect can be projected onto the lenses of augmented reality / virtual reality glasses. As for the perception of the form of the virtual scene, it can be understood that it can be achieved with the help of the corresponding hardware output of terminal 400, such as using a microphone to form auditory perception, using a vibrator to form tactile perception, and so on.
[0066] As an example, a client 410 (e.g., a network-based game application) runs on terminal 400 and interacts with other users through a connection to server 200 (e.g., a game server). Terminal 400 outputs a virtual scene 100 from client 410. For example, the virtual scene 100 is displayed in a third-person perspective. A virtual object 110 is displayed in the virtual scene 100. The virtual object 110 can be a game character controlled by the user (or player). That is, the virtual object 110 is controlled by the real user and will operate in the virtual scene in response to the real user's operation on buttons (including joystick buttons, attack buttons, defense buttons, etc.). For example, when the real user moves the joystick button to the left, the virtual object will move to the left in the virtual scene. It can also stay still, jump, and use various functions (such as skills and items).
[0067] For example, terminal 400 outputs a virtual scene 100 sent by server 200, displaying a virtual object 110 controlled by the player in the virtual scene 100. In response to meeting the collection settings for virtual resources, a virtual resource collection settings interface 120 is displayed in the virtual scene 100. In response to the setting operation in the settings interface 120, collection parameters set for at least one virtual resource to be collected are displayed. In response to the setting confirmation operation, the virtual object 110 is controlled to collect the virtual resource to be collected according to the collection parameters. Thus, through personalized collection parameters, automatic collection of virtual resources to be collected is achieved, avoiding cumbersome collection operations and improving the efficiency of virtual resource collection.
[0068] In some embodiments, the terminal 400 can implement the virtual scene interaction processing method provided in this application embodiment by running a computer program. For example, the computer program can be a native program or software module in the operating system; it can be a native application (APP), that is, a program that needs to be installed in the operating system to run, such as a battle game APP (i.e., the client 410 mentioned above) or a collection game APP; or it can be a small program that can be embedded in any APP, that is, a program that only needs to be downloaded to the browser environment to run. The computer program can be any form of application, module or plugin.
[0069] Taking a computer program as an example, in actual implementation, terminal 400 has an application that supports virtual scenes installed and running. This application can be any of the following: a first-person shooter (FPS) game, a third-person shooter game, a virtual reality application, a 3D map application, or a multiplayer shooting survival game. Users use terminal 400 to manipulate virtual objects located in the virtual scene, and these activities include, but are not limited to: adjusting body posture, crawling, walking, running, riding, jumping, driving, picking up items, shooting, attacking, throwing, and constructing virtual buildings—at least one of these. For illustrative purposes, the virtual object can be a virtual character, such as a realistic or anime character.
[0070] In some embodiments, Figure 1B The server 200 can be a standalone physical server, a server cluster or 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 communication, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. The terminal 400 can be a smartphone, tablet, laptop, desktop computer, smart speaker, smartwatch, etc., but is not limited to these. The terminal 400 and server 200 can be directly or indirectly connected via wired or wireless communication, which is not limited in this embodiment.
[0071] The structure of the electronic device for collecting virtual resources provided in the embodiments of this application is described below. See also... Figure 2 , Figure 2 This is a schematic diagram of the structure of an electronic device 500 for collecting virtual resources provided in an embodiment of this application. The explanation uses an electronic device 500 as an example of a terminal. Figure 2The illustrated electronic device 500 for acquiring virtual resources includes at least one processor 510, a memory 550, at least one network interface 520, and a user interface 530. The various components in the electronic device 500 are coupled together via a bus system 540. It is understood that the bus system 540 is used to implement communication between these components. In addition to a data bus, the bus system 540 also includes a power bus, a control bus, and a status signal bus. However, for clarity, ... Figure 2 The general labeled all buses as Bus System 540.
[0072] The processor 510 can be an integrated circuit chip with 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. The general-purpose processor can be a microprocessor or any conventional processor, etc.
[0073] Memory 550 may include volatile memory or non-volatile memory, or both. The non-volatile memory may be read-only memory (ROM), and the volatile memory may be random access memory (RAM). The memory 550 described in this application embodiment is intended to include any suitable type of memory. Memory 550 may optionally include one or more storage devices physically located away from processor 510.
[0074] In some embodiments, memory 550 is capable of storing data to support various operations, examples of which include programs, modules, and data structures or subsets or supersets thereof, as illustrated below.
[0075] Operating system 551 includes system programs for handling various basic system services and performing hardware-related tasks, such as the framework layer, core library layer, driver layer, etc., for implementing various basic business functions and handling hardware-based tasks;
[0076] The network communication module 552 is used to reach other electronic devices via one or more (wired or wireless) network interfaces 520, exemplary network interfaces 520 including: Bluetooth, WiFi, and Universal Serial Bus (USB), etc.
[0077] In some embodiments, the virtual resource acquisition device provided in this application can be implemented in software. The virtual resource acquisition device provided in this application can be provided in various software embodiments, including various forms such as applications, software, software modules, scripts or code.
[0078] Figure 2 A virtual resource acquisition device 555 stored in memory 550 is shown. It can be software in the form of programs and plug-ins, and includes a series of modules, including a first display module 5551, a second display module 5552, a setting module 5553, and an acquisition module 5554. These modules are logically related and can therefore be arbitrarily combined or further divided according to the functions they implement. The functions of each module will be described below.
[0079] The method for acquiring virtual resources provided in the embodiments of this application will be described in detail below with reference to the accompanying drawings. The interactive task method for virtual scenes provided in the embodiments of this application can be... Figure 1A Terminal 400 can be executed independently, or it can be... Figure 1B Terminal 400 and server 200 work together to execute.
[0080] Below, by Figure 1A The following description uses the example of terminal 400 executing the virtual resource acquisition method provided in this application embodiment. See also... Figure 3A , Figure 3A This is a flowchart illustrating the virtual resource acquisition method provided in this application embodiment, which will be combined with... Figure 3A The steps shown are explained.
[0081] It should be noted that, Figure 3A The method shown can be executed by various forms of computer programs running on terminal 400, and is not limited to the client 410 described above. It can also be the operating system 461, software modules and scripts mentioned above. Therefore, the client should not be regarded as a limitation on the embodiments of this application.
[0082] In step 101, a virtual scene is displayed.
[0083] In this virtual scene, virtual objects can be displayed, which can be game characters controlled by the user (or player).
[0084] In step 102, in response to the fulfillment of the collection settings conditions for virtual resources, the settings interface for collecting virtual resources is displayed in the virtual scene.
[0085] In some embodiments, the data collection setting conditions include one of the following: the first duration of virtual object data collection of virtual resources is greater than a first duration threshold; the number of times virtual object collects the same type of virtual resource is greater than a number threshold; the number of types of virtual resources collected by virtual object is greater than a type threshold; the number of times virtual object fails to collect virtual resources is greater than a failure number threshold; the number of virtual resources owned by virtual object is less than a quantity threshold; an instruction to display the setting interface is received; or a virtual resource data collection setting trigger operation is received.
[0086] As an example, when the collection setting condition is that the first duration of virtual object collection of virtual resources is greater than the first duration threshold, it means that the collection time of the virtual object manually controlling the collection of virtual resources by the player is too long, which may require too many virtual resources to be collected. It is necessary to activate the automatic collection function to avoid the player repeating the tedious manual collection operation, improve the collection efficiency of virtual resources, greatly save the player's resource collection time during the game, and improve the user experience.
[0087] As an example, when the collection setting condition is that the number of times the virtual object collects the same virtual resource is greater than the number of times, it means that the player is not manually controlling the virtual object to collect the same virtual resource. The player's collection operation may be too repetitive. It is necessary to activate the automatic collection function to avoid the player repeating the tedious manual collection operation, improve the collection efficiency of virtual resources, greatly save the player's resource collection time during the game, and improve the user experience.
[0088] As an example, when the collection setting condition is that the number of types of virtual resources collected by virtual objects is greater than the type threshold, it means that the player is manually controlling the virtual objects to collect a large number of types of virtual resources. This may require a lot of time to wander around the virtual scene to collect the required virtual resources. It is necessary to activate the automatic collection function to avoid players spending a lot of time on repetitive and tedious manual collection operations, improve the efficiency of virtual resource collection, greatly save players' resource collection time during the game, and improve the user experience.
[0089] As an example, when the collection setting condition is that the number of failed collections of virtual resources by virtual objects exceeds the failure threshold, it indicates that the player has repeatedly collected resources incorrectly. The automatic collection function needs to be activated to avoid players' incorrect collections, improve the efficiency and accuracy of virtual resource collection, greatly save players' resource collection time during the game, and improve the user experience.
[0090] As an example, when the collection setting condition is that the number of virtual resources owned by the virtual object is less than the quantity threshold, it means that the player has too few virtual resources. It may be necessary to activate the automatic collection function to improve the collection efficiency of virtual resources, so as to quickly expand the virtual resources owned by the player and improve the user experience.
[0091] As an example, when the collection setting condition is to receive a virtual resource collection setting trigger operation, it means that the player wants to activate the automatic collection function and does not want to perform repetitive and tedious manual collection operations.
[0092] In some embodiments, before displaying the settings interface for collecting virtual resources in the virtual scene, an automatic collection control is displayed in the virtual scene in response to the distance between the virtual resources and virtual objects in the virtual scene being less than a distance threshold; the trigger operation for the automatic collection control is determined as the collection settings trigger operation. The embodiments of this application are not limited to the operation form of the trigger operation, such as clicking, double-clicking, or swiping.
[0093] like Figure 5 As shown, when the virtual object 501 controlled by the player encounters a collectable virtual resource 502 in the virtual scene (i.e., the distance between the virtual resource and the virtual object in the virtual scene is less than the distance threshold), an automatic collection control 504 is displayed next to the collectable virtual resource 502. In response to the trigger operation of the automatic collection control 504, the trigger operation of the automatic collection control is determined as the collection setting trigger operation, and the collection setting panel 505 (i.e. the setting interface) is displayed in the virtual scene.
[0094] In some embodiments, before displaying the settings interface for collecting virtual resources in the virtual scene, a virtual object identity selection interface is displayed in the virtual scene. The identity selection interface displays a collection control for virtual resources and at least one identity identifier, with each identity identifier corresponding to an identity. The trigger operation for the collection control is determined as the collection settings trigger operation.
[0095] like Figure 6 As shown, players enter the identity selection interface 601 through the identity system. They can then enter the settings interface through the identity selection interface 601. Players can select the resources they need to collect based on their identity, which triggers the resource acquisition control 602 (i.e., the virtual resource acquisition control) in the identity selection interface 601, and displays the acquisition settings panel 603 (i.e., the settings interface).
[0096] As an example, when the collection setting condition is that an instruction to display the settings interface has been received, it means that the neural network model predicts that the player may need to activate the automatic collection function, thereby reducing the player's repetitive and tedious manual collection operations and improving the collection efficiency of virtual resources.
[0097] In some embodiments, the instruction is obtained by performing the following processing through a first neural network model: based on the object characteristics of the virtual object, predictive processing is performed on the virtual resources to obtain a second duration required for the virtual object to collect the virtual resources; when the second duration is greater than a second duration threshold, an instruction to display the settings interface is generated. For example, the object characteristics of the virtual object can characterize the current capabilities of the virtual object. The neural network model predicts the second duration required for the player to collect the virtual resources. When the second duration is greater than the second duration threshold, it indicates that the player needs to activate the automatic collection function to reduce repetitive and tedious manual collection operations and improve the efficiency of virtual resource collection. Therefore, a settings interface is displayed in the virtual scene to achieve the automatic collection function through personalized collection parameter settings, thereby assisting the player in quickly completing resource collection.
[0098] It should be noted that before applying the first neural network model, an initial first neural network model needs to be trained, and then the trained first neural network model is put into application. The first neural network model is trained using virtual resource samples, object feature samples, and instruction annotations. For example, based on the object feature samples of the virtual resource samples and virtual object samples, the initial first neural network model is called for prediction processing to obtain the second time required for the virtual object samples to collect virtual resource samples. After determining the value of the loss function of the first neural network model using the second time required for the virtual object samples to collect virtual resource samples and the instruction annotations, it can be determined whether the value of the loss function exceeds a preset threshold. When the value of the loss function exceeds the preset threshold, the error signal of the first neural network model is determined based on the loss function, and the error information is backpropagated in the first neural network model, updating the model parameters of each layer during the propagation process. The embodiments of this application are not limited to the form of the loss function; for example, it can be a cross-entropy loss function, an L2 loss function, etc.
[0099] Here, we explain backpropagation. Training sample data is input into the input layer of the neural network model, passes through the hidden layers, and finally reaches the output layer to output the result. This is the forward propagation process of the neural network model. Since there is an error between the output result and the actual result, the error between the output result and the actual value is calculated and propagated back from the output layer to the hidden layers until it reaches the input layer. During backpropagation, the values of the model parameters are adjusted according to the error. That is, a loss function is constructed based on the error between the output result and the actual value, and the partial derivatives of the loss function with respect to the model parameters are calculated layer by layer to generate the gradient of the loss function with respect to the model parameters of each layer. Since the direction of the gradient indicates the direction of error amplification, the gradient of the model parameters is inverted and summed with the original parameters of each layer. The summation result is used as the updated model parameters of each layer, thereby reducing the error caused by the model parameters. This process is iterated until convergence. The first neural network model is a type of neural network model.
[0100] Following step 103, in response to the setting operation in the setting interface, the collection parameters set for at least one virtual resource to be collected are displayed.
[0101] The acquisition parameters include at least one of the following: the number of acquisitions for at least one virtual resource to be acquired, the acquisition range for at least one virtual resource to be acquired, the acquisition path for at least one virtual resource to be acquired, and the acquisition time interval for at least one virtual resource to be acquired.
[0102] In some embodiments, the sampling area can be a regular shape, such as a circular region.
[0103] As an example, the settings interface displays parameter settings for the acquisition diameter. In response to the setting operation of the parameter settings for the acquisition diameter, the acquisition range is displayed in the virtual scene. The acquisition range is a circular area with the current position of the virtual object as the center and the set parameter as the acquisition diameter.
[0104] In some embodiments, the sampling area can also be an irregular shape, such as an irregular area manually selected.
[0105] As an example, the settings interface displays parameter settings for the collection range. In response to a trigger operation on these parameter settings, a first prompt message is displayed, prompting the account controlling the virtual object to select a collection range within the virtual scene. In response to the selection operation, the selected area within the virtual scene is defined as the collection range and displayed. This embodiment is not limited to the trigger operation's form, such as clicking, double-clicking, or swiping.
[0106] like Figure 4AAs shown, in response to the triggering operation of parameter setting item 401 for the collection range, the first prompt information is displayed. The player performs a selection operation according to the first prompt information, and the selected area in the virtual scene is determined as the collection range 402, and the collection range is displayed in the virtual scene.
[0107] In some embodiments, the settings interface displays parameter settings for the acquisition path; step 102 can be implemented as follows: in response to a trigger operation of the parameter settings for the acquisition path, a second prompt message is displayed, wherein the second prompt message is used to prompt the account controlling the virtual object to set the acquisition path in the virtual scene; in response to the setting operation, the path set in the virtual scene is determined as the acquisition path, and the acquisition path is displayed. The embodiments of this application are not limited to the operation form of the trigger operation, such as clicking, double-clicking, swiping, etc.
[0108] like Figure 4B As shown, in response to the triggering operation of parameter setting item 403 for the collection path, a second prompt message is displayed. The player performs the setting operation according to the second prompt message, determines the set path in the virtual scene as the collection path 404, and displays the collection path 404 in the virtual scene.
[0109] In some embodiments, the settings interface displays a path planning control; step 102 can be implemented as follows: in response to a trigger operation on the path planning control, a collection path is displayed in the virtual scene, wherein the collection path is generated at least based on the position of the virtual resource to be collected in the virtual scene. The embodiments of this application are not limited to the form of the trigger operation, such as clicking, double-clicking, or swiping.
[0110] like Figure 4C As shown, in response to a trigger operation on the path planning control 405, the acquisition path 406 is displayed in the virtual scene. This embodiment of the application can calculate the optimal acquisition path for acquiring virtual resources by means of an intelligent path planning algorithm. For example, based on the location of the virtual resource to be acquired in the virtual scene, the acquisition quantity set for at least one virtual resource to be acquired, and the acquisition time interval set for at least one virtual resource to be acquired, the time-optimal acquisition path can be calculated.
[0111] The intelligent path planning algorithm in this embodiment is used to find the optimal or near-optimal acquisition path in a virtual scene, while satisfying various constraints, such as obstacle avoidance, time optimization, and minimum energy consumption. For example, the intelligent path planning algorithm can be the Rapid Expanding Random Tree (RRT) algorithm, which explores the state space through random sampling and expanding the tree structure, suitable for path planning in high-dimensional spaces and non-convex environments; the intelligent path planning algorithm can be the Pareto optimal algorithm, which finds a solution in multi-objective optimization where all objectives cannot be further optimized; the intelligent path planning algorithm can be the Particle Swarm Optimization (PSO) algorithm, which simulates bird flock foraging behavior and finds the optimal solution through information sharing between individuals and the group; the intelligent path planning algorithm can be the Dynamic Programming (DP) algorithm, which solves complex problems step by step by decomposing them into smaller subproblems, suitable for path resource allocation problems. This embodiment automatically calculates the acquisition path using the intelligent path planning algorithm, thereby avoiding players manually setting the acquisition path and improving the efficiency of acquisition parameter setting.
[0112] See Figure 3B , Figure 3B This is a flowchart illustrating the virtual resource acquisition method provided in this application embodiment. Figure 3B Show Figure 3A Step 103 can be implemented through steps 1031-1032. The settings interface displays a collection type setting item and at least one parameter setting item. The settings operation includes a first editing operation for the collection type setting item and a second editing operation for at least one parameter setting item: In step 1031, in response to the first editing operation, the collection type edited in the collection type setting item is determined as the type of virtual resource to be collected; In step 1032, in response to the second editing operation, the parameter edited in the parameter setting item is determined as the collection parameter, and the collection parameter is displayed. The collection parameter includes at least one of the following: the collection quantity for at least one virtual resource to be collected, the collection range for at least one virtual resource to be collected, the collection path for at least one virtual resource to be collected, and the collection time interval for at least one virtual resource to be collected.
[0113] For example, after setting the type of virtual resource to be collected through the first editing operation, the second editing operation can be used to set the collection parameters for the virtual resource of the set type. The second editing operation can also refer to the above-mentioned operations for setting the parameter for the collection diameter, selecting the collection range in the virtual scene, and setting the collection path in the virtual scene. Figure 4DAs shown, the settings interface 407 is displayed in the settings interface, which displays a collection type setting item 408 and a parameter setting item 409 for the collection quantity. In response to the first editing operation of the collection type setting item 408, the type of the virtual resource to be collected is set to ore. Then, in response to the second editing operation of the parameter setting item 409, the collection quantity for ore is set to 10.
[0114] In some embodiments, the first editing operation includes a trigger operation and a selection operation; step 1031 can be implemented as follows: in response to the trigger operation for the collection type setting item, at least one candidate collection type is displayed in the setting interface, wherein the candidate collection type corresponds one-to-one with the type of the virtual resource to be collected; in response to the selection operation for at least one candidate collection type, the selected candidate collection type is determined as the type of the virtual resource to be collected. The embodiments of this application are not limited to the operation forms of the trigger operation and the selection operation, such as clicking, double-clicking, swiping, etc.
[0115] like Figure 4E As shown, in response to a click operation on the collection type setting item 408, at least one candidate collection type 410 is displayed in the setting interface, and in response to a selection operation on the at least one candidate collection type, the selected candidate collection type is determined as the type of virtual resource to be collected.
[0116] In some embodiments, the selected candidate collection types are arranged and displayed in the settings interface according to the order in which they are selected. The display position of the selected candidate collection type is related to the collection priority of the virtual resource to be collected corresponding to the selected candidate collection type. For example, the earlier the display position of the selected candidate collection type, the higher the collection priority of the virtual resource to be collected corresponding to the selected candidate collection type. When automatically collecting the virtual resource to be collected, the virtual resource to be collected corresponding to the selected candidate collection type that is displayed earlier will be collected first.
[0117] The display position of selected candidate collection types in the settings interface can be manually adjusted. Therefore, in response to adjustments made to the position of selected candidate collection types, the display position of those types is updated in the settings interface. This allows players to adjust the collection priority of virtual resources as needed.
[0118] In some embodiments, in response to an operation to add at least one parameter setting item, the added parameter setting item is displayed in the settings interface, meaning that players can add personalized collection parameters as needed; in response to a operation to delete any parameter setting item, the display of any parameter setting item is canceled, meaning that players can delete redundant collection parameters.
[0119] In some embodiments, the settings interface displays a confirmation control, a collection type setting item, and at least one parameter setting item. The collection type setting item is automatically filled with the collection type, and each parameter setting item is automatically filled with the target parameters for collecting the virtual resource of that collection type. The settings operation includes a trigger operation for the confirmation control. Step 103 can be implemented as follows: in response to the trigger operation, the collection type is determined to be the type of the virtual resource to be collected, the target parameters are determined to be the collection parameters, and the collection parameters are displayed. The embodiments of this application are not limited to the operation form of the trigger operation, such as clicking, swiping, etc.
[0120] like Figure 4F As shown, the settings interface displays a confirmation control 411, a collection type setting item 408, and a parameter setting item 409 for the collection quantity. The collection type setting item 408 is automatically filled with the ore type, and the parameter setting item 409 for the collection quantity is automatically filled with 100. In response to the trigger operation of the confirmation control 411, the type of the virtual resource to be collected is determined to be the ore type, and the collection quantity is determined to be 100.
[0121] In some embodiments, before displaying the collection parameters set for at least one virtual resource to be collected, a collection type is determined from a plurality of candidate collection types; and a target parameter is determined from a plurality of candidate parameters.
[0122] As an example, determining the collection type from multiple candidate collection types can be achieved in the following way: the target type among the multiple candidate collection types is determined as the collection type, wherein the target type includes at least one of the following: candidate collection types of virtual resources that can be collected in the virtual scene, candidate collection types of virtual resources that are missing from the virtual object, candidate collection types of virtual resources that are missing from the virtual object's teammates, candidate collection types of virtual resources that are missing from the virtual object's enemies, and candidate collection types of virtual resources whose resource value is greater than the value threshold.
[0123] For example, the system automatically populates the collection type settings with candidate collection types of collectable virtual resources in the virtual scene, allowing players to see the types of collectable virtual resources in the virtual scene; it automatically populates the collection type settings with candidate collection types of virtual resources that virtual objects lack, allowing players to quickly understand the virtual resources they lack without having to leave the settings interface to view their own virtual resources; it automatically populates the collection type settings with candidate collection types of virtual resources that teammates of virtual objects lack, allowing players to quickly understand the virtual resources that teammates lack and help them collect those resources; it automatically populates the collection type settings with candidate collection types of virtual resources that enemies of virtual objects lack, allowing players to quickly understand the virtual resources that enemies lack and collect those resources, preventing enemies from completing virtual tasks or quickly recovering health; and it automatically populates the collection type settings with candidate collection types of virtual resources whose resource value is greater than a value threshold, allowing players to understand the types of high-value virtual resources in the virtual scene.
[0124] As an example, the target parameter can be determined from multiple candidate parameters in the following way: the matching parameter among the multiple candidate parameters is determined as the target parameter, wherein the type of the matching parameter includes at least one of the following: candidate parameters used by the account controlling the virtual object, candidate parameters corresponding to the shortest collection path required to execute the candidate parameter, candidate parameters corresponding to the shortest time required to execute the candidate parameter, and candidate parameters that are used the most times.
[0125] For example, candidate parameters used by accounts controlling virtual objects can be automatically populated into the parameter settings so that players can view and reuse the parameters they have used; candidate parameters corresponding to the shortest collection path required to execute a candidate parameter can be automatically populated into the parameter settings so that players understand the candidate parameters corresponding to the shortest collection path required to execute a candidate parameter, and can subsequently collect the virtual resources to be collected based on the shortest collection path; candidate parameters corresponding to the shortest execution time required to execute a candidate parameter can be automatically populated into the parameter settings so that players understand the candidate parameters corresponding to the shortest execution time required, and can subsequently collect the virtual resources to be collected based on the shortest possible execution time; and the most frequently used candidate parameters can be automatically populated into the parameter settings so that players understand the currently popular candidate parameters.
[0126] In some embodiments, determining the collection type from multiple candidate collection types can be achieved by: calling a second neural network model based on the object features of the virtual object; performing prediction processing on multiple candidate collection types through the second neural network model to obtain the collection type; determining the target parameter from multiple candidate parameters can be achieved by: performing prediction processing on multiple candidate parameters through the second neural network model to obtain the target parameter, wherein the second neural network model is trained using object feature samples, candidate collection type samples, candidate parameter samples, collection type annotations, and parameter annotations. For example, the object features of a virtual object can characterize the current capabilities of the virtual object. Therefore, by using a neural network model to predict the type of virtual resource to be collected by the player and the corresponding collection parameters, the efficiency of virtual resource collection can be improved. This allows for automatic collection through personalized collection parameter settings, assisting players in quickly completing resource collection.
[0127] It should be noted that before applying the second neural network model, an initial second neural network model needs to be trained, and then the trained second neural network model is put into application. The second neural network model is trained using object feature samples, candidate acquisition type samples, candidate parameter samples, acquisition type annotations, and parameter annotations. For example, based on object feature samples, the initial second neural network model is invoked to predict candidate acquisition type samples to obtain acquisition type samples, and to predict candidate parameter samples to obtain target parameter samples. After determining the value of the loss function of the second neural network model using acquisition type samples, target parameter samples, acquisition type annotations, and parameter annotations, it can be determined whether the value of the loss function exceeds a preset threshold. When the value of the loss function exceeds the preset threshold, the error signal of the second neural network model is determined based on the loss function, and the error information is backpropagated in the second neural network model, updating the model parameters of each layer during the propagation process. The embodiments of this application are not limited to the form of the loss function; for example, it can be a cross-entropy loss function, an L2 loss function, etc.
[0128] Here, we explain backpropagation. Training sample data is input into the input layer of the neural network model, passes through the hidden layers, and finally reaches the output layer to output the result. This is the forward propagation process of the neural network model. Since there is an error between the output result and the actual result, the error between the output result and the actual value is calculated and propagated back from the output layer to the hidden layers until it reaches the input layer. During backpropagation, the values of the model parameters are adjusted according to the error. That is, a loss function is constructed based on the error between the output result and the actual value, and the partial derivatives of the loss function with respect to the model parameters are calculated layer by layer to generate the gradient of the loss function with respect to the model parameters of each layer. Since the direction of the gradient indicates the direction of error amplification, the gradient of the model parameters is inverted and summed with the original parameters of each layer. The summation result is used as the updated model parameters of each layer, thereby reducing the error caused by the model parameters. This process is iterated until convergence. The second neural network model is a type of neural network model.
[0129] In some embodiments, step 103 can be implemented in the following way: displaying multiple automatic acquisition methods in the settings interface, wherein each automatic acquisition method includes the acquisition type of the virtual resource to be acquired and the corresponding target parameters; in response to the selection operation for multiple automatic acquisition methods, determining the acquisition type included in the selected automatic acquisition method as the type of the virtual resource to be acquired, determining the target parameters included in any automatic acquisition method as acquisition parameters, and displaying the acquisition parameters.
[0130] Here, this application embodiment provides multiple automatic data collection methods for players to choose from. Players can select an automatic data collection method according to their needs, avoiding the need for players to set data collection parameters one by one, and improving the efficiency of setting data collection parameters.
[0131] Following step 103, in step 104, in response to the setting confirmation operation, the virtual object is controlled to collect the virtual resources to be collected according to the collection parameters.
[0132] For example, when the collection parameter includes the collection quantity, the virtual object is controlled to automatically collect the virtual resources to be collected until the number of collected virtual resources is equal to the collection quantity; when the collection parameter includes the collection range, the virtual object is controlled to automatically collect the virtual resources to be collected within the collection range; when the collection parameter includes the collection path, the virtual object is controlled to automatically collect the virtual resources to be collected according to the collection path.
[0133] In some embodiments, after step 104, in response to meeting the stop collection condition of the virtual resource to be collected, the virtual object is controlled to stop collecting the virtual resource to be collected. The stop collection condition includes one of the following: the collected virtual resource meets the collection task corresponding to the collection parameters, the virtual object is attacked, the virtual object's stamina value is less than the stamina value threshold, the decrease in stamina value is positively correlated with the increase in the virtual resource to be collected collected by the virtual object, or a stop collection operation is received for the virtual resource to be collected.
[0134] For example, if the collection parameter is 10, the collection task is to collect 10 virtual resources to be collected. When the number of collected virtual resources reaches 10, the virtual object is controlled to stop collecting the remaining virtual resources. When the virtual object is attacked, the virtual object is controlled to stop collecting the remaining virtual resources and quickly engage in combat. When the virtual object's stamina is less than the stamina threshold, the virtual object is controlled to stop collecting the remaining virtual resources so that it can quickly recover its stamina. When the virtual object's stamina is greater than or equal to the stamina threshold, the virtual object is controlled to continue collecting the remaining virtual resources according to the collection parameters. When a stop collection operation is received for the remaining virtual resources, indicating that the player wants to stop the automatic collection function, the virtual object is controlled to stop collecting the remaining virtual resources.
[0135] The following will describe an exemplary application of the embodiments of this application in a real-world application scenario.
[0136] The embodiments of this application can be applied to various virtual scenarios, such as virtual game scenarios, and can simulate the real interaction process between virtual objects. The following description uses a game as an example.
[0137] In related technologies, games often include a system for collecting items. For example, players can collect items by following a quest to the corresponding location, or by opening a map to find the location of a virtual resource and then collecting it. In addition, collecting some special resources requires players to guard the location, which requires players to spend more time and energy, thus reducing the player's gaming experience.
[0138] In response, this application provides a method for collecting virtual resources, which allows for the editing of the collection range and the automatic collection method, facilitating the automatic collection of virtual resources by players. In other words, the collection range can be set. For example, compared to the collection range used for automatically collecting a single type of item, a larger collection range can be set to automatically collect multiple types of items. Players can also set the priority and upper limit of the resources collected. For example, if both ores and herbs are collected at the same time, the ores are set to be collected first, and the player will automatically move to collect herbs after collecting the corresponding amount of ores.
[0139] The following describes the method for collecting virtual resources provided in the embodiments of this application from the product side.
[0140] This application provides two methods to activate the automatic data acquisition operation. The two activation methods are described below.
[0141] 1) First activation method
[0142] like Figure 5 As shown, when the virtual object 501 controlled by the player encounters a collectable virtual resource 502 in the virtual scene (i.e., the virtual object enters the collectable range of the virtual resource 502), a manual collection control 503 will appear next to the collectable virtual resource 502. At the same time, an automatic collection control 504 will appear next to the manual collection control 503. When the automatic collection control 504 is triggered, the collection settings panel 505 (i.e., the settings interface) will be displayed in the virtual scene, and the type identifier of the currently selected virtual resource 502 will be added to the collection settings panel 505, indicating that the default setting is to automatically collect this type of virtual resource 502.
[0143] 2) Second activation method
[0144] like Figure 6 As shown, players enter the identity selection interface 601 through the identity system. They can then access the resource acquisition page (i.e., the acquisition settings panel) through the identity selection interface 601. Players can select the resources they want to acquire based on their identity, which triggers the resource acquisition control 602 in the identity selection interface 601 and displays the acquisition settings panel 603.
[0145] After activating the automatic data acquisition operation, you can proceed to the data acquisition parameter setting stage.
[0146] Taking the second activation method to access the data collection settings panel as an example, such as... Figure 7 As shown, triggering the identity selection control 701 on the right will display a resource collection list for that identity below the triggered identity selection control 701. The resource collection list includes various resource types 702 required for that identity. If any of the displayed resource types are required for the current virtual task, then the resource type required for the current virtual task will be displayed first in the resource collection list. For example, if the player selects the fishing identity, various fish items will be displayed below the fishing identity.
[0147] like Figure 8 As shown, after displaying the various resource types 801, select one of the resource types, and the selected resource type will be automatically added to the collection type list 802. After successful addition, the collection quantity of the selected resource type can be edited. For example, select one type of fish to add to the collection type list, and after successful addition, the quantity of that type of fish can be edited.
[0148] It should be noted that different virtual resources will have different additional parameter settings. Since ore resources often follow a collect-refresh-collect logic, there will be a collection range setting. Players can automatically move to collect ore when it is detected within the collection range to speed up the collection process. For example... Figure 9A As shown, for ore resources, the collection quantity (901) and collection range (902) can be edited. When the collection diameter is set to 100 meters, the ore to be collected will be detected within a circular area with a diameter of 100 meters centered on the player-controlled virtual object. Figure 9B As shown, for mineral resources, a smart path optimization function can be enabled. For example, when the path planning control 903 is triggered, the optimal path search will be automatically started, and the resource will be collected according to the optimal collection path found. Since fish resources can often be repeatedly obtained in a fixed location without changing locations, there is no need to set a collection range, so there is no need to display the collection range in the settings interface.
[0149] In some embodiments, players can set multiple types of virtual resources to be collected, and collect them sequentially according to their set collection priority. For example... Figure 10 As shown, the resource types in the collection type list 1001 can be manually rearranged. Players can manually drag the added resource types in list 1001 to change the collection priority. By default, the priority decreases from left to right.
[0150] In some embodiments, when the game has a stamina system, it means that players can only collect virtual resources within the corresponding stamina range per day. For example, collecting one virtual resource requires 1 stamina point, and the player's daily stamina limit is 100 points. After collecting 100 resources, the player cannot collect any more. In this case, collection can be carried out according to the player's configured collection parameters. When the stamina limit is reached, collection will automatically stop, and the previous day's collection results will be retained. Collection can continue automatically after stamina is restored. For example, if a player sets to collect 80 ores and 30 fish, and has currently completed the collection of 80 ores and 20 fish, the player will continue to automatically complete the collection of the remaining 10 fish after the stamina refreshes the next day.
[0151] like Figure 11 As shown, when there are multiple virtual resources to be collected, the resource type in the collection type list can be switched to set the collection quantity of that type of virtual resource. For example, the current display is the fish setting interface 1101, which shows the set collection quantity for fish. When the ore type 1102 in the collection type list is triggered, the fish setting interface 1001 switches to the ore setting interface 1103, which shows the set collection quantity and collection range for ore.
[0152] The following is combined with Figure 12 This application describes the method for collecting virtual resources from a technical perspective.
[0153] Step 1: Determine if there are any collectable virtual resources in the virtual scene. If there are no collectable virtual resources in the virtual scene, proceed to Step 2; if there are collectable virtual resources in the virtual scene, proceed to Step 3.
[0154] For example, when a virtual object controlled by a player enters a virtual scene, the client determines whether there are collectable virtual resources near the virtual object controlled by the player, that is, whether the virtual object controlled by the player has entered the collectable range of the collectable virtual resources.
[0155] Step 2: Keep the virtual scene in its normal state.
[0156] Step 3: Display the manual data collection control and the automatic data collection control in the virtual scene.
[0157] Step 4: In response to the trigger operation of the automatic data acquisition control, enter the data acquisition settings panel.
[0158] When entering the acquisition settings panel, the type identifier of the currently selected virtual resource is added to the acquisition settings panel by default, indicating that the default setting is to automatically acquire this type of virtual resource.
[0159] Step 5: Determine whether to set up the collection of multiple types of virtual resources. If the collection of a single type of virtual resource is set up, proceed to step 6; if the collection of multiple types of virtual resources is set up, proceed to step 7.
[0160] Before determining whether to set up the collection of multiple types of virtual resources, the client can also determine whether the virtual object controlled by the player has a collection task. When a collection task exists, the client will upload the task content to the backend server. The server records the virtual resources required for the collection task based on the task content and feeds back to the client when the player selects the virtual resources corresponding to their identity. This allows the client to prioritize displaying the virtual resources required for the collection task, making it easier for the player to quickly filter resources. When no collection task exists, the resources are displayed according to the default level order.
[0161] Step 6: Collect the set single-type virtual resources.
[0162] For example, if only a single type of virtual resource is set, the client will stop collecting data after detecting that the set number of data to be collected for that virtual resource has been completed.
[0163] Step 7: Collect the various types of virtual resources you have set.
[0164] For example, if multiple types of virtual resources are set, they will be collected in sequence according to their collection priority. When the client determines that the number of virtual resources collected has reached the set collection quantity, it will automatically switch to the next type of virtual resource and collect the resource.
[0165] During the collection of single-type and multi-type virtual resources, the client can determine whether the virtual object controlled by the player has a stamina parameter. If a stamina parameter exists, the corresponding stamina value will be consumed during collection. When the player's stamina for the day is exhausted, collection will stop, and the client will upload the collection results to the server for storage by default. When stamina is restored the next day, the collection results will be retrieved again to continue automatic collection and complete the collection task. If no stamina parameter exists, the client will check all set collection parameters, complete the resource collection according to the set collection parameters, and then end the automatic collection.
[0166] In summary, the virtual resource collection method provided in this application aims to offer a convenient and fast automatic collection method. Players can configure the virtual resources to be collected for automatic collection, and can batch configure multiple different virtual resources for automatic collection in sequence. This solves the current problem of players having to manually collect and finding the virtual resources to be collected, greatly reducing the negative experience caused by this repetitive operation. Moreover, compared with single-point collection, the collection efficiency of the collection method by setting a collection range is higher. That is, players can detect more collectible virtual resources by setting a collection range, without having to spend a lot of time waiting for the virtual resources to refresh and cool down for fixed-point automatic collection, which greatly improves collection efficiency. In addition, the automatic saving of collection tasks not completed the previous day eliminates the need for players to reconfigure, automatically adapts to the operation of the stamina system, and makes collection configuration more convenient. Players only need to configure once and do not need to consider stamina limitations.
[0167] The exemplary application and implementation of the electronic device provided in the embodiments of this application have been used to describe the virtual resource acquisition method provided in the embodiments of this application. The following will continue to describe the cooperation of the various modules in the virtual resource acquisition device 555 provided in the embodiments of this application to realize the virtual resource acquisition scheme.
[0168] The first display module 5551 is used to display a virtual scene; the second display module 5552 is used to display a setting interface for collecting the virtual resource in the virtual scene in response to meeting the collection setting conditions for the virtual resource; the setting module 5553 is used to display collection parameters set for at least one virtual resource to be collected in response to the setting operation in the setting interface; and the collection module 5554 is used to control the virtual object to collect the virtual resource to be collected according to the collection parameters in response to the setting confirmation operation.
[0169] In some embodiments, the data collection setting conditions include one of the following: the first duration of the virtual object collecting the virtual resource is greater than a first duration threshold; the number of times the virtual object collects the same type of virtual resource is greater than a number threshold; the number of types of virtual resources collected by the virtual object is greater than a type threshold; the number of times the virtual object fails to collect the virtual resource is greater than a failure number threshold; the number of virtual resources owned by the virtual object is less than a quantity threshold; an instruction to display the setting interface is received; or a data collection setting trigger operation for the virtual resource is received.
[0170] In some embodiments, before displaying the settings interface for collecting the virtual resources in the virtual scene, the second display module 5552 is further configured to display an automatic collection control in the virtual scene in response to the distance between the virtual resources in the virtual scene and the virtual object being less than a distance threshold; and to determine the trigger operation for the automatic collection control as the collection settings trigger operation.
[0171] In some embodiments, before displaying the settings interface for collecting the virtual resources in the virtual scene, the second display module 5552 is further configured to display the identity selection interface for the virtual object in the virtual scene, wherein the identity selection interface displays the collection control for the virtual resource and at least one identity identifier; and the trigger operation for the collection control is determined as the collection settings trigger operation.
[0172] In some embodiments, the instruction is obtained by performing the following processing through a first neural network model: based on the object features of the virtual object, performing prediction processing on the virtual resource to obtain a second duration required for the virtual object to collect the virtual resource; when the second duration is greater than a second duration threshold, generating an instruction to display the settings interface; wherein, the first neural network model is obtained by training virtual resource samples, object feature samples, and instruction annotations.
[0173] In some embodiments, the settings interface displays a collection type setting item and at least one parameter setting item. The settings operation includes a first editing operation on the collection type setting item and a second editing operation on the at least one parameter setting item. The settings module 5553 is further configured to, in response to the first editing operation, determine the collection type edited in the collection type setting item as the type of the virtual resource to be collected; and, in response to the second editing operation, determine the parameter edited in the parameter setting item as the collection parameter and display the collection parameter.
[0174] In some embodiments, the first editing operation includes a triggering operation and a selection operation; the setting module 5553 is further configured to, in response to the triggering operation for the collection type setting item, display at least one candidate collection type in the setting interface, wherein the candidate collection type corresponds one-to-one with the type of the virtual resource to be collected; and in response to the selection operation for the at least one candidate collection type, determine the selected candidate collection type as the type of the virtual resource to be collected.
[0175] In some embodiments, the setting module 5553 is further configured to arrange and display the selected candidate collection types in the setting interface according to the order in which the candidate collection types are selected, wherein the display position of the selected candidate collection type is related to the collection priority of the virtual resource to be collected corresponding to the selected candidate collection type; and to update the display position of the selected candidate collection type in the setting interface in response to the position adjustment operation of the selected candidate collection type.
[0176] In some embodiments, the setting module 5553 is further configured to display the added parameter setting item in the setting interface in response to an addition operation for the at least one parameter setting item; and to cancel the display of any parameter setting item in response to a deletion operation for any of the parameter setting items.
[0177] In some embodiments, the settings interface displays a confirmation control, a collection type setting item, and at least one parameter setting item. The collection type setting item is automatically filled with a collection type, and each parameter setting item is automatically filled with a target parameter for collecting the virtual resource of the collection type. The settings operation includes a trigger operation for the confirmation control. The settings module 5553 is further configured to, in response to the trigger operation, determine the collection type as the type of the virtual resource to be collected, determine the target parameter as the collection parameter, and display the collection parameter.
[0178] In some embodiments, before displaying the collection parameters set for at least one virtual resource to be collected, the setting module 5553 is further configured to determine the collection type from a plurality of candidate collection types; and determine the target parameter from a plurality of candidate parameters.
[0179] In some embodiments, the setting module 5553 is further configured to determine the target type among the plurality of candidate collection types as the collection type, wherein the target type includes at least one of the following: candidate collection types of virtual resources that can be collected in the virtual scene, candidate collection types of virtual resources that the virtual object lacks, candidate collection types of virtual resources that the virtual object's teammates lack, candidate collection types of virtual resources that the virtual object's enemies lack, and candidate collection types of virtual resources whose resource value is greater than a value threshold; and to determine the matching parameter among the plurality of candidate parameters as the target parameter, wherein the type of the matching parameter includes at least one of the following: candidate parameters used by the account controlling the virtual object, candidate parameters corresponding to the shortest collection path required to execute the candidate parameter, candidate parameters corresponding to the shortest time required to execute the candidate parameter, and candidate parameters used the most times.
[0180] In some embodiments, the setting module 5553 is further configured to invoke a second neural network model based on the object features of the virtual object; perform prediction processing on the plurality of candidate acquisition types through the second neural network model to obtain the acquisition type; and perform prediction processing on the plurality of candidate parameters through the second neural network model to obtain the target parameter, wherein the second neural network model is trained using object feature samples, candidate acquisition type samples, candidate parameter samples, acquisition type annotations, and parameter annotations.
[0181] In some embodiments, the setting module 5553 is further configured to display multiple automatic acquisition methods in the setting interface, wherein each automatic acquisition method includes an acquisition type of the virtual resource to be acquired and a corresponding target parameter; in response to a selection operation for the multiple automatic acquisition methods, the acquisition type included in the selected automatic acquisition method is determined as the type of the virtual resource to be acquired, the target parameter included in any automatic acquisition method is determined as the acquisition parameter, and the acquisition parameter is displayed.
[0182] In some embodiments, after controlling the virtual object to collect the virtual resource to be collected according to the collection parameters in response to the setting confirmation operation, the collection module 5554 is further configured to control the virtual object to stop collecting the virtual resource to be collected in response to meeting the stop collection condition of the virtual resource to be collected, wherein the stop collection condition includes one of the following: the collected virtual resource meets the collection task corresponding to the collection parameters, the virtual object is attacked, the physical strength value of the virtual object is less than the physical strength value threshold, the amount of reduction in physical strength value is positively correlated with the amount of increase in the virtual resource to be collected collected by the virtual object, or a stop collection operation is received for the virtual resource to be collected.
[0183] In some embodiments, after controlling the virtual object to stop collecting the virtual resource to be collected in response to meeting the stop collection condition of the virtual resource to be collected, the collection module 5554 is further configured to control the virtual object to continue collecting the virtual resource to be collected according to the collection parameters in response to the virtual object's stamina value being greater than or equal to the stamina value threshold.
[0184] In some embodiments, the acquisition parameters include at least one of the following: the number of acquisitions for at least one virtual resource to be acquired, the acquisition range for at least one virtual resource to be acquired, the acquisition path for at least one virtual resource to be acquired, and the acquisition time interval for at least one virtual resource to be acquired.
[0185] In some embodiments, the settings interface displays parameter settings for the collection range; the settings module 5553 is further configured to display a first prompt message in response to a trigger operation of the parameter settings for the collection range, wherein the first prompt message is used to prompt the selection of the collection range in the virtual scene; in response to the selection operation, the selected area in the virtual scene is determined as the collection range, and the collection range is displayed.
[0186] In some embodiments, the setting interface displays parameter setting items for the acquisition path; the setting module 5553 is further configured to display a second prompt message in response to a trigger operation of the parameter setting items for the acquisition path, wherein the second prompt message is used to prompt the user to set the acquisition path in the virtual scene; in response to the setting operation, the path set in the virtual scene is determined as the acquisition path, and the acquisition path is displayed.
[0187] In some embodiments, the settings interface displays a path planning control; the settings module 5553 is further configured to display the acquisition path in the virtual scene in response to a trigger operation on the path planning control, wherein the acquisition path is generated at least based on the position of the virtual resource to be acquired in the virtual scene.
[0188] This application provides a computer program product, which includes a computer program or computer-executable instructions stored in a computer-readable storage medium. The processor of an electronic device reads the computer program or computer-executable instructions from the computer-readable storage medium and executes the computer program or computer-executable instructions, causing the electronic device to perform the virtual resource acquisition method described above in this application.
[0189] This application provides a computer-readable storage medium storing computer-executable instructions or a computer program. When the computer-executable instructions or the computer program are executed by a processor, the processor will execute the virtual resource acquisition method provided in this application. For example, ... Figure 3A The method for acquiring virtual resources is shown.
[0190] 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 it may be a variety of devices including one or any combination of the above-mentioned memories.
[0191] In some embodiments, computer-executable instructions may take the form of programs, software, software modules, scripts, or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as stand-alone programs or as modules, components, subroutines, or other units suitable for use in a computing environment.
[0192] As an example, computer-executable instructions may, but do not necessarily, correspond to files in a file system. They may be stored as part of a file that holds other programs or data, for example, in one or more scripts in a HyperText Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple co-located files (e.g., files that store one or more modules, subroutines, or code sections).
[0193] As an example, computer-executable instructions can be deployed to execute on a single electronic device, or on multiple electronic devices located in one location, or on multiple electronic devices distributed across multiple locations and interconnected via a communication network.
[0194] The above description is merely an embodiment of this application and is not intended to limit the scope of protection of this application. Any modifications, equivalent substitutions, and improvements made within the spirit and scope of this application are included within the scope of protection of this application.
Claims
1. A method for collecting virtual resources, characterized by, The method includes: Display virtual scenes; In response to meeting the collection settings conditions for virtual resources, a settings interface for collecting the virtual resources is displayed in the virtual scene; In response to the setting operation in the setting interface, the collection parameters set for at least one virtual resource to be collected are displayed; In response to the setting confirmation operation, the virtual object is controlled to collect the virtual resources to be collected according to the collection parameters.
2. The method according to claim 1, characterized in that, The data acquisition settings include one of the following: The first duration for which the virtual object collects the virtual resources is greater than a first duration threshold. The number of times the virtual object collects the same virtual resource exceeds the number threshold. The virtual object collects more types of virtual resources than the type threshold. The number of times the virtual object failed to collect the virtual resources is greater than the failure count threshold; The number of virtual resources owned by the virtual object is less than the quantity threshold; Received an instruction to display the settings interface; The collection settings trigger operation of the virtual resource is received.
3. The method of claim 2, wherein, Before displaying the settings interface for collecting the virtual resources in the virtual scene, the method further includes: In response to the distance between the virtual resource and the virtual object in the virtual scene being less than a distance threshold, an automatic acquisition control is displayed in the virtual scene; The trigger operation for the automatic acquisition control is determined as the acquisition setting trigger operation.
4. The method according to claim 2, characterized in that, Before displaying the settings interface for collecting the virtual resources in the virtual scene, the method further includes: The virtual scene displays an identity selection interface for the virtual object, wherein the identity selection interface displays a collection control for the virtual resource and at least one identity identifier; The trigger operation for the acquisition control is determined as the acquisition setting trigger operation.
5. The method according to claim 2, characterized in that, The instruction is obtained by performing the following processing through a first neural network model: Based on the object characteristics of the virtual object, the virtual resource is predicted to obtain the second time required for the virtual object to collect the virtual resource; When the second duration exceeds the second duration threshold, an instruction is generated to display the settings interface; The first neural network model is trained using virtual resource samples, object feature samples, and instruction annotations.
6. The method according to claim 1, characterized in that, The settings interface displays a data acquisition type setting item and at least one parameter setting item. The settings operation includes a first editing operation for the data acquisition type setting item and a second editing operation for the at least one parameter setting item. The method of responding to the setting operation in the setting interface by displaying the collection parameters set for at least one virtual resource to be collected includes: In response to the first editing operation, the edited collection type in the collection type setting is determined as the type of the virtual resource to be collected; In response to the second editing operation, the parameter being edited in the parameter setting is determined as the acquisition parameter, and the acquisition parameter is displayed.
7. The method according to claim 6, characterized in that, The first editing operation includes a trigger operation and a selection operation; The step of responding to the first editing operation by determining the edited collection type in the collection type setting as the type of the virtual resource to be collected includes: In response to a trigger operation for the collection type setting item, at least one candidate collection type is displayed in the setting interface, wherein the candidate collection type corresponds one-to-one with the type of the virtual resource to be collected; In response to the selection operation for the at least one candidate collection type, the selected candidate collection type is determined as the type of the virtual resource to be collected.
8. The method according to claim 7, characterized in that, The method further includes: The selected candidate collection types are arranged and displayed in the settings interface according to the order in which they are selected. The display position of the selected candidate collection type is related to the collection priority of the virtual resource to be collected corresponding to the selected candidate collection type. In response to a position adjustment operation for the selected candidate acquisition type, the display position of the selected candidate acquisition type is updated in the settings interface.
9. The method of claim 6, wherein, The method further includes: In response to an operation to add the at least one parameter setting item, the added parameter setting item is displayed in the settings interface; In response to a deletion operation on any of the parameter settings, the display of any of the parameter settings is canceled.
10. The method according to claim 1, characterized in that, The settings interface displays a confirmation control, a collection type setting item, and at least one parameter setting item. The collection type setting item is automatically filled with the collection type, and each parameter setting item is automatically filled with the target parameters for collecting the virtual resources of that collection type. The settings operation includes a trigger operation for the confirmation control. The method of responding to the setting operation in the setting interface by displaying the collection parameters set for at least one virtual resource to be collected includes: In response to the triggering operation, the collection type is determined to be the type of the virtual resource to be collected, the target parameter is determined to be the collection parameter, and the collection parameter is displayed.
11. The method of claim 10, wherein, Before displaying the collection parameters set for at least one virtual resource to be collected, the method further includes: The acquisition type is determined from multiple candidate acquisition types; The target parameter is determined from multiple candidate parameters.
12. The method according to claim 11, characterized in that, Determining the acquisition type from multiple candidate acquisition types includes: The target type among the plurality of candidate collection types is determined as the collection type, wherein the target type includes at least one of the following: candidate collection type of virtual resources that can be collected in the virtual scene, candidate collection type of virtual resources that are missing from the virtual object, candidate collection type of virtual resources that are missing from the virtual object's teammates, candidate collection type of virtual resources that are missing from the virtual object's enemies, and candidate collection type of virtual resources whose resource value is greater than a value threshold. Determining the target parameter from multiple candidate parameters includes: The matching parameter among the plurality of candidate parameters is determined as the target parameter, wherein the type of the matching parameter includes at least one of the following: the candidate parameter used by the account controlling the virtual object, the candidate parameter corresponding to the shortest collection path required to execute the candidate parameter, the candidate parameter corresponding to the shortest time required to execute the candidate parameter, and the candidate parameter that is used the most times.
13. The method according to claim 11, characterized in that, Determining the acquisition type from multiple candidate acquisition types includes: The second neural network model is invoked based on the object characteristics of the virtual object; The second neural network model is used to predict the multiple candidate acquisition types to obtain the acquisition type. Determining the target parameter from multiple candidate parameters includes: The target parameter is obtained by predicting the multiple candidate parameters through the second neural network model, wherein the second neural network model is trained by object feature samples, candidate acquisition type samples, candidate parameter samples, acquisition type annotations, and parameter annotations.
14. The method of claim 1, wherein, The method of responding to the setting operation in the setting interface by displaying the collection parameters set for at least one virtual resource to be collected includes: The settings interface displays multiple automatic data collection methods, each of which includes the data collection type of the virtual resource to be collected and the corresponding target parameters. In response to the selection operation for the plurality of automatic acquisition methods, the acquisition type included in the selected automatic acquisition method is determined as the type of the virtual resource to be acquired, the target parameter included in any of the automatic acquisition methods is determined as the acquisition parameter, and the acquisition parameter is displayed.
15. The method of claim 1, wherein, After responding to the setting confirmation operation and controlling the virtual object to collect the virtual resource to be collected according to the collection parameters, the method further includes: In response to the fulfillment of the stop collection condition for the virtual resource to be collected, the virtual object is controlled to stop collecting the virtual resource to be collected. The stop collection condition includes one of the following: the collected virtual resource meets the collection task corresponding to the collection parameters; the virtual object is attacked; the virtual object's stamina value is less than the stamina value threshold, and the decrease in stamina value is positively correlated with the increase in the amount of virtual resource collected by the virtual object; or a stop collection operation is received for the virtual resource to be collected.
16. The method of claim 15, wherein, After controlling the virtual object to stop collecting the virtual resource in response to the fulfillment of the stop collection condition of the virtual resource to be collected, the method further includes: In response to the virtual object's stamina value being greater than or equal to the stamina value threshold, the virtual object is controlled to continue collecting the virtual resources to be collected according to the collection parameters.
17. The method according to any one of claims 1 to 16, characterized in that, The acquisition parameters include at least one of the following: the number of acquisitions for at least one virtual resource to be acquired, the acquisition range for at least one virtual resource to be acquired, the acquisition path for at least one virtual resource to be acquired, and the acquisition time interval for at least one virtual resource to be acquired.
18. The method according to claim 17, characterized in that, The settings interface displays parameter settings for the collection range; The method of responding to the setting operation in the setting interface by displaying the collection parameters set for at least one virtual resource to be collected includes: In response to a trigger operation of a parameter setting item for the collection range, a first prompt message is displayed, wherein the first prompt message is used to prompt the selection of the collection range in the virtual scene; In response to the selection operation, the selected area in the virtual scene is defined as the collection range, and the collection range is displayed.
19. The method according to claim 17, characterized in that, The settings interface displays parameter settings for the acquisition path; The method of responding to the setting operation in the setting interface by displaying the collection parameters set for at least one virtual resource to be collected includes: In response to a trigger operation on the parameter setting item of the acquisition path, a second prompt message is displayed, wherein the second prompt message is used to prompt the user to set the acquisition path in the virtual scene; In response to the setting operation, the set path in the virtual scene is determined as the acquisition path, and the acquisition path is displayed.
20. The method according to claim 17, characterized in that, The settings interface displays a path planning control; The method of responding to the setting operation in the setting interface by displaying the collection parameters set for at least one virtual resource to be collected includes: In response to a trigger operation on the path planning control, the acquisition path is displayed in the virtual scene, wherein the acquisition path is generated at least based on the position of the virtual resource to be acquired in the virtual scene.
21. An apparatus for collecting virtual resources, comprising: The device includes: The first display module is used to display the virtual scene; The second display module is used to display the setting interface for collecting the virtual resources in the virtual scene in response to the fulfillment of the collection setting conditions for the virtual resources; The settings module is used to respond to the settings operation in the settings interface and display the collection parameters set for at least one virtual resource to be collected; The acquisition module is used to control the virtual object to acquire the virtual resources to be acquired according to the acquisition parameters in response to the setting confirmation operation.
22. An electronic device, comprising: The electronic device includes: Memory is used to store computer programs or computer-executable instructions. A processor, when executing a computer program or computer-executable instructions stored in the memory, implements the virtual resource acquisition method according to any one of claims 1 to 20.
23. A computer-readable storage medium, characterized in that, The device stores a computer program or computer-executable instructions, which, when executed by a processor, implement the virtual resource acquisition method according to any one of claims 1 to 20.
24. A computer program product comprising computer programs or computer executable instructions, characterized in that, The computer program or computer executable instructions, when executed by a processor, implement the method of claim 1 to 20 for collecting virtual resources.