Data loading method and device, client, server and storage medium

By sending resource loading requests to the server in a virtual scenario and receiving virtual resource data, the problem of low loading efficiency of virtual resource data in a virtual scenario is solved, the loading speed of virtual roles and events is improved, and the user experience is improved.

CN119248367APending Publication Date: 2025-01-03BEIJING QIYI CENTURY SCI & TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411181415.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-27
Publication Date
2025-01-03

AI Technical Summary

Technical Problem

In virtual scenarios, it is difficult for the prior art to efficiently load data in virtual resources, resulting in the loading process of virtual roles and events that are too slow and affect the user experience.

Method used

The client sends a resource loading request to the server that contains the user identity and the target start running time. The server determines the target virtual resource to be loaded based on the user identity and the target start running time and sends it to the client. Loading based on the received virtual role data and event data.

Benefits of technology

It realizes efficient loading of virtual resource data, improves the loading speed of virtual roles and events, and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119248367A_ABST
    Figure CN119248367A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a data loading method and device, a client, a server and a storage medium. Relates to the technical field of data processing, is applied to a client, and comprises the following steps: sending a resource loading request containing a user identity identifier and a target start operation moment to a server, so that the server loads a resource to the client according to the user identity identifier and the target start operation moment; determining a target virtual resource to be loaded from the virtual resources corresponding to the stored user identity identifier, and sending the target virtual resource to the client; receiving a target virtual resource; and loading the target virtual role based on the target virtual role data in the target virtual resource, and loading the target event based on the initialization event data in the target virtual resource. By applying the scheme provided by the embodiment of the invention, the data in the virtual resources can be loaded.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a data loading method, device, client, server and storage medium. Background Art

[0002] A virtual scene is a scene that simulates a real scene through virtual technology. In the process of simulating a virtual scene, the client needs to load the virtual characters and the events in which the virtual characters participate based on the virtual resources sent by the server.

[0003] Therefore, it is necessary to provide a data loading method to load the data in the virtual resource. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide a data loading method, device, client, server and storage medium to load data in virtual resources. The specific technical solution is as follows:

[0005] In a first aspect of an embodiment of the present application, a data loading method is first provided, which is applied to a client, and the method includes:

[0006] Sending a resource loading request including a user identity identifier and a target start time of operation to a server, so that the server determines a target virtual resource to be loaded from the stored virtual resources corresponding to the user identity identifier according to the user identity identifier and the target start time of operation, and sends the target virtual resource to the client;

[0007] The target virtual resource includes target virtual character data and initialization event data of the target virtual character, wherein the target virtual character data indicates the character state of the target virtual character at the target start time, and the initialization event data indicates the state of the target event in which the target virtual character participates at the target start time;

[0008] receiving the target virtual resource;

[0009] A target virtual character is loaded based on the target virtual character data in the target virtual resource, and a target event is loaded based on the initialization event data in the target virtual resource.

[0010] In a possible embodiment, the target start execution time is a time of specifying an operation instruction, or a time recorded in the target virtual resource stored by the server.

[0011] In a possible embodiment, the target virtual resource further includes target scene map data, and the target scene map represented by the target scene map data is: the scene map where the target virtual character is located at the target start running time; after receiving the target virtual resource, the method further includes:

[0012] Based on the target scene map data, the target scene map where the target virtual character is located is loaded.

[0013] In a possible embodiment, the method further includes:

[0014] In response to the resource storage instruction, the virtual resource corresponding to the user identity at the current moment is uploaded to the server.

[0015] In a possible embodiment, when there are multiple target virtual characters, target virtual character data corresponding to each target virtual character in the target virtual resource is received and sent by the server through multiple threads respectively.

[0016] In a possible embodiment, when there are multiple target virtual characters, each target virtual character is loaded respectively through multiple threads.

[0017] In a second aspect of the embodiment of the present application, a data loading method is further provided, which is applied to a server, and the method includes:

[0018] In response to a resource loading request including a user identity and a target start time of operation sent by a client, a target virtual resource to be loaded is determined from the stored virtual resources corresponding to the user identity according to the user identity and the target start time of operation;

[0019] Sending the target virtual resource to the client, so that after receiving the target virtual resource, the client loads the target virtual character based on the target virtual character data in the target virtual resource, and loads the target event based on the initialization event data in the target virtual resource;

[0020] Among them, the target virtual resources include target virtual character data and initialization event data of the target virtual character, the target virtual character data represents the role state of the target virtual character at the target start time, and the initialization event data represents the state of the target event in which the target virtual character participates at the target start time.

[0021] In a possible embodiment, the target start execution time is a time of specifying an operation instruction, or a time recorded in the target virtual resource stored by the server.

[0022] In a possible embodiment, the target virtual resource further includes target scene map data, and the target scene map represented by the target scene map data is: a scene map where the target virtual character is located at the target start running time; sending the target virtual resource to the client so that the client loads the target virtual character based on the target virtual character data in the target virtual resource after receiving the target virtual resource, and loads the target event based on the initialization event data in the target virtual resource, including:

[0023] The target virtual resource is sent to the client, so that after receiving the target virtual resource containing the target scene map data, the client loads the target virtual character based on the target virtual character data in the target virtual resource, loads the target scene map where the target virtual character is located based on the target scene map data in the target virtual resource, and loads the target event based on the initialization event data in the target virtual resource.

[0024] In a possible embodiment, the method further includes:

[0025] Receive the virtual resource corresponding to the user identity at the current moment uploaded by the client in response to the resource storage instruction.

[0026] In a possible embodiment, when there are multiple target virtual characters, target virtual character data corresponding to each target virtual character is sent to the client through multiple threads respectively.

[0027] In a third aspect of the embodiment of the present application, a data loading device is further provided, which is applied to a client, and the device includes:

[0028] A request sending module, used to send a resource loading request including a user identity identifier and a target start running time to a server, so that the server determines a target virtual resource to be loaded from the stored virtual resources corresponding to the user identity identifier according to the user identity identifier and the target start running time, and sends the target virtual resource to the client;

[0029] The target virtual resource includes target virtual character data and initialization event data of the target virtual character, wherein the target virtual character data indicates the character state of the target virtual character at the target start time, and the initialization event data indicates the state of the target event in which the target virtual character participates at the target start time;

[0030] A resource receiving module, used for receiving the target virtual resource;

[0031] The data loading module is used to load the target virtual character based on the target virtual character data in the target virtual resource, and to load the target event based on the initialization event data in the target virtual resource.

[0032] In a possible embodiment, the target start execution time is a time of specifying an operation instruction, or a time recorded in the target virtual resource stored by the server.

[0033] In a possible embodiment, the target virtual resource further includes target scene map data, and the target scene map represented by the target scene map data is: the scene map where the target virtual character is located at the target start running time; after receiving the target virtual resource, the method further includes:

[0034] A map loading module is used to load the target scene map where the target virtual character is located based on the target scene map data.

[0035] In a possible embodiment, the device further includes:

[0036] The resource uploading module is used to upload the virtual resource corresponding to the user identity at the current moment to the server in response to the resource storage instruction.

[0037] In a possible embodiment, when there are multiple target virtual characters, target virtual character data corresponding to each target virtual character in the target virtual resource is received and sent by the server through multiple threads respectively.

[0038] In a possible embodiment, when there are multiple target virtual characters, each target virtual character is loaded respectively through multiple threads.

[0039] In a fourth aspect of the embodiments of the present application, a data loading device is further provided, which is applied to a server, and the device includes:

[0040] A resource determination module, configured to respond to a resource loading request including a user identity identifier and a target start time of operation sent by a client, and determine a target virtual resource to be loaded from the stored virtual resources corresponding to the user identity identifier according to the user identity identifier and the target start time of operation;

[0041] A resource sending module, used for sending the target virtual resource to the client, so that after receiving the target virtual resource, the client loads the target virtual character based on the target virtual character data in the target virtual resource, and loads the target event based on the initialization event data in the target virtual resource;

[0042] Among them, the target virtual resources include target virtual character data and initialization event data of the target virtual character, the target virtual character data represents the role state of the target virtual character at the target start time, and the initialization event data represents the state of the target event in which the target virtual character participates at the target start time.

