Virtual world operation method and device, equipment, storage medium and program product

By consuming the energy of virtual elements in the virtual world to generate virtual events, energy conservation and self-maintenance are achieved, the computing crash caused by high load of online games in virtual worlds is solved, and the game stability and response efficiency are improved.

CN119139692APending Publication Date: 2024-12-17TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310712728.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-06-15
Publication Date
2024-12-17

AI Technical Summary

Technical Problem

Online games in the existing virtual world are prone to computational crashes under high load conditions, reducing player experience and server response efficiency, and it is difficult to effectively control the computing power consumption in the virtual world.

Method used

By receiving events generation instructions for virtual elements, consuming their elemental energy to generate virtual events, realizing the conservation and self-maintenance of energy in the virtual world, avoiding the server's cumbersome and high processing volume alone.

Benefits of technology

It improves the stability and response efficiency of the game, reduces the inefficiency of data processing, and enhances the authenticity of the game and player experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119139692A_ABST
    Figure CN119139692A_ABST
Patent Text Reader

Abstract

The invention discloses a virtual world operation method and device, equipment, a storage medium and a program product, and relates to the technical field of computers. The method comprises the steps that an event generation instruction for a first virtual element is received, the event generation instruction is used for consuming first element energy of the first virtual element and generating a virtual event, the first virtual element is an element forming a virtual world, and the virtual elements in the virtual world achieve energy interaction through the virtual event; on the basis of the event generation instruction, element sub-energy needed for completing the virtual event in the first element energy is consumed; a virtual event is generated based on the element sub-energy consumed by the first virtual element. By means of the mode, conservation of energy in the virtual world can be kept, the problems that various events are tedious and the quantity processing amount is large due to the fact that the server processes the various events purely are solved, and the stability of the game is greatly improved. The method can be applied to various scenes such as cloud technology, artificial intelligence and intelligent transportation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of computer technology, and in particular to a method, device, equipment, storage medium and program product for operating a virtual world. Background Art

[0002] With the improvement of cultural and entertainment living standards, people's life experience and requirements for virtual scenes are getting higher and higher. Games, as a way of expressing virtual scenes, have become a channel for many people to release stress. In current game applications, players participate in different game experiences by performing various game tasks in the virtual world and playing virtual games with virtual objects controlled by different players.

[0003] In the related art, in online games in the context of a virtual world, the virtual world is usually deployed through server control. The server dispatches computing resources based on instructions sent by the player's corresponding terminal to coordinate the game behavior indicated by the instructions.

[0004] However, the corresponding computing resources of the server are limited. When the server receives instructions from a large number of terminals and sends a large amount of computing resources for the operation of the virtual world, computing crashes are likely to occur. It is impossible to control the computing power consumption of the virtual world well, which not only greatly reduces the player's experience of participating in the game, but also increases the huge computing load on the server and reduces the computing efficiency. Summary of the invention

[0005] The embodiments of the present application provide a method, device, equipment, storage medium and program product for operating a virtual world, which can maintain the conservation of energy in the virtual world, avoid the tediousness of simply processing various events by the server itself and the problem of large amount of processing, and greatly improve the stability of the game. The technical solution is as follows.

[0006] In one aspect, a method for operating a virtual world is provided, the method comprising:

[0007] receiving an event generation instruction for a first virtual element, the event generation instruction being used to consume first element energy of the first virtual element and generate a virtual event, the first virtual element being an element constituting the virtual world, the virtual event being an event unit running in the virtual world, and the virtual elements in the virtual world realizing energy interaction through the virtual event;

[0008] Consume element sub-energy required to complete the virtual event in the first element energy based on the event generation instruction;

[0009] The virtual event is generated based on the element sub-energy consumed by the first virtual element.

[0010] In another aspect, a virtual world operation device is provided, the device comprising:

[0011] a receiving module, configured to receive an event generation instruction for a first virtual element, wherein the event generation instruction is used to consume first element energy of the first virtual element and generate a virtual event, wherein the first virtual element is an element constituting the virtual world, the virtual event is an event unit running in the virtual world, and the virtual elements in the virtual world realize energy interaction through the virtual event;

[0012] A consumption module, configured to consume element sub-energy required to complete the virtual event in the first element energy based on the event generation instruction;

[0013] A generating module is used to generate the virtual event based on the element sub-energy consumed by the first virtual element.

[0014] On the other hand, a computer device is provided, comprising a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement a method for operating a virtual world as described in any of the above-mentioned embodiments of the present application.

[0015] On the other hand, a computer-readable storage medium is provided, wherein at least one instruction, at least one program, a code set or an instruction set is stored in the storage medium, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by a processor to implement a method for operating a virtual world as described in any of the above-mentioned embodiments of the present application.

[0016] On the other hand, a computer program product or a computer program is provided, the computer program product or the computer program includes computer instructions, the computer instructions are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the method for operating a virtual world described in any of the above embodiments.

[0017] The beneficial effects brought by the technical solution provided by the embodiment of the present application include at least:

[0018] An event generation instruction for a first virtual element is received, and based on the event generation instruction, the element sub-energy required to complete the virtual event in the first element energy is consumed, thereby generating a virtual event based on the element sub-energy. By converting the element energy of the virtual element into the energy required to generate the virtual event, the conservation of energy in the virtual world can be maintained, avoiding the tediousness of simply processing various events by the server itself and the problem of large amount of processing. Through the energy maintenance and conversion process of the virtual world itself, while improving the authenticity of the game, the inefficiency of data processing is reduced, and the stability of the game is greatly improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0020] Figure 1 is a structural block diagram of an electronic device provided by an exemplary embodiment of the present application;

[0021] Figure 2 It is a schematic diagram of an implementation environment provided by an exemplary embodiment of the present application;

[0022] Figure 3 is a flow chart of a method for operating a virtual world provided by an exemplary embodiment of the present application;

[0023] Figure 4 is a flow chart of a method for operating a virtual world provided by another exemplary embodiment of the present application;

[0024] Figure 5 is a schematic diagram of generating a virtual event using a virtual element provided by an exemplary embodiment of the present application;

[0025] Figure 6 It is a schematic diagram of the structural framework of a zone server and a computing unit provided by an exemplary embodiment of the present application;

[0026] Figure 7 is a schematic diagram of mutual conversion between virtual elements and virtual events provided by an exemplary embodiment of the present application;

[0027] Figure 8 is a flow chart of a method for operating a virtual world provided by another exemplary embodiment of the present application;

[0028] Fig. 9 is a schematic diagram of a virtual event acting on a virtual element provided by an exemplary embodiment of the present application;

[0029] Fig.10 is a schematic diagram of component changes of a virtual element provided by an exemplary embodiment of the present application;

[0030] Fig.11 It is a transmission schematic diagram of a virtual event provided by an exemplary embodiment of the present application being implemented as a one-way transmission event;

[0031] Fig.12 It is a schematic diagram of a transmission of a virtual event as a diffusion event provided by an exemplary embodiment of the present application;

[0032] Fig.13 is a schematic diagram of energy superposition of sub-events provided by an exemplary embodiment of the present application;

[0033] Fig.14 is a schematic diagram of event interaction provided by an exemplary embodiment of the present application;

[0034] Fig.15 It is a schematic diagram of a virtual event crossing zones and servers once provided by an exemplary embodiment of the present application;

[0035] Fig.16 It is a schematic diagram of a virtual event continuously crossing regions and servers provided by an exemplary embodiment of the present application;

[0036] Fig.17 is a structural block diagram of a virtual world operation device provided by an exemplary embodiment of the present application;

[0037] Fig.18 is a structural block diagram of a virtual world operation device provided by another exemplary embodiment of the present application;

[0038] Fig.19 It is a schematic diagram of the structure of a server provided by an exemplary embodiment of the present application. DETAILED DESCRIPTION

[0039] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

[0040] First, a brief introduction is given to the terms involved in the embodiments of the present application.

[0041] Game: also known as network game or online game, is a multiplayer online game that uses the Internet as a transmission medium and a server as a processing terminal. The game provided in this embodiment is derived from the principle of special relativity in modern physics and abandons the game worldview in related technologies. The basic principles of the game worldview in this embodiment are as follows:

[0042] · Time relativity and local inertial reference system: In the related art, each server of the game (referred to as a zone in this embodiment) has a global clock (referred to as a virtual time zone in this embodiment), and the clocks of each zone need to be synchronized, which is similar to the absolute time in classical mechanics. In the new game worldview, there is no need to maintain a global unified clock. Each independent zone in the game only needs to regard itself as a local inertial reference system and maintain its own clock. For example: Zone 1 maintains its own clock 1, which can be a 24-hour system, and Zone 2 maintains its own clock 2, which is a 48-hour system. Clock 1 and clock 2 are different clocks.

[0043] · Principle of the constancy of the speed of light: In related technologies, the time of information transmission in the game is treated as a delay, not as the process of the game, and the game logic assumes that the speed of information transmission is infinite. However, the special theory of relativity points out that the speed of light has an upper limit, that is, the speed of information transmission is limited. In the new game worldview, the process of information transmission itself is also considered part of the game. For example: if a player travels from server 1 to server 2, the process of traveling is also considered part of the game.

[0044] Virtual world: a virtual world displayed or provided by the client corresponding to the game provided in this embodiment during operation. The virtual world can be a simulation environment of the real world, a semi-simulation and semi-fictional environment, or a purely fictional environment. The virtual world can be any one of a two-dimensional virtual world, a 2.5-dimensional virtual world, and a three-dimensional virtual world.

[0045] Virtual object: refers to an movable object in a virtual environment. The movable object can be at least one of a virtual person, a virtual animal, and a cartoon character. Optionally, when the virtual environment is a three-dimensional virtual environment, the virtual object can be a three-dimensional virtual model. Each virtual object has its own shape and volume in the three-dimensional virtual environment and occupies a part of the space in the three-dimensional virtual environment. Optionally, the virtual object is a three-dimensional character built based on three-dimensional human skeleton technology, and the virtual object achieves different external images by wearing different skins. In some implementations, the virtual object can also be implemented using a 2.5-dimensional or 2-dimensional model, which is not limited in the embodiments of the present application.

[0046] Virtual elements: are various elements that appear in the virtual world and are used to constitute the entire virtual world. Virtual elements include land, lakes, the sky, various virtual animals, various virtual plants, various virtual buildings, various virtual props, etc. Virtual objects controlled by players are also a type of virtual elements.

[0047] Zone server: refers to a regional server, or server, node. A zone server is hosted by a server or a server cluster. In this embodiment, the server used to deploy the virtual world includes at least two zone servers, which are not directly connected to each other, but are logically connected through message transfer nodes (or information transmission nodes). Each zone server can only transmit information to other zone servers that are logically connected to itself, but cannot transmit information to other zone servers that are not logically connected to itself.

[0048] In one example, the entire game virtual world is regarded as a sphere (refer to the shape of a football), and the server used to deploy the virtual world includes at least two servers. The sub-virtual world corresponding to each server (refer to each pentagonal area on the football) is distributed on the surface of the virtual world. Each server extends outward and is connected to a limited number of other servers through message forwarding nodes. Each server or message forwarding node has an information transmission path with N servers adjacent to the boundary of the server, that is, there is a signal line connected in the physical world, and information can be sent and received to each other.

[0049] Among them, the server involved in this application can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (Content Delivery Network, CDN), and basic cloud computing services such as big data and artificial intelligence platforms. In addition, the terminal involved in this application can be a smart phone, tablet computer, laptop computer, desktop computer, smart speaker, smart watch, etc., but is not limited to this. The terminal and the server can be directly or indirectly connected via wired or wireless communication, and this application does not limit this.

[0050] Event (or virtual event): is the basic unit of the operation of the virtual world of the entire game in this embodiment. Analogous to the description of events in the theory of relativity, due to the relativity of time in this embodiment, we cannot say that an event occurred in a certain place, but can only say that an event occurred in a certain place and at a certain time in a certain inertial reference system. That is, the event always occurs at the selected [x, y, z, t], where x, y, z are the values ​​of the horizontal coordinate, vertical coordinate and vertical coordinate directions in a certain inertial reference system, and t is the moment in the inertial reference system. Similarly, the events in the virtual world of this embodiment are also described by the event attributes of the event (what event, expressed as what), the zone server where it is located (which inertial reference system, expressed as which), the logical position in the zone server (the spatial position in the selected inertial reference system, expressed as where), and the generation time in the zone server (the generation time in the selected inertial reference system, expressed as when). Therefore, the event description vector corresponding to the event in this embodiment needs to contain at least the above four types of information, and at least the following event description vector is required for description: [what, which, where, when].

[0051] Similarly, the virtual elements in the game of this embodiment can also be abstracted into events, such as what virtual elements are, which zone they are located in, their logical positions in the zone, and the time they are generated in the zone. The only difference from events is that virtual elements will eventually be rendered in the virtual world of the game of this embodiment and can be seen by users. In this embodiment, events and virtual elements can be transformed into and interact with each other. Events can generate virtual elements, and virtual elements can also generate events. It is similar to the relationship between mass and energy in modern physics. Events are more like a kind of energy, and virtual elements are more like a kind of mass. Optionally, events correspond to at least one of virtual energy and virtual mass.

[0052] One-way transmission event: A type of event in this embodiment is an event with a single propagation direction and termination condition. One-way transmission events have virtual energy and virtual mass, and the consumption of virtual energy is related to the propagation of virtual events (described in detail below), and the virtual mass remains unchanged. When the local server simultaneously calculates the same one-way transmission event transmitted from different servers to the local server, the virtual energy corresponding to the one-way transmission event in the local server can be accumulated. Optionally, the termination condition of the one-way transmission event includes: reaching the set number of transmissions, the virtual energy is less than the energy threshold, the event reaches the designated server, and there is no legal propagation direction for continued transmission. Exemplarily, the one-way transmission event can be: a cross-server crossing event in which a player crosses from one server to another, a same-server crossing event in which a player crosses from one computing unit in a server to another computing unit, a cross-server flight event in which a virtual prop crosses from one server to another by flying, and a same-server flight event in which a virtual prop crosses from one computing unit in a server to another by flying. Among them, the virtual energy of one-way transmission events will only be deducted during the process of crossing regions and servers, thereby preventing virtual events from being transmitted infinitely between regions and servers.

