A method, device, equipment and storage medium for configuring virtual scene files
By dividing virtual scene files into independent scene categories and managing permissions, the problem of inefficient configuration for multiple people at the same time is solved, and efficient and secure virtual scene file configuration is achieved.
Patent Information
- Application Number
- CN202110968671.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-23
- Publication Date
- 2025-09-02
- Estimated Expiration
- 2041-08-23
AI Technical Summary
When multiple people configure virtual scene files at the same time, the efficiency in the prior art is low because only one person is allowed to configure the scene files at the same time, resulting in waiting and conflict problems.
Divide virtual scene files into multiple independent scene categories, each category corresponds to a scene file, allowing multiple people to configure scene files of different categories at the same time, and improve efficiency through permission verification and conflict management.
Through the division and permission management of independent scene files, the efficiency and security of multiple people configuring virtual scene files at the same time are achieved, avoiding configuration conflicts and improving overall configuration efficiency.
Smart Images

Figure CN115708957B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to computer technology, and in particular to a method, apparatus, device, and computer-readable storage medium for configuring a virtual scene file. Background Art
[0002] In virtual scene applications such as shooting games or role-playing games, one virtual scene corresponds to one scene file. The scene file is used to store scene elements corresponding to various scene categories of the virtual scene, such as scene elements related to planning, scene elements related to art, etc. Relevant personnel can configure the corresponding scene elements through the scene file. Since configuring any scene element will cause the scene file to be updated, when multiple people configure the scene elements at the same time, it will cause configuration conflicts.
[0003] To this end, when multiple people need to configure scene elements, the relevant technology only allows one person to configure the scene file at the same time. For example, when the first person configures the scene file, the scene file is first locked to prevent others from configuring the scene file at the same time. When the first person completes the configuration and unlocks the scene file, the second person is allowed to configure the scene file, and so on, until all personnel have completed the configuration. It can be seen that this configuration method is inefficient. Summary of the Invention
[0004] Embodiments of the present application provide a method, apparatus, device, and computer-readable storage medium for configuring a virtual scene file, which can improve the efficiency of configuring the virtual scene file.
[0005] The technical solution of the embodiment of the present application is implemented as follows:
[0006] The present application provides a method for configuring a virtual scene file, which is applied to a server and includes:
[0007] receiving a configuration request for a scene file of a virtual scene;
[0008] Determining, based on the configuration request, at least two scene categories corresponding to the virtual scene, and scene files corresponding to each of the scene categories, wherein the scene files corresponding to different scene categories are independent of each other;
[0009] Returning the scene files corresponding to the scene categories, so as to display the scene elements of the corresponding scene categories based on the scene files;
[0010] receiving a first configuration instruction for a first scene element in a first scene file, where the first configuration instruction carries configuration data corresponding to the first scene element;
[0011] In response to the first configuration instruction, the first scene element of the first scene file is configured based on the configuration data corresponding to the first scene element.
[0012] The embodiment of the present application provides a configuration device for a virtual scene file, which is provided on a server and includes:
[0013] A first receiving module is configured to receive a configuration request for a scene file of a virtual scene;
[0014] A file determination module, configured to determine, based on the configuration request, at least two scene categories corresponding to the virtual scene, and scene files corresponding to each of the scene categories, wherein the scene files corresponding to different scene categories are independent of each other;
[0015] A first returning module, configured to return a scene file corresponding to each of the scene categories, so as to display scene elements of the corresponding scene category based on the scene file;
[0016] a second receiving module, configured to receive a first configuration instruction for a first scene element in a first scene file, where the first configuration instruction carries configuration data corresponding to the first scene element;
[0017] The first configuration module is configured to configure the first scene element of the first scene file based on the configuration data corresponding to the first scene element in response to the first configuration instruction.
[0018] In the above solution, after receiving the configuration request for the scene file of the virtual scene, the device further includes:
[0019] A first verification module is configured to parse the configuration request and obtain a target account number carried in the configuration request;
[0020] Performing permission verification on the target account for the configuration permission of the virtual scene to obtain a verification result;
[0021] The first returning module is further configured to return the scenario files corresponding to each scenario category to the terminal corresponding to the target account when the verification result indicates that the target account has the configuration permission.
[0022] In the above solution, the first configuration module is further configured to determine a target account to which the first configuration instruction is sent in response to the first configuration instruction;
[0023] Based on the configuration permissions of the first scenario file, verify the permissions of the target account and obtain a verification result;
[0024] When the verification result indicates that the target account has the configuration permission, configuring the first scene element of the first scene file based on the configuration data corresponding to the first scene element;
[0025] The device further comprises:
[0026] The first prompt returning module is configured to return a first prompt message when the verification result indicates that the target account does not have the configuration permission, wherein the first prompt message is used to prompt that the target account does not have the configuration permission for the first scenario file.
[0027] In the above solution, after configuring the first scene element of the first scene file, the device further includes:
[0028] A second returning module is used to obtain a new first scene file obtained after the configuration of the first scene element is completed;
[0029] The new first scene file is returned to display scene elements of the scene category corresponding to the new first scene file based on the new first scene file.
[0030] In the above solution, the first configuration instruction is sent by the first account, and the device further includes:
[0031] The second configuration module is configured to, within a target time period after receiving the first configuration instruction, or during the process of configuring the first scene element of the first scene file,
[0032] receiving a second configuration instruction for a second scene element in a second scene file sent by a second account, where the second configuration instruction carries configuration data corresponding to the second scene element;
[0033] In response to the second configuration instruction, the second scene element of the second scene file is configured based on the configuration data corresponding to the second scene element.
[0034] In the above solution, the device further comprises:
[0035] a third returning module, configured to obtain a new first scene file obtained after the configuration of the first scene element is completed, and send the new first scene file to the terminal corresponding to the first account and the terminal corresponding to the second account;
[0036] A new second scene file obtained after the second scene element configuration is completed is obtained, and the new second scene file is sent to the terminal corresponding to the second account and the terminal corresponding to the first account.
[0037] In the above solution, the first configuration instruction is sent by the first account, and after configuring the first scene element of the first scene file, the device further includes:
[0038] a second prompt return module configured to receive, during configuration of the first scene element of the first scene file, a third configuration instruction for a third scene element in the first scene file sent from a third account, the third configuration instruction carrying configuration data corresponding to the third scene element;
[0039] In response to the third configuration instruction, returning a second prompt message to the terminal corresponding to the third account;
[0040] The second prompt information is used to prompt that there is a configuration conflict for the first scene file.
[0041] In the above solution, the device further comprises:
[0042] A third prompt return module is used to obtain a new first scene file obtained after the first scene element configuration is completed;
[0043] Sending the new first scene file and the third prompt information to the terminal corresponding to the third account;
[0044] The third prompt information is used to prompt the third account to reconfigure the scene elements based on the new first scene file.
[0045] In the above solution, the first configuration instruction is sent by the first account, and the first configuration module is further used to determine the first version corresponding to the first scenario file configured as instructed by the first configuration instruction;
[0046] Comparing the first version with the second version of the local first scene file to obtain a comparison result;
[0047] When the comparison result indicates that the first version is consistent with the second version, configuring the first scene element of the first scene file based on the configuration data corresponding to the first scene element to obtain a third version of the first scene file;
[0048] The device further comprises:
[0049] a fourth prompt returning module, configured to return a fourth prompt message to the terminal corresponding to the first account when the comparison result indicates that the first version and the second version are inconsistent;
[0050] The fourth prompt information is used to prompt to update the version of the first scene file.
[0051] The present invention provides a method for configuring a virtual scene file, which is applied to a terminal and includes:
[0052] In a configuration interface corresponding to a scene file of a virtual scene, scene elements of each of at least two scene categories included in the virtual scene are displayed, and scene files corresponding to different scene categories are independent of each other;
[0053] During the display of the scene elements, in response to a configuration operation on a first scene element in a first scene category, sending a first configuration instruction for the first scene element, the first configuration instruction carrying configuration data corresponding to the first scene element;
[0054] A new first scene file obtained after configuring the first scene element based on the configuration data is received, and the displayed first scene element is updated based on the new first scene file.
[0055] The present invention provides a device for configuring a virtual scene file, which is provided in a terminal. The device includes:
[0056] An element display module, configured to display, in a configuration interface corresponding to a scene file of a virtual scene, scene elements of each of at least two scene categories included in the virtual scene, wherein the scene files corresponding to different scene categories are independent of each other;
[0057] an instruction sending module, configured to send, in response to a configuration operation on a first scene element in a first scene category during display of the scene elements, a first configuration instruction for the first scene element, the first configuration instruction carrying configuration data corresponding to the first scene element;
[0058] The file updating module is configured to receive a new first scene file obtained after configuring the first scene element based on the configuration data, and update the displayed first scene element based on the new first scene file.
[0059] In the above solution, after sending the first configuration instruction for the first scene element, the apparatus further includes:
[0060] A progress display module, used to display the configuration progress corresponding to the first scene element indicated by the current account;
[0061] When there are at least two accounts configuring scene elements of the virtual scene, the configuration progress corresponding to the scene elements configured by each account is displayed respectively.
[0062] In the above solution, after sending the first configuration instruction for the first scene element, the apparatus further includes:
[0063] a prompt display module, configured to, if the current account does not have the configuration permission for the first scenario file, present a first prompt message to indicate that the current account does not have the configuration permission for the first scenario file;
[0064] When there is a configuration conflict for the first scenario file, presenting second prompt information to prompt that there is a configuration conflict for the first scenario file, and after receiving a new first scenario file, presenting third prompt information to prompt that the scenario elements be reconfigured based on the new first scenario file;
[0065] When the version of the first scenario file configured as instructed by the first configuration instruction is not the latest version, fourth prompt information is presented to prompt the user to update the version of the first scenario file.
[0066] An embodiment of the present application provides an electronic device, including:
[0067] a memory for storing executable instructions;
[0068] The processor is used to implement the configuration method of the virtual scene file provided in the embodiment of the present application when executing the executable instructions stored in the memory.
[0069] An embodiment of the present application provides a computer-readable storage medium storing executable instructions for causing a processor to execute instructions to implement the method for configuring a virtual scene file provided in the embodiment of the present application.
[0070] The embodiments of the present application have the following beneficial effects:
[0071] A configuration request for a scene file for a virtual scene is received; based on the configuration request, at least two scene categories corresponding to the virtual scene and scene files corresponding to each scene category are determined, and the scene files corresponding to different scene categories are independent of each other; the scene files corresponding to each scene category are returned to display the scene elements of the corresponding scene category based on the scene files; a first configuration instruction for a first scene element in a first scene file is received, and the first configuration instruction carries configuration data corresponding to the first scene element; in response to the first configuration instruction, the first scene element of the first scene file is configured based on the configuration data corresponding to the first scene element; in this way, the scene files of the virtual scene are divided into multiple scene files according to the scene categories, and the scene files corresponding to different scene categories are independent of each other, so that different personnel can configure the scene files of the corresponding scene categories at the same time, thereby improving the configuration efficiency of the scene files. BRIEF DESCRIPTION OF THE DRAWINGS
[0072] Figure 1 A schematic diagram of an optional architecture of a virtual scene file configuration system provided in an embodiment of the present application;
[0073] Figure 2 An optional structural diagram of an electronic device provided in an embodiment of the present application;
[0074] Figure 3 A flowchart of a method for configuring a virtual scene file provided in an embodiment of the present application;
[0075] Figure 4 A flowchart of a method for configuring a virtual scene file provided in an embodiment of the present application;
[0076] Figure 5 A flowchart of a method for configuring a virtual scene file provided in an embodiment of the present application;
[0077] Figure 6 A schematic diagram of the architecture of the scene file provided in the embodiment of the present application;
[0078] Figure 7 A schematic diagram of the architecture of the scene file provided in the embodiment of the present application;
[0079] Figures 8A-8C A schematic diagram of the configuration of the scene file provided in the embodiment of the present application;
[0080] Figure 9 A schematic diagram of the structure of a device for configuring a virtual scene file provided in an embodiment of the present application;
[0081] Figure 10 A schematic diagram of the structure of a virtual scene file configuration device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0082] In order to make the purpose, technical solutions and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings. The described embodiments should not be regarded as limiting this application. All other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0083] In the following description, reference is made to “some embodiments”, which describes a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0084] In the following description, the terms "first\second..." are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It is understandable that "first\second..." can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.
[0085] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art to which this application pertains. The terms used herein are for the purpose of describing the embodiments of this application only and are not intended to limit this application.
[0086] Before further describing the embodiments of the present application in detail, the nouns and terms involved in the embodiments of the present application are explained. The nouns and terms involved in the embodiments of the present application are subject to the following interpretations.
[0087] 1) Client: An application running in a terminal to provide various services, such as a video player client, an instant messaging client, a game client, etc.
[0088] 2) In response, it is used to indicate the conditions or states on which the executed operations depend. When the dependent conditions or states are met, one or more operations executed can be real-time or have a set delay. Unless otherwise specified, there is no restriction on the order in which the multiple operations executed are executed.
[0089] 3) A virtual scene is a virtual scene displayed (or provided) when an application is running on a terminal. This virtual scene can be a simulation of the real world, a virtual environment that is partially simulated and partially fictional, or a purely fictional virtual environment. The virtual scene can be any of two-dimensional, two-and-a-half-dimensional, or three-dimensional. The embodiments of this application do not limit the dimensionality of the virtual scene.
[0090] For example, when the virtual scene is a three-dimensional virtual space, the three-dimensional virtual space can be an open space. The virtual scene can be used to simulate a real-world environment. For example, the virtual scene can include the sky, land, ocean, etc., and the land can include environmental elements such as deserts and cities. Of course, the virtual scene can also include virtual objects, such as buildings, vehicles, and weapons and other props that virtual objects in the virtual scene use to arm themselves or fight other virtual objects. The virtual scene can also be used to simulate real-world environments under different weather conditions, such as sunny, rainy, foggy, or dark weather. Users can control the movement of virtual objects in the virtual scene.
[0091] See also Figure 1 , Figure 1This is an optional architectural diagram of a virtual scene file configuration system 100 provided in an embodiment of the present application. The virtual scene file configuration system 100 provided in an embodiment of the present application is composed of terminals (including terminal 200-1 and terminal 200-2) and a server 300. The terminals are provided with clients, such as video playback clients, instant messaging clients, game clients, etc., and the server 300 is a backend server corresponding to the clients on the terminals. To support an exemplary application, the terminals (such as terminal 200-1 and terminal 200-2) are connected to the server 300 via a network. The network can be a wide area network or a local area network, or a combination of the two, and wireless links are used to achieve data transmission.
[0092] In actual applications, the terminals (such as terminal 200-1 and terminal 200-2) can be various types of user terminals such as smart phones, tablet computers, laptops, etc., and can also be desktop computers, game consoles, televisions, or a combination of any two or more of these data processing devices; the server 300 can be a separately configured server that supports various services, or it can be configured as a server cluster, or it can be a cloud server, etc.
[0093] In actual application, when the user configures the scene file of the virtual scene through the terminal, the terminal presents the configuration interface corresponding to the scene file of the virtual scene, and in response to the configuration operation triggered based on the configuration interface, sends a configuration request for the scene file of the virtual scene to the server 300; based on the configuration request, the server 300 determines at least two scene categories corresponding to the virtual scene, and the scene files corresponding to each scene category, the scene files corresponding to different scene categories are independent, and returns the determined scene files corresponding to each scene category to the terminal; based on the scene files corresponding to each scene category, the terminal displays the scene elements of each scene category in the at least two scene categories included in the virtual scene in the configuration interface corresponding to the scene file of the virtual scene, and in the process of displaying the scene elements, in response to the configuration operation for the first scene element in the first scene category, sends a first configuration instruction for the first scene element to the server 300, wherein the first configuration instruction carries the configuration data corresponding to the first scene element; in response to the first configuration instruction, the server 300 configures the first scene element of the first scene file based on the configuration data corresponding to the first scene element, obtains a new first scene file, and returns the new first scene file to the terminal; the terminal updates the displayed first scene element based on the new first scene file.
[0094] Next, the electronic device implementing the configuration method of the virtual scene file of the embodiment of the present application is described. Figure 2 , Figure 2 This is an optional structural diagram of the electronic device 500 provided in the embodiment of the present application. In practical applications, the electronic device 500 may be Figure 1 The terminal (such as terminal 200-1 and terminal 200-2) or server 300-2 in the electronic device is Figure 1 Taking the server 300 shown as an example, Figure 2 The electronic device 500 shown includes: at least one processor 510, a memory 550, at least one network interface 520 and a user interface 530. The various components in the electronic device 500 are coupled together via a bus system 540. It is understood that the bus system 540 is used to achieve connection and communication between these components. In addition to including a data bus, the bus system 540 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, the bus system 540 is not shown in FIG. Figure 2 Various buses are labeled as bus system 540 .
[0095] The processor 510 can be an integrated circuit chip with signal processing capabilities, such as a general-purpose processor, a digital signal processor (DSP), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc., where the general-purpose processor can be a microprocessor or any conventional processor, etc.
[0096] The user interface 530 includes one or more output devices 531 that enable presentation of media content, including one or more speakers and / or one or more visual display screens. The user interface 530 also includes one or more input devices 532, including user interface components that facilitate user input, such as a keyboard, mouse, microphone, touch screen display, camera, other input buttons and controls.
[0097] The memory 550 may be removable, non-removable, or a combination thereof. Exemplary hardware devices include solid-state memory, hard drives, optical drives, etc. The memory 550 may optionally include one or more storage devices that are physically remote from the processor 510.
[0098] The memory 550 includes volatile memory or non-volatile memory, or may include both volatile and non-volatile memory. The non-volatile memory may be a read-only memory (ROM), and the volatile memory may be a random access memory (RAM). The memory 550 described in the embodiments of the present application is intended to include any suitable type of memory.
[0099] In some embodiments, the memory 550 can store data to support various operations, examples of which include programs, modules, and data structures, or a subset or superset thereof, as exemplified below.
[0100] Operating system 551, including system programs for processing various basic system services and performing hardware-related tasks, such as the framework layer, core library layer, driver layer, etc., for implementing various basic services and processing hardware-based tasks;
[0101] A network communication module 552 for reaching other computing devices via one or more (wired or wireless) network interfaces 520 , exemplary network interfaces 520 including Bluetooth, WiFi, and USB;
[0102] a presentation module 553 for enabling presentation of information via one or more output devices 531 (e.g., a display screen, a speaker, etc.) associated with the user interface 530 (e.g., a user interface for operating peripheral devices and displaying content and information);
[0103] The input processing module 554 is configured to detect one or more user inputs or interactions from one of the one or more input devices 532 and to translate the detected inputs or interactions.
[0104] In some embodiments, the configuration device of the virtual scene file provided in the embodiments of the present application can be implemented in a software manner. Figure 2 A configuration device 555 of a virtual scene file stored in a memory 550 is shown, which can be software in the form of a program and plug-in, etc., including the following software modules: a first receiving module 5551, a file determination module 5552, a first return module 5553, a second receiving module 5554 and a first configuration module 5555. These modules are logical, and therefore can be arbitrarily combined or further split according to the functions implemented. The functions of each module will be explained below.
[0105] In other embodiments, the configuration device of the virtual scene file provided in the embodiments of the present application can be implemented in hardware. As an example, the configuration device of the virtual scene file provided in the embodiments of the present application can be a processor in the form of a hardware decoding processor, which is programmed to execute the configuration method of the virtual scene file provided in the embodiments of the present application. For example, the processor in the form of a hardware decoding processor can adopt one or more application-specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field-programmable gate arrays (FPGAs) or other electronic components.
[0106] Based on the above description of the configuration system of the virtual scene file provided in the embodiment of the present application, the configuration method of the virtual scene file provided in the embodiment of the present application is described below. In actual implementation, the method can be Figure 1 The terminal or server 300 shown is implemented separately, and can also be implemented by Figure 1 The terminal and server 300 shown are implemented in conjunction with each other. Figure 1 and Figure 3 , Figure 3 A flow chart of a method for configuring a virtual scene file provided in an embodiment of the present application, Figure 1 The server 300 shown is used as an example to illustrate the method for configuring a virtual scene file provided in an embodiment of the present application.
[0107] Step 101: The server receives a configuration request for a scene file of a virtual scene.
[0108] Here, in actual application, when the user configures the scene file of the virtual scene through the terminal, the application client of the virtual scene is first opened. The terminal responds to the opening operation, presents the configuration interface corresponding to the scene file of the virtual scene, and presents the button or option for configuring the scene file in the configuration interface. When the user triggers the button or option, the terminal responds to the triggering operation, generates and sends a configuration request for the scene file of the virtual scene to the server, so as to request the server to configure the scene file of the virtual scene.
[0109] Step 102: Based on the configuration request, determine at least two scene categories corresponding to the virtual scene and scene files corresponding to each scene category, where scene files corresponding to different scene categories are independent.
[0110] In actual applications, the scene categories of virtual scenes can be divided according to the division of labor of personnel. For example, personnel related to virtual scenes can be divided into: system managers, software developers, planners, art designers, special effects designers, and user interface (UI) designers. Correspondingly, the corresponding scene categories are: system scenes, software scenes, planning scenes, art scenes, special effects scenes, and UI scenes. Scene categories can also be divided according to the attribute categories of scene elements of virtual scenes. For example, according to whether the scene elements are dynamic elements, the scene categories can be divided into dynamic scenes and static scenes. For example, static scene elements such as buildings, land, and trees in virtual scenes correspond to static scenes; and dynamic scene elements such as virtual objects, virtual props, or special effects elements that can be moved in virtual scenes correspond to dynamic scenes.
[0111] The server stores the scene files corresponding to the multiple virtual scene categories included in the virtual scene. Since the configuration request can carry the scene identifier of the virtual scene, after receiving the configuration request, the server searches for the virtual scene corresponding to the virtual identifier and the scene files corresponding to the multiple scene categories included in the virtual scene based on the scene identifier carried in the configuration request.
[0112] Here, when using a virtual scene development engine, such as a game development engine (Unity), to develop a virtual scene, each scene category corresponds to a scene file, and the scene files corresponding to different scene categories are independent of each other. In this way, the scene files of different scene categories are decoupled. When configuring or modifying one of the scene files, other scene files can be configured or modified at the same time, which is conducive to improving the configuration efficiency of the scene files.
[0113] Step 103: Return the scene file corresponding to each scene category to display the scene elements of the corresponding scene category based on the scene file.
[0114] Here, after the server determines the scene files corresponding to the multiple scene categories of the corresponding virtual scene based on the configuration request, the scene files corresponding to the multiple scene categories are returned to the terminal, so as to display the scene elements of each scene category in the multiple scene categories included in the virtual scene in the configuration interface corresponding to the scene files of the virtual scene presented by the terminal.
[0115] In some embodiments, after receiving a configuration request for a scene file for a virtual scene, the server can parse the configuration request to obtain the target account carried by the configuration request; perform permission verification on the target account for the configuration permission of the virtual scene to obtain a verification result; accordingly, when the verification result indicates that the target account has the configuration permission, the scene file corresponding to each scene category is returned to the terminal corresponding to the target account.
[0116] Here, the configuration permissions of the virtual scene are set. For example, if the developer who sets the virtual scene has the configuration permission for the virtual scene, when the server receives the configuration request, it parses the configuration request to obtain the scene identifier and target account carried in the configuration request, and verifies whether the target account has the configuration permission for the scene file of the virtual scene corresponding to the scene identifier. After the verification is passed, the server returns the scene files of each scene category in the multiple scene categories included in the virtual scene to the terminal corresponding to the target account; when the verification fails, that is, the target account does not have the configuration permission for the virtual scene, the server can also send a prompt message to the terminal corresponding to the target account to remind the target account that it does not have the configuration permission for the virtual scene; in this way, it can prevent any person from configuring the scene files of the virtual scene, thereby ensuring the security of the scene files.
[0117] Step 104: Receive a first configuration instruction for a first scene element in a first scene file, where the first configuration instruction carries configuration data corresponding to the first scene element.
[0118] Here, after the server returns the scene files corresponding to each scene category to the terminal, the terminal displays the scene elements of each scene category in at least two scene categories included in the virtual scene in the configuration interface corresponding to the scene files of the virtual scene based on the scene files corresponding to each scene category. In the process of displaying the scene elements, the user can perform configuration operations such as adding, modifying, and deleting the scene elements. For example, configuration operations such as adding, modifying, or deleting the first scene element in the first scene file among the multiple scene files included in the virtual scene are performed. The terminal collects the configuration data corresponding to the configuration of the first scene element. When the user decides to submit the configuration data, the terminal generates and sends the corresponding first configuration instruction to the server in response to the submission operation on the configuration data.
[0119] Step 105: In response to the first configuration instruction, configure the first scene element of the first scene file based on the configuration data corresponding to the first scene element.
[0120] Here, after the server receives the first configuration instruction sent by the terminal, it responds to the first configuration instruction and configures the first scene element of the first scene file based on the configuration data corresponding to the first scene element carried by the first configuration instruction, obtains the new first scene file obtained after the configuration of the first scene element is completed, and returns the new first scene file to the corresponding terminal, so that the corresponding terminal displays the scene element of the scene category corresponding to the new first scene file based on the new first scene file.
[0121] Here, the process of the server configuring the first scene element of the first scene file is the process of updating the first scene file. When the configuration of the first scene element is completed, a new first scene file is updated and returned to the corresponding terminal for display.
[0122] In some embodiments, the server may respond to the first configuration instruction and configure the first scene element of the first scene file based on the configuration data corresponding to the first scene element in the following manner: in response to the first configuration instruction, determine the target account to which the first configuration instruction is sent; perform permission verification on the target account with respect to the configuration permission of the first scene file to obtain a verification result; when the verification result indicates that the target account has the configuration permission, configure the first scene element of the first scene file based on the configuration data corresponding to the first scene element; correspondingly, when the verification result indicates that the target account does not have the configuration permission, return a first prompt message, wherein the first prompt message is used to prompt that the target account does not have the configuration permission for the first scene file.
[0123] Here, the configuration permissions for the first scene file are set. When the scene categories are divided according to the division of labor among personnel, the target personnel can only configure the scene files of the corresponding scene categories. For example, planners can only configure the scene files corresponding to the planning scenes, but cannot configure the scene files corresponding to the art scenes. Art designers can only configure the scene files corresponding to the art scenes, but cannot configure the scene files corresponding to the planning scenes.
[0124] In response to the first configuration instruction, the server determines the target account to which the first configuration instruction is sent, and verifies whether the target account has the configuration permission for the first scene file. After the verification is passed, the server configures the first scene element of the first scene file based on the configuration data corresponding to the first scene element. When the verification fails, the server sends a first prompt message indicating that the target account does not have the configuration permission for the first virtual file to the terminal corresponding to the target account; in this way, it can prevent people who do not have the configuration permission for the first virtual scene file from configuring the first scene file, and ensure the security of the configuration of the first scene file.
[0125] In some embodiments, when the server receives a configuration request for a virtual scene, it first parses the target account carried in the configuration request and verifies whether the target account has the configuration permission for the scene file of the virtual scene. After the verification is passed, the server returns the scene files of each scene category in the multiple scene categories included in the virtual scene to the terminal corresponding to the target account; when receiving the first configuration instruction of the target account for the first scene element in the first scene file, it further verifies whether the target account has the configuration permission for the first scene file. After the verification is passed, the server configures the first scene element of the first scene file based on the configuration data corresponding to the first scene element; in this way, through double verification, the first scene file is only configured when the double verification is passed, thereby ensuring the security of the configuration of the first virtual scene file.
[0126] In some embodiments, assuming that the first configuration instruction is sent by the first account, the server also receives a second configuration instruction for the second scene element in the second scene file sent by the second account within the target time period of receiving the first configuration instruction, or in the process of configuring the first scene element in the first scene file, wherein the second configuration instruction carries the configuration data corresponding to the second scene element; in response to the second configuration instruction, the second scene element of the second scene file is configured based on the configuration data corresponding to the second scene element.
[0127] Among them, the first account and the second account are different, the first scene file and the second scene file are not the same scene file, and the target time period is used to indicate that the server has not completed the configuration of the first scene element of the first scene file in response to the first configuration instruction. When the configuration of the first scene element of the first scene file has not been completed, when the server receives a second configuration instruction sent by other accounts for a second scene file different from the first scene file, the server responds to the second configuration instruction and configures the second scene element of the second scene file based on the configuration data corresponding to the second scene element carried by the second configuration instruction; in this way, the server can configure the scene files corresponding to different accounts at the same time, thereby achieving the purpose of multi-person cooperation in configuring virtual scene files and improving the configuration efficiency of virtual scene files.
[0128] In some embodiments, the server may also obtain a new first scene file obtained after the configuration of the first scene element is completed, and send the new first scene file to the terminal corresponding to the first account and the terminal corresponding to the second account; obtain a new second scene file obtained after the configuration of the second scene element is completed, and send the new second scene file to the terminal corresponding to the second account and the terminal corresponding to the first account.
[0129] Here, after the server completes the configuration of the first scene file requested by the first account, or completes the configuration of the second scene file requested by the second account, it sends the new first scene file or the new second scene file obtained after the configuration is completed to the terminals corresponding to all accounts that log in to the virtual scene, such as the terminal corresponding to the first account and the terminal corresponding to the second account. In this way, after the server completes the configuration of the scene elements and obtains the new scene file, it sends the new scene file to the terminals corresponding to all accounts that log in to the virtual scene, thereby achieving the purpose of configuration by one person and synchronous configuration on other sides.
[0130] In some embodiments, assuming that the first configuration instruction is sent by the first account, after the server configures the first scene element of the first scene file, during the process of configuring the first scene element of the first scene file, a third configuration instruction for the third scene element in the first scene file is received from a third account, and the third configuration instruction carries the configuration data corresponding to the third scene element; in response to the third configuration instruction, a second prompt message is returned to the terminal corresponding to the third account; wherein the second prompt message is used to prompt that there is a configuration conflict for the first scene file.
[0131] Among them, the third account is different from the first account, and the third scene element may be the same as or different from the first scene element. When the server configures the first scene element of the first scene file, it also receives a third configuration instruction for the first scene file from the third account, that is, there are multiple accounts requesting to configure the same scene file within the target time period (used to indicate that the server has not completed the configuration of the first scene file). In response to the third configuration instruction, the server does not configure the third scene element of the first scene file based on the configuration data corresponding to the third scene element carried by the third configuration instruction, but sends a configuration conflict prompt message to the terminal corresponding to the third account.
[0132] For example, when user A and user B configure scene elements in the same scene file 1, if user A first sends a configuration instruction for scene file 1 to the server, the server configures scene file 1 in response to the configuration instruction sent by user A. During the configuration process, user B sends a configuration instruction for scene file 1 to the server, then the server is prohibited from configuring scene file 1 based on the configuration instruction sent by user B, and instead sends a configuration conflict prompt message to the terminal corresponding to user B; in this way, multiple people are prohibited from configuring the same scene file at the same time to avoid configuration conflicts.
[0133] In some embodiments, after the server completes the configuration of the first scene element, it can also obtain a new first scene file obtained after the configuration of the first scene element is completed, and send the new first scene file and a third prompt message to the terminal corresponding to the third account; wherein, the third prompt message is used to prompt the third account to reconfigure the scene element based on the new first scene file.
[0134] Here, the server sends a configuration conflict prompt message to the terminal corresponding to the third account, and prohibits the configuration of the first scene file based on the third configuration instruction sent by the third account. When the server completes the configuration of the first scene file based on the first configuration instruction sent by the first account, a new first scene file is obtained. While sending the newly obtained first scene file to the terminal corresponding to the first account, the new first scene file is sent to the terminal corresponding to the third account, so that the third account configures the scene elements in the new first scene file based on the new first scene file.
[0135] Continuing with the above example, when the server completes the configuration of scene file 1 based on the configuration instructions sent by user A, it obtains a new scene file 1 and sends the new scene file 1 and the third prompt information to the terminal corresponding to user B to prompt user B to reconfigure the scene elements in the new scene file 1 based on the new scene file 1.
[0136] In some embodiments, assuming that the first configuration instruction is sent by the first account, the server can configure the first scene element of the first scene file based on the configuration data corresponding to the first scene element in the following manner: determine the first version corresponding to the first scene file configured as indicated by the first configuration instruction; compare the first version with the second version of the local first scene file to obtain a comparison result; when the comparison result indicates that the first version is consistent with the second version, configure the first scene element of the first scene file based on the configuration data corresponding to the first scene element to obtain a third version of the first scene file; accordingly, when the comparison result indicates that the first version is inconsistent with the second version, return a fourth prompt message to the terminal corresponding to the first account; wherein the fourth prompt message is used to prompt to update the version of the first scene file.
[0137] In actual applications, each scene file has a corresponding version. After the server completes the configuration of the scene file, it updates the version of the scene file and saves the latest version of the scene file locally on the server. The latest version of the scene file is sent to the terminals of each account that logs into the virtual scene, so that the scene elements of the latest version of the scene file can be displayed on each terminal.
[0138] When the server receives the first configuration instruction for the first scene file sent by the first account, since the first configuration instruction can carry the version of the first scene file (such as the first version), the server can obtain the first version of the first scene file configured by the first configuration instruction, and compare the first version with the second version (i.e., the latest version) of the first scene file stored locally. When the first version is consistent with the second version, that is, the first version is the latest version, the server configures the first scene element of the first scene file of the first version based on the configuration data corresponding to the first scene element, obtains the third version of the first scene file, updates the version of the locally stored first scene file from the second version to the third version, and returns the third version of the first scene file to the terminals corresponding to each account that logs into the virtual scene, so as to display the scene elements of the third version of the first scene file on each terminal. When the first version is inconsistent with the second version, that is, the first version is not the latest version, the server returns a message to prompt the first account to update the version of the first scene file to the terminal corresponding to the first terminal, and configures the scene elements based on the latest version of the first scene file.
[0139] For example, before user A and user B configure the first scenario file, the latest version of the first scenario file is V1.0, that is, the version of the first scenario file stored in the server is V1.0; then user A and user B respectively configure the V1.0 version of the first scenario file. If user A first sends a first configuration instruction for the first scenario file to the server, the server responds to the first configuration instruction and determines that the version of the first scenario file configured as indicated by the first configuration instruction is consistent with the locally stored version (both are V1.0). Based on the configuration data corresponding to the first scenario element carried by the first configuration instruction, the first scenario element of the V1.0 version of the first scenario file is configured to obtain the V2.0 version of the first scenario file; then user B sends a third configuration instruction for the first scenario file to the server. When the server responds to the third configuration instruction and determines that the version of the first scenario file configured as indicated by the third configuration instruction (V1.0) is inconsistent with the locally stored version (V2.0), it returns a prompt message to the terminal corresponding to user B, prompting user B to update the version of the first scenario file, so as to prompt user B to configure the normal scenario element in the V2.0 version of the first scenario file.
[0140] By configuring the latest version of the scene file through the server in the above manner, it is possible to ensure that each account configures the scene elements in the scene file based on the latest version of the scene file, thereby avoiding configuration conflicts.
[0141] Next, the configuration method of the virtual scene file provided in the embodiment of the present application will be described. In some embodiments, combined with Figure 1 and Figure 4 , Figure 4 A flow chart of a method for configuring a virtual scene file provided in an embodiment of the present application, Figure 1 The method for configuring the virtual scene file provided in the embodiment of the present application is described as an example in which the terminal alone implements the method.
[0142] Step 201: The terminal displays scene elements of each of at least two scene categories included in the virtual scene in a configuration interface corresponding to the scene file of the virtual scene, and the scene files corresponding to different scene categories are independent.
[0143] In actual applications, when the user configures the scene file of the virtual scene through the terminal, the application client of the virtual scene is first opened. The terminal responds to the opening operation, presents the configuration interface corresponding to the scene file of the virtual scene, and presents the button or option for configuring the scene file in the configuration interface. When the user triggers the button or option, the terminal responds to the triggering operation, generates and sends a configuration request for the scene file of the virtual scene to the server, so as to request the server to configure the scene file of the virtual scene.
[0144] The server stores scene files corresponding to multiple virtual scene categories included in the virtual scene. Upon receiving a configuration request, the server searches for the virtual scene corresponding to the virtual identifier and the scene files corresponding to the multiple scene categories included in the virtual scene based on the scene identifier carried in the configuration request, and returns the scene files corresponding to each scene category to the terminal. After receiving the scene files corresponding to each scene category, the terminal displays the scene elements of each of the multiple scene categories included in the virtual scene on the configuration interface corresponding to the scene file of the virtual scene.
[0145] Step 202: During the display of scene elements, in response to a configuration operation on a first scene element in a first scene category, a first configuration instruction for the first scene element is sent, where the first configuration instruction carries configuration data corresponding to the first scene element.
[0146] Here, when the terminal is displaying scene elements, the user can perform configuration operations such as adding, modifying, and deleting scene elements. For example, the terminal can perform configuration operations such as adding, modifying, or deleting the first scene element in the first scene file corresponding to the first scene category in multiple scene files included in the virtual scene. The terminal collects the configuration data corresponding to the first scene element. When the user decides to submit the configuration data, the terminal generates and sends the corresponding first configuration instruction to the server in response to the submission operation on the configuration data.
[0147] After the server receives the first configuration instruction sent by the terminal, it responds to the first configuration instruction and configures the first scene element of the first scene file based on the configuration data corresponding to the first scene element carried by the first configuration instruction, obtains the new first scene file corresponding to the completion of the configuration of the first scene element, and returns the new first scene file to the corresponding terminal.
[0148] Step 203: Receive a new first scene file obtained after configuring the first scene element based on the configuration data, and update the displayed first scene element based on the new first scene file.
[0149] Here, after receiving the new first scene file, the terminal displays the scene elements of the scene category corresponding to the new first scene file based on the new first scene file.
[0150] In some embodiments, after the terminal sends the first configuration instruction for the first scene element, it can also display the configuration progress corresponding to the first scene element indicated by the current account; when there are at least two accounts configuring the scene elements of the virtual scene, the configuration progress corresponding to the scene elements indicated by each account is displayed respectively.
[0151] Here, the server responds to the first configuration instruction and, based on the configuration data corresponding to the first scene element carried by the first configuration instruction, during the process of configuring the first scene element of the first scene file, the server may return configuration progress prompt information to the terminal to display the configuration progress corresponding to the first scene element indicated by the current account in the terminal; when the server receives other configuration instructions for other scene files different from the first scene file sent by other accounts different from the current account (the number may be multiple) within the target time period of receiving the first configuration instruction, or during the process of configuring the first scene element of the first scene file, the server responds to the other configuration instructions and, based on the configuration data carried by the other configuration instructions, configures the scene elements of the other scene files, and returns configuration progress prompt information to all terminals requesting to configure the virtual scene, so as to display the configuration progress corresponding to the scene elements indicated by each account in all terminals requesting to configure the virtual scene; in this way, multiple accounts can configure different scene files of the virtual scene at the same time, thereby achieving the purpose of multi-person collaborative configuration of the virtual scene file and improving the configuration efficiency of the virtual scene file.
[0152] In some embodiments, after the terminal sends a first configuration instruction for a first scene element, if the current account does not have configuration permission for the first scene file, a first prompt message is presented to prompt that it does not have configuration permission for the first scene file; when there is a configuration conflict for the first scene file, a second prompt message is presented to prompt that there is a configuration conflict for the first scene file, and after receiving a new first scene file, a third prompt message is presented to prompt to reconfigure the scene element based on the new first scene file; when the version of the first scene file indicated by the first configuration instruction is not the latest version (the version on the server side), a fourth prompt message is presented to prompt to update the version of the first scene file.
[0153] Here, after the terminal sends the first configuration instruction for the first scene element to the server, the server responds to the first configuration instruction, determines the target account that sends the first configuration instruction, and verifies whether the target account has the configuration permission for the first scene file. After the verification is passed, the server configures the first scene element of the first scene file based on the configuration data corresponding to the first scene element. When the verification fails, the server sends a first prompt message indicating that the target account does not have the configuration permission for the first virtual file to the terminal corresponding to the target account; in this way, it can prevent people who do not have the configuration permission for the first virtual scene file from configuring the first scene file, and ensure the security of the configuration of the first scene file.
[0154] When other terminals also send configuration instructions for the first scene file to the server before the current terminal sends the first configuration instruction to the server, the server configures the first scene file based on the configuration instruction received first. If the server has not completed the configuration of the first scene file indicated by the configuration instructions sent by other terminals when the current terminal sends the first configuration instruction to the server, the server sends a second prompt message to the current terminal to prompt that there is a configuration conflict for the first scene file; in this way, multiple different accounts cannot configure the same scene file at the same time, which can avoid configuration conflicts. When the server completes the configuration of the first scene file indicated by the configuration instructions sent by other terminals, a new first scene file is obtained. The server sends the new first scene file to each terminal that logs into the virtual scene, and sends a third prompt message to the current terminal to prompt the reconfiguration of scene elements based on the new first scene file. The current terminal can reconfigure based on the first scene file based on the third prompt message.
[0155] After the terminal sends the first configuration instruction for the first scene element to the server, the server can obtain the first version of the first scene file configured as indicated by the first configuration instruction, and compare the first version with the second version (i.e., the latest version) of the first scene file stored locally on the server. When the first version is consistent with the second version, that is, the first version is the latest version, the server configures the first scene element of the first scene file of the first version based on the configuration data corresponding to the first scene element, obtains the third version of the first scene file, updates the version of the locally stored first scene file from the second version to the third version, and returns the third version of the first scene file to the terminals corresponding to each account that logs into the virtual scene, so as to display the scene elements of the third version of the first scene file on each terminal. When the first version is inconsistent with the second version, that is, the first version is not the latest version, the server returns a message to prompt the first account to update the version of the first scene file to the current terminal, so as to prompt the current terminal to configure the scene elements based on the latest version of the first scene file. In this way, it can ensure that each account configures the scene elements in the scene file based on the latest version of the scene file to avoid configuration conflicts.
[0156] Next, the configuration method of the virtual scene file provided in the embodiment of the present application will be described. In some embodiments, combined with Figure 1 and Figure 5 , Figure 5 A flow chart of a method for configuring a virtual scene file provided in an embodiment of the present application, Figure 1 The terminal and the server 300 in the embodiment of the present application collaborate to implement the configuration method of the virtual scene file as an example for explanation.
[0157] Step 301: In response to a configuration operation for a virtual scene, the terminal generates and sends a configuration request for a scene file of the virtual scene to a server.
[0158] Step 302: The server receives a configuration request for a scene file of a virtual scene.
[0159] Step 303: Based on the configuration request, the server determines at least two scene categories corresponding to the virtual scene and scene files corresponding to each scene category, where the scene files corresponding to different scene categories are independent.
[0160] Step 304: The server returns the scene files corresponding to each scene category to the terminal.
[0161] Step 305: The terminal displays scene elements of each of the at least two scene categories included in the virtual scene in the configuration interface corresponding to the scene file of the virtual scene.
[0162] Step 306: During the process of displaying scene elements, the terminal responds to the configuration operation for the first scene element in the first scene category by sending a first configuration instruction for the first scene element to the server, where the first configuration instruction carries configuration data corresponding to the first scene element.
[0163] Step 307: The server receives a first configuration instruction for the first scene element in the first scene file.
[0164] Step 308: The server configures the first scene element of the first scene file based on the configuration data corresponding to the first scene element in response to the first configuration instruction.
[0165] Step 309: The server returns a new first scene file obtained after configuring the first scene element to the terminal.
[0166] Step 310: The terminal updates the displayed first scene element based on the new first scene file.
[0167] The following will describe an exemplary application of the embodiment of the present application in a practical application scenario. Figure 6 , Figure 6 The following is an architectural diagram of the scene file provided in an embodiment of the present application. Normally, one game corresponds to one scene file, which stores all the scene elements of the game, such as scene elements related to planning, scene elements related to art, etc. In this case, if multiple people modify or configure the corresponding scene elements at the same time, it will cause a configuration conflict. In order to avoid such conflicts, the relevant technology only allows one person to configure the scene file at the same time. For example, when the first person configures the scene file, the scene file is first locked to prevent other people from configuring the scene file at the same time. After the first person completes the configuration and unlocks the scene file, the second person is allowed to configure the scene file, and so on, until all personnel have completed the configuration. It can be seen that this configuration method is less efficient.
[0168] To this end, an embodiment of the present application provides a method for configuring a virtual scene file. When developing and designing a game based on a game engine, for a game, a corresponding scene file is generated according to the scene category, and the scene files corresponding to different scene types are independent. In this way, a game generates multiple scene files according to the scene category, decoupling the scene files of different scene categories. When configuring or modifying one of the scene files, the scene files corresponding to other scene categories can be configured or modified at the same time, thereby improving the overall configuration efficiency of the scene file. Moreover, since the scene files corresponding to different scene types are independent, the scene file can be reused in other applications of the same scene category, thereby saving development costs and improving development efficiency.
[0169] In actual applications, the scene categories of virtual scenes can be divided according to the division of labor of personnel. For example, personnel related to virtual scenes can be divided into: system managers, software developers, planners, art designers, special effects designers, and UI designers. Correspondingly, the corresponding scene categories are: system scenes, software scenes, planning scenes, art scenes, special effects scenes, and UI scenes. Scene categories can also be divided according to the attribute categories of scene elements of virtual scenes. For example, according to whether the scene elements are dynamic elements, the scene categories can be divided into dynamic scenes and static scenes. For example, static scene elements such as buildings, land, and trees in virtual scenes correspond to static scenes; and dynamic scene elements such as virtual objects, virtual props, or special effects elements that can be moved in virtual scenes correspond to dynamic scenes.
[0170] See also Figure 7 , Figure 7 The schematic diagram of the scene file architecture provided in the embodiments of the present application illustrates a game in which the scene elements are divided into the following three scene categories: main scene, planning scene, and art scene. Accordingly, three corresponding scene files are generated: scene file A, scene file B, and scene file C. Scene file A corresponds to the main scene category and is used to store configuration information such as levels, modes, and maps, and is associated with all required planning scenes and art scenes. Scene file B corresponds to the planning scene category and is used to store all configuration information required by planners, such as collision boxes, spawn points, and all gameplay-related configuration information. Scene file C corresponds to the art scene, which is non-functional and contains static objects such as buildings, obstacles, walls, the sky, and the ground. The placement of these static objects does not affect the gameplay or logic of the game.
[0171] In actual implementation, when the user configures the virtual scene of the game, the terminal displays the scene elements of each of the at least two scene categories included in the virtual scene in the configuration interface corresponding to the scene file of the virtual scene. In the process of displaying the scene elements, the user can trigger the configuration instructions for the scene elements corresponding to a certain scene category by triggering the options or buttons in the configuration interface. For example, when configuring scene file B, clicking scene file B can configure the scene elements in scene file B. When the user submits the configuration data, the terminal responds to the configuration operation for the scene elements in scene file B and sends the configuration instructions for scene file B to the server, wherein the configuration instructions carry the configuration data corresponding to the scene elements. After receiving the configuration instructions for the scene elements in scene file B, the server responds to the configuration instructions and configures the scene elements in scene file B based on the configuration data corresponding to the scene elements, and returns the new scene file obtained after the scene elements are configured to the terminal; the terminal updates the displayed scene elements based on the new scene file.
[0172] See also Figures 8A-8C , Figures 8A-8C A schematic diagram of the configuration of the scene file provided in the embodiment of the present application, wherein: Figures 8A-8B For scene file B corresponding to the planned scene, the two most important elements to configure are the birth point and the collision box. The birth point refers to a dynamic object that suddenly appears in some game logic or can only appear when certain conditions are met. Although the birth conditions and logic are implemented by the program, the birth position needs to be configured by the planner. Configuring the birth point in the scene can make it more intuitive to see the birth position, which is more convenient. The collision box can be used as an obstacle to block the player's movement, and can also trigger functions, such as where the virtual object cannot move and where it can move. Among them, Figure 8A This shows the collision box element configured by the planner in the map. Figure 8B The scene element of the birth point configured by the planner is shown. These configuration information will be exported into three-dimensional coordinate information, and the corresponding dynamic objects can be displayed through these three-dimensional coordinate information. Figure 8C Corresponding to the scene file C corresponding to the art scene, in this scene file, the art designer can modify the scene elements related to the art scene without affecting the game logic and planning configuration.
[0173] Through the above method, the scene files of the virtual scene are divided into multiple scene files according to the scene category, and the scene files corresponding to different scene categories are independent of each other. Different personnel can configure the scene files of the corresponding scene categories at the same time, which improves the configuration efficiency and reuse rate of the scene files.
[0174] The following continues to describe the exemplary structure of the configuration device 555 of the virtual scene file provided in the embodiment of the present application as a software module. In some embodiments, see Figure 9 , Figure 9 A schematic diagram of the structure of the configuration device of the virtual scene file provided in the embodiment of the present application, which is stored in Figure 2 The software modules in the video playback device 555 of the memory 550 may include:
[0175] A first receiving module 5551 is configured to receive a configuration request for a scene file of a virtual scene;
[0176] A file determination module 5552 is configured to determine, based on the configuration request, at least two scene categories corresponding to the virtual scene, and scene files corresponding to each of the scene categories, wherein the scene files corresponding to different scene categories are independent of each other;
[0177] A first returning module 5553 is configured to return a scene file corresponding to each of the scene categories, so as to display scene elements of the corresponding scene category based on the scene file;
[0178] A second receiving module 5554 is configured to receive a first configuration instruction for a first scene element in a first scene file, where the first configuration instruction carries configuration data corresponding to the first scene element;
[0179] The first configuration module 5555 is configured to configure the first scene element of the first scene file based on the configuration data corresponding to the first scene element in response to the first configuration instruction.
[0180] In some embodiments, after receiving the configuration request for the scene file of the virtual scene, the apparatus further includes:
[0181] A first verification module is configured to parse the configuration request and obtain a target account number carried in the configuration request;
[0182] Performing permission verification on the target account for the configuration permission of the virtual scene to obtain a verification result;
[0183] The first returning module is further configured to return the scenario files corresponding to each scenario category to the terminal corresponding to the target account when the verification result indicates that the target account has the configuration permission.
[0184] In some embodiments, the first configuration module is further configured to determine, in response to the first configuration instruction, a target account to which the first configuration instruction is to be sent;
[0185] Based on the configuration permissions of the first scenario file, verify the permissions of the target account and obtain a verification result;
[0186] When the verification result indicates that the target account has the configuration permission, configuring the first scene element of the first scene file based on the configuration data corresponding to the first scene element;
[0187] The device further comprises:
[0188] The first prompt returning module is configured to return a first prompt message when the verification result indicates that the target account does not have the configuration permission, wherein the first prompt message is used to prompt that the target account does not have the configuration permission for the first scenario file.
[0189] In some embodiments, after configuring the first scene element of the first scene file, the apparatus further includes:
[0190] A second returning module is used to obtain a new first scene file obtained after the configuration of the first scene element is completed;
[0191] The new first scene file is returned to display scene elements of the scene category corresponding to the new first scene file based on the new first scene file.
[0192] In some embodiments, the first configuration instruction is sent by a first account, and the apparatus further includes:
[0193] The second configuration module is configured to, within a target time period after receiving the first configuration instruction, or during the process of configuring the first scene element of the first scene file,
[0194] receiving a second configuration instruction for a second scene element in a second scene file sent by a second account, where the second configuration instruction carries configuration data corresponding to the second scene element;
[0195] In response to the second configuration instruction, the second scene element of the second scene file is configured based on the configuration data corresponding to the second scene element.
[0196] In some embodiments, the apparatus further comprises:
[0197] a third returning module, configured to obtain a new first scene file obtained after the configuration of the first scene element is completed, and send the new first scene file to the terminal corresponding to the first account and the terminal corresponding to the second account;
[0198] A new second scene file obtained after the second scene element configuration is completed is obtained, and the new second scene file is sent to the terminal corresponding to the second account and the terminal corresponding to the first account.
[0199] In some embodiments, the first configuration instruction is sent by a first account, and after configuring the first scene element of the first scene file, the device further includes:
[0200] a second prompt return module configured to receive, during configuration of the first scene element of the first scene file, a third configuration instruction for a third scene element in the first scene file sent from a third account, the third configuration instruction carrying configuration data corresponding to the third scene element;
[0201] In response to the third configuration instruction, returning a second prompt message to the terminal corresponding to the third account;
[0202] The second prompt information is used to prompt that there is a configuration conflict for the first scene file.
[0203] In some embodiments, the apparatus further comprises:
[0204] A third prompt return module is used to obtain a new first scene file obtained after the first scene element configuration is completed;
[0205] Sending the new first scene file and the third prompt information to the terminal corresponding to the third account;
[0206] The third prompt information is used to prompt the third account to reconfigure the scene elements based on the new first scene file.
[0207] In some embodiments, the first configuration instruction is sent by a first account, and the first configuration module is further configured to determine a first version corresponding to the first scenario file configured as instructed by the first configuration instruction;
[0208] Comparing the first version with the second version of the local first scene file to obtain a comparison result;
[0209] When the comparison result indicates that the first version is consistent with the second version, configuring the first scene element of the first scene file based on the configuration data corresponding to the first scene element to obtain a third version of the first scene file;
[0210] The device further comprises:
[0211] a fourth prompt returning module, configured to return a fourth prompt message to the terminal corresponding to the first account when the comparison result indicates that the first version and the second version are inconsistent;
[0212] The fourth prompt information is used to prompt to update the version of the first scene file.
[0213] See also Figure 10 , Figure 10 A schematic diagram of a virtual scene file configuration device 10 provided in an embodiment of the present application, which is provided in a terminal, includes:
[0214] An element display module 1001 is configured to display, in a configuration interface corresponding to a scene file of a virtual scene, scene elements of each of at least two scene categories included in the virtual scene, wherein the scene files corresponding to different scene categories are independent of each other;
[0215] an instruction sending module 1002 for sending, in response to a configuration operation on a first scene element in a first scene category during display of the scene elements, a first configuration instruction for each first scene element, the first configuration instruction carrying configuration data corresponding to the first scene element;
[0216] The file updating module 1003 is configured to receive a new first scene file obtained after configuring the first scene element based on the configuration data, and update the displayed first scene element based on the new first scene file.
[0217] In some embodiments, after sending the first configuration instruction for the first scene element, the apparatus further includes:
[0218] A progress display module, used to display the configuration progress corresponding to the first scene element indicated by the current account;
[0219] When there are at least two accounts configuring scene elements of the virtual scene, the configuration progress corresponding to the scene elements configured by each account is displayed respectively.
[0220] In some embodiments, after sending the first configuration instruction for the first scene element, the apparatus further includes:
[0221] a prompt display module, configured to, if the current account does not have the configuration permission for the first scenario file, present a first prompt message to indicate that the current account does not have the configuration permission for the first scenario file;
[0222] When there is a configuration conflict for the first scenario file, presenting second prompt information to prompt that there is a configuration conflict for the first scenario file, and after receiving a new first scenario file, presenting third prompt information to prompt that the scenario elements be reconfigured based on the new first scenario file;
[0223] When the version of the first scenario file configured as instructed by the first configuration instruction is not the latest version, fourth prompt information is presented to prompt the user to update the version of the first scenario file.
[0224] The present invention provides a computer program product or computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the virtual scene file configuration method described in the present invention.
[0225] An embodiment of the present application provides a computer-readable storage medium storing executable instructions, wherein the executable instructions are stored. When the executable instructions are executed by a processor, the processor will execute the configuration method of the virtual scene file provided in the embodiment of the present application.
[0226] In some embodiments, the computer-readable storage medium may be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, flash memory, magnetic surface storage, optical disk, or CD-ROM; or various devices including one or any combination of the above memories.
[0227] In some embodiments, executable instructions may be in the form of a program, software, software module, script, or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine, or other unit suitable for use in a computing environment.
[0228] As an example, executable instructions may, but need not, correspond to a file in a file system, may be stored as part of a file that stores other programs or data, such as in one or more scripts in a HyperText Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple coordinating files (e.g., files storing one or more modules, subroutines, or code portions).
[0229] By way of example, executable instructions may be deployed to be executed on one computing device, or on multiple computing devices at one site, or on multiple computing devices distributed across multiple sites and interconnected by a communication network.
[0230] The above description is merely an embodiment of the present application and is not intended to limit the scope of protection of the present application. Any modifications, equivalent replacements, and improvements made within the spirit and scope of the present application are included in the scope of protection of the present application.
Claims
1. A method for configuring a virtual scene file, characterized in that: The method comprises: receiving a configuration request for a scene file of a virtual scene, parsing the configuration request, and obtaining a target account number carried in the configuration request; Determining, based on the configuration request, at least two scene categories obtained by dividing the virtual scene based on scene elements or personnel division of the virtual scene, and scene files corresponding to each of the scene categories, wherein the scene files corresponding to different scene categories are independent; Performing permission verification on the target account with respect to the configuration permission of the virtual scene to obtain a first verification result; When the first verification result indicates that the target account has the configuration permission, returning the scenario files corresponding to each scenario category, so as to display the scenario elements of the corresponding scenario category based on the scenario files; receiving a first configuration instruction for a first scene element in a first scene file, where the first configuration instruction carries configuration data corresponding to the first scene element; In response to the first configuration instruction, performing permission verification on the target account with respect to configuration permissions of the first scenario file to obtain a second verification result; When the second verification result indicates that the target account has the configuration permission, the first scene element of the first scene file is configured based on the configuration data corresponding to the first scene element.
2. The method according to claim 1, wherein The method further comprises: When the second verification result indicates that the target account does not have the configuration permission, a first prompt message is returned, where the first prompt message is used to prompt that the target account does not have the configuration permission for the first scenario file.
3. The method according to claim 1, wherein After configuring the first scene element of the first scene file, the method further includes: Obtaining a new first scene file obtained after the configuration of the first scene element is completed; The new first scene file is returned to display scene elements of the scene category corresponding to the new first scene file based on the new first scene file.
4. The method according to claim 1, wherein The first configuration instruction is sent by a first account, and the method further includes: During the target time period of receiving the first configuration instruction, or during the process of configuring the first scene element of the first scene file, receiving a second configuration instruction for a second scene element in a second scene file sent by a second account, where the second configuration instruction carries configuration data corresponding to the second scene element; In response to the second configuration instruction, the second scene element of the second scene file is configured based on the configuration data corresponding to the second scene element.
5. The method according to claim 4, wherein The method further comprises: Obtaining a new first scene file obtained after the configuration of the first scene element is completed, and sending the new first scene file to the terminal corresponding to the first account and the terminal corresponding to the second account; A new second scene file obtained after the second scene element configuration is completed is obtained, and the new second scene file is sent to the terminal corresponding to the second account and the terminal corresponding to the first account.
6. The method according to claim 1, wherein The first configuration instruction is sent by a first account. After configuring the first scene element of the first scene file, the method further includes: During configuration of the first scene element of the first scene file, a third configuration instruction for the third scene element in the first scene file is received from a third account, the third configuration instruction carrying configuration data corresponding to the third scene element; In response to the third configuration instruction, returning a second prompt message to the terminal corresponding to the third account; The second prompt information is used to prompt that there is a configuration conflict for the first scene file.
7. The method according to claim 6, wherein The method further comprises: Obtaining a new first scene file after the first scene element configuration is completed; Sending the new first scene file and the third prompt information to the terminal corresponding to the third account; The third prompt information is used to prompt the third account to reconfigure the scene elements based on the new first scene file.
8. The method according to claim 1, wherein The first configuration instruction is sent by the first account, and the configuring of the first scene element of the first scene file based on the configuration data corresponding to the first scene element includes: Determining a first version corresponding to the first scenario file configured as instructed by the first configuration instruction; Comparing the first version with the second version of the local first scene file to obtain a comparison result; When the comparison result indicates that the first version is consistent with the second version, configuring the first scene element of the first scene file based on the configuration data corresponding to the first scene element to obtain a third version of the first scene file; The method further comprises: When the comparison result indicates that the first version and the second version are inconsistent, returning a fourth prompt message to the terminal corresponding to the first account; The fourth prompt information is used to prompt to update the version of the first scene file.
9. A method for configuring a virtual scene file, characterized in that: The method comprises: In response to a trigger operation for configuring a scene file in a configuration interface of a virtual scene, sending a configuration request carrying the current account; In a case where the current account has configuration authority for the virtual scene, receiving scene files corresponding to at least two scene categories of the virtual scene; the at least two scene categories are obtained by dividing the virtual scene based on scene elements or personnel division of the virtual scene; In a configuration interface corresponding to a scene file of the virtual scene, scene elements of each of the at least two scene categories are displayed based on the scene file corresponding to the at least one scene category, and the scene files corresponding to different scene categories are independent of each other; During display of the scene element, in response to a configuration operation on a first scene element in a first scene file corresponding to a first scene category, sending a first configuration instruction for the first scene element, the first configuration instruction carrying configuration data corresponding to the first scene element; In a case where the current account has configuration authority for the first scene file, a new first scene file obtained after configuring the first scene element based on the configuration data is received, and the displayed first scene element is updated based on the new first scene file.
10. The method according to claim 9, wherein After sending the first configuration instruction for the first scene element, the method further includes: Display the configuration progress of the first scene element indicated by the current account; When there are at least two accounts configuring scene elements of the virtual scene, the configuration progress corresponding to the scene elements configured by each account is displayed respectively.
11. The method according to claim 9, wherein After sending the first configuration instruction for the first scene element, the method further includes: If the current account does not have the configuration permission for the first scenario file, presenting a first prompt message to prompt that the current account does not have the configuration permission for the first scenario file; When there is a configuration conflict for the first scenario file, presenting second prompt information to prompt that there is a configuration conflict for the first scenario file, and after receiving a new first scenario file, presenting third prompt information to prompt that the scenario elements be reconfigured based on the new first scenario file; When the version of the first scenario file configured as instructed by the first configuration instruction is not the latest version, fourth prompt information is presented to prompt the user to update the version of the first scenario file.
12. A device for configuring a virtual scene file, characterized in that: The device comprises: A first receiving module is configured to receive a configuration request for a scene file of a virtual scene, parse the configuration request, and obtain a target account number carried in the configuration request; A file determination module is configured to determine, based on the configuration request, at least two scene categories obtained by dividing the virtual scene based on scene elements or personnel division of the virtual scene, and scene files corresponding to each of the scene categories, wherein the scene files corresponding to different scene categories are independent; A first return module is configured to perform permission verification on the target account with respect to the configuration permission of the virtual scene to obtain a first verification result; when the first verification result indicates that the target account has the configuration permission, return a scene file corresponding to each of the scene categories to display scene elements of the corresponding scene category based on the scene file; a second receiving module, configured to receive a first configuration instruction for a first scene element in a first scene file, where the first configuration instruction carries configuration data corresponding to the first scene element; A first configuration module is configured to, in response to the first configuration instruction, perform permission verification on the target account for the configuration permission of the first scenario file to obtain a second verification result; when the second verification result indicates that the target account has the configuration permission, configure the first scenario element of the first scenario file based on the configuration data corresponding to the first scenario element.
13. A device for configuring a virtual scene file, characterized in that: The device comprises: An element display module is configured to, in response to a trigger operation for the configuration of a scene file in a configuration interface of a virtual scene, send a configuration request carrying a current account; if the current account has configuration authority for the virtual scene, receive scene files corresponding to at least two scene categories of the virtual scene; in a configuration interface corresponding to the scene files of the virtual scene, based on the scene files corresponding to the at least one scene category, display scene elements of each of the at least two scene categories, wherein the scene files corresponding to different scene categories are independent; the at least two scene categories are obtained by dividing the virtual scene based on the scene elements of the virtual scene or the division of labor among personnel; an instruction sending module, configured to send, in response to a configuration operation on a first scene element in a first scene file corresponding to a first scene category, a first configuration instruction for the first scene element during display of the scene element, the first configuration instruction carrying configuration data corresponding to the first scene element; The file update module is used to receive a new first scene file obtained after configuring the first scene element based on the configuration data, when the current account has configuration authority for the first scene file, and update the displayed first scene element based on the new first scene file.
14. An electronic device, characterized in that: include: a memory for storing executable instructions; The processor is configured to implement the method for configuring the virtual scene file according to any one of claims 1 to 11 when executing the executable instructions stored in the memory.
15. A computer-readable storage medium, characterized in that Executable instructions are stored for implementing the method for configuring a virtual scene file according to any one of claims 1 to 11 when executed by a processor.
16. A computer program product comprising a computer program or instructions, characterized in that When the computer program or instruction is executed by a processor, the method for configuring a virtual scene file according to any one of claims 1 to 11 is implemented.
Citation Information
Patent Citations
Scene data synchronization method, device and system and storage medium
CN112704872A