[0043] In a possible embodiment, the target start execution time is a time of specifying an operation instruction, or a time recorded in the target virtual resource stored by the server.

[0044] In a possible embodiment, the target virtual resource further includes target scene map data, and the target scene map represented by the target scene map data is: the scene map where the target virtual character is located at the target start running time; the resource sending module is specifically used to:

[0045] The target virtual resource is sent to the client, so that after receiving the target virtual resource containing the target scene map data, the client loads the target virtual character based on the target virtual character data in the target virtual resource, loads the target scene map where the target virtual character is located based on the target scene map data in the target virtual resource, and loads the target event based on the initialization event data in the target virtual resource.

[0046] In a possible embodiment, the device further includes:

[0047] The first receiving module is used to receive the virtual resource corresponding to the user identity at the current moment uploaded by the client in response to the resource storage instruction.

[0048] In a possible embodiment, when there are multiple target virtual characters, target virtual character data corresponding to each target virtual character is sent to the client through multiple threads respectively.

[0049] In a fifth aspect of the embodiment of the present application, a client is further provided, including a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus;

[0050] Memory, used to store computer programs;

[0051] The processor is used to implement any method step described in the first aspect when executing the program stored in the memory.

[0052] In a sixth aspect of the embodiments of the present application, a server is further provided, including a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus;

[0053] Memory, used to store computer programs;

[0054] The processor is used to implement any method step described in the second aspect when executing the program stored in the memory.

[0055] In another aspect of the embodiments of the present application, a computer-readable storage medium is provided, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the method steps of any one of the first aspect or the second aspect are implemented.

[0056] In the data loading method provided in the embodiment of the present application, the client sends a resource loading request including a user identity identifier and a target start running time to the server. The server can determine the target virtual resource to be loaded from the virtual resources corresponding to the user identity identifier based on the user identity identifier and the target start running time, and send the target virtual resource to the client.

[0057] Since the target virtual resource includes the target virtual character data and the initialization event data of the target virtual character, when the client receives the target virtual resource sent by the server, it can load the target virtual character based on the target virtual character data in the target virtual resource, and load the target event based on the initialization event data in the target virtual resource, thereby completing the loading process of the data in the virtual resource. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art are briefly introduced below.

[0059] Figure 1 A schematic diagram of the process of the first data loading method provided in the embodiment of the present application;

[0060] Figure 2 A flowchart of a method for obtaining a user identity provided in an embodiment of the present application;

[0061] Figure 3 A flowchart of a virtual environment operation method provided in an embodiment of the present application;

[0062] Figure 4 A schematic diagram of a flow chart of a second data loading method provided in an embodiment of the present application;

[0063] Figure 5 A schematic diagram of a flow chart of a third data loading method provided in an embodiment of the present application;

[0064] Figure 6A schematic diagram of the structure of a first data loading device provided in an embodiment of the present application;

[0065] Figure 7 A schematic diagram of the structure of a second data loading device provided in an embodiment of the present application;

[0066] Figure 8 A schematic diagram of the structure of a client provided in an embodiment of the present application;

[0067] Fig. 9 A schematic diagram of the structure of a server provided in an embodiment of the present application. DETAILED DESCRIPTION

[0068] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.

[0069] The present application embodiment provides a data loading method, which is applied to a client. Figure 1 , is a flow chart of the first data loading method provided in an embodiment of the present application, and the method includes S101-S103.

[0070] S101, sending a resource loading request including a user identity identifier and a target start time of operation to a server, so that the server determines the target virtual resource to be loaded from the virtual resources corresponding to the stored user identity identifier according to the user identity identifier and the target start time of operation, and sends the target virtual resource to the client.

[0071] In S101, the user identification is a user ID (Identity document) used to determine the identity of the user. The user ID is generated by the user client according to the user name input by the user. The user ID may contain any characters except some special symbols.

[0072] The process of generating a user ID based on a user name may be to add a suffix to the user name, or to add a prefix to the user name, or to use a character string obtained by applying a certain encryption algorithm to the user name as the user ID.

[0073] The target virtual resource includes target virtual character data and initialization event data of the target virtual character. The target virtual character data represents the character state of the target virtual character at the target start time, and the initialization event data represents the state of the target event in which the target virtual character participates at the target start time.

[0074] The number of target virtual characters can be one or more. The state of the target event in which the target virtual character participates can include the position coordinates, behavior description, location description, and conversation content with other virtual characters of the target virtual character. The state of the target event in which the target virtual character participates is related to the target start running time, for example, the target virtual character sleeps at night and goes to work during the day.

[0075] In a possible embodiment, the target start execution time is the time of the specified operation instruction, or the time recorded in the target virtual resource saved by the server.

[0076] The time of specifying the operation instruction may be the time when the client requests the target virtual resource from the server. For example, assuming that the time when the client specifies the operation instruction is 12:00:00, the time when the client requests the target virtual resource from the server is 12:00:00, and the target start time is 12:00:00.

[0077] The time recorded in the target virtual resource saved by the server can be the time when the client uploads the virtual resource to the server. Assuming that the time recorded in the target virtual resource saved by the server is 17:00:00, the time when the client uploads the virtual resource to the server is 17:00, and the target start running time is 17:00:00.

[0078] It should be noted that if the target start running time is the time when the client specifies the operation instruction, the client will call LLM (Large Language Model) to regenerate the target event that the target virtual character participates in according to the current time. It can be understood that the behavior logic and memory of the target virtual character have not changed, but a new target event has been regenerated.

[0079] In the above embodiment, if the target start running time is the time indicated by the specified operation, the client can call LLM to regenerate the target event of the target virtual character in the virtual environment after loading the virtual environment where the target virtual character is located, so that the regenerated target event matches the target start running time, for example, the target virtual character will go home to sleep at night. If the target start running time is the time recorded in the target virtual resource saved by the server, the client can load the target virtual character and target event corresponding to the time recorded in the target virtual resource saved by the server.

[0080] In addition, the time scale ratio of the virtual environment where the target virtual character is located and the real environment may be different. For example, assuming that 10 minutes of the real environment is equal to 1 hour of the virtual environment, if the time of the real environment is 12:00:00 when the client loads the target virtual character and the target event in which the target virtual character participates, and the virtual time of the virtual environment is also 12:00:00 when the client loads the target virtual character and the target event in which the target virtual character participates, if 10 minutes have passed since the time of the real environment when the client loaded the target virtual character and the target event in which the target virtual character participates, then the current time of the real environment is 12:10:00, and the current time of the virtual environment is 13:00:00.

[0081] Alternatively, assuming that 1 hour of the real environment is equal to 10 minutes of the virtual environment where the target virtual character is located, if the time of the real environment is 12:00:00 when the client loads the target virtual character and the target event in which the target virtual character participates, the virtual time of the virtual environment is also 12:00:00 when the client loads the target virtual character and the target event in which the target virtual character participates. If 1 hour has passed since the time of the real environment when the client loaded the target virtual character and the target event in which the target virtual character participates, the current time of the real environment is 13:00:00, and the current time of the virtual environment is 12:10:00.

[0082] S102: Receive target virtual resources.

[0083] In S102, if the client loads the virtual resource corresponding to a certain user identity for the first time, the target virtual resource includes the target virtual character data preset in the initial state and the initialization event data of the target virtual character.

[0084] If the client is not loading the virtual resource corresponding to a certain user identity for the first time, the target virtual resource includes the target virtual character data at any time point uploaded by the client to the server and the initialization event data of the target virtual character.

[0085] S103, loading a target virtual character based on the target virtual character data in the target virtual resource, and loading a target event based on the initialization event data in the target virtual resource.

[0086] If the client loads the virtual resource corresponding to a user identity for the first time, the client loads the target virtual character based on the target virtual character data in the target virtual resource, and loads the target event based on the initialization event data in the target virtual resource, which means that the client loads the target virtual character based on the target virtual character data in the initial state, and loads the target event based on the initialization event data in the initial state.