[0053] (1) When one-way transmission is transmitted within the server The energy consumption of the virtual event is related to the setting conditions within the server, which include the relevant conditions that affect the energy deduction. The following description is made by taking the relevant conditions as air conditions as an example.

[0054] When the sub-virtual map corresponding to the zone is set to a vacuum state, if a one-way transmission event is transmitted across computing units within the zone, since different computing units under the same zone are used to manage different areas in the sub-virtual map corresponding to the zone, the transmission of virtual events between different computing units is regarded as the transmission of virtual events between different areas under the same sub-virtual map. There is no resistance consumption in a vacuum environment, and the energy in the zone is conserved, so the event energy corresponding to the virtual event will not decrease;

[0055] When the sub-virtual map corresponding to the server is set to a state with air resistance, if a one-way transmission event is transmitted across computing units within the server, air resistance will cause energy consumption. Considering the conservation of energy within the server, the event energy corresponding to the virtual event will be reduced. The reduced energy can be dispersed in the sub-virtual world corresponding to the server in the form of heat energy.

[0056] That is, when a one-way transmission event crosses different computing units in the same zone, the event energy of the one-way transmission event may be deducted or remain unchanged, depending on the relevant conditions that affect the energy deduction.

[0057] (2) When a one-way transmission event crosses servers, the event energy of one-way transmission events can be deducted by setting additional conditions. For example, when a one-way transmission event crosses from one zone to another, a preset amount of energy value is deducted from the event energy, thereby effectively preventing virtual events from being transmitted infinitely between zones.

[0058] Diffusion event: A type of event in this embodiment, which is an event that includes at least two propagation directions. Diffusion events have virtual energy but no virtual mass. Diffusion events can be sent from this server to all servers logically connected to this server, and their virtual energy will decay with the propagation distance. Because if the virtual energy does not decay, it will cause the diffusion event to be passed on forever in the virtual world of the game and will not disappear. When this server simultaneously calculates the same diffusion event transmitted to this server from different servers, the virtual energy corresponding to the diffusion event in this server can be accumulated. Exemplarily, a diffusion event may be an event that needs to be broadcast or notified, such as: a player has received a reward, a player has won a championship in a competition.

[0059] Computing unit: refers to multiple units divided in a server, and a server includes at least two computing units. The computing unit is similar to the multiple parallel computing cores in a GPU (Graphics Processing Unit). All events that occur in the same computing cycle in a computing unit in the same server are simultaneous but different. In a computing unit, we can assume that all events in the same computing cycle occur at the same time and place. According to this definition, because the distance is short, the relativistic effect can be ignored and we can return to the classical mechanics method. That is, in the same server, all virtual elements and events can still run directly according to the same clock and computing cycle in the relevant technology.

[0060] Cloud Technology: refers to a hosting technology that unifies hardware, software, network and other resources within a wide area network or local area network to achieve data computing, storage, processing and sharing.

[0061] Cloud technology is a general term for network technology, information technology, integration technology, management platform technology, application technology, etc. based on the cloud computing business model. It can form a resource pool, which can be used on demand and is flexible and convenient. Cloud computing technology will become an important support. The backend services of the technical network system require a large amount of computing and storage resources, such as video websites, image websites and more portal websites. With the rapid development and application of the Internet industry, in the future, each item may have its own identification mark, which needs to be transmitted to the backend system for logical processing. Data of different levels will be processed separately. All kinds of industry data need strong system backing support, which can only be achieved through cloud computing.

[0062] Cloud Gaming: Also known as gaming on demand, it is an online gaming technology based on cloud computing technology. Cloud gaming technology enables thin clients with relatively limited graphics processing and data computing capabilities to run high-quality games. In a cloud gaming scenario, the game is not played on the player's game terminal, but on a cloud server, which renders the game scene into a video and audio stream and transmits it to the player's game terminal over the network. The player's game terminal does not need to have powerful graphics computing and data processing capabilities, but only needs to have basic streaming media playback capabilities and the ability to obtain player input commands and send them to the cloud server.

[0063] It should be noted that before collecting relevant data of users and during the process of collecting relevant data of users, this application can display a prompt interface, pop-up window or output voice prompt information, and the prompt interface, pop-up window or voice prompt information is used to prompt the user that its relevant data is currently being collected, so that this application only starts to execute the relevant steps of obtaining relevant data of users after obtaining the confirmation operation issued by the user to the prompt interface or pop-up window, otherwise (that is, when the confirmation operation issued by the user to the prompt interface or pop-up window is not obtained), the relevant steps of obtaining relevant data of users are terminated, that is, the relevant data of users are not obtained. In other words, all user data collected by this application are collected with the consent and authorization of the user, and the collection, use and processing of relevant user data need to comply with the relevant laws, regulations and standards of the relevant regions.

[0064] Figure 1 The computer system 100 includes a first terminal 120 , a server 140 , and a second terminal 160 .

[0065] The first terminal 120 is provided with a client that supports a virtual world and is installed and run. Exemplarily, the client may be any one of a battle royale shooting game, a virtual reality (VR) client, an augmented reality (AR) program, a three-dimensional map program, a virtual reality game, an augmented reality game, a first-person shooting game (FPS), a third-person shooting game (TPS), a multiplayer online tactical competitive game (MOBA), and a simulation game (SLG).

[0066] The first terminal 120 is a terminal used by a first user. The first user uses the first terminal 120 to control a first virtual object in the virtual world. The control includes but is not limited to: adjusting body posture, crawling, walking, running, riding, jumping, driving, picking up, shooting, attacking, throwing, building virtual buildings, and crossing to at least one of sub-virtual worlds corresponding to other servers.

[0067] The first terminal 120 is connected to the server 140 via a wireless network or a wired network.

[0068] The server 140 may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server providing cloud computing services, cloud database, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDN), and cloud servers providing basic cloud computing services such as big data and artificial intelligence platforms. The server 140 includes at least one server, multiple servers, a cloud computing platform, and a virtualization center.

[0069] Exemplarily, the server 140 includes a processor 144 and a memory 142, and the memory 142 further includes a receiving module 1421, a control module 1422, and a sending module 1423. The receiving module 1421 is used to receive a request sent by a client, such as a first viewing request to view equipment, or a second viewing request to view a location; the control module 1422 is used to control the rendering of a virtual world screen; and the sending module 1423 is used to send a response to the client, such as sending the currently available equipment to the client, or sending the current location to the client. The server 140 is used to provide background services for the clients of the first terminal 120 and the second terminal 160.

[0070] Optionally, the server 140 undertakes the main computing work, and the first terminal 120 and the second terminal 160 undertake the secondary computing work; or, the server 140 undertakes the secondary computing work, and the first terminal 120 and the second terminal 160 undertake the main computing work; or, a distributed computing architecture is used among the server 140, the first terminal 120 and the second terminal 160 for collaborative computing.

[0071] In this embodiment, the server 140 is also referred to as a zone server. The server used to deploy the virtual world includes a plurality of servers 140 of the same model or different models. The complete virtual world is composed of a plurality of sub-virtual worlds, and a sub-virtual world is deployed on a server 140. A server 140 can be connected to different terminals, for example: the server 140 is connected to the first terminal 120 and the second terminal 160, that is, the first user and the second user are located in the same zone server, and the sub-virtual world corresponding to the server 140 is displayed on the client of the first terminal 120 and the second terminal 160. It should be noted that in this embodiment, the plurality of servers used to deploy the virtual world correspond to different virtual time zones (the clocks are not synchronized), and the number of servers can be continuously increased, and the virtual world can be continuously expanded. Therefore, the virtual world of this embodiment does not have a complete world map, and each sub-virtual world corresponding to the server 140 has a complete sub-world map.

[0072] The second terminal 160 is installed and runs a client that supports the virtual world. The client can be any one of a battle royale shooting game, a virtual reality (VR) client, an augmented reality (AR) program, a three-dimensional map program, a virtual reality game, an augmented reality game, a first-person shooting game (FPS), a third-person shooting game (TPS), a multiplayer online tactical competitive game (MOBA), and a simulation game (SLG).

[0073] The second terminal 160 is a terminal used by a second user. The second user uses the second terminal 160 to control a second virtual object in the virtual world. The control includes but is not limited to: adjusting body posture, crawling, walking, running, riding, jumping, driving, picking up, shooting, attacking, throwing, building virtual buildings, and crossing to at least one of sub-virtual worlds corresponding to other servers.

[0074] Optionally, the virtual objects controlled by the first user through the first terminal 120 and the second user through the second terminal 160 are located at different positions in the same virtual world, that is, the first user and the second user are in the same battle in the same virtual world.

[0075] Optionally, the client installed on the first terminal 120 and the second terminal 160 is the same, or the client installed on the two terminals is the same type of client for different control system platforms. The embodiment of the present application does not limit the form of the client installed on the first terminal 120 and the second terminal 160, including but not limited to App (Application, client), applet, etc. installed in the first terminal 120 and the second terminal 160, and can also be in the form of a web page. The first terminal 120 can refer to one of multiple terminals, and the second terminal 160 can refer to one of multiple terminals. This embodiment only uses the first terminal 120 and the second terminal 160 as an example. The device type of the first terminal 120 and the second terminal 160 is the same, and the device model can be different. The device type includes at least one of: a smart phone, a tablet computer, a wearable device, a PC (Personal Computer, personal computer), a laptop portable computer, and a desktop computer. The following embodiments are illustrated by taking the terminal including a smart phone as an example.

[0076] Those skilled in the art will appreciate that the number of terminals may be more or less. For example, there may be only one terminal (i.e., a user plays against an artificial intelligence), or there may be eight terminals (1v1v1v1v1v1v1v1, with eight users playing against each other in a cycle and eliminating each other, ultimately determining the winner), or more. The embodiments of the present application do not limit the number of terminals and device types.

[0077] In some embodiments, the above server can also be implemented as a node in a blockchain system.

[0078] In the related art, in online games under the background of virtual world, the virtual world is usually deployed through server control. Based on the instructions sent by the terminal corresponding to the player, the server dispatches computing resources to allocate the game behaviors indicated by the instructions. However, the computing resources corresponding to the server are limited. When the server receives instructions from a large number of terminals and dispatches a large number of computing resources for the operation of the virtual world, it is easy to cause computing crashes. It is impossible to control the computing power consumption of the virtual world well, which not only greatly reduces the user experience of players participating in the game, but also increases the huge computing load on the server and reduces the computing efficiency.

[0079] In the embodiment of the present application, a method for operating a virtual world is introduced, which can be executed by a server, so that the deployment process of the virtual world is realized by executing the method by the server. Figure 2 2 is a schematic diagram of a virtual world running through a server provided by the present application, which includes a terminal 210 and a server 220, and the terminal 210 and the server 220 communicate with each other through a communication network 230.

[0080] Illustratively, a game application is installed in the terminal 210. When a player opens the game application, the terminal 210 can render and display the game screen sent by the server 220 through the terminal screen. The game screen includes a game entry screen, a game lobby screen, a virtual world screen and other screens.

[0081] Optionally, the virtual world screen is used to present the virtual world corresponding to the game, and the virtual world includes a variety of virtual elements. Virtual elements are elements that constitute the virtual world, such as: virtual roads, virtual buildings, virtual monsters, non-player characters (NPC), virtual objects controlled by different players, etc.

[0082] In some embodiments, the terminal 210 receives various game operations performed by the player in the game application. When the game operation is implemented as an event generation operation for the first virtual element among multiple virtual elements in the virtual world, an event generation instruction is generated. Among them, the event generation instruction is used to consume the first element energy of the first virtual element and generate a virtual event. Therefore, the event generation operation is used to represent the operation of consuming the first element energy to generate a virtual event. Schematically, the event generation operation is implemented as controlling the main control virtual object (first virtual element) to interact with the NPC, then the main control virtual object is the first virtual element targeted, and the interaction process is implemented as a virtual event, that is: the interaction process is realized by consuming the first element energy of the main control virtual object, etc.

[0083] The terminal 210 sends the generated event generation instruction to the server 220 through the communication network 230. After receiving the event generation instruction, the server 220 consumes the element sub-energy required to complete the virtual event in the first element energy based on the event generation instruction; in addition, the server 220 generates a virtual event based on the element sub-energy consumed by the first virtual element.

[0084] In some embodiments, the server 220 sends rendering data for changing the virtual world based on the virtual event to the terminal 210 , so that the terminal 210 displays the result of changing the virtual world based on the virtual event on the screen.

[0085] By consuming the elemental energy of virtual elements to generate virtual events, the energy conservation in the virtual world is maintained, and the tediousness of simply processing various events by the server itself and the large amount of processing are avoided. Through the energy maintenance and conversion process of the virtual world itself, while improving the authenticity of the game, the inefficiency of data processing is reduced, which can largely avoid the problems of numerical imbalance and contradictions in previous and subsequent settings in traditional games. Controlling the computing power consumption of the server when running the game improves the stability of the game, which is conducive to improving the efficiency of human-computer interaction.

[0086] In combination with the above-mentioned noun introduction and application scenarios, the operation method of the virtual world provided by the present application is described, and the application of the method to the server is used as an example for description. Figure 3 As shown, the method includes the following steps 310 to 330.

[0087] Step 310: Receive an event generation instruction for a first virtual element.

[0088] Schematically, the virtual world controlled and operated by the server includes multiple virtual elements. As elements constituting the entire virtual world, the virtual elements can be implemented as various physical elements in the virtual world, such as virtual ground, virtual lake, virtual sky, virtual buildings, virtual animals, virtual plants, virtual props, virtual objects, etc. The first virtual element is an element constituting the virtual world.

[0089] Optionally, the first virtual element is at least one virtual element among a plurality of virtual elements in the virtual world, and thus the first virtual element is also an element constituting the virtual world.

[0090] Illustratively, the first virtual element is implemented as a main virtual object controlled by a player; or, the first virtual element is implemented as a virtual treasure chest placed on a virtual ground; or, the first virtual element is implemented as a virtual prop picked up by the main virtual object controlled by the player, etc.

[0091] The event generation instruction is used to consume the first element energy of the first virtual element and generate a virtual event.

[0092] Illustratively, after receiving the event generation instruction, the server can determine the first virtual element targeted by the event generation instruction according to the information carried in the event generation instruction.

[0093] For example: multiple virtual elements respectively correspond to element identifiers, which are used to uniquely refer to the virtual element. The event generation instruction received by the server includes the element identifier corresponding to the first virtual element, so that the server determines the first virtual element targeted by the event generation instruction based on the element identifier.