[0087] If this is not the first time that the client has loaded the virtual resource corresponding to a certain user identity, the client loads the target virtual character based on the target virtual character data in the target virtual resource, and loads the target event based on the initialization event data in the target virtual resource, which means loading the target virtual character based on the target virtual character data at any time node uploaded by the client to the server, and loading the target event based on the initialization event data at any time node uploaded by the client to the server.

[0088] By selecting the above embodiment, the client sends a resource loading request including a user identity identifier and a target start time of operation to the server. The server can determine the target virtual resource to be loaded from the virtual resources corresponding to the user identity identifier based on the user identity identifier and the target start time of operation, and send the target virtual resource to the client.

[0089] Since the target virtual resource includes the target virtual character data and the initialization event data of the target virtual character, when the client receives the target virtual resource sent by the server, it can load the target virtual character based on the target virtual character data in the target virtual resource, and load the target event based on the initialization event data in the target virtual resource, thereby completing the loading process of the data in the virtual resource.

[0090] In a possible embodiment, the target virtual resource also includes target scene map data, and the target scene map represented by the target scene map data is: the scene map where the target virtual character is located at the target start running time; after the above S102, the above data loading method also includes step A.

[0091] Step A: based on the target scene map data, load the target scene map where the target virtual character is located.

[0092] The target event in which the target virtual character participates is carried out in the target scene map where the target virtual character is located.

[0093] The target scene map can be represented by a Community ID (Community Identity document). A Community ID corresponds to an overall scene, which can include various places, such as schools, hospitals, cafes, etc. In addition, a Community ID can also determine the virtual characters that appear in the scene, for example, a doctor appears in a hospital scene.

[0094] In the above embodiment, the target virtual resource includes target scene map data, and the client can load the target scene map where the target virtual character is located based on the target scene map data.

[0095] In a possible embodiment, there is a pre-set binding relationship between the scene map and the virtual character.

[0096] Specifically, there are many ways to divide the scene map, for example, dividing the scene map according to dynasties, or dividing the scene map according to the purpose of the place. The embodiment of the present application does not specifically limit the way of dividing the scene map.

[0097] There are many ways to divide virtual characters, for example, dividing virtual characters according to the dynasty to which the characters belong, or dividing virtual characters according to the professions to which the characters belong. The embodiments of the present application do not specifically limit the way to divide virtual characters.

[0098] For example, assuming that the scene map is divided according to dynasties, and the virtual characters are divided according to the dynasties to which the characters belong, the scene map may include the Qin Dynasty scene map, the Han Dynasty scene map, the Tang Dynasty scene map, the Song Dynasty scene map, the Ming Dynasty scene map and the Qing Dynasty scene map; the virtual characters may include people from the Qin Dynasty, the Han Dynasty, the Tang Dynasty, the Song Dynasty, the Ming Dynasty and the Qing Dynasty. Then, there is a pre-set binding relationship between the Qin Dynasty scene map and the people of the Qin Dynasty, there is a pre-set binding relationship between the Han Dynasty scene map and the people of the Han Dynasty, there is a pre-set binding relationship between the Tang Dynasty scene map and the people of the Tang Dynasty, there is a pre-set binding relationship between the Song Dynasty scene map and the people of the Song Dynasty, there is a pre-set binding relationship between the Ming Dynasty scene map and the people of the Ming Dynasty, and there is a pre-set binding relationship between the Qing Dynasty scene map and the people of the Qing Dynasty.

[0099] For example, assuming that the scene map is divided according to the purpose of the place, and the virtual characters are divided according to the occupations of the characters, the scene map may include a school scene map, a hospital scene map, and a cafe scene map; the virtual characters may include teachers, doctors, and waiters, then there is a pre-set binding relationship between the school scene map and the teacher, there is a pre-set binding relationship between the hospital scene map and the doctor, and there is a pre-set binding relationship between the cafe scene map and the waiter.

[0100] There is a pre-set binding relationship between the scene map and the virtual character, which can avoid the situation where the scene map and the virtual character do not match, such as people from the Qing Dynasty appearing in the Tang Dynasty scene map, or teachers working in a hospital.

[0101] Furthermore, a scene map may include one virtual character or multiple virtual characters, and the embodiment of the present application does not specifically limit the number of virtual characters in a scene map. For example, there may be one teacher or X teachers in a school, where X is an integer greater than 1.

[0102] In a possible embodiment, a specific scene map and a specific virtual character that has a binding relationship with the specific scene map may be bound through a Community ID.

[0103] Since there is a pre-set binding relationship between the scene map and the virtual character, the virtual character that has a binding relationship with the target scene map can be determined as the target virtual character based on the binding relationship, thereby avoiding the situation where the scene map and the virtual character do not match.

[0104] In a possible embodiment, when there are multiple target virtual characters, the target virtual character data corresponding to each target virtual character in the target virtual resource is received and sent by the server through multiple threads respectively.

[0105] Specifically, assuming that the number of threads is Y and the number of target virtual roles is Z, there may be the following three situations: Y = Z, Y > Z, Y <Z。

[0106] If Y=Z, it means that the number of threads is the same as the number of target virtual characters, and the server can send the target virtual character data corresponding to different target virtual characters in the target virtual resource through different threads.

[0107] Exemplarily, assuming that the threads include thread 1, thread 2, thread 3, thread 4, and thread 5, and the target virtual characters include character 1, character 2, character 3, character 4, and character 5, the server sends the virtual character data corresponding to character 1 in the target virtual resource through thread 1, sends the virtual character data corresponding to character 2 in the target virtual resource through thread 2, sends the virtual character data corresponding to character 3 in the target virtual resource through thread 3, sends the virtual character data corresponding to character 4 in the target virtual resource through thread 4, and sends the virtual character data corresponding to character 5 in the target virtual resource through thread 5.

[0108] If Y>Z, it means that the number of threads is greater than the number of target virtual characters, and the server can randomly send the target virtual character data corresponding to different target virtual characters in the target virtual resource through different threads.

[0109] Exemplarily, assume that the threads include Thread 1, Thread 2, Thread 3, Thread 4, and Thread 5, and the target virtual characters include Character 1, Character 2, and Character 3. Then the server sends the virtual character data corresponding to Character 1 in the target virtual resource through Thread 1, sends the virtual character data corresponding to Character 2 in the target virtual resource through Thread 2, and sends the virtual character data corresponding to Character 3 in the target virtual resource through Thread 3. Or, the server sends the virtual character data corresponding to Character 1 in the target virtual resource through Thread 1, sends the virtual character data corresponding to Character 2 in the target virtual resource through Thread 3, and sends the virtual character data corresponding to Character 3 in the target virtual resource through Thread 5.

[0110] If Y < Z, it indicates that the number of threads is less than the number of target virtual characters. Then the server can send the target virtual character data corresponding to different target virtual characters in the target virtual resource in the following ways.

[0111] Exemplarily, take Y = 5 and Z = 8 as an example below.

[0112] In one case, the server sends the target virtual character data corresponding to different target virtual characters in the target virtual resource in a cyclic manner. For example, assume that the threads include Thread 1, Thread 2, Thread 3, Thread 4, and Thread 5, and the target virtual characters include Character 1, Character 2, Character 3, Character 4, Character 5, Character 6, Character 7, and Character 8. Then the server sends the virtual character data corresponding to Character 1 in the target virtual resource through Thread 1, sends the virtual character data corresponding to Character 2 in the target virtual resource through Thread 2, sends the virtual character data corresponding to Character 3 in the target virtual resource through Thread 3, sends the virtual character data corresponding to Character 4 in the target virtual resource through Thread 4, sends the virtual character data corresponding to Character 5 in the target virtual resource through Thread 5, sends the virtual character data corresponding to Character 6 in the target virtual resource through Thread 1, sends the virtual character data corresponding to Character 7 in the target virtual resource through Thread 2, and sends the virtual character data corresponding to Character 8 in the target virtual resource through Thread 3.

[0113] In another case, each thread first loads a target virtual role, and then randomly selects a thread to load the remaining unloaded target virtual roles. For example, assuming that the threads include thread 1, thread 2, thread 3, thread 4, and thread 5, and the target virtual roles include role 1, role 2, role 3, role 4, role 5, role 6, role 7, and role 8, the server first sends the virtual role data corresponding to role 1 in the target virtual resource through thread 1, sends the virtual role data corresponding to role 2 in the target virtual resource through thread 2, sends the virtual role data corresponding to role 3 in the target virtual resource through thread 3, sends the virtual role data corresponding to role 4 in the target virtual resource through thread 4, and sends the virtual role data corresponding to role 5 in the target virtual resource through thread 5. After that, the server sends the virtual role data corresponding to role 6 in the target virtual resource through thread 1, sends the virtual role data corresponding to role 7 in the target virtual resource through thread 3, and sends the virtual role data corresponding to role 8 in the target virtual resource through thread 5.

[0114] Alternatively, the server first sends the virtual character data corresponding to character 1 in the target virtual resource through thread 1, sends the virtual character data corresponding to character 2 in the target virtual resource through thread 2, sends the virtual character data corresponding to character 3 in the target virtual resource through thread 3, sends the virtual character data corresponding to character 4 in the target virtual resource through thread 4, and sends the virtual character data corresponding to character 5 in the target virtual resource through thread 5. Afterwards, the server sends the virtual character data corresponding to characters 6 and 7 in the target virtual resource through thread 1, and sends the virtual character data corresponding to character 8 in the target virtual resource through thread 3.

[0115] It should be noted that the several methods of sending target virtual character data described above are only one possible implementation example. The embodiment of the present application does not specifically limit the method in which the server sends the target virtual character data corresponding to each target virtual character in the target virtual resource through multiple threads. It only needs to increase the speed at which the server sends the target virtual character data corresponding to each target virtual character in the target virtual resource.

[0116] By selecting the above embodiment, when there are multiple target virtual characters, the client receives the target virtual character data corresponding to each target virtual character in the target virtual resources sent by the server through multiple threads respectively, which can increase the speed at which the client receives the target virtual character data, thereby increasing the speed at which the client loads the target virtual character, avoiding affecting the user experience due to slow loading of the target virtual character.

[0117] In a possible embodiment, when there are multiple target virtual characters, each target virtual character is loaded respectively through multiple threads.

[0118] Specifically, assuming the number of threads is Y and the number of target virtual characters is Z, the following three situations may exist: Y = Z, Y < Z, and Y > Z.

[0119] If Y = Z, it means that the number of threads is the same as the number of target virtual characters, then different target virtual characters can be loaded through different threads.

[0120] Exemplarily, assuming the threads include Thread 1, Thread 2, Thread 3, Thread 4, Thread 5, and the target virtual characters include Character 1, Character 2, Character 3, Character 4, Character 5, then Character 1 is loaded through Thread 1, Character 2 is loaded through Thread 2, Character 3 is loaded through Thread 3, Character 4 is loaded through Thread 4, and Character 5 is loaded through Thread 5.

[0121] If Y > Z, it means that the number of threads is greater than the number of target virtual characters, then different target virtual characters can be randomly loaded through different threads.

[0122] Exemplarily, assuming the threads include Thread 1, Thread 2, Thread 3, Thread 4, Thread 5, and the target virtual characters include Character 1, Character 2, Character 3, then Character 1 is loaded through Thread 1, Character 2 is loaded through Thread 2, and Character 3 is loaded through Thread 3. Or, Character 1 is loaded through Thread 1, Character 2 is loaded through Thread 3, and Character 3 is loaded through Thread 5.

[0123] If Y < Z, it means that the number of threads is less than the number of target virtual characters, then the target virtual characters are loaded in the following ways. Taking Y = 5 and Z = 8 as an example.

[0124] In one case, the target virtual characters are loaded in a loop. For example, assuming the threads include Thread 1, Thread 2, Thread 3, Thread 4, Thread 5, and the target virtual characters include Character 1, Character 2, Character 3, Character 4, Character 5, Character 6, Character 7, Character 8, then Character 1 is loaded through Thread 1, Character 2 is loaded through Thread 2, Character 3 is loaded through Thread 3, Character 4 is loaded through Thread 4, Character 5 is loaded through Thread 5, Character 6 is loaded through Thread 1, Character 7 is loaded through Thread 2, and Character 8 is loaded through Thread 3.

[0125] In another case, each thread first loads a target virtual character, and then randomly selects a thread to load the remaining unloaded target virtual characters. For example, assuming that the threads include thread 1, thread 2, thread 3, thread 4, and thread 5, and the target virtual characters include character 1, character 2, character 3, character 4, character 5, character 6, character 7, and character 8, character 1 is first loaded through thread 1, character 2 is loaded through thread 2, character 3 is loaded through thread 3, character 4 is loaded through thread 4, and character 5 is loaded through thread 5, and then a thread is randomly selected to load character 6, character 7, and character 8, such as loading character 6, character 7, and character 8 through thread 1.

[0126] In another case, each thread first loads a target virtual character, and then randomly selects multiple threads to load the remaining unloaded target virtual characters. For example, assuming that the threads include thread 1, thread 2, thread 3, thread 4, and thread 5, and the target virtual characters include character 1, character 2, character 3, character 4, character 5, character 6, character 7, and character 8, character 1 is first loaded through thread 1, character 2 is loaded through thread 2, character 3 is loaded through thread 3, character 4 is loaded through thread 4, character 5 is loaded through thread 5, and then character 6 is loaded through thread 1, character 7 is loaded through thread 3, and character 8 is loaded through thread 5. Alternatively, character 1 is first loaded through thread 1, character 2 is loaded through thread 2, character 3 is loaded through thread 3, character 4 is loaded through thread 4, character 5 is loaded through thread 5, and then character 6 and character 7 are loaded through thread 1, and character 8 is loaded through thread 3.

[0127] It should be noted that the several loading methods described above are only one possible embodiment. The embodiment of the present application does not specifically limit the method of loading the target virtual character through multiple threads, but only needs to improve the speed of loading the target virtual character by the client.

[0128] By selecting the above embodiment, when there are multiple target virtual characters, each target virtual character can be loaded separately through multiple threads, which can increase the speed at which the client loads the target virtual characters and avoid affecting the user experience due to slow loading of the target virtual characters.

[0129] In a possible embodiment, the target virtual resource further includes a target runtime, where the target runtime refers to the runtime of the virtual environment when the client loads the target virtual character and the target event in which the target virtual character participates.

[0130] Exemplarily, assuming that the target running time is 1 hour, the running time of the virtual environment when the client loads the target virtual character and the target event in which the target virtual character participates is 1 hour.

[0131] In a possible embodiment, the target running time can be represented by the target running steps. For example, assuming that 1 step = 10 minutes, if the target running steps are 6 steps, the running time of the virtual environment when the client loads the target virtual character and the target event in which the target virtual character participates is 60 minutes, that is, 1 hour.

[0132] Specifically, during the target runtime, when the virtual environment is running, the client calls the LLM to control the activities of the target virtual character in the virtual environment.

[0133] LLM (Large Language Model) is an advanced artificial intelligence algorithm trained on a large amount of data. It has the ability of natural language processing, can understand the user's instructions, context and intentions, and then use the built-in knowledge base and reasoning ability to generate corresponding responses or perform related tasks.

[0134] For example, in a virtual game, a user may ask a virtual character to perform a certain action, such as "ask the character to pick up an item." LLM will parse this command and simulate the corresponding behavior based on the pre-set game rules.

[0135] During the target runtime, when the virtual environment is running, the client calls LLM to control the activities of the target virtual character in the virtual environment. For example, if the target virtual character 1 meets the target virtual character 2 while walking in the park, and the target virtual character 2 is the best friend of the target virtual character 1, then after the client calls LLM, the target virtual character 1 may approach and chat with the target virtual character 2 in the park.

[0136] In a possible embodiment, during the period from the start of the virtual environment to the exit of the client from the virtual environment, the client outputs the state information of the target virtual character in the virtual environment in the next time period every time a preset time period passes, and the state information represents the state of the virtual character, so that the client can display the state of the target virtual character in the virtual environment in the next time period. The preset time period can be preset by a technician with professional knowledge according to actual needs and / or experience.