[0094] The first element energy is the energy corresponding to the first virtual element. Schematically, the first virtual element, as a physical form in the virtual world, has a certain mass, and the first element energy can also be regarded as a way to express the mass of the first virtual element.

[0095] Optionally, each of the multiple virtual elements constituting the virtual world has a corresponding element energy, and the element energy is used to quantify the contribution of the virtual element in the virtual world.

[0096] The elemental energies of different virtual elements may be the same or different. For example, the elemental energy of virtual element A is 50, and the elemental energy of virtual element B is also 50; or, the elemental energy of virtual element A is 50, and the elemental energy of virtual element B is also 80.

[0097] The elemental energies of different types of virtual elements may be the same or different. For example: the elemental energy of virtual element A1 of type A is 50, the elemental energy of virtual element A2 of type A is also 50, and the elemental energy of virtual element B1 of type B is also 50; or, the elemental energy of virtual element A1 of type A is 50, the elemental energy of virtual element A2 of type A is also 50, and the elemental energy of virtual element B1 of type B is 60; or, the elemental energy of virtual element A1 of type A is 50, the elemental energy of virtual element A2 of type A is 60, and the elemental energy of virtual element B1 of type B is also 60; or, the elemental energy of virtual element A1 of type A is 50, the elemental energy of virtual element A2 of type A is 60, and the elemental energy of virtual element B1 of type B is also 60; or, the elemental energy of virtual element A1 of type A is 50, the elemental energy of virtual element A2 of type A is 60, and the elemental energy of virtual element B1 of type B is 80, etc.

[0098] In some embodiments, the initial element energy of the virtual element is a value pre-set by a game developer during the process of configuring the game; or, the initial element energy of the virtual element is a value randomly assigned at the beginning of the game, etc.

[0099] Illustratively, as the game progresses, the initial element energy of the virtual element may change, and the change includes both an increase in the element energy and a decrease in the element energy. The first element energy is used to characterize the element energy corresponding to the first virtual element. The first element energy can be realized as the initial element energy of the first virtual element or as the element energy after the energy of the first virtual element changes, which is not limited in the embodiments of the present application.

[0100] In some embodiments, the first virtual element is implemented as a physical element in the virtual world, and the first element energy of the first virtual element is implemented as an element mass corresponding to the first virtual element.

[0101] Optionally, the event generation instruction serves as an instruction for consuming the first element energy and generating a virtual event, which enables the server to execute a consumption process on the first element energy of the first virtual element after determining the targeted first virtual element, and generate a virtual event based on the effect.

[0102] Among them, virtual events are event units running in the virtual world.

[0103] Schematically, virtual events, as events sent in the virtual world, can represent various changes that occur in the virtual world during operation. For example, virtual event 1 is implemented as the interaction between virtual object A1 and virtual object A2 (such as conversation, high five, etc.); or virtual event 2 is implemented as virtual object A1 killing virtual monster B1 in the virtual world; or virtual event 3 is implemented as virtual object A1 running in the virtual world, etc.

[0104] Among them, the virtual object A1 can be regarded as the first virtual element, the above virtual event is the event content expressed for the virtual object 1, and the realization of the above virtual event needs to consume the first element energy corresponding to the virtual object A1.

[0105] That is, virtual events can be used as a medium for interaction between virtual elements, avoiding the need for the server to allocate computing resources for the interaction between virtual elements. Events are generated by consuming the element energy of virtual elements, avoiding the occurrence of events out of thin air. For example, the main virtual object controlled by the player initiates a query to the NPC, and the query process is regarded as the virtual event corresponding to the main virtual object. The query process consumes the element energy of the main virtual object to generate a query event.

[0106] Among them, virtual elements in the virtual world realize energy interaction through virtual events.

[0107] Schematically, when a virtual element needs to interact with other virtual elements, the interaction process needs to be achieved by consuming element energy and generating virtual events. That is, the interaction between virtual elements needs to be achieved through virtual events, and the interaction process is achieved in the form of energy interaction, so that energy conservation can be maintained in the virtual world.

[0108] Step 320: Consume element sub-energy required to complete the virtual event in the first element energy based on the event generation instruction.

[0109] Illustratively, the event-based generation instruction is used to consume the first element energy corresponding to the first virtual element to determine the element sub-energy required to complete the virtual event.

[0110] The element sub-energy is the sub-energy under the first element energy, and is used to characterize the partial energy under the first element energy. For example, if the first element energy is realized as A, the element sub-energy is the partial energy A1 in the first element energy A.

[0111] Optionally, the first element energy is implemented as energy composed of multiple sub-energies, and the element sub-energy is implemented as a certain number of sub-energies. For example, the first element energy is implemented as 100, implemented as energy composed of 100 sub-energies, and the element sub-energy is implemented as 67 sub-energies, then 67 is the first number, etc.

[0112] In some embodiments, the server determines the virtual event that needs to be generated based on the event generation instruction, and thereby determines the sub-energy required to be obtained from the first element energy as the element sub-energy if the virtual event is to be completed based on the first virtual element targeted by the event generation instruction.

[0113] Optionally, the element sub-energy consumed to complete a virtual event is implemented as a value configured by a game developer.

[0114] For example: it is preset that if virtual event A is completed, the value of element sub-energy required to be consumed is 23, and if virtual event B is completed, the value of element sub-energy required to be consumed is 48; or, it is preset that if a virtual event of type A is completed, the value of element sub-energy required to be consumed is 50, and if a virtual event of type B is completed, the value of element sub-energy required to be consumed is 30, and so on.

[0115] Optionally, the element sub-energy required to complete the virtual event is implemented as a value determined according to the object level of the master virtual object.

[0116] The object level is the level of the main virtual object controlled by the player in the virtual world. For example, the object level of the main virtual object at the beginning of the game is level 1, and the object level increases as the game progresses. For example, when the object level of the main virtual object controlled by the player is realized as level 3, the value of the element sub-energy consumed to complete the virtual event is 50; when the object level of the main virtual object controlled by the player is realized as level 5, the value of the element sub-energy consumed to complete the virtual event is 40, and so on.

[0117] Optionally, the element sub-energy consumed to complete the virtual event is implemented as a value determined according to the running time of the virtual world.

[0118] Indicatively, the running time of the virtual world is the running time of the virtual world in the current game. For example, at the beginning of the game, the value of the element sub-energy consumed to complete the virtual event is 10; after a period of time in the game, the value of the element sub-energy consumed to complete the virtual event is 20, and so on.

[0119] It is worth noting that the above are merely illustrative examples and are not limited to the embodiments of the present application.

[0120] Step 330 : Generate a virtual event based on the element sub-energy consumed by the first virtual element.

[0121] Illustratively, after determining the element sub-energy obtained from the first element energy, the element sub-energy consumed by the first virtual element is used as energy for generating the virtual event.

[0122] In an optional embodiment, a virtual event is generated by the element sub-energy consumed by the first virtual element.

[0123] Illustratively, the value of the element sub-energy consumed in the first element energy is 30, and the element sub-energy 30 is used as the energy required to generate the virtual event.

[0124] Optionally, the element sub-energy 30 is converted into the event energy corresponding to the virtual event, and the value of the event energy is 30, that is, the event energy corresponding to the virtual event may be equal to the element sub-energy.

[0125] In an optional embodiment, the event energy corresponding to the virtual event is determined.

[0126] In schematic form, considering that when converting element sub-energy into event energy corresponding to a virtual event, a portion of energy may need to be consumed to realize the conversion process and determine the event energy corresponding to the virtual event.

[0127] Optionally, the event energy corresponding to the virtual event is implemented as a value configured by the game developer; or, the event energy corresponding to the virtual event is implemented as a value determined according to the object level of the master virtual object; or, the event energy corresponding to the virtual event is implemented as a value determined according to the running time of the virtual world, etc.

[0128] Among them, the event energy is less than the element sub-energy.

[0129] Indicatively, based on the fact that the element sub-energy is the energy to complete a virtual event, the event energy is the energy corresponding to the virtual event, so the event energy is less than the element sub-energy. For example, the value of the event energy corresponding to the virtual event is 30, and the value of the element sub-energy to complete the virtual event is 40.

[0130] In an optional embodiment, a virtual event is generated using the difference between the element sub-energy and the event energy as the event propulsion energy.

[0131] Among them, event advancement energy is used to generate virtual events.

[0132] In an illustrative manner, the value of the element sub-energy required to complete a virtual event is 40, the value of the event energy corresponding to the virtual event is 30, and the value of the event advancement energy is 10. The event advancement energy is used to realize the process of consuming the element energy corresponding to the first virtual element and generating a virtual event.

[0133] It is worth noting that the above are merely illustrative examples and are not limited to the embodiments of the present application.

[0134] In summary, an event generation instruction for a first virtual element is received, and the element sub-energy required to complete the virtual event in the first element energy is consumed based on the event generation instruction, thereby generating a virtual event based on the element sub-energy. By converting the element energy of the virtual element into the energy required to generate the virtual event, the conservation of energy in the virtual world can be maintained, avoiding the tediousness of simply processing various events by the server itself and the problem of large amount of processing. Through the energy maintenance and conversion process of the virtual world itself, while improving the authenticity of the game, the inefficiency of data processing is reduced, and the stability of the game is greatly improved.

[0135] In an optional embodiment, different energy consumption is performed on the first virtual element according to the event type of the generated virtual event. Figure 4 As shown above Figure 3 The embodiment shown can also be implemented as the following steps 410 to 440. Figure 3 The illustrated step 320 may also be implemented as the following steps 420 to 430 .

[0136] Step 410: Receive an event generation instruction for a first virtual element.

[0137] The event generation instruction is used to consume the first element energy of the first virtual element and generate a virtual event; the first virtual element is an element constituting the virtual world; and the virtual event is an event unit running in the virtual world.

[0138] In an optional embodiment, an event generation instruction sent by a receiving terminal.

[0139] The event generation instruction is an instruction generated by the terminal based on the received event generation operation.

[0140] Illustratively, the event generation instruction received by the server is an instruction generated and sent by the terminal, and the event generation operation received by the terminal is an operation performed on the first virtual element, that is, the event generation operation is used to trigger the first virtual element.

[0141] For example: when a player controls the main virtual object through the operation terminal to play a game in the virtual world, he triggers any virtual element in the virtual world displayed by the terminal. If the triggering behavior indicates interaction with other virtual elements in the virtual world, then the virtual element is the first virtual element, and the triggering behavior is the event generation operation. The purpose of the triggering behavior is the virtual event generated as indicated by the event generation operation.

[0142] The virtual elements in the virtual world realize energy interaction through virtual events. The interaction between the first virtual element and other virtual elements includes at least one of the following interaction forms.

[0143] (1) The first virtual element interacts with specific other virtual elements

[0144] Illustratively, the triggering behavior executed by the player is realized by the main virtual object running in the virtual world, then the first virtual element is the main virtual object, and there are other specific virtual elements realized as the virtual ground; or, the triggering behavior executed by the player is realized by the main virtual object talking to the NPC, then the first virtual element is the main virtual object, and there are other specific virtual elements realized as the NPC, etc.

[0145] (2) The first virtual element interacts with other unspecified virtual elements

[0146] Illustratively, the triggering behavior executed by the player is implemented as publishing a virtual announcement in a square in the virtual world, then the first virtual element is the main virtual object, and the other unspecified virtual elements are implemented as other virtual objects viewing the virtual announcement, etc.; or, the triggering behavior executed by the player is implemented as spreading virtual potions in the virtual world, then the first virtual element is the main virtual object, and the other unspecified virtual elements are implemented as other virtual objects cured by the virtual potions, etc.

[0147] It is worth noting that the above are merely illustrative examples and are not limited to the embodiments of the present application.

[0148] Step 420, determining the event type based on the event generation instruction.

[0149] The event type is used to characterize the type of virtual event generated by the event generation instruction.

[0150] Illustratively, if the process required for interaction between different virtual elements is called a virtual event, there are numerous virtual events in the virtual world. Considering the complexity of managing virtual events, virtual events of the same event type can be managed uniformly in advance.

[0151] Schematically, the first virtual element is implemented as a main control virtual object, and the interaction between the main control virtual object and other virtual objects is regarded as an event type (such as: event type 1); the interaction between the main control virtual object and different virtual monsters is regarded as another event type (such as: event type 2); the interaction between the main control virtual object and static virtual elements is regarded as another event type (such as: event type 3), etc.

[0152] After receiving the event generation instruction, the virtual event to be generated by the event generation instruction is determined, and the event type corresponding to the virtual event is determined.

[0153] Illustratively, if the virtual event that the event generation instruction needs to generate is an interaction between the main control virtual object and the teammate virtual object (such as: high five), then the event type corresponding to the virtual event is determined to be event type 1; or, if the virtual event that the event generation instruction needs to generate is an interaction between the main control virtual object and a virtual building (such as: attacking a virtual building), then the event type corresponding to the virtual event is determined to be event type 3, etc.

[0154] Step 431, in response to the event type being the first event type, consuming a first sub-energy required to complete the virtual event in the first element energy.

[0155] Among them, the first event type is used to consume the first sub-energy, and the first sub-energy is the element sub-energy consumed under the first event type. The first sub-energy can also be called the first element sub-energy, which means that the first sub-energy is the element sub-energy with a first quantity.

[0156] Illustratively, managing multiple virtual events by event type includes managing energy consumption corresponding to the event type.

[0157] Optionally, based on the settings of the game developer, the energy values ​​corresponding to different event types are determined, such as: event type 1 consumes 10 energy values; event type 2 consumes 14 energy values, and so on.

[0158] In some embodiments, when it is determined that the event type of the virtual event required to be generated by the event generation instruction is the first event type, based on the fact that the first event type consumes the first sub-energy, when the first element energy corresponding to the first virtual element is consumed, the first sub-energy in the first element energy is deducted.

[0159] For example, when the first event type is implemented as event type 1 and the first element energy corresponding to the first virtual element is consumed, the value of the first sub-energy deducted from the first element energy is 10 energy values, that is, 10 energy values ​​are used to represent the first sub-energy.

[0160] Step 432: In response to the event type being the second event type, consuming a second sub-energy required to complete the virtual event in the first element energy.

[0161] Among them, the second event type is used to consume the second sub-energy. The second event type is different from the first event type. The second sub-energy is the element sub-energy consumed under the second event type. The second sub-energy can also be called second element sub-energy, which means that the second sub-energy is element sub-energy with a second quantity.