[0137] For example, it is assumed that the client outputs the state information of the target virtual character in the virtual environment within the next 15 minutes every 15 minutes, wherein 15 minutes is the time interval of the real environment when the client runs the virtual environment.

[0138] For example, at real time 12:00:00, the client starts running the virtual environment; the client generates status information of the target virtual character in the virtual environment from real time 12:15:00 to real time 12:30:00 from real time 12:00:00 to real time 12:15:00, and displays the status information of the target virtual character in the virtual environment generated by the client from real time 12:00:00 to real time 12:15:00 from real time to real time 12:30:00.

[0139] The client generates the state information of the target virtual character in the virtual environment from 12:30:00 to 12:45:00 in real time during the period from 12:15:00 to 12:30:00 in real time, and displays the state information of the target virtual character in the virtual environment generated by the client from 12:15:00 to 12:30:00 in real time during the period from 12:30:00 to 12:45:00 in real time. And so on.

[0140] The state of the target virtual character in the virtual environment includes the position coordinates, behavior description, location description, and conversation content with other virtual characters of the target virtual character.

[0141] In addition, the preset duration may be a time interval of a real environment when the client runs the virtual environment, or may be a time interval of a virtual environment when the client runs the virtual environment.

[0142] In a possible embodiment, if the target running time is represented by a target running step number, then after each preset step number, the client outputs the state information of the target virtual character in the virtual environment in the next step, and the state information represents the state of the virtual character, so that the client can display the state of the target virtual character in the virtual environment in the next step. The preset step number can be preset by a technician with professional knowledge according to actual needs and / or experience.

[0143] For example, assuming that 1step=10min, the client outputs the state information of the target virtual character in the virtual environment in the next step every time 1step passes, wherein 1step is the time interval of the real environment when the client runs the virtual environment.

[0144] For example, at real time 12:00:00, the client starts running the virtual environment; the client generates status information of the target virtual character in the virtual environment from real time 12:10:00 to real time 12:20:00 from real time 12:00:00, and displays the status information of the target virtual character in the virtual environment generated by the client from real time 12:00:00 to real time 12:10:00 from real time 12:20:00.

[0145] The client generates the state information of the target virtual character in the virtual environment from real time 12:20:00 to real time 12:30:00 during the period from real time 12:10:00 to real time 12:20:00, and displays the state information of the target virtual character in the virtual environment generated by the client from real time 12:10:00 to real time 12:20:00 during the period from real time 12:20:00 to real time 12:30:00. And so on.

[0146] The state of the target virtual character in the virtual environment includes the position coordinates, behavior description, location description, and conversation content with other virtual characters of the target virtual character.

[0147] In a possible embodiment, the above data loading method also includes step B.

[0148] Step B: in response to the resource storage instruction, uploading the virtual resource corresponding to the current user identity to the server.

[0149] There are several situations in which the client responds to the resource storage instruction and uploads the virtual resource corresponding to the current user identity to the server.

[0150] In case 1, when the client exits the virtual environment where the target virtual character is located, the virtual resources corresponding to the user identity at the current moment are uploaded to the server.

[0151] In the second case, when the client is loading the virtual environment where the target virtual character is located, it receives a data archiving instruction input by the user and uploads the virtual resources corresponding to the user identity at the current moment to the server.

[0152] In the first case, the client may exit the virtual environment where the target virtual character is located once or multiple times.

[0153] If the client exits the virtual environment where the target virtual character is located once, the server stores the user identity and the virtual resources when the client exits the virtual environment. For example, assuming that the client exits the virtual environment only at 12:00:00 real time, the server stores the user identity and the virtual resources when the Ehu section exits the virtual environment at 12:00:00 real time.

[0154] If the client exits the virtual environment where the target virtual character is located multiple times, the server stores the user identity and the virtual resources when the client exits the virtual environment multiple times. For example, the client exits the virtual environment for the first time at 12:00:00 real time, exits the virtual environment for the second time at 13:00:00 real time, and exits the virtual environment for the third time at 14:00:00 real time, then the server stores the user identity, the virtual resources when the client exits the virtual environment for the first time at 12:00:00 real time, the virtual resources when the client exits the virtual environment for the second time at 13:00:00 real time, and the virtual resources when the client exits the virtual environment for the third time at 14:00:00 real time.

[0155] Assuming that the client uploads the virtual resources of the virtual environment where the target virtual character is located to the server only after exiting the virtual environment, it can avoid the interruption of the virtual environment operation during the client uploading virtual resources, thereby improving the user experience.

[0156] When the client exits the virtual environment where the target virtual character is located multiple times, the client can load the virtual environment based on the virtual resources specified by the user when the client exits the virtual environment at a certain time point. In this case, the resource loading request sent by the client to the server also needs to include the target data number.

[0157] For example, data number D1 represents the virtual resources when the client exits the virtual environment for the first time at the first time node, data number D2 represents the virtual resources when the client exits the virtual environment for the second time at the second time node, and data number D3 represents the virtual resources when the client exits the virtual environment for the third time at the third time node.

[0158] Assuming that the resource loading request sent by the client to the server includes the target data number D2, the client obtains from the server the virtual resources when the client exits the virtual environment for the second time at the second time node, and loads the virtual environment based on the obtained virtual resources.

[0159] If the virtual resource loaded by the client is not the virtual resource stored in the server when the client last exited the virtual environment, but the virtual resource when the client exited the virtual environment before the last exit, it means that the client can implement the rollback of the virtual scene.

[0160] It should be noted that after exiting the virtual environment, the client packages and compresses the user identity and the virtual resources corresponding to the user identity, and uploads the compressed virtual resources to the server.

[0161] By selecting the above embodiment, the client uploads the virtual resource corresponding to the current user identity to the server in response to the resource storage instruction, so that the server can store the data generated during the operation of the virtual environment.

[0162] It should be noted that, although the target virtual resource includes the target runtime, the client does not necessarily exit the virtual environment when the runtime of the virtual environment has reached the target runtime.

[0163] In a possible embodiment, when the virtual environment running time has reached the target running time, the client receives a continue running instruction input by the user, and the client continues to run the virtual environment, wherein the continue running instruction includes the continue running time.

[0164] Exemplarily, assuming that the target virtual resources include a target running time of 1 hour, after the virtual environment running time has reached 1 hour, a pop-up window for selecting the continue running time appears in the client interface. If the continue running time entered by the user is 0, it means that the user entered an exit command, and the client exits the virtual environment; if the continue running time entered by the user is not 0, the client continues to run the virtual environment. For example, if the continue running time entered by the user is 1 hour, the client continues to run the virtual environment for the next 1 hour.

[0165] In a possible embodiment, if the virtual environment running time has reached the target running time and the client continues to run the virtual environment, then when the virtual environment running time reaches the target running time, the virtual resources when the virtual environment running time reaches the target running time can be saved once, or the virtual resources when the virtual environment running time reaches the target running time can be not saved.

[0166] For example, assuming that the target running time input by the user is 1 hour, at 12:00:00 real time, the client starts running the virtual environment; at 13:00:00 real time, the client receives a continue running instruction input by the user including a continue running time of 1 hour, then at 13:00:00 real time, the client saves the virtual resources at 13:00:00 real time once, and continues to run the virtual environment from 13:00:00 to 14:00:00. If at 14:00:00 real time, the client receives an exit instruction input by the user, the client exits the virtual environment and uploads the user identity and the virtual resources at 14:00:00 real time to the server.

[0167] Assume that the target running time input by the user is 1 hour, and at 12:00:00 real time, the client starts running the virtual environment; at 13:00:00 real time, the client receives a continue running instruction input by the user including a continue running time of 1 hour, then at 13:00:00 real time, the client does not save the virtual resources at 13:00:00 real time, and continues to run the virtual environment from 13:00:00 to 14:00:00. If at 14:00:00 real time, the client receives an exit instruction input by the user, the client exits the virtual environment and uploads the user identity and the virtual resources at 14:00:00 real time to the server.

[0168] Alternatively, assuming that the target number of running steps input by the user is 6 steps, 1 step = 10 minutes, at 12:00:00 real time, the client starts running the virtual environment; when the virtual environment runs for 6 steps, that is, when the real time is 13:00:00, the client receives a continue running instruction input by the user, which includes a continue running step number of 6 steps, then at the real time 13:00:00, the client saves the virtual resources at the real time 13:00:00 and continues to run the virtual environment from 13:00:00 to 14:00:00. If the virtual environment runs for 12 steps, that is, when the real time is 14:00:00, the client receives an exit instruction input by the user, then the client exits the virtual environment and uploads the user identity and the virtual resources at the real time 14:00:00 to the server.

[0169] Assume that the target number of running steps input by the user is 6 steps, 1 step = 10 minutes, and at 12:00:00 real time, the client starts running the virtual environment; when the virtual environment runs for 6 steps, that is, when the real time is 13:00:00, the client receives a continue running instruction input by the user, which includes a continue running number of 6 steps. Then, at 13:00:00 real time, the client does not save the virtual resources at 13:00:00 real time, and continues to run the virtual environment from 13:00:00 to 14:00:00. If the virtual environment runs for 12 steps, that is, when the real time is 14:00:00, the client receives an exit instruction input by the user, then the client exits the virtual environment and uploads the user identity and the virtual resources at 14:00:00 real time to the server.

[0170] In one possible embodiment, see Figure 2 , is a flow chart of a method for obtaining a user identity provided in an embodiment of the present application, the method comprising S201-S204.

[0171] S201, receiving a user identity input by a user.

[0172] S202, determining whether the input user identity exists.

[0173] If the input user identity exists, it means that the user has registered an account on the client, and the execution can be terminated. If the input user identity does not exist, it means that the user has not registered an account on the client, and S203 is executed.

[0174] S203: Receive a user name input by the user.

[0175] S204: Create a new user identity according to the received user name.

[0176] In one possible embodiment, see Figure 3 , is a flow chart of a virtual environment operation method provided in an embodiment of the present application, and the method includes S301-S304.

[0177] S301, receiving instruction information input by a user.

[0178] The indication information includes the user identity and the target running time.

[0179] S302, running the virtual environment.

[0180] Here, running the virtual environment refers to the client loading the virtual environment.

[0181] S303, display the virtual environment operation result.

[0182] Among them, displaying the virtual environment operation results refers to the client showing the user the results of calling LLM and controlling the activities of the target virtual character in the virtual environment.

[0183] S304: Determine whether the virtual environment continues to run.

[0184] If the virtual environment continues to run, execute S302.

[0185] If the virtual environment does not continue to run, it ends and exits the virtual environment. After that, the client uploads the user identity and all the saved virtual resources to the server.

[0186] The present application also provides a data loading method, which is applied to the server. Figure 4 , is a flow chart of a second data loading method provided in an embodiment of the present application, the method comprising S401 - S402.

[0187] S401, in response to a resource loading request including a user identity and a target start time sent by a client, a target virtual resource to be loaded is determined from virtual resources corresponding to the stored user identity according to the user identity and the target start time.

[0188] S402, sending the target virtual resource to the client, so that after receiving the target virtual resource, the client loads the target virtual character based on the target virtual character data in the target virtual resource, and loads the target event based on the initialization event data in the target virtual resource.

[0189] Among them, the target virtual resources include target virtual character data and initialization event data of the target virtual character. The target virtual character data represents the role status of the target virtual character at the target start time, and the initialization event data represents the status of the target event in which the target virtual character participates at the target start time.

[0190] The client loads the target virtual character based on the target virtual character data in the target virtual resource, and loads the target event based on the initialization event data in the target virtual resource. For details, see S102-S103 above, which will not be described in detail here.

[0191] By selecting the above embodiment, the client sends a resource loading request including a user identity identifier and a target start time of operation to the server. The server can determine the target virtual resource to be loaded from the virtual resources corresponding to the user identity identifier based on the user identity identifier and the target start time of operation, and send the target virtual resource to the client.

[0192] Since the target virtual resource includes the target virtual character data and the initialization event data of the target virtual character, when the client receives the target virtual resource sent by the server, it can load the target virtual character based on the target virtual character data in the target virtual resource, and load the target event based on the initialization event data in the target virtual resource, thereby completing the loading process of the data in the virtual resource.

[0193] In a possible embodiment, the target start execution time is the time of the specified operation instruction, or the time recorded in the target virtual resource saved by the server.

[0194] The time of specifying the operation instruction may be the time when the client requests the target virtual resource from the server. For example, assuming that the time when the client specifies the operation instruction is 12:00:00, the time when the client requests the target virtual resource from the server is 12:00:00, and the target start time is 12:00:00.

[0195] The time recorded in the target virtual resource saved by the server can be the time when the client uploads the virtual resource to the server. Assuming that the time recorded in the target virtual resource saved by the server is 17:00:00, the time when the client uploads the virtual resource to the server is 17:00, and the target start running time is 17:00:00.

[0196] In the above embodiment, if the target start running time is the time indicated by the specified operation, the client can call LLM to regenerate the target event of the target virtual character in the virtual environment after loading the virtual environment where the target virtual character is located, so that the regenerated target event matches the target start running time, for example, the target virtual character will go home to sleep at night. If the target start running time is the time recorded in the target virtual resource saved by the server, the client can load the target virtual character and target event corresponding to the time recorded in the target virtual resource saved by the server.

[0197] In a possible embodiment, the target virtual resource also includes target scene map data. The target scene map represented by the target scene map data is: the scene map where the target virtual character is located at the target start time. Figure 5 , is a flow chart of a third data loading method provided in an embodiment of the present application, which is similar to the aforementioned Figure 4 Compared with the embodiment, the above S402 can be implemented through S402A.

[0198] S402A, sends the target virtual resource to the client, so that after receiving the target virtual resource containing the target scene map data, the client loads the target virtual character based on the target virtual character data in the target virtual resource, loads the target scene map where the target virtual character is located based on the target scene map data in the target virtual resource, and loads the target event based on the initialization event data in the target virtual resource.

[0199] The target event in which the target virtual character participates is carried out in the target scene map where the target virtual character is located. That is to say, there is a binding relationship between the target virtual character and the target scene map. For the specific content of the binding relationship, see the embodiment in which the aforementioned step A is located.

[0200] In the above embodiment, the target virtual resource includes target scene map data, and the client can load the target scene map where the target virtual character is located based on the target scene map data.

[0201] In a possible embodiment, the above data loading method further includes step C.

[0202] Step C: receiving the virtual resource corresponding to the current user identity uploaded by the client in response to the resource storage instruction.

[0203] The process of receiving the virtual resource corresponding to the current user identity identifier uploaded by the client in response to the resource storage instruction may refer to the embodiment of the aforementioned step B.

[0204] By selecting the above embodiment, the client uploads the virtual resource corresponding to the current user identity to the server in response to the resource storage instruction, so that the server can store the data generated during the operation of the virtual environment.

[0205] In a possible embodiment, when there are multiple target virtual characters, target virtual character data corresponding to each target virtual character is sent to the client through multiple threads respectively.

[0206] The number of threads may be equal to the number of target virtual characters, or may be greater than the number of target virtual characters, or may be less than the number of target virtual characters.

[0207] For specific content, please refer to the aforementioned embodiment in which the client receives the target virtual character data corresponding to each target virtual character in the target virtual resource sent by the server through multiple threads respectively.

[0208] By selecting the above embodiment, when there are multiple target virtual characters, the server sends the target virtual character data corresponding to each target virtual character to the client through multiple threads respectively, which can increase the speed at which the client receives the target virtual character data, thereby increasing the speed at which the client loads the target virtual character, avoiding affecting the user experience due to slow loading of the target virtual character.

[0209] Corresponding to the aforementioned data loading method, the present application embodiment also provides a data loading device, which is applied to the client, see Figure 6 , is a schematic diagram of the structure of a first data loading device provided in an embodiment of the present application, the device comprising:

[0210] The request sending module 601 is used to send a resource loading request including a user identity identifier and a target start running time to the server, so that the server determines the target virtual resource to be loaded from the stored virtual resources corresponding to the user identity identifier according to the user identity identifier and the target start running time, and sends the target virtual resource to the client;