[0162] Illustratively, the second event type is implemented as event type 2. When the first element energy corresponding to the first virtual element is consumed, the value of the first sub-energy deducted from the first element energy is 14 energy values, that is, 14 energy values ​​are used to represent the second sub-energy.

[0163] Optionally, the values ​​of the first sub-energy and the second sub-energy may be the same. That is, the energy values ​​consumed corresponding to different event types may be the same. For example, event type 1 consumes 10 energy values; event type 2 also consumes 10 energy values, etc. This embodiment of the present application does not limit this.

[0164] In an optional embodiment, based on the event generation instruction, an energy requirement value required to complete the virtual event is determined.

[0165] Illustratively, after receiving the event generation instruction, the energy value required to complete the virtual event is determined as the energy demand value, that is, the energy demand value is used to represent the energy value required to complete the virtual event.

[0166] Optionally, the energy demand value is realized as the event energy corresponding to the virtual event (or the numerical value of the event energy); or, the energy demand value is realized as the sum of the event energy corresponding to the virtual event and the event advancement energy.

[0167] In an optional embodiment, in response to the energy demand value being not greater than the first element energy, element sub-energy in the first element energy is consumed.

[0168] Optionally, when the energy requirement value required to complete the virtual event is not greater than the first element energy corresponding to the first virtual element, the element sub-energy in the first element energy is consumed, and the energy value of the element sub-energy is the same as the energy requirement value.

[0169] Illustratively, when the energy demand value is less than the first element energy, the element sub-energy in the first element energy is consumed.

[0170] like Figure 5 As shown, when a virtual event 520 is generated by consuming the element energy of a virtual element 510, based on the fact that the energy requirement value for completing the virtual event 520 is less than the first element energy corresponding to the virtual element 510, an element sub-energy equal to the energy requirement value is consumed to generate the virtual event 520. The virtual event 520 carries information and energy, wherein the information is event information, the representation is information expressed by the virtual event, and the energy is event energy, which is energy determined based on the element sub-energy corresponding to the virtual element.

[0171] also, Figure 5The consumed virtual element 530 is also included. The consumed virtual element 530 has energy transfer or mass loss. The mass loss is because the virtual element 510 appears as a physical form in the virtual world, and the element energy of the virtual element may be regarded as a mass form.

[0172] Illustratively, when the energy demand value is equal to the first element energy, element sub-energy in the first element energy is consumed, and the element sub-energy is equal to the first element energy.

[0173] Optionally, if the element sub-energy is equal to the first element energy, the first element energy of the first virtual element is set to 0, and the process of generating virtual events cannot be continued, but the element energy can wait to be increased through other virtual events; or, if the element sub-energy is equal to the first element energy, since the first element energy is converted into element energy in the virtual world, the first virtual element disappears from the virtual world, but the element energy is retained, and no energy disappearance occurs.

[0174] In an optional embodiment, in response to the energy demand value being greater than the first element energy, consuming the first element energy based on the event generation operation is stopped.

[0175] Illustratively, when the energy requirement value required to complete a virtual event is greater than the first element energy corresponding to the first virtual element, the first element energy corresponding to the first virtual element is not sufficient to generate the virtual event, and the process of generating the virtual event cannot be achieved by consuming the first element energy, so the first element energy is no longer consumed.

[0176] Optionally, when the energy demand value is greater than the first element energy, feedback information is sent to the terminal to instruct the terminal to change the virtual event through the feedback information; or, the feedback information is used to instruct the terminal that the virtual event cannot be generated, etc.

[0177] Step 440 : Generate a virtual event based on the element sub-energy consumed by the first virtual element.

[0178] The first sub-energy and the second sub-energy are energy consumption conditions of element sub-energy consumed under the first event type and the second event type, respectively.

[0179] Illustratively, when the first element energy in the first virtual element is sufficiently consumed, and the consumed energy value is the element sub-energy, a virtual event is generated based on the element sub-energy.

[0180] In an optional embodiment, the virtual event is implemented as at least two virtual sub-events.

[0181] Illustratively, the virtual event is event A, and the virtual event includes virtual sub-event A1 and virtual sub-event A2.

[0182] In some embodiments, required energies respectively required to generate at least two virtual sub-events are determined, wherein the at least two required energies constitute element sub-energies.

[0183] Illustratively, the energy required to complete virtual sub-event A1 is 32, the energy required to complete virtual sub-event A2 is 26, and the element sub-energy corresponding to virtual event A is 58.

[0184] In some embodiments, the element sub-energies are allocated based on the required energy to obtain an allocation result.

[0185] Illustratively, based on the required energy of 32 for virtual sub-event A1, the energy value allocated to virtual sub-event A1 is 32; based on the required energy of 26 for virtual sub-event A2, the energy value allocated to virtual sub-event A1 is 26, and the result of allocating the energy values ​​is called the allocation result.

[0186] In some embodiments, at least two virtual sub-events are generated based on the allocation result.

[0187] Illustratively, based on the allocation result, the corresponding virtual sub-event is generated using the energy value indicated by the allocation result, that is: virtual sub-event A1 is generated by allocating energy value 32 for completing virtual sub-event A1; virtual sub-event A2 is generated by allocating energy value 26 for completing virtual sub-event A2.

[0188] In an optional embodiment, the server for deploying the virtual world includes multiple zone servers.

[0189] Schematically, the device for deploying the virtual world is implemented as a server, such as a physical server, a cloud server, etc. The server includes multiple zone servers, which are regional servers. Multiple zone servers are used to jointly deploy the virtual world, and multiple zone servers are used to deploy virtual sub-worlds in the virtual world.

[0190] In the embodiment of the present application, multiple servers are relatively independent of each other. The relative independence of the servers is reflected in the local inertial reference system followed by the servers. The local inertial reference systems followed by multiple servers can be different. In other words, there is no need to maintain a globally unified clock. Each independent server in the game only needs to regard itself as a local inertial reference system and maintain its own clock. For example, server 1 maintains its own clock 1, which can be a 24-hour system. Server 2 maintains its own clock 2, which is a 48-hour system. Clock 1 and clock 2 are different clocks.

[0191] The multiple servers are respectively used to manage at least one virtual element, that is, each server can manage at least one virtual element in the virtual world.

[0192] There is no overlap between the virtual elements managed by multiple servers. For example, the server includes two servers, server 1 is used to manage virtual elements A and B, and server 2 is used to manage virtual elements C and D.

[0193] In an optional embodiment, in response to a first virtual element targeted by the event generation instruction being managed by a first server among a plurality of servers, a virtual event is generated in the first server.

[0194] Illustratively, if the received event generation instruction is an instruction for the first virtual element, the server that manages the first virtual element is determined from multiple servers as the first server, and within the first server, the element sub-energy required to complete the virtual event in the first element energy is consumed based on the event generation instruction, and then a virtual event is generated based on the element sub-energy, and the virtual event is located within the first server.

[0195] In some embodiments, the server for deploying the virtual world includes multiple servers, and at least one of the multiple servers includes multiple computing units.

[0196] The computing unit is used to manage at least one virtual element within the zone server.

[0197] Schematically, each zone server includes at least one computing unit, and multiple computing units are respectively used to manage at least one virtual element in the zone server.

[0198] Optionally, the server for deploying the virtual world includes multiple servers, and when each server includes multiple computing units, the computing unit is used as the generation location in the virtual event generation process. For example: when a server includes multiple computing units, the multiple computing units are divided into honeycombs in the sub-virtual world corresponding to the server, and each hexagonal area is a computing unit. Except for the computing units at the border, each computing unit is connected to the six surrounding computing units, and the computing units also transmit and interact information through virtual events.

[0199] Indicatively, Figure 6 As shown, it is a schematic diagram of the framework of the server for deploying the virtual world. It includes multiple servers 610, such as server 1, server 2, server 3, etc.; taking any server (such as server 1) as an example, it includes multiple computing units, such as computing unit 1, computing unit 2, computing unit 3, etc.; taking any computing unit (such as computing unit 3) as an example, the computing unit is used to manage multiple virtual elements in the virtual world, and after receiving an event generation instruction for a virtual element, a virtual event will be generated in the computing unit, so that virtual elements and virtual events exist in the computing unit at the same time.

[0200] Optionally, the server for deploying the virtual world includes multiple zones and servers. When each zone and server includes a computing unit, the zone and server where the computing unit is located is regarded as the computing unit, and the computing unit (or zone and server) is the generation location in the virtual event generation process.

[0201] It is worth noting that the above are merely illustrative examples and are not limited to the embodiments of the present application.

[0202] In an optional embodiment, the virtual element is expressed through an element vector, which is composed of an element attribute component, an element service component, an element position component, and an element time component.

[0203] The element attribute component is used to characterize the element attribute of the virtual element.

[0204] For example, the element attribute is implemented as the element type of the virtual element, such as virtual element a is a virtual element of type A; the element attribute is implemented as the element identifier of the virtual element, which is used to uniquely identify the virtual element to distinguish it from other virtual elements, etc. Therefore, the element attribute component corresponding to the virtual element is used to characterize what kind of virtual element the virtual element is.

[0205] Optionally, the element energy corresponding to the virtual element is stored in the element attribute component, and when the virtual element consumes the element energy or increases the element energy, the element attribute component changes.

[0206] Among them, the element server component is used to represent the server where the virtual element is located.

[0207] Indicatively, different servers have their corresponding managed virtual elements, and when determining the element server component corresponding to a virtual element, the server that manages the virtual element is determined, and the element server component corresponding to the virtual element is determined based on the server. For example, if the server that manages virtual element a is server 1, the element server component corresponding to virtual element a is determined based on server 1. Therefore, the element server component corresponding to a virtual element is used to characterize which server among multiple servers the virtual element is located in.

[0208] Among them, the element position component is used to represent the position information of the virtual element in the zone and server where it is located.

[0209] Schematically, based on the fact that the server for deploying the virtual world includes multiple servers, different servers can be responsible for managing different areas (different sub-virtual worlds) of the virtual world, thereby realizing the process of managing the virtual world through multiple servers. Considering that different servers manage different sub-virtual worlds under the virtual world, after determining the server where the virtual element is located, the position of the virtual element in the sub-virtual world managed by the server can also be determined, thereby determining the element position component corresponding to the virtual element.

[0210] For example: Server 1 is responsible for managing sub-virtual world A in the virtual world, and virtual element a is an element managed by server 1. Then, virtual element a is located in sub-virtual world A in the virtual world. To determine the position of virtual element a in sub-virtual world A, for example, if the position coordinates of virtual element a in sub-virtual world A are (1, 2), the element position component corresponding to virtual element a is determined based on the position coordinates. Therefore, the element position component corresponding to the virtual element is used to characterize the spatial position of the server in which the virtual element is located.

[0211] Optionally, when at least one of the multiple servers includes multiple computing units, the multiple computing units are respectively used to manage at least one virtual element among the multiple virtual elements managed by the server, and the virtual elements managed by the multiple computing units do not overlap. For example: Server 1 among the multiple servers includes multiple computing units (computing unit 1 and computing unit 2), server 1 manages sub-virtual world A, computing unit 1 manages area A1 under sub-virtual world A, then the multiple virtual elements in area A1 are virtual elements managed by computing unit 1; computing unit 2 manages area A2 under sub-virtual world A, then the multiple virtual elements in area A2 are virtual elements managed by computing unit 2, and so on.

[0212] Schematically, when a service includes multiple computing units, when determining the element position component corresponding to a virtual element, the computing unit that manages the virtual element is determined, and then the computing unit obtains the element position component corresponding to the virtual element based on the position of the virtual element in the area it manages (such as: position coordinates, relative position information relative to the area managed by the computing unit, etc.).

[0213] Among them, the element time component is used to represent the time information of the virtual element in the zone and server where it is located.

[0214] Schematically, the server used to deploy the virtual world includes multiple zones and servers, each of which has a corresponding clock. Therefore, when determining the element time component corresponding to a virtual element, it is first necessary to determine the zone and server that manages the virtual element, and then determine the element time component based on the clock corresponding to the zone and server.

[0215] For example, if the server that manages virtual element a is server 1, and the clock followed by server 1 is determined, such as the 24-hour clock followed by server 1, then the element time component corresponding to virtual element a in server 1 is determined based on the clock. Therefore, the element time component corresponding to the virtual element is used to characterize the time situation of the virtual element in the current server.

[0216] In summary, the element vector corresponding to the virtual element is composed of the above four element components, so it can be expressed as [what, which, where, when]. Among them, what is used to represent the element attribute component (hereinafter referred to as the what component), which represents what virtual element is; which is used to represent the element server component (hereinafter referred to as the which component), which represents the server where the virtual element is located (different servers have their own corresponding local inertial reference systems, so it can also be called the local inertial reference system where the virtual element is located); where is used to represent the element position component (hereinafter referred to as the where component), which represents the position of the virtual element in the server (based on the fact that different servers have their own corresponding local inertial reference systems, it can also be called the spatial position of the virtual element in the local inertial reference system); when is used to represent the element time component (hereinafter referred to as the when component), which represents the time when the virtual element is located in the server (based on the fact that different servers have their own corresponding local inertial reference systems, it can also be called the time information of the virtual element in the local inertial reference system).

[0217] In an optional embodiment, a virtual event is represented by an event vector, which includes an event attribute component, an event location component, an event position component, and an event time component.

[0218] Among them, the event attribute component is used to characterize the event attributes of the virtual event.

[0219] For example, the event attribute is implemented as the event type of the virtual event, such as virtual event a is a virtual event of type A; the event attribute is implemented as the event identifier of the virtual event, which is used to uniquely identify the virtual event to distinguish it from other virtual events, etc. Therefore, the event attribute component corresponding to the virtual event is used to characterize what kind of virtual event the virtual event is.

[0220] Optionally, the event energy corresponding to the virtual event is stored in the event attribute component, and when the virtual event consumes the event energy or the element energy is converted into the event energy, the event attribute component changes.

[0221] Among them, the event zone component is used to characterize the zone where the virtual event is located.

[0222] Schematically, virtual events are obtained based on virtual elements. When a virtual event is generated, the virtual event is generated in the zone corresponding to the virtual element. For example, the virtual element a targeted by the event generation instruction is located in zone 1. When the element energy corresponding to virtual element a is consumed to generate a virtual event, the virtual event is generated in zone 1. That is, when the element energy of a virtual element in any zone is consumed to generate a virtual event, the virtual event is generated in the zone, that is, virtual events are not generated across zones.