[0211] The target virtual resource includes target virtual role data and initialization event data of the target virtual role, wherein the target virtual role data represents the role state of the target virtual role at the target start time, and the initialization event data represents the state of the target event in which the target virtual role participates at the target start time;

[0212] The resource receiving module 602 is used to receive the target virtual resource;

[0213] The data loading module 603 is used to load the target virtual character based on the target virtual character data in the target virtual resource, and to load the target event based on the initialization event data in the target virtual resource.

[0214] By selecting the above embodiment, the client sends a resource loading request including a user identity identifier and a target start time of operation to the server. The server can determine the target virtual resource to be loaded from the virtual resources corresponding to the user identity identifier based on the user identity identifier and the target start time of operation, and send the target virtual resource to the client.

[0215] Since the target virtual resource includes the target virtual character data and the initialization event data of the target virtual character, when the client receives the target virtual resource sent by the server, it can load the target virtual character based on the target virtual character data in the target virtual resource, and load the target event based on the initialization event data in the target virtual resource, thereby completing the loading process of the data in the virtual resource.

[0216] In a possible embodiment, the target start execution time is the time of the specified operation instruction, or the time recorded in the target virtual resource saved by the server.

[0217] In the above embodiment, if the target start running time is the time indicated by the specified operation, the client can call LLM to regenerate the target event of the target virtual character in the virtual environment after loading the virtual environment where the target virtual character is located, so that the regenerated target event matches the target start running time, for example, the target virtual character will go home to sleep at night. If the target start running time is the time recorded in the target virtual resource saved by the server, the client can load the target virtual character and target event corresponding to the time recorded in the target virtual resource saved by the server.

[0218] In a possible embodiment, the target virtual resource further includes target scene map data, and the target scene map represented by the target scene map data is: a scene map where the target virtual character is located at the target start execution time; after receiving the target virtual resource, it also includes:

[0219] The map loading module is used to load the target scene map where the target virtual character is located based on the target scene map data.

[0220] In the above embodiment, the target virtual resource includes target scene map data, and the client can load the target scene map where the target virtual character is located based on the target scene map data.

[0221] In a possible embodiment, the above device further includes:

[0222] The resource uploading module is used to upload the virtual resource corresponding to the user identity at the current moment to the server in response to the resource storage instruction.

[0223] By selecting the above embodiment, the client uploads the virtual resource corresponding to the current user identity to the server in response to the resource storage instruction, so that the server can store the data generated during the operation of the virtual environment.

[0224] In a possible embodiment, when there are multiple target virtual characters, the target virtual character data corresponding to each target virtual character in the target virtual resource is received and sent by the server through multiple threads respectively.

[0225] By selecting the above embodiment, when there are multiple target virtual characters, the client receives the target virtual character data corresponding to each target virtual character in the target virtual resources sent by the server through multiple threads respectively, which can increase the speed at which the client receives the target virtual character data, thereby increasing the speed at which the client loads the target virtual character, avoiding affecting the user experience due to slow loading of the target virtual character.

[0226] In a possible embodiment, when there are multiple target virtual characters, each target virtual character is loaded respectively through multiple threads.

[0227] By using the above embodiment, when there are multiple target virtual characters, each target virtual character can be loaded separately through multiple threads, which can increase the speed at which the client loads the target virtual characters and avoid affecting the user experience due to slow loading of the target virtual characters.

[0228] Corresponding to the aforementioned data loading method, the present application embodiment also provides a data loading device, which is applied to the server, see Figure 7 , is a schematic diagram of the structure of a second data loading device provided in an embodiment of the present application, the device comprising:

[0229] The resource determination module 701 is used to respond to the resource loading request including the user identity and the target start time of operation sent by the client, and determine the target virtual resource to be loaded from the stored virtual resources corresponding to the user identity according to the user identity and the target start time of operation;

[0230] The resource sending module 702 is used to send the target virtual resource to the client, so that after receiving the target virtual resource, the client loads the target virtual character based on the target virtual character data in the target virtual resource and loads the target event based on the initialization event data in the target virtual resource;

[0231] Among them, the target virtual resources include target virtual character data and initialization event data of the target virtual character. The target virtual character data represents the role status of the target virtual character at the target start time, and the initialization event data represents the status of the target event in which the target virtual character participates at the target start time.

[0232] By selecting the above embodiment, the client sends a resource loading request including a user identity identifier and a target start time of operation to the server. The server can determine the target virtual resource to be loaded from the virtual resources corresponding to the user identity identifier based on the user identity identifier and the target start time of operation, and send the target virtual resource to the client.

[0233] Since the target virtual resource includes the target virtual character data and the initialization event data of the target virtual character, when the client receives the target virtual resource sent by the server, it can load the target virtual character based on the target virtual character data in the target virtual resource, and load the target event based on the initialization event data in the target virtual resource, thereby completing the loading process of the data in the virtual resource.

[0234] In a possible embodiment, the target start execution time is the time of the specified operation instruction, or the time recorded in the target virtual resource saved by the server.

[0235] In the above embodiment, if the target start running time is the time indicated by the specified operation, the client can call LLM to regenerate the target event of the target virtual character in the virtual environment after loading the virtual environment where the target virtual character is located, so that the regenerated target event matches the target start running time, for example, the target virtual character will go home to sleep at night. If the target start running time is the time recorded in the target virtual resource saved by the server, the client can load the target virtual character and target event corresponding to the time recorded in the target virtual resource saved by the server.

[0236] In a possible embodiment, the target virtual resource also includes target scene map data, and the target scene map represented by the target scene map data is: the scene map where the target virtual character is located at the target start running time; the resource sending module 702 is specifically used to:

[0237] The target virtual resource is sent to the client, so that after receiving the target virtual resource containing the target scene map data, the client loads the target virtual character based on the target virtual character data in the target virtual resource, loads the target scene map where the target virtual character is located based on the target scene map data in the target virtual resource, and loads the target event based on the initialization event data in the target virtual resource.

[0238] In the above embodiment, the target virtual resource includes target scene map data, and the client can load the target scene map where the target virtual character is located based on the target scene map data.

[0239] In a possible embodiment, the above device further includes:

[0240] The first receiving module is used to receive the virtual resource corresponding to the current user identity uploaded by the client in response to the resource storage instruction.

[0241] By selecting the above embodiment, the client uploads the virtual resource corresponding to the current user identity to the server in response to the resource storage instruction, so that the server can store the data generated during the operation of the virtual environment.

[0242] In a possible embodiment, when there are multiple target virtual characters, target virtual character data corresponding to each target virtual character is sent to the client through multiple threads respectively.

[0243] By selecting the above embodiment, when there are multiple target virtual characters, the server sends the target virtual character data corresponding to each target virtual character to the client through multiple threads respectively, which can increase the speed at which the client receives the target virtual character data, thereby increasing the speed at which the client loads the target virtual character, avoiding affecting the user experience due to slow loading of the target virtual character.

[0244] The present application embodiment also provides a client, such as Figure 8 As shown, it includes a processor 801, a communication interface 802, a memory 803 and a communication bus 804, wherein the processor 801, the communication interface 802, and the memory 803 communicate with each other through the communication bus 804.

[0245] Memory 803, used for storing computer programs;

[0246] The processor 801 is used to implement any method step of the above data storage method when executing the program stored in the memory 803.

[0247] By selecting the above embodiment, the client sends a resource loading request including a user identity identifier and a target start time of operation to the server. The server can determine the target virtual resource to be loaded from the virtual resources corresponding to the user identity identifier based on the user identity identifier and the target start time of operation, and send the target virtual resource to the client.

[0248] Since the target virtual resource includes the target virtual character data and the initialization event data of the target virtual character, when the client receives the target virtual resource sent by the server, it can load the target virtual character based on the target virtual character data in the target virtual resource, and load the target event based on the initialization event data in the target virtual resource, thereby completing the loading process of the data in the virtual resource.

[0249] The communication bus mentioned in the above terminal can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0250] The communication interface is used for communication between the above-mentioned client and other devices.