[0223] The server that generates the virtual event is used as the event server component corresponding to the virtual event, that is, the server where the virtual elements consumed to generate the virtual event are located is used as the event server component corresponding to the virtual event. Therefore, the event server component corresponding to the virtual event is used to characterize which server generated the virtual event.

[0224] The event location component is used to characterize the location information of the virtual event in the zone and server where it is located. Since the server used to deploy the virtual world includes multiple zones and servers, different zones and servers can be responsible for managing different areas (different sub-virtual worlds) of the virtual world, thereby realizing the process of managing the virtual world through multiple zones and servers.

[0225] Optionally, after determining the zone and server for generating the virtual event, an event position component corresponding to the virtual event is determined based on the position of the virtual event in the zone and server when the virtual event is generated.

[0226] Schematically, the elemental energy of the virtual element a in server 1 is consumed to generate a virtual event. The process of generating the virtual event is implemented at position A in the sub-virtual world managed by server 1. The event position component corresponding to the virtual event is determined based on position A, such as: taking position A as the event position component corresponding to the virtual event, etc.

[0227] Optionally, the process of consuming the element energy of virtual elements and generating virtual events is usually faster, and the event position component corresponding to the virtual event is determined based on the position of the consumed virtual elements in the server.

[0228] Illustratively, the elemental energy of virtual element a in server 1 is consumed to generate a virtual event. Virtual element a is located at position B in the sub-virtual world managed by server 1. The event position component corresponding to the virtual event is determined based on position B, such as taking position B as the event position component corresponding to the virtual event.

[0229] In some embodiments, when there is at least one zone among multiple zones and servers that includes multiple computing units, when the element energy of a virtual element under any computing unit is consumed to generate a virtual event, the virtual event is generated under the computing unit, that is, the virtual event is not generated across computing units.

[0230] Optionally, when determining the event position component corresponding to a virtual event, the position of the virtual event in the area managed by the computing unit when the virtual event is generated is determined, thereby obtaining the event position component corresponding to the virtual event; or, the virtual elements consumed in generating the virtual event are determined, and the computing unit that manages the virtual elements is determined, and then the computing unit obtains the event position component corresponding to the virtual event based on the position of the virtual elements in the area managed by it, etc.

[0231] Among them, the event time component is used to represent the time information of the virtual event in the zone and server where it is located.

[0232] Schematically, the server used to deploy the virtual world includes multiple zones and servers, each of which has a corresponding clock. Therefore, when determining the event time component corresponding to a virtual event, it is first necessary to determine the zone and server that generated the virtual event, and then determine the event time component based on the clock corresponding to the zone and server.

[0233] For example, if the server that generates virtual event a is server 1, the clock followed by server 1 is determined. For example, if the clock followed by server 1 is a 24-hour system, the event time component corresponding to virtual event a in server 1 is determined based on the clock. Therefore, the event time component corresponding to the virtual event is used to characterize the time situation of the virtual event in the current server.

[0234] In summary, the event vector corresponding to the virtual event is composed of the above four event components, so it can be expressed as [what, which, where, when]. Among them, what is used to represent the event attribute component; which is used to represent the event location component; where is used to represent the event location component; when is used to represent the event time component.

[0235] In some embodiments, the representation of the event vector corresponding to the virtual event is the same as the representation of the element vector of the virtual element. Due to the same mathematical representation, the virtual elements and virtual events can be transformed and interact with each other, thereby more flexibly participating in the operation and calculation process of the virtual world.

[0236] Indicatively, Figure 7 The figure shows the conversion relationship between virtual elements and virtual events.

[0237] The process of converting the virtual element 710 into the virtual event 720 can be realized by consuming the element energy of the virtual element 710, and the conversion process is realized by generating the virtual event 720 based on the virtual element 710. After the virtual event 720 is generated, the virtual event has part or all of the element energy corresponding to the virtual element 710, and the energy of the virtual event 720 can be called event energy.

[0238] In addition, the process of converting the virtual event 720 into the virtual element 710 can be realized by consuming the event energy of the virtual event 720 , and the conversion process is realized by causing the virtual event 720 to act on the virtual element 710 .

[0239] It is worth noting that Figure 7 The conversion process shown is only a general introduction to the conversion between virtual elements and virtual events, and the virtual elements therein are only a general description of multiple virtual elements. The virtual elements consumed in generating virtual events and the virtual elements acted upon by virtual events can be implemented as the same virtual elements or as different virtual elements, and the embodiments of the present application do not limit this.

[0240] In summary, by converting the elemental energy of virtual elements into the energy required to generate virtual events, the conservation of energy in the virtual world can be maintained, avoiding the tediousness of processing various events by the server itself and the problem of large processing volume. Through the energy maintenance and conversion process of the virtual world itself, the authenticity of the game is improved while reducing the inefficiency of data processing, greatly improving the stability of the game.

[0241] In an embodiment of the present application, different energy consumption contents for the first virtual element are introduced according to the event type of the generated virtual event. According to the event generation instruction for the first virtual element, the event type of the virtual event to be generated is determined, and when the event type is implemented as a first event type for consuming the first sub-energy, the first sub-energy corresponding to the first element energy is consumed, thereby generating a virtual event based on the first sub-energy. The division of event types can make the process of energy consumption and conversion more realistic. Since different event types can consume different sub-energies under the first element energy, the authenticity and fun of the game are improved while ensuring energy conservation.

[0242] In an optional embodiment, after the virtual event is generated, the virtual event is applied to the second virtual element in the virtual world. Figure 8 As shown above Figure 3 The illustrated embodiment then further includes the following steps 810 to 820 .

[0243] Step 810: Determine a second virtual element targeted by the virtual event.

[0244] Illustratively, when a virtual event is generated, the virtual event carries event information, and the event information includes a second virtual element targeted by the virtual event, and the second virtual element is used to represent the virtual element acted upon by the virtual event.

[0245] In some embodiments, the second virtual element is implemented as a virtual element other than the first virtual element, that is, the first virtual element that generates the virtual event and the second virtual element acted upon by the virtual event are different virtual elements.

[0246] In an illustrative manner, the virtual event generated by the first virtual element is implemented as follows: the main virtual object asks the NPC in the virtual world questions about Monster A, and the inquiry event is a virtual event, which carries event information, such as: the object targeted by the virtual event, the question asked by the virtual event, etc. Among them, the object targeted by the virtual event is the NPC, that is, the second virtual element; the question asked by the virtual event is the question about Monster A, etc.

[0247] In some embodiments, the second virtual element is implemented as the first virtual element, that is, the first virtual element that generates the virtual event and the second virtual element acted upon by the virtual event are the same virtual element.

[0248] In an illustrative manner, the virtual event generated by the first virtual element is implemented as follows: the main virtual object hits its own head, and the hitting event is a virtual event, which carries event information, such as: the object targeted by the virtual event, the location where the virtual event hits, etc. Among them, the object targeted by the virtual event is the main virtual object itself, which is the second virtual element and is also the first virtual element that generates the virtual event; the location where the virtual event hits is the head of the main virtual object, etc.

[0249] It is worth noting that the above are merely illustrative examples and are not limited to the embodiments of the present application.

[0250] Step 820: Apply event energy corresponding to the virtual event to the second virtual element.

[0251] Among them, event energy is the energy obtained based on the transformation of element sub-energy.

[0252] Optionally, when all element sub-energies are used to generate a virtual event, the energy value of the event energy is realized as the energy value of the element sub-energies.

[0253] Optionally, when the element sub-energy is partially used to promote the generation of virtual events (event advancement energy) and partially used to generate virtual events, the energy value of the event energy is realized as the energy value in the element sub-energy excluding the event advancement energy.

[0254] Illustratively, after determining the second virtual element targeted by the virtual event, the event energy corresponding to the virtual event is applied to the second virtual element, thereby completing the process of converting the virtual event into the virtual element.

[0255] In some embodiments, the virtual event affects multiple virtual elements, that is, the second virtual element is implemented as multiple virtual elements.

[0256] Illustratively, when the event energy corresponding to the virtual event is applied to the second virtual element, the event sub-energy allocated to each second virtual element is determined from the event information carried by the virtual event, and the corresponding event sub-energy is applied to the corresponding second virtual element based on the result.

[0257] For example: the second virtual element indicated by the virtual event includes virtual element 1 and virtual element 2. The event sub-energy allocated to virtual element 1 is determined to be 3 from the event information carried by the virtual event, and the event sub-energy allocated to virtual element 2 is determined to be 5 from the event information carried by the virtual event. Based on the allocation result, the event energy is applied to virtual element 1 and virtual element 2 to implement the process of acting on the second virtual element.

[0258] In an optional embodiment, in response to the event energy corresponding to the virtual event reaching a preset triggering threshold for triggering the second virtual element, the event energy is applied to the second virtual element.

[0259] Illustratively, the preset trigger threshold is implemented as a pre-set trigger threshold, which is used to represent a threshold condition for triggering the second virtual element to receive the event energy.

[0260] Illustratively, the event energy corresponding to the virtual event is 50. If the preset trigger threshold of the second virtual element is 30, the event energy corresponding to the virtual event reaches the preset trigger threshold for triggering the second virtual element, and the event energy can act on the second virtual element.

[0261] Optionally, in response to the event energy corresponding to the virtual event not reaching a preset triggering threshold for triggering the second virtual element, the event energy cannot be applied to the second virtual element.

[0262] Illustratively, the event energy corresponding to the virtual event is 30. If the preset trigger threshold of the second virtual element is 50, the event energy corresponding to the virtual event does not reach the preset trigger threshold for triggering the second virtual element, and the event energy cannot be applied to the second virtual element.

[0263] In some embodiments, the preset trigger threshold is determined by a virtual element.

[0264] For example, element types of different virtual elements may have different preset trigger thresholds.

[0265] In some embodiments, the preset trigger threshold is determined by the event type of the virtual element and the virtual event.

[0266] For example, the preset trigger threshold of virtual element A when generating virtual event B is preset trigger threshold 1; the preset trigger threshold of virtual element A when generating virtual event C is preset trigger threshold 2, and so on.

[0267] Among them, by setting a preset trigger threshold, the problem of virtual elements being more arbitrarily affected by virtual events can be effectively avoided, thereby effectively avoiding the disorderly operation of the virtual world and improving the authenticity of the virtual world to a certain extent.

[0268] In some embodiments, when the event energy cannot be applied to the second virtual element, the event energy is converted into virtual heat energy and dissipated in the virtual air of the virtual world; or, when the event energy cannot be applied to the second virtual element, the event energy is applied to the first virtual element, thereby returning the element energy consumed from the first virtual element to the first virtual element, etc.

[0269] In an optional embodiment, the second virtual element corresponds to the second element energy.

[0270] The second element energy is the element energy of the second virtual element before being affected by the virtual event.

[0271] In an illustrative manner, the second element energy is realized as the initial element energy corresponding to the second virtual element; or, the second element energy is realized as the element energy of the second virtual element after being acted upon by at least one other virtual event. For example, the initial element energy of the second virtual element is a, and after the second virtual element is acted upon by virtual event 1, the second element energy of the second virtual element becomes a+b; and the virtual event generated based on the first virtual element is virtual event 2, which does not act upon the second virtual element.

[0272] In an optional embodiment, the event energy corresponding to the virtual event is converted into the element energy of the second virtual element to obtain the second virtual element with the third element energy.

[0273] Among them, the third element energy is the sum of the event energy and the second element energy.

[0274] Schematically, the second element energy is a, and the event energy corresponding to the virtual event is c. After the event energy corresponding to the virtual event is applied to the second virtual element, the element energy corresponding to the second virtual element becomes the third element energy, and the energy value is realized as a+c.

[0275] like Fig. 9As shown, after the virtual event 910 is generated, the virtual event 910 carries information (event information) and has energy (event energy). The virtual event 910 acts on the second virtual element 920, that is, the event energy corresponding to the virtual event 910 acts on the second virtual element 920, thereby obtaining the second virtual element 930 after the action. The energy (element energy), mass (mass is because the virtual element appears in a physical form in the virtual world, and the element energy of the virtual element may be regarded as a form of mass) or other information (such as: position and other information) in the second virtual element 930 after the action changes.

[0276] In an optional embodiment, a first event sub-energy consumed in the process of a virtual event reaching a second virtual element is determined, the first event sub-energy being less than the event energy; a difference between the event energy and the first event sub-energy is determined to obtain a second event sub-energy; and the second event sub-energy is converted into an element energy of the second virtual element to obtain a second virtual element having a fourth element energy.

[0277] Among them, the fourth element energy is the sum of the second event sub-energy and the second element energy.

[0278] In an illustrative manner, when the event energy corresponding to the virtual event needs to consume energy when acting on the second virtual element, the energy group consumed when the virtual event acts on the second virtual element is first determined as the first event sub-energy, and then the energy that formally acts on the second virtual element is determined as the second event sub-energy based on the difference between the event energy and the first event sub-energy. Therefore, when the virtual event acts on the second event sub-energy, the second event sub-energy is acted on the second virtual element to obtain a second virtual element having a fourth element energy which is the sum of the second event sub-energy and the second element energy.

[0279] It is worth noting that the above are merely illustrative examples and are not limited to the embodiments of the present application.

[0280] In an optional embodiment, the server for deploying the virtual world includes multiple zone servers.

[0281] Among them, multiple servers are used to manage at least one virtual element respectively.

[0282] In an optional embodiment, in response to the first virtual element and the second virtual element being managed by the first zone server, the event position component and the event time component corresponding to the virtual event are determined, and the element position component and the element time component corresponding to the second virtual element are determined.

[0283] Among them, the virtual element is through the element vector, which includes the element attribute component, the element service component, the element position component and the element time component; the virtual event is through the event vector, which includes the event attribute component, the event service component, the event position component and the event time component.

[0284] Schematically, the first virtual element that generates the virtual event and the second virtual element acted upon by the virtual event are in the same zone and server. Taking the first zone and server as an example, the event position component and event time component corresponding to the virtual event are determined, and the element position component and element time component corresponding to the second virtual element are determined.

[0285] Among them, the event position component corresponding to the virtual event is implemented as the position coordinates corresponding to the virtual event when the virtual event is generated; or, the event position component corresponding to the virtual event is implemented as the position coordinates of the first virtual element that generates the virtual event in the sub-virtual world corresponding to the first zone and server, etc.; the event moment component corresponding to the virtual event is implemented as the moment corresponding to the first zone and server when the virtual event is generated, etc.

[0286] Among them, the element position component corresponding to the second virtual element is implemented as the position coordinates of the second virtual element in the sub-virtual world corresponding to the first zone and server when the virtual event acts on the second virtual element; the element moment component corresponding to the virtual element is implemented as the moment corresponding to the first zone and server when the virtual event acts on the second virtual element.

[0287] In an optional embodiment, in response to the event position component being the same as the element position component, and the event time component being the same as the element time component, the event energy corresponding to the virtual event is applied to the second virtual element.

[0288] Illustratively, when it is determined that the event position component and the event time component corresponding to the virtual event are both the same as the element position component and the element time component corresponding to the virtual element, the event energy corresponding to the virtual event can be applied to the second virtual element.

[0289] In an optional embodiment, the element attribute component of the second virtual element is adjusted according to the event energy corresponding to the virtual event.

[0290] Illustratively, in most cases, when a virtual event acts on a second virtual element, it will change the what component of the second virtual element, for example, causing the element energy (element mass) of the second virtual element to increase or decrease.

[0291] Illustratively, when the second virtual element is implemented as a virtual element such as text or a display screen, the effect of the virtual event may also change the information recorded on the second virtual element, and this information is also part of the what component in the second virtual element.

[0292] Indicatively, after a virtual event acts on a second virtual element, the event energy of the virtual event itself will not disappear out of thin air, but will become part of the elemental energy of the second virtual element, or be dissipated into the zone, while still maintaining the conservation of mass and energy.

[0293] Indicatively, a server, computing units within the server, and virtual elements can choose to ignore virtual events with too low event energy, so that the effect of the virtual event will be ineffective, leaving only the event energy to be spread throughout the server.

[0294] In an optional embodiment, the element position component of the second virtual element is adjusted according to the event energy corresponding to the virtual event.

[0295] Illustratively, in some cases, the event energy corresponding to the virtual event will also change the position coordinates of the second virtual element in the virtual world, thereby realizing the process of adjusting the element position component of the second virtual element, causing forced displacement of the second virtual element.

[0296] For example, a virtual event is realized by attacking a virtual monster. The second virtual element targeted by the virtual event is the virtual monster. The attack operation may cause forced displacement of the virtual monster, thereby realizing the process of adjusting the element position component of the second virtual element with event energy.

[0297] In some embodiments, Fig.10 As shown, the element vectors corresponding to the virtual elements are introduced. Taking any one virtual element 1010 among the multiple virtual elements as an example, all virtual elements in the game world are in a state of change, similar to the four-dimensional space-time of relativity, where all objects are constantly moving. Even if the position of the object in the reference system remains unchanged, its time coordinates are constantly changing in the space-time diagram. For example: the main control virtual object controlled by the player needs to continuously absorb to replenish element energy in order to consume element energy and move to the front of the stationary NPC. During this period, the main control virtual object can pick up or discard items to facilitate game actions.

[0298] Optionally, when a virtual element is stationary in a server or is not affected by other virtual events, the when component in the element vector follows the server's clock, and the other components remain unchanged. In actual engineering practice, the when component of an element may not be stored in the element object, and the server's clock is used directly when the element participates in calculations.

[0299] Alternatively, similar to the Pauli exclusion principle in physics, the where component and when component of each virtual element in a server (or computing unit) cannot be equal at the same time, that is, a point in the space-time coordinates (time coordinates and control coordinates) can only accommodate at most one virtual element. That is, two different virtual elements cannot be in the same position at the same time in a server.

[0300] Optionally, the virtual element moves within the zone, that is, the where component changes, and this process consumes element energy, that is, the energy attribute in the what component will decrease. For example: when the main control virtual object controlled by the player runs, the element energy on the main control virtual object will decrease, and it will be unable to move when the element energy is insufficient.

[0301] Schematically, the what component includes various element information corresponding to the virtual element. The element information is represented in the form of a tree structure. The tree structure includes multiple child nodes, and different child nodes respectively store part of the information in the element information. There are differences in the element information of different virtual elements, so there are differences in the tree structures corresponding to different virtual elements, for example, there are differences in the number of child nodes that make up the tree structure, the partial information stored, etc. When a virtual element is picked up or discarded, the what component corresponding to the virtual element changes, and the what component increases or decreases child nodes (the element attributes still exist, but change); when the virtual element is absorbed or discharged, the what component corresponding to the virtual element changes (the element attributes no longer exist).

[0302] Optionally, taking the movement of the master virtual object in the virtual world as an example, the elemental energy consumed during the movement (the elemental energy corresponding to the master virtual object) will not disappear out of thin air. Similar to heat energy, the elemental energy will be dissipated to the computing unit corresponding to the area where the master virtual object is located (or the server corresponding to the sub-virtual world in which it is located). Schematically, some virtual elements in the computing unit or server can also obtain the dissipated elemental energy. For example: virtual objects controlled by different players can automatically absorb elemental energy distributed in the server to increase their own elemental energy (energy value). Such an energy mechanism can effectively prevent the additional computing pressure caused by player scripts and other behaviors on the operation of the virtual world.

[0303] Optionally, if a virtual element wants to increase its own elemental energy (such as elemental mass), it can do so by picking up or absorbing other elemental energies in the zone, similar to digestion, absorption and wearing. After a virtual element is picked up, its original properties remain unchanged, and it can become an independent virtual element again after being discarded. Only after being absorbed will it completely become a part of the absorber, and all elemental properties will no longer exist, and it will no longer be able to be restored to an independent virtual element.

[0304] Optionally, the virtual elements are restricted to move within the server and cannot cross different servers. If it is necessary to cross servers, it can be achieved by converting the virtual elements into virtual events.

[0305] It is worth noting that the above are merely illustrative examples and are not limited to the embodiments of the present application.

[0306] In summary, by converting the elemental energy of virtual elements into the energy required to generate virtual events, the conservation of energy in the virtual world can be maintained, avoiding the tediousness of processing various events by the server itself and the problem of large processing volume. Through the energy maintenance and conversion process of the virtual world itself, the authenticity of the game is improved while reducing the inefficiency of data processing, greatly improving the stability of the game.

[0307] In the embodiment of the present application, the content of applying a virtual event generated by a first virtual element to a second virtual element is introduced. When the virtual event is implemented as a one-way transmission event, the second virtual element targeted by the generated virtual event is determined, and then when the virtual event is applied to the second virtual element, the event energy of the virtual event is applied to the second virtual element, thereby changing the second element energy of the second virtual element before being applied by the virtual event, obtaining a second virtual element with a third element energy, and realizing the process of the first virtual element and the second virtual element interacting through the virtual event. By using the virtual event as a medium, the virtual event is prevented from being generated out of thin air in the virtual world, which is conducive to maintaining the energy conservation of the virtual world.

[0308] In an optional embodiment, the generated virtual event is implemented in two forms: a one-way transmission event and a diffusion event. The one-way transmission event is an event with a fixed propagation direction and has a clearly targeted second virtual element; the diffusion event is an event including at least two propagation directions, and the virtual elements affected have a certain degree of randomness.

[0309] Optionally, when the virtual event is a one-way transfer event, the action process is implemented based on the second virtual element indicated by the one-way transfer event.

[0310] like Fig.11 As shown, the time period axis 1110 is the time measurement scale of the clock corresponding to the zone where the first virtual element and the second virtual element coexist, including time t1 and time t2. At time t1, the virtual event occurs at A (i.e., position A of the sub-virtual world managed by the zone), and at time t2, the virtual event acts on B (i.e., position B of the sub-virtual world managed by the zone), and B is the position of the second virtual element in the sub-virtual world. Fig.11 In the transmission process of the one-way transmission event shown, the event energy and event information of the virtual event are completely transmitted to the second virtual element.

[0311] In some embodiments, at the level of a computing unit, the effect of a virtual event on a virtual element therein is directly completed within one computing cycle, because relativistic effects are ignored within the computing unit and information is considered to propagate at an infinite speed.

[0312] In some embodiments, the one-way transfer event will directly act on the virtual event or virtual element at the specified position in the next calculation cycle generated, that is, it is possible to act only when the where component and the when component are equal at the same time in the same calculation unit.

[0313] Optionally, when the virtual event is a diffusion event, a process of finding a virtual element acted upon by the virtual event is implemented based on the diffusion event.

[0314] like Fig.12 As shown, the time period axis 1210 is the time measurement scale of the clock corresponding to the zone where the first virtual element and the second virtual element coexist, including time t1 and time t2. At time t1, the virtual event is generated at A (i.e., position A of the sub-virtual world managed by the zone), and at time t2, the virtual event is spread to the entire computing unit (or zone, here taking the computing unit as an example). Fig.12 In the transmission process of the diffusion event shown, the event energy of the virtual event is dispersed (such as: dispersed to various positions of the computing unit), the event information of the virtual event is maintained, and there is a process of calculation at the coordinates of the virtual element and the virtual event, which means that there is a calculation process of the element position component corresponding to the virtual element and the event position component corresponding to the virtual event.

[0315] In an optional embodiment, when a virtual event is implemented as a diffusion event, if the process of the virtual event acting on the virtual element is completed by the zone server, the virtual event is traversed at each location in the sub-virtual world corresponding to the zone server, so that the virtual event acts on the virtual element indicated by the virtual event; if the process of the virtual event acting on the virtual element is completed by the computing unit, the virtual event is traversed at each location in the area corresponding to the computing unit, so that the virtual event acts on the virtual element indicated by the virtual event.

[0316] In some embodiments, the event energy corresponding to the virtual event is broadcasted to obtain a plurality of event sub-energies, and the plurality of event sub-energies correspond to different position components.

[0317] Schematically, different event sub-energies are respectively marked with vectors related to the virtual event, including an attribute component indicating the energy value corresponding to the event sub-energy, a server component indicating the server where the virtual event is located, a location component indicating the location information of the event sub-energy within the server, and a time component indicating the time information of the event sub-energy within the server.

[0318] In response to the presence of a third virtual element at a position indicated by a position component of a third event sub-energy among the plurality of event sub-energies, the third event sub-energy is applied to the third virtual element.

[0319] Illustratively, the third event sub-energy is any one of multiple event sub-energies. If it is determined that there is a virtual element at the indicated position based on the position component corresponding to the third event sub-energy, the virtual element is used as the third virtual element, and the third virtual element is a virtual element used to be acted upon by the third event sub-energy.

[0320] The third event sub-energy is applied to the third virtual element based on the position component. For example, based on the energy value corresponding to the third event sub-energy indicated by the attribute component in the third event sub-energy, the energy value is applied to the third virtual element to implement the application process.

[0321] Optionally, when there is at least one event sub-energy among multiple event sub-energies that determines a third virtual element based on a corresponding position component, the at least one event sub-energy is used as the above-mentioned third event sub-energy to implement a process in which a diffusion event acts on the virtual element.

[0322] In some embodiments, the diffusion event generated in the computing unit will be directly diffused to the entire computing unit in the next computing cycle generated, which will cause the event energy of the virtual event to be evenly distributed in the computing unit. Operations will only be generated at the time and space coordinates where there are virtual elements or virtual events, and in most cases, the event sub-energy of the diffusion event will be ignored because it becomes weak, and thus cannot transmit information or affect the virtual elements.

[0323] Optionally, when the event energy corresponding to the virtual event acts on the second virtual element, the second virtual element may reject the action process.

[0324] Indicatively, if the virtual event directly acts on the second virtual element in the computing unit, the second virtual element may undergo corresponding changes. For example, if the main virtual object states a fact to the NPC, the NPC may obtain information that it did not know before, and its knowledge is enriched, thereby changing the what component of the second virtual element; at the same time, the NPC may also refuse to accept this statement of fact.

[0325] It is worth noting that the above are merely illustrative examples and are not limited to the embodiments of the present application.

[0326] In summary, by converting the elemental energy of virtual elements into the energy required to generate virtual events, the conservation of energy in the virtual world can be maintained, avoiding the tediousness of processing various events by the server itself and the problem of large processing volume. Through the energy maintenance and conversion process of the virtual world itself, the authenticity of the game is improved while reducing the inefficiency of data processing, greatly improving the stability of the game.

[0327] In the embodiment of the present application, two forms of virtual events are introduced, namely, one-way transmission events and diffusion events. When the virtual event is a one-way transmission event, when the virtual event is generated by the first virtual element in one calculation cycle, the virtual event is applied to the second virtual element in the next calculation cycle, and the process of the virtual event acting on the virtual element is realized by changing the second virtual element; when the virtual event is a diffusion event, the event energy is broadcasted to obtain multiple event sub-energies, and the third virtual element with an effect is determined according to the position components corresponding to different event sub-energies and the element position components corresponding to other virtual elements, so that the third event sub-energy is applied to the third virtual element. Through the two forms of one-way transmission events and diffusion events, the effect of virtual events is analyzed more comprehensively, the efficiency of virtual events acting on virtual elements is improved, and the problem that virtual events cannot accurately act on virtual elements is avoided.

[0328] In an optional embodiment, virtual elements and virtual events are in constant transformation and interaction in the virtual world, just like the relationship between energy and matter in the physical world. In most cases, virtual elements and virtual events are constantly interacting with each other in servers or computing units. Only when virtual elements or virtual events cross computing units will they be handled by servers. When crossing servers, they are processed through the logical relationship between servers.

[0329] Illustratively, the process of converting a virtual element into a virtual event and finally acting on the virtual element may include the following parts.

[0330] (I) Virtual elements generate virtual events

[0331] In schematic form, if virtual elements wish to interact with other virtual elements, they must use virtual events as a medium. Most virtual events in the game are generated by virtual elements, and virtual events do not appear out of thin air.

[0332] Optionally, the virtual elements that generate virtual events can be elements placed in the game world, such as items, NPCs, virtual objects controlled by players, etc. That is, all virtual events have a definite source and will not come out of nothing.

[0333] Optionally, generating a virtual event requires consuming element energy (since the virtual element is implemented in a physical form, the virtual element corresponds to the element mass, and the element mass can be called the element energy used for consumption). After the virtual event is generated, the element mass of the virtual element itself, or the attribute of the element energy carried will decrease, similar to the conservation of mass and energy in physics. At the same time, the element energy or element mass required to generate different types of virtual events is also different. When the element mass or element energy is insufficient, virtual events can no longer be generated.