[0251] The memory may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0252] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0253] The present application also provides a server, such as Fig. 9 As shown, it includes a processor 901, a communication interface 902, a memory 903 and a communication bus 904, wherein the processor 901, the communication interface 902, and the memory 903 communicate with each other through the communication bus 904.

[0254] Memory 903, used for storing computer programs;

[0255] The processor 901 is used to implement any method step of the above data storage method when executing the program stored in the memory 903.

[0256] By selecting the above embodiment, the client sends a resource loading request including a user identity identifier and a target start time of operation to the server. The server can determine the target virtual resource to be loaded from the virtual resources corresponding to the user identity identifier based on the user identity identifier and the target start time of operation, and send the target virtual resource to the client.

[0257] Since the target virtual resource includes the target virtual character data and the initialization event data of the target virtual character, when the client receives the target virtual resource sent by the server, it can load the target virtual character based on the target virtual character data in the target virtual resource, and load the target event based on the initialization event data in the target virtual resource, thereby completing the loading process of the data in the virtual resource.

[0258] The communication bus mentioned in the above terminal can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0259] The communication interface is used for communication between the above server and other devices.

[0260] The memory may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0261] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0262] In another embodiment provided in the present application, a computer-readable storage medium is provided, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the data loading method described in any one of the above embodiments is implemented.

[0263] By selecting the above embodiment, the client sends a resource loading request including a user identity identifier and a target start time of operation to the server. The server can determine the target virtual resource to be loaded from the virtual resources corresponding to the user identity identifier based on the user identity identifier and the target start time of operation, and send the target virtual resource to the client.

[0264] Since the target virtual resource includes the target virtual character data and the initialization event data of the target virtual character, when the client receives the target virtual resource sent by the server, it can load the target virtual character based on the target virtual character data in the target virtual resource, and load the target event based on the initialization event data in the target virtual resource, thereby completing the loading process of the data in the virtual resource.

[0265] In another embodiment provided in the present application, a computer program product including instructions is also provided, which, when executed on a computer, enables the computer to execute the data loading method described in any one of the above embodiments.

[0266] By selecting the above embodiment, the client sends a resource loading request including a user identity identifier and a target start time of operation to the server. The server can determine the target virtual resource to be loaded from the virtual resources corresponding to the user identity identifier based on the user identity identifier and the target start time of operation, and send the target virtual resource to the client.

[0267] Since the target virtual resource includes the target virtual character data and the initialization event data of the target virtual character, when the client receives the target virtual resource sent by the server, it can load the target virtual character based on the target virtual character data in the target virtual resource, and load the target event based on the initialization event data in the target virtual resource, thereby completing the loading process of the data in the virtual resource.

[0268] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive Solid State Disk (SSD)), etc.

[0269] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0270] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device, client, server and storage medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.

[0271] The above description is only a preferred embodiment of the present application and is not intended to limit the protection scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application are included in the protection scope of the present application.

Claims

1. A data loading method, characterized in that: Applied to a client, the method comprises: Sending a resource loading request including a user identity identifier and a target start time of operation to a server, so that the server determines a target virtual resource to be loaded from the stored virtual resources corresponding to the user identity identifier according to the user identity identifier and the target start time of operation, and sends the target virtual resource to the client; The target virtual resource includes target virtual character data and initialization event data of the target virtual character, wherein the target virtual character data indicates the character state of the target virtual character at the target start time, and the initialization event data indicates the state of the target event in which the target virtual character participates at the target start time; receiving the target virtual resource; A target virtual character is loaded based on the target virtual character data in the target virtual resource, and a target event is loaded based on the initialization event data in the target virtual resource.

2. The method according to claim 1, characterized in that The target start execution time is the time of the designated operation instruction, or the time recorded in the target virtual resource stored in the server.

3. The method according to claim 1, characterized in that: The target virtual resource also includes target scene map data, and the target scene map represented by the target scene map data is: the scene map where the target virtual character is located at the target start running time; After receiving the target virtual resource, the method further includes: Based on the target scene map data, the target scene map where the target virtual character is located is loaded.

4. The method according to claim 1, characterized in that: The method further comprises: In response to the resource storage instruction, the virtual resource corresponding to the user identity at the current moment is uploaded to the server.

5. The method according to any one of claims 1 to 4, characterized in that In the case that there are multiple target virtual characters, target virtual character data corresponding to each target virtual character in the target virtual resource is received and respectively sent by the server through multiple threads.

6. The method according to any one of claims 1 to 4, characterized in that In the case where there are multiple target virtual characters, each target virtual character is loaded respectively through multiple threads.

7. A data loading method, characterized in that: Applied to a server, the method comprises: In response to a resource loading request including a user identity and a target start time of operation sent by a client, a target virtual resource to be loaded is determined from the stored virtual resources corresponding to the user identity according to the user identity and the target start time of operation; Sending the target virtual resource to the client, so that after receiving the target virtual resource, the client loads the target virtual character based on the target virtual character data in the target virtual resource, and loads the target event based on the initialization event data in the target virtual resource; Among them, the target virtual resources include target virtual character data and initialization event data of the target virtual character, the target virtual character data represents the role state of the target virtual character at the target start time, and the initialization event data represents the state of the target event in which the target virtual character participates at the target start time.

8. The method according to claim 7, characterized in that The target start execution time is the time of the designated operation instruction, or the time recorded in the target virtual resource stored in the server.

9. The method according to claim 7, characterized in that: The target virtual resource also includes target scene map data, and the target scene map represented by the target scene map data is: a scene map where the target virtual character is located at the target start time; sending the target virtual resource to the client so that the client loads the target virtual character based on the target virtual character data in the target virtual resource after receiving the target virtual resource, and loads the target event based on the initialization event data in the target virtual resource, including: The target virtual resource is sent to the client, so that after receiving the target virtual resource containing the target scene map data, the client loads the target virtual character based on the target virtual character data in the target virtual resource, loads the target scene map where the target virtual character is located based on the target scene map data in the target virtual resource, and loads the target event based on the initialization event data in the target virtual resource.

10. The method according to claim 7, characterized in that The method further comprises: Receive the virtual resource corresponding to the user identity at the current moment uploaded by the client in response to the resource storage instruction.

11. The method according to any one of claims 7 to 10, characterized in that: In the case that there are multiple target virtual characters, target virtual character data corresponding to each target virtual character is sent to the client through multiple threads respectively.

12. A data loading device, characterized in that: Applied to a client, the device comprises: A request sending module, used to send a resource loading request including a user identity identifier and a target start running time to a server, so that the server determines a target virtual resource to be loaded from the stored virtual resources corresponding to the user identity identifier according to the user identity identifier and the target start running time, and sends the target virtual resource to the client; The target virtual resource includes target virtual character data and initialization event data of the target virtual character, wherein the target virtual character data indicates the character state of the target virtual character at the target start time, and the initialization event data indicates the state of the target event in which the target virtual character participates at the target start time; A resource receiving module, used for receiving the target virtual resource; The data loading module is used to load the target virtual character based on the target virtual character data in the target virtual resource, and to load the target event based on the initialization event data in the target virtual resource.

13. A data loading device, characterized in that: Applied to a server, the device comprises: A resource determination module, configured to respond to a resource loading request including a user identity identifier and a target start time of operation sent by a client, and determine a target virtual resource to be loaded from the stored virtual resources corresponding to the user identity identifier according to the user identity identifier and the target start time of operation; A resource sending module, used for sending the target virtual resource to the client, so that after receiving the target virtual resource, the client loads the target virtual character based on the target virtual character data in the target virtual resource, and loads the target event based on the initialization event data in the target virtual resource; Among them, the target virtual resources include target virtual character data and initialization event data of the target virtual character, the target virtual character data represents the role state of the target virtual character at the target start time, and the initialization event data represents the state of the target event in which the target virtual character participates at the target start time.

14. A client, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor, for implementing the method steps described in any one of claims 1 to 6 when executing a program stored in a memory.

15. A server, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor, for implementing the method steps described in any one of claims 7-11 when executing a program stored in a memory.

16. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method steps described in any one of claims 1-6 or 7-11 are implemented.