[0334] Based on this, the rule that virtual elements correspond to limited elemental energy or elemental mass limits the number of virtual events that occur, preventing the unlimited generation of virtual events from causing the virtual world to overload its computing power. Under this rule, the specific values ​​of the consumption of elemental mass or elemental energy can be adjusted by game developers, and different virtual worlds will be created with different parameters.

[0335] Optionally, the event information and event energy carried by the virtual event are calculated at the time of generation and recorded in the what component corresponding to the virtual event. At the same time, the what component also records the event identifier (IDentity) of the virtual event, and the event ID identifier is composed of the zone server where the virtual event is generated (which), the time of generation (when), the location in the zone server (where), and the element identifier of the virtual element that generates the virtual event.

[0336] Optionally, if it is stipulated that a virtual element can only send out at most one virtual event in one computing cycle, then the event ID corresponding to the virtual event is globally unique.

[0337] 2. Propagation and calculation of virtual events within computing units

[0338] Schematically, virtual events carry event information and have event energy. Once a virtual event is generated, it will continue to propagate until it acts on virtual elements, servers, or computing units. For example, the query event of the master virtual object is immediately received and processed by the NPC. On the contrary, if the master virtual object does not walk in front of the NPC, but asks aimlessly, the NPC will most likely not respond.

[0339] Optionally, when a virtual event is implemented as a one-way event, such as Fig.11 As shown; when the virtual event is realized as a diffusion event, Fig.12 shown.

[0340] (III) Virtual events act on virtual elements

[0341] Optionally, when a virtual event acts on a second virtual element, such as Fig. 9 As shown, no further description is given here.

[0342] 4. Interaction of Virtual Events

[0343] In some embodiments, virtual events can be superimposed and interfered like light, and virtual events within the computing unit also interact with each other according to the rules of superimposition and interference.

[0344] like Fig.13 As shown, the virtual event 1310 issued by the master virtual object is implemented as a diffusion event, and the energy of the virtual event is dispersed, thereby becoming multiple sub-events, and different sub-events correspond to sub-event energies, such as: sub-event 1311 and sub-event 1312.

[0345] Indicatively, the server based on which the virtual world is deployed also runs a signal collector. When the signal collector captures a large number of sub-events, the captured sub-events will be aggregated together. If the sum of the sub-event energies corresponding to the sub-events may still exceed the response threshold of the NPC, it will have an impact on the NPC.

[0346] Among them, similar to the situation where coherent light sources will produce interference, only virtual events with the same event ID can interact with each other within the computing unit, and the conditions that the where component and the when component are equal must be met at the same time.

[0347] In addition, sub-events and sub-events that meet the interaction conditions complete the interaction within a calculation cycle of the calculation unit, the sub-event energies are superimposed, and the event information corresponding to the sub-events remains unchanged, such as: each sub-event corresponds to complete event information.

[0348] 5. Evolution of Virtual Elements in the Virtual World

[0349] Schematically, all virtual elements in the virtual world are in a state of change, similar to the way all objects are constantly in motion in the four-dimensional space-time of relativity. Even if the position of an object in the reference frame remains unchanged, its time coordinate is constantly changing in the space-time diagram.

[0350] Alternatively, take the analysis of the evolution of virtual elements in a computing unit as an example. Virtual elements in different computing units cannot interact with each other according to the principle of relativity because they are in different positions. Virtual elements in the same computing unit cannot be located in the same space-time coordinates, so virtual elements cannot interact directly with each other. The interaction between two virtual elements must be mediated by virtual events.

[0351] like Fig.14 The figure shows the process of interaction between virtual elements in the same computing unit.

[0352] (1) The time period axis 1410 is the time measurement scale of the clock corresponding to the server where the first virtual element and the second virtual element coexist, including time t1 and time t2. At time t1, the first virtual element generates a directional virtual event, and the target of the virtual event is the second virtual element;

[0353] (2) the virtual event is operated together with the second virtual element at the time and space coordinates of the second virtual element in the next calculation cycle generated to obtain the impact result;

[0354] (3) If the impact result in (2) generates a new virtual event that is fed back to the first virtual element, then in the next calculation cycle, the new virtual event is operated on the first virtual element at the time and space coordinates of the first virtual element to obtain a feedback result.

[0355] (VI) Mutual transformation between virtual elements and virtual events

[0356] Optionally, virtual elements can only cross servers or computing units if they are converted into virtual events.

[0357] like Fig.15 As shown, a schematic diagram is shown of the rise and fall of a virtual event at the intersection of a map boundary corresponding to the virtual world and the virtual event when the virtual event crosses regions and servers.

[0358] Schematically, virtual elements cannot be converted into virtual events everywhere to prepare for crossing zones and servers. Taking the starting zone and server (the zone and server before the virtual event crosses) as zone and server 1510 and the ending zone and server (the zone and server after the virtual event crosses) as zone and server 1520 as examples, the process of converting virtual events into virtual elements is implemented in the following steps.

[0359] (1) The virtual elements need to be moved to the specific boundaries of the sub-virtual map (the map corresponding to the sub-virtual world) in the zone server 1510 first. These locations can be transformed from virtual elements to virtual events. That is, at specific locations, the process of converting virtual elements into virtual events can be realized, and the specific locations are usually located at the boundaries of the sub-virtual map. Optionally, the specific locations can also be realized as other specific points or specific areas in the sub-virtual map, which is not limited in the embodiments of the present application.

[0360] (2) When a virtual element is converted into a virtual event, the what component of the virtual element is recorded in its what component. The generation rule of the event ID of the virtual event is the same as the rule when the virtual element generates the virtual event.

[0361] (3) The event energy carried by the virtual event converted from the virtual element comes from part or all of the element energy carried by the element. After the conversion, the energy value in the what component of the virtual element is deducted accordingly.

[0362] (4) Schematically, in the scenario of crossing services, since the purpose of converting virtual elements into virtual events is to cross server 1510 and move to other servers (such as server 1520), the virtual events converted from virtual elements are implemented as directional events. In the next calculation cycle, the generated virtual events begin to cross the current server to move to other servers indicated by the directional events.

[0363] Optionally, in a scenario spanning different computing units in the same zone and server, the virtual event generated by the virtual element is also implemented as a directional event, and the generated virtual event begins to span the current computing unit to move to other computing units indicated by the directional event.

[0364] (5) When a virtual event crosses a zone or computing unit, the boundary information of the crossing will be recorded and become part of the crossing trajectory. At the same time, the energy deducted based on the crossing will remain in the computing unit or zone before the crossing.

[0365] In some embodiments, taking the example of a virtual event crossing from a starting zone and server to a subsequent zone and server, the process of the virtual event acting in reverse on the virtual element is as follows.

[0366] (1) The virtual event is received by the termination zone and appears at a specific boundary of the sub-virtual map corresponding to the termination zone, that is, the virtual event crosses to the location of the termination zone.

[0367] (2) The virtual event restores the what component of the virtual element from the what component as the what component of the virtual element, and the where component is the coordinate of the specific boundary. The element ID of the virtual element remains unchanged. In other words, all the element attributes of the virtual element in the starting zone are inherited by the virtual element generated in the ending zone.

[0368] (3) The crossing process causes the energy of virtual elements to decrease, but the properties remain unchanged. Therefore, game developers can adjust the energy value consumed by virtual elements to create different game experiences.

[0369] The above content introduces the process of virtual elements crossing from the starting area to the ending area in a single crossing mode, wherein the virtual elements need to move to other crossing starting and ending points on the virtual map before continuing the next crossing.

[0370] In an optional embodiment, the virtual element may sequentially span across multiple zones and servers in a continuous spanning manner. Fig.16 As shown, a schematic diagram is given by way of example in which a virtual element continuously crosses the intermediate servers for multiple times until the terminal server.

[0371] In schematic form, taking into account the characteristics of being in different locations at the same time within the zone (or computing unit), the relativistic effect cannot be ignored. Therefore, after the virtual element reaches the intermediate zone, the movement process of the virtual element within the intermediate zone cannot be completed instantly.

[0372] For example: the starting server is server 1610, the middle server is server 1620, and the ending server is server 1630. After the virtual event is generated from server 1610, when the virtual event terminates the specific point indicated by server 1610, it crosses to server 1620. Specific point 1 of server 1620 is used to receive virtual events sent from server 1610. Since specific point 2 of server 1620 is the specific point for sending virtual events to server 1630, if the virtual event needs to be transferred from server 1620 to server 1630, the virtual event can only be sent to server 1630 when the virtual event terminates specific point 2 of server 1620.

[0373] In some embodiments, based on the tediousness of the above process, when achieving continuous server crossing, the virtual event is not sent to a specific point of the sub-virtual map corresponding to the server, but is directly handed over to the crossing management module in the server.

[0374] Among them, the crossing management module is used to manage the continuous crossing process.

[0375] Indicatively, the crossing management module in the zone and server deducts energy from the virtual event and continues to pass it to the next designated zone and server until the crossing end condition is met. The crossing management module then selects the corresponding crossing start and end points to convert the virtual event back into a virtual element.

[0376] It is worth noting that there is no fundamental contradiction between the two options mentioned above. Instead, they are two options for operating the virtual world, which can coexist, thus providing more possible gameplay for the virtual world.

[0377] Indicatively, a crossing management module is provided in the server, and when a virtual event is realized as a single crossing process when crossing the server, the crossing management module is not started, and the transmission process of the virtual event is realized by triggering the virtual event at a specific point in the virtual map; when a virtual event is realized as a continuous crossing process when crossing the server, the crossing management module is started, thereby realizing the transmission process of the virtual event with the help of the crossing management module; or, a crossing management module is provided in the server, and no matter whether the virtual event is realized as a single crossing process or a continuous crossing process when crossing the server, the transmission process of the virtual event is realized with the help of the crossing management module; or, no matter whether the virtual event is realized as a single crossing process or a continuous crossing process when crossing the server, the transmission process of the virtual event is realized by triggering the virtual event at a specific point in the virtual map, etc.

[0378] It is worth noting that the above are merely illustrative examples and are not limited to the embodiments of the present application.

[0379] In summary, by converting the elemental energy of virtual elements into the energy required to generate virtual events, the conservation of energy in the virtual world can be maintained, avoiding the tediousness of processing various events by the server itself and the problem of large processing volume. Through the energy maintenance and conversion process of the virtual world itself, the authenticity of the game is improved while reducing the inefficiency of data processing, greatly improving the stability of the game.

[0380] In the embodiment of the present application, the energy consumption rules are used to restrict the virtual world, so as to effectively balance the player values ​​and environment values ​​in the virtual world, and to a large extent avoid the problems of value imbalance and contradictions in the previous and subsequent settings in traditional games. Under this restriction, the computing power consumption of running the virtual world will be controlled, and the stability of the game will be better.

[0381] Please refer to Fig.17 , which shows a structural block diagram of a virtual world operation device provided by an exemplary embodiment of the present application, the device includes the following modules:

[0382] The receiving module 1710 is used to receive an event generation instruction for a first virtual element, wherein the event generation instruction is used to consume the first element energy of the first virtual element and generate a virtual event, wherein the first virtual element is an element constituting the virtual world, the virtual event is an event unit running in the virtual world, and the virtual elements in the virtual world realize energy interaction through the virtual event;

[0383] A consumption module 1720, configured to consume sub-energy required to complete the virtual event in the first element energy based on the event generation instruction;

[0384] The generating module 1730 is configured to generate the virtual event based on the sub-energy consumed by the first virtual element.

[0385] In an optional embodiment, the consumption module 1720 is also used to determine the event type based on the event generation instruction, and the event type is used to characterize the type of virtual event generated as instructed by the event generation instruction; in response to the event type being a first event type, the first sub-energy required to complete the virtual event in the first element energy is consumed, and the first event type is used to consume the first sub-energy, and the first sub-energy is used to represent a first quantity of element sub-energy.

[0386] In an optional embodiment, the consumption module 1720 is also used to consume a second sub-energy required to complete the virtual event in the first element energy in response to the event type being a second event type, the second event type being used to consume the second sub-energy, the second sub-energy being used to represent a second amount of element sub-energy, and the second event type being different from the first event type.

[0387] In an optional embodiment, the generation module 1730 is also used to generate the virtual event from the element sub-energy consumed by the first virtual element; or, determine the event energy corresponding to the virtual event, and the event energy is less than the element sub-energy; use the difference between the element sub-energy and the event energy as the event propulsion energy to generate the virtual event, and the event propulsion energy is used to generate the virtual event.

[0388] In an optional embodiment, the virtual event is implemented as at least two virtual sub-events;

[0389] The generation module 1730 is also used to determine the required energy required to generate at least two virtual sub-events respectively, wherein at least two required energies constitute the element sub-energy; based on the required results, the element sub-energy is allocated to the at least two virtual sub-events to obtain an allocation result; and based on the allocation result, the at least two virtual sub-events are generated.

[0390] In an optional embodiment, the server for deploying the virtual world includes a plurality of zone servers, and the plurality of zone servers are respectively used to manage at least one virtual element;

[0391] The generating module 1730 is further configured to generate the virtual event in a first server among the multiple servers in response to the first virtual element targeted by the event generating instruction being managed by the first server.

[0392] In an optional embodiment, at least one of the multiple servers includes multiple computing units, and the computing units are used to manage at least one virtual element in the server;

[0393] The generation module 1730 is further configured to generate the virtual event in a first computing unit in response to the first virtual element targeted by the event generation instruction being managed by the first computing unit among the multiple computing units.

[0394] like Fig.18 As shown, in an optional embodiment, the virtual event includes a one-way transmission event, and the one-way transmission event is an event with a single propagation direction;

[0395] The device also includes:

[0396] The action module 1740 is used to determine the second virtual element targeted by the virtual event, and the second virtual element is used to represent the virtual element acted upon by the virtual event; the event energy corresponding to the virtual event is acted on the second virtual element, and the event energy is energy obtained based on the conversion of the element sub-energy.

[0397] In an optional embodiment, the action module 1740 is further configured to, in response to the event energy corresponding to the virtual event reaching a preset triggering threshold for triggering the second virtual element, apply the event energy to the second virtual element.

[0398] In an optional embodiment, the second virtual element corresponds to the second element energy before being acted upon by the virtual event;

[0399] The action module 1740 is also used to convert the event energy corresponding to the virtual event into the element energy of the second virtual element to obtain the second virtual element with a third element energy, wherein the third element energy is the sum of the event energy and the second element energy; or, determine the first event sub-energy consumed in the process of the virtual event reaching the second virtual element, wherein the first event sub-energy is less than the event energy; determine the difference between the event energy and the first event sub-energy to obtain the second event sub-energy; convert the second event sub-energy into the element energy of the second virtual element to obtain the second virtual element with a fourth element energy, wherein the fourth element energy is the sum of the second event sub-energy and the second element energy.

[0400] In an optional embodiment, the server for deploying the virtual world includes a plurality of zone servers, and the plurality of zone servers are respectively used to manage at least one virtual element;

[0401] The virtual element is represented by an element vector, and the element vector is composed of at least one of an element attribute component, an element zone component, an element position component, and an element time component;

[0402] The virtual event is represented by an event vector, and the event vector is composed of at least one of an event attribute component, an event location component, an event position component, and an event time component.

[0403] In an optional embodiment, the element vector is composed of an element position component and an element time component, and the event vector is composed of an event position component and an event time component;

[0404] The action module 1740 is also used to determine the event position component and event time component corresponding to the virtual event, and determine the element position component and element time component corresponding to the second virtual element in response to the first virtual element and the second virtual element being managed by the first zone among the multiple zones; in response to the event position component being the same as the element position component, and the event time component being the same as the element time component, the event energy corresponding to the virtual event is applied to the second virtual element.

[0405] In an optional embodiment, the element attribute component includes the element energy corresponding to the virtual element, and the event attribute component includes the event energy corresponding to the virtual event;

[0406] The action module 1740 is further configured to adjust the element attribute component of the second virtual element with the event energy corresponding to the virtual event; or, to adjust the element position component of the second virtual element with the event energy corresponding to the virtual event.

[0407] In an optional embodiment, the virtual event includes a diffusion event;

[0408] The action module 1740 is also used to broadcast the event energy corresponding to the virtual event to obtain multiple event sub-energies, and the multiple event sub-energies correspond to different position components; in response to the presence of a third virtual element at the position indicated by the position component of the third event sub-energy in the multiple event sub-energies, the third event sub-energy is applied to the third virtual element.

[0409] In an optional embodiment, the generation module 1730 is also used to determine the energy requirement value required to complete the virtual event based on the event generation instruction; in response to the energy requirement value being not greater than the first element energy, consume the element sub-energy required to complete the virtual event in the first element energy; in response to the energy requirement value being greater than the first element energy, stop consuming the first element energy based on the event generation operation.

[0410] In an optional embodiment, the receiving module 1710 is further used to receive the event generation instruction sent by the terminal, where the event generation instruction is an instruction generated by the terminal based on the received event generation operation; wherein the event generation operation is used to trigger the first virtual element.

[0411] In summary, by converting the elemental energy of virtual elements into the energy required to generate virtual events, the conservation of energy in the virtual world can be maintained, avoiding the tediousness of processing various events by the server itself and the problem of large processing volume. Through the energy maintenance and conversion process of the virtual world itself, the authenticity of the game is improved while reducing the inefficiency of data processing, greatly improving the stability of the game.

[0412] It should be noted that the virtual world operation device provided in the above embodiment is only illustrated by the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the virtual world operation device provided in the above embodiment and the virtual world operation method embodiment belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.

[0413] Fig.19 The schematic diagram of the structure of a server provided by an exemplary embodiment of the present application is shown, which specifically includes the following structure.

[0414] The server 1900 includes a central processing unit (CPU) 1901, a system memory 1904 including a random access memory (RAM) 1902 and a read only memory (ROM) 1903, and a system bus 1905 connecting the system memory 1904 and the central processing unit 1901. The server 1900 also includes a mass storage device 1906 for storing an operating system 1913, application programs 1914, and other program modules 1915.

[0415] The mass storage device 1906 is connected to the central processing unit 1901 through a mass storage controller (not shown) connected to the system bus 1905. The mass storage device 1906 and its associated computer-readable media provide non-volatile storage for the server 1900. That is, the mass storage device 1906 may include a computer-readable medium (not shown) such as a hard disk or a compact disc read only memory (CD-ROM) drive.

[0416] Without loss of generality, computer-readable media may include computer storage media and communication media. Computer storage media include volatile and non-volatile, removable and non-removable media implemented by any method or technology for storing information such as computer-readable instructions, data structures, program modules or other data. Computer storage media include RAM, ROM, Erasable Programmable Read Only Memory (EPROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other solid-state storage technologies, CD-ROM, Digital Versatile Disc (DVD) or other optical storage, cassettes, tapes, disk storage or other magnetic storage devices. Of course, those skilled in the art will appreciate that computer storage media are not limited to the above. The above-mentioned system memory 1904 and mass storage device 1906 can be collectively referred to as memory.

[0417] According to various embodiments of the present application, the server 1900 can also be connected to a remote computer on the network through a network such as the Internet. That is, the server 1900 can be connected to the network 1912 through the network interface unit 1911 connected to the system bus 1905, or the network interface unit 1911 can be used to connect to other types of networks or remote computer systems (not shown).

[0418] The above-mentioned memory also includes one or more programs, and the one or more programs are stored in the memory and configured to be executed by the CPU.

[0419] The embodiment of the present application also provides a computer device, which includes a processor and a memory, wherein at least one instruction, at least one program, code set or instruction set is stored in the memory, and the at least one instruction, at least one program, code set or instruction set is loaded and executed by the processor to implement the operation method of the virtual world provided by the above-mentioned method embodiments. Optionally, the computer device can be a terminal or a server.

[0420] An embodiment of the present application also provides a computer-readable storage medium, on which is stored at least one instruction, at least one program, code set or instruction set, and the at least one instruction, at least one program, code set or instruction set is loaded and executed by a processor to implement the virtual world operation method provided by the above-mentioned method embodiments.

[0421] The embodiments of the present application also provide a computer program product or a computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the method for operating a virtual world described in any of the above embodiments.

[0422] Optionally, the computer readable storage medium may include: a read-only memory (ROM), a random access memory (RAM), a solid state drive (SSD), or an optical disk. Among them, the random access memory may include a resistance random access memory (ReRAM) and a dynamic random access memory (DRAM). The serial numbers of the above embodiments of the present application are only for description and do not represent the advantages and disadvantages of the embodiments.

[0423] Those skilled in the art can understand that all or part of the steps of implementing the above embodiments can be completed by hardware, or by a program to instruct the relevant hardware to complete, and the program can be stored in a computer-readable storage medium, and the above-mentioned storage medium can be a read-only memory, a disk or an optical disk, etc. The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims

1. A method for operating a virtual world, characterized in that: The method comprises: receiving an event generation instruction for a first virtual element, the event generation instruction being used to consume first element energy of the first virtual element and generate a virtual event, the first virtual element being an element constituting the virtual world, the virtual event being an event unit running in the virtual world, and the virtual elements in the virtual world realizing energy interaction through the virtual event; Consume element sub-energy required to complete the virtual event in the first element energy based on the event generation instruction; The virtual event is generated based on the element sub-energy consumed by the first virtual element.

2. The method according to claim 1, characterized in that The step of consuming the element sub-energy required to complete the virtual event in the first element energy based on the event generation instruction includes: Determine an event type based on the event generation instruction, where the event type is used to characterize the type of the virtual event generated as instructed by the event generation instruction; In response to the event type being a first event type, a first sub-energy required to complete the virtual event in the first element energy is consumed, the first event type is used to consume the first sub-energy, and the first sub-energy is used to represent a first amount of element sub-energy.

3. The method according to claim 2, characterized in that The method further comprises: In response to the event type being a second event type, a second sub-energy required to complete the virtual event in the first element energy is consumed, the second event type is used to consume the second sub-energy, the second sub-energy is used to represent a second amount of element sub-energy, and the second event type is different from the first event type.

4. The method according to any one of claims 1 to 3, characterized in that: The generating the virtual event based on the element sub-energy consumed by the first virtual element comprises: generating the virtual event by the element sub-energy consumed by the first virtual element; or, Determine the event energy corresponding to the virtual event, wherein the event energy is less than the element sub-energy; use the difference between the element sub-energy and the event energy as event propulsion energy to generate the virtual event, and the event propulsion energy is used to generate the virtual event.

5. The method according to any one of claims 1 to 3, characterized in that: The virtual event is implemented as at least two virtual sub-events; The generating the virtual event based on the element sub-energy consumed by the first virtual element comprises: Determine required energies respectively required to generate at least two virtual sub-events, wherein at least two required energies constitute the element sub-energy; Allocating the element sub-energy to the at least two virtual sub-events based on the demand result to obtain an allocation result; The at least two virtual sub-events are generated based on the allocation result.

6. The method according to any one of claims 1 to 3, characterized in that: The server for deploying the virtual world includes a plurality of zone servers, each of which is used to manage at least one virtual element; The method further comprises: In response to a first virtual element targeted by the event generation instruction being managed by a first server among the multiple servers, the virtual event is generated in the first server.

7. The method according to claim 6, characterized in that At least one of the multiple servers includes multiple computing units, and the computing units are used to manage at least one virtual element in the server; The method further comprises: In response to a first virtual element targeted by the event generation instruction being managed by a first computing unit among the plurality of computing units, the virtual event is generated in the first computing unit.

8. The method according to any one of claims 1 to 3, characterized in that: The virtual event includes a one-way transmission event, which is an event with a single propagation direction; After the virtual event is generated based on the element sub-energy consumed by the first virtual element, the method further includes: Determining a second virtual element targeted by the virtual event, where the second virtual element is used to represent the virtual element acted upon by the virtual event; The event energy corresponding to the virtual event is applied to the second virtual element, wherein the event energy is energy obtained by converting the element sub-energy.

9. The method according to claim 8, characterized in that The applying the event energy corresponding to the virtual event to the second virtual element includes: In response to the event energy corresponding to the virtual event reaching a preset triggering threshold for triggering the second virtual element, the event energy is applied to the second virtual element.

10. The method according to claim 8, characterized in that The second virtual element corresponds to the second element energy before being acted upon by the virtual event; The applying the event energy corresponding to the virtual event to the second virtual element includes: Converting the event energy corresponding to the virtual event into the element energy of the second virtual element to obtain the second virtual element having a third element energy, where the third element energy is the sum of the event energy and the second element energy; or, Determine a first event sub-energy consumed in the process of the virtual event reaching the second virtual element, the first event sub-energy being less than the event energy; determine the difference between the event energy and the first event sub-energy to obtain a second event sub-energy; convert the second event sub-energy into element energy of the second virtual element to obtain a fourth element energy for the second virtual element, the fourth element energy being the sum of the second event sub-energy and the second element energy.

11. The method according to claim 8, characterized in that The server for deploying the virtual world includes a plurality of zone servers, each of which is used to manage at least one virtual element; The virtual element is represented by an element vector, and the element vector is composed of at least one of an element attribute component, an element zone component, an element position component, and an element time component; The virtual event is represented by an event vector, and the event vector is composed of at least one of an event attribute component, an event location component, an event position component, and an event time component.

12. The method according to claim 11, characterized in that The element vector is composed of an element position component and an element time component, and the event vector is composed of an event position component and an event time component; The applying the event energy corresponding to the virtual event to the second virtual element includes: In response to the first virtual element and the second virtual element being managed by a first server among the multiple servers, determining an event position component and an event time component corresponding to the virtual event, and determining an element position component and an element time component corresponding to the second virtual element; In response to the event position component being the same as the element position component, and the event time component being the same as the element time component, the event energy corresponding to the virtual event is applied to the second virtual element.

13. The method according to claim 11, characterized in that The element attribute component includes the element energy corresponding to the virtual element, and the event attribute component includes the event energy corresponding to the virtual event; The applying the event energy corresponding to the virtual event to the second virtual element includes: adjusting the element attribute component of the second virtual element according to the event energy corresponding to the virtual event; or, The element position component of the second virtual element is adjusted according to the event energy corresponding to the virtual event.

14. The method according to any one of claims 1 to 3, characterized in that: The virtual events include diffusion events; After the virtual event is generated based on the element sub-energy consumed by the first virtual element, the method further includes: Broadcasting the event energy corresponding to the virtual event to obtain a plurality of event sub-energies, wherein the plurality of event sub-energies correspond to different position components; In response to a third virtual element existing at a position indicated by a position component of a third event sub-energy among the plurality of event sub-energies, the third event sub-energy is applied to the third virtual element.

15. The method according to any one of claims 1 to 3, characterized in that: The method further comprises: Based on the event generation instruction, determining an energy requirement value required to complete the virtual event; In response to the energy demand value being not greater than the first element energy, consuming the element sub-energy required to complete the virtual event in the first element energy; In response to the energy demand value being greater than the first element energy, consuming the first element energy based on the event generating operation is stopped.

16. The method according to any one of claims 1 to 3, characterized in that: The receiving an event generation instruction for a first virtual element includes: Receiving the event generation instruction sent by the terminal, where the event generation instruction is an instruction generated by the terminal based on the received event generation operation; The event generation operation is used to trigger the first virtual element.

17. A virtual world operation device, characterized in that: The device comprises: a receiving module, configured to receive an event generation instruction for a first virtual element, wherein the event generation instruction is used to consume first element energy of the first virtual element and generate a virtual event, wherein the first virtual element is an element constituting the virtual world, the virtual event is an event unit running in the virtual world, and the virtual elements in the virtual world realize energy interaction through the virtual event; A consumption module, configured to consume element sub-energy required to complete the virtual event in the first element energy based on the event generation instruction; A generating module is used to generate the virtual event based on the element sub-energy consumed by the first virtual element.

18. A computer device, characterized in that: The computer device includes a processor and a memory, wherein the memory stores at least one program, and the at least one program is loaded and executed by the processor to implement the method for operating the virtual world as described in any one of claims 1 to 16.

19. A computer-readable storage medium, characterized in that: The storage medium stores at least one program, and the at least one program is loaded and executed by the processor to implement the method for operating the virtual world as described in any one of claims 1 to 16.

20. A computer program product, characterized in that The method comprises computer instructions, which, when executed by a processor, implements the method for operating a virtual world as claimed in any one of claims 1 to 16.