Processing method and device for exploration task in online game, electronic equipment and storage medium
By analyzing independent exploration task configuration files, decoupling the task system in online games, the complex task configuration problem is solved, the flexibility and scalability of exploration tasks are achieved, and the game performance is improved.
Patent Information
- Application Number
- CN202411877106.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-19
- Publication Date
- 2025-03-25
AI Technical Summary
In online games, the task system is closely coupled with the scene exploration task, resulting in complex task configuration and inflexible enough and difficult to adjust.
By analyzing independent exploration task configuration files, it is decoupled from the main task system of online games, reducing the complexity of the main task system configuration, making exploration tasks more flexible and scalable.
The flexibility and scalability of exploration tasks are achieved, the complexity of mainline task system configuration is reduced, and the game performance and data access speed are improved by preplanting still life and cache exploration progress records on the server.
Smart Images

Figure CN119680204A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of online games, and in particular to a method, device, electronic device and storage medium for processing exploration tasks in online games. Background Art
[0002] With the development of 3D graphics software and hardware technology, the terrain models in online games are becoming more and more exquisite. This system allows several players to form a team and click on various still lifes in the game scene to complete the exploration in the game scene, so as to display the exquisite terrain models in the game, enhance the fun, strengthen the social relationship between game players, and improve player stickiness and retention.
[0003] In the related art, the task system in the game is usually closely coupled with the scene exploration task, which makes the task configuration more complicated and inflexible. Specifically, the task system in the game is often part of the scene design, and the design and implementation of the task are highly dependent on the specific game scene, which makes the configuration and adjustment of the task system relatively cumbersome. Summary of the invention
[0004] In view of this, an object of embodiments of the present invention is to provide a method, device, electronic device and storage medium for processing exploration tasks in an online game to at least partially improve the above-mentioned problems.
[0005] In order to achieve the above purpose, the technical solution adopted by the embodiment of the present invention is as follows:
[0006] In a first aspect, an embodiment of the present invention provides a method for processing an exploration task in an online game, the method comprising:
[0007] Parsing a first configuration file of the exploration task to obtain exploration task information of the exploration task; the first configuration file is independent of a second configuration file of the main task of the online game;
[0008] In response to a viewing exploration information display instruction sent by the first player, the exploration task information is sent to a client of the first player so that the client displays the exploration task information.
[0009] Optionally, the exploration task information includes a plurality of exploration items, each of the exploration items includes at least one still object, and the still object includes coordinate information and appearance information. The method further includes:
[0010] Each of the still objects is pre-planted according to its own coordinate information and appearance information, and an index number is incrementally assigned to each of the still objects.
[0011] Optionally, the method further comprises:
[0012] Determining whether the first player moves to the vicinity of any coordinate of the pre-planted still objects, and the coordinate enters the field of view of the first player;
[0013] If so, the coordinates and appearance information of the still life are sent to the client of the first player, so that the client can plant the still life in the client according to the coordinates and the appearance information.
[0014] Optionally, the method further comprises:
[0015] When the first player logs into the online game, obtaining the exploration progress record of the first player from a database; the exploration progress record includes a status of whether each of the still objects has been explored;
[0016] In the case where the exploration progress record exists, applying for an area in the memory of the first player's client as a progress recording module, and caching the exploration progress record in the progress recording module;
[0017] When the exploration progress record does not exist, an area is applied for in the memory of the first player's client as a progress recording module, and the progress recording module is initialized to 0.
[0018] Optionally, the exploration project further includes an exploration condition, and the method further includes:
[0019] Responding to a still life interaction instruction sent by the client; the still life interaction instruction includes a target exploration item and a target index number; the target exploration item represents the exploration item to which the still life that the first player is interacting belongs, and the target index number represents the index number of the still life that the first player is interacting;
[0020] Determining whether the first player meets the exploration condition of the target exploration item;
[0021] If yes, modify the state of the still object corresponding to the progress record module of the first player to explored according to the target exploration item and the target index number, and persist the state to the exploration progress record in the database;
[0022] If not, a prompt instruction is sent to the client of the first player.
[0023] Optionally, the method further comprises:
[0024] responding to a team formation request sent by the second player to the first player, and sending the team formation request to a client of the first player;
[0025] In response to the team formation response sent by the first player to the second player, determining whether the team formation response is an acceptance of team formation;
[0026] If yes, completing the teaming of the first player and the second player, and sending a successful teaming prompt to the client of the second player;
[0027] If not, a team formation failure prompt is sent to the client of the second player.
[0028] Optionally, in response to the viewing exploration information display instruction sent by the first player, sending the exploration task information to the client of the first player includes:
[0029] Obtaining the exploration progress record of the first player;
[0030] Combining the exploration progress record with the exploration task information to obtain exploration progress detailed information;
[0031] The exploration progress detailed information is sent to the client of the first player, so that the client of the first player displays the exploration progress of each exploration item.
[0032] In a second aspect, an embodiment of the present invention provides a device for processing an exploration task in an online game, the device comprising:
[0033] A configuration file parsing unit, used to parse a first configuration file of the exploration task to obtain exploration task information of the exploration task; the first configuration file is independent of a second configuration file of the main task of the online game;
[0034] The exploration task information display unit is used to send the exploration task information to the client of the first player in response to the viewing exploration information display instruction sent by the first player, so that the client displays the exploration task information.
[0035] In a third aspect, an embodiment of the present invention provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the processor implements any of the above-described methods when executing the program.
[0036] In a fourth aspect, an embodiment of the present invention provides a storage medium having a computer program stored thereon, wherein the computer program implements any of the above-described methods when executed by a processor.
[0037] The embodiments of the present invention provide a method, device, electronic device and storage medium for processing exploration tasks in an online game. By parsing an independent exploration task configuration file, it can be decoupled from the main task system in the online game, reducing the complexity of the main task system configuration, and making the exploration task have high flexibility and scalability. By pre-planting still life on the server, the rendering of still life on the client can be accelerated, the exploration progress records are cached in memory, and the exploration progress records are stored in a database, which can reduce the server burden, improve data access speed, and ensure the security of player data.
[0038] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.
[0040] Figure 1 A schematic structural block diagram of an electronic device provided by an embodiment of the present invention;
[0041] Figure 2 A flowchart of a method for processing an exploration task in an online game provided by an embodiment of the present invention;
[0042] Figure 3 A schematic diagram of displaying exploration task information provided by an embodiment of the present invention;
[0043] Figure 4 A schematic diagram of a storage structure of a progress recording module provided by an embodiment of the present invention;
[0044] Figure 5 A schematic diagram of a player interacting with a still object provided by an embodiment of the present invention;
[0045] Figure 6 A schematic diagram of a still life after being explored provided by an embodiment of the present invention;
[0046] Figure 7 A schematic diagram of an exploration progress record provided by an embodiment of the present invention;
[0047] Figure 8 A schematic structural block diagram of a device for processing exploration tasks in an online game provided by an embodiment of the present invention.
[0048] Icons: 100 - electronic device; 101 - memory; 102 - communication interface; 103 - processor; 104 - bus; 300 - processing device for exploration tasks in online games; 310 - configuration file parsing unit; 320 - exploration task information display unit. DETAILED DESCRIPTION
[0049] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.
[0050] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0051] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings. At the same time, in the description of the present invention, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.
[0052] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0053] As described in the background technology, in the exploration tasks of online games, the task system in the online game is usually tightly coupled with the scene exploration tasks, which makes the task configuration more complex and inflexible. The task system in the game is often part of the scene design, and the design and implementation of the task are highly dependent on the specific game scene, which makes the configuration and adjustment of the task system relatively cumbersome.
[0054] Based on the above situation, an embodiment of the present invention provides a method, device, electronic device and storage medium for processing exploration tasks in an online game. Through an independent exploration task configuration file, the configuration file is parsed and then the relevant exploration tasks are performed, thereby decoupling from the main task system in the online game, reducing the complexity of the main task system configuration, and making the exploration tasks more flexible and extensible.
[0055] To implement the process steps and functions of each example of the present invention, please refer to Figure 1 , Figure 1 A schematic structural block diagram of an electronic device provided by an embodiment of the present invention. The electronic device 100 includes a memory 101 and a processor 103, and the memory 101 and the processor 103 are electrically connected to each other directly or indirectly to realize data transmission or interaction. For example, these elements can be electrically connected to each other through one or more communication buses 104 or signal lines. The memory 101 can be used to store software programs and modules, and the processor 103 executes the software programs and modules stored in the memory 101 to perform various functional applications and data processing.
[0056] The electronic device 100 may be, but is not limited to, a personal computer (PC), a server, a distributed computer, etc. It is understandable that the electronic device 100 is not limited to a physical server, but may also be a virtual machine on a physical server, a virtual machine built on a cloud platform, etc., which can provide the same functions as the server or virtual machine. The operating system of the electronic device 100 may be, but is not limited to, a Windows system, a Linux system, etc.
[0057] Among them, the memory 101 can be, but is not limited to, a random access memory (RAM), a read only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable read-only memory (EEPROM), etc.
[0058] The communication connection between the electronic device 100 and an external device is achieved through at least one communication interface 102 (which can be wired or wireless).
[0059] The processor 103 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the embodiment of the present invention can be completed by the hardware integrated logic circuit in the processor 103 or the instructions in the form of software. The processor 103 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.
[0060] Understandably, Figure 1 The structure shown is for illustration only. The electronic device 100 may also include Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown. Figure 1 Each component shown in the figure can be implemented by hardware, software or a combination thereof.
[0061] The following is an exemplary description of the processing method of the exploration task in the online game provided by the present invention. Specifically, Figure 2 A flowchart of a method for processing an exploration task in an online game provided by an embodiment of the present invention is shown in FIG. Figure 2 , the execution subject of this method can be the above Figure 1 The electronic device 100 shown in FIG. 1 includes: Figure 2 The following steps are described:
[0062] S201: Parse the first configuration file of the exploration task to obtain the exploration task information of the exploration task, wherein the first configuration file is independent of the second configuration file of the main task of the online game.
[0063] The first configuration file can be in JSON (JavaScript Object Notation), XML (eXtensibleMarkup Language), YAML (YAML Ain't Markup Language) and other formats. If it is represented by a table consisting of rows and columns, each row is an exploration project, and each column is a configuration item corresponding to the exploration project. Configuration items can be expanded, that is, columns can be added to provide more flexibility and game fun.
[0064] For example, the first column is the ID of the exploration project, which is used to identify each exploration project, and the value of the configuration item is 1, 2, 3, 4, 5...incrementally.
[0065] The second column is the exploration type. For example, if all team members are required to explore a location, the value of the configuration item is 1; if each team member is required to explore a different location, the value of the configuration item is 2, etc. Other types can be added according to the gameplay.
[0066] The third column is the social relationship requirements. For example, if the team members are required to be in a relationship, the value of the configuration item is 1; if the team members are required to be in the same sect, the value of the configuration item is 2, etc. Other types can be added based on the gameplay and social relationships in the game.
[0067] The fourth column is the scene index and coordinate set of the interactive still life planting, the fifth column is the still life appearance ID, the sixth column is whether it is random within the range, the seventh column is the range radius, and the eighth column is the prompt information of the exploration project.
[0068] By parsing the configuration, exploration task information can be obtained, which may include the configuration items in the above example.
[0069] The first configuration file and the second configuration file are independent of each other, which means that although the two configuration files serve the same online game, they are responsible for different configuration items. The first configuration file only contains configuration information related to the exploration task, and the second configuration file contains configuration information for the main task. Therefore, when parsing the first configuration file, there is no need to consider the content of the second configuration file.
[0070] S202: In response to the viewing exploration information display instruction sent by the first player, the exploration task information is sent to the client of the first player, so that the client displays the exploration task information.
[0071] The first player sends a command to display the exploration information, which can be a user clicking on an exploration task on the client interaction interface, such as Figure 3 As shown, the server sends the exploration task information to the client of the first player and displays it on the interactive interface.
[0072] By parsing independent exploration task configuration files, this method can decouple from the main task system in the online game, reduce the complexity of the main task system configuration, and make the exploration task more flexible and scalable.
[0073] The exploration task information may include multiple exploration projects, each of which includes at least one still life, which includes coordinate information and appearance information. The still life may be a stone, grass, tree, etc. The coordinates of the still life are the location of the still life in the game map, and the appearance information may be the primary key ID in a still life appearance table. When the appearance is needed later, the corresponding appearance is searched for and displayed based on the appearance information, i.e., the appearance primary key ID. The method may also include the steps of:
[0074] S203: Pre-plant each still object according to its own coordinate information and appearance information, and assign an index number to each still object incrementally.
[0075] Each still object has its own location information, that is, the coordinates in the game map. Before sending the data to the client for rendering, pre-processing is performed based on the coordinate information and appearance information to ensure that the final rendering effect is as realistic or as expected as possible.
[0076] Each still life is assigned a unique identifier, or index number. This index number is usually an integer, and the index numbers increase sequentially. For example, the first object may be assigned index number 1, the second object may be assigned index number 2, and so on. In one possible implementation, index numbers are assigned sequentially to each still life in each exploration project in the entire exploration task information, so that the index number of each still life is different. In another possible implementation, different index numbers are assigned to each still life in only one exploration project. For example, the index numbers assigned to the still lifes in the first exploration project are 1, 2, and 3, and the index numbers assigned to the still lifes in the second exploration project are also 1, 2, and 3.
[0077] In order to ensure that when the player approaches and sees the pre-planted still life, these still life can be displayed on the client in time, thereby providing a more realistic interactive experience. The method may also include the steps of:
[0078] S204: Determine whether the first player moves to the vicinity of the coordinates of any pre-planted still object, and the coordinates enter the field of view of the first player.
[0079] The coordinate vicinity is a predefined distance threshold. For example, if the distance between the player and the still object is less than a certain value (such as 5 meters), the player is considered to be close to the still object. The field of view is determined by the visual angle and distance of the player's perspective. For example, if the player's perspective can see an object in a specific area, the object is considered to be within the field of view.
[0080] S205: If yes, the coordinates and appearance information of the still life are sent to the client of the first player, so that the client can plant the still life in the client according to the coordinates and appearance information.
[0081] The server obtains the current position of the first player, traverses all pre-planted still objects (all still objects here can be still objects within the range of one screen of the client, which can reduce the amount of calculation), and calculates the distance between each still object and the player. Then check whether the still objects with a distance less than or equal to the distance threshold are within the player's field of view. If a still object that meets the conditions is found, the coordinates and appearance information of the still object are packaged into a data packet and sent to the client of the first player. The client receives the data packet sent by the server, parses the data packet, obtains the coordinates and appearance information of the still object, and renders the corresponding still object in the virtual environment of the client based on this information.
[0082] After the player has explored each still life, the exploration record should not be lost. Therefore, when the player logs back into the game, the player can re-view the explored still life. In a possible implementation, the method may further include the steps of:
[0083] S206: When the first player logs into the online game, the exploration progress record of the first player is obtained from the database, wherein the exploration progress record includes the status of whether each still object has been explored.
[0084] S207: If the exploration progress record exists, apply for an area in the memory of the first player's client as a progress recording module, and cache the exploration progress record in the progress recording module.
[0085] S208: When the exploration progress record does not exist, apply for an area in the memory of the first player's client as a progress recording module, and initialize the progress recording module to 0.
[0086] When the first player logs in to the online game, a series of initialization operations will be performed, including obtaining the exploration progress record of the first player. If the exploration progress record of the player is obtained, that is, the record of the first player is in the database, then an area is applied for in the memory of the first player's client, and this area will be used to store and manage the exploration progress record. The exploration progress record obtained from the database is cached in this memory area. In this way, the client can quickly read and update the exploration progress without frequently accessing the database.
[0087] If there is no exploration progress record of the first player in the database, an area is also applied for in the memory of the first player's client. This area will be used to store and manage the exploration progress record. This memory area is initialized to 0, indicating that all still objects have not been explored.
[0088] The structure of the memory area record can be referred to Figure 4For example, exploration project 1 includes still lifes with index numbers 1 to n, each corresponding to a bit in the memory. For example, if the bit with index number 1 in exploration project 1 is 1, it means that the still life with index number 1 in exploration project 1 has been explored. On the contrary, if the bit with index number 1 in exploration project 1 is n, the still life with index number 1 in exploration project 1 is unexplored.
[0089] During the exploration process, whether an exploration project can be completed may require certain conditions. The exploration project may also include exploration conditions, and the exploration conditions of each exploration project may be different. The method may also include the steps of:
[0090] S209: Responding to the still life interaction instruction sent by the client; wherein the still life interaction instruction includes a target exploration item and a target index number; the target exploration item represents the exploration item to which the still life that the first player is interacting belongs, and the target index number represents the index number of the still life that the first player is interacting.
[0091] Reference Figure 5 For example, when the first player approaches a tree, the tree is displayed in the first player's field of view, and the first player can click on the tree to interact, and send a static object interaction instruction to the server, the instruction includes the exploration project to which the tree belongs and the index number of the tree, and sends the exploration project and index number as the target exploration project and target index number to the server request. The server receives the static object interaction instruction.
[0092] S210: Determine whether the first player meets the exploration conditions of the target exploration item. If yes, execute step S211; if no, execute step S212.
[0093] After receiving the static object interaction instruction, the server needs to determine whether the first player meets the exploration conditions of the target exploration project. The exploration conditions are obtained from the configuration items related to the target exploration project in the exploration task information. For example, the static objects in the target exploration project can be explored by only one player, or two players are required to team up to complete the exploration.
[0094] S211: According to the target exploration item and the target index number, the state of the still object corresponding to the progress record module of the first player is modified to explored, and the state is persisted in the exploration progress record in the database.
[0095] If the exploration condition is met, it means that the first player has completed the exploration of the still life. The state of the still life corresponding to the progress record module of the first player needs to be changed to explored. Figure 4First, find the corresponding exploration project according to the target exploration project, and then find the corresponding bit in the memory according to the target index number. If the bit is 1, no processing is done. If the bit is 0, change it to 1 and store the status information in the database. Figure 6 If still life 1 of exploration project 1 has been explored, the still life will be marked as explored in the exploration task information.
[0096] S212: Send a prompt instruction to the client of the first player.
[0097] If the exploration conditions are not met, the first player will be prompted with certain conditions required to complete the exploration of the still life.
[0098] In order to complete some exploration tasks under certain conditions, such as team exploration, the method may further include the following steps:
[0099] S213: Respond to the team formation request sent by the second player to the first player, and send the team formation request to the client of the first player.
[0100] S214: In response to the team formation response sent by the first player to the second player, determine whether the team formation response is an acceptance of the team formation.
[0101] S215: If yes, the first player and the second player are teamed up, and a teaming success notification is sent to the client of the second player.
[0102] S216: If not, a team formation failure prompt is sent to the client of the second player.
[0103] The second player selects the first player on the client and sends a team request. This request is first sent to the server, which records the request and forwards it to the first player's client, notifying the first player of a new team request. The first player's client receives the team request and displays it to the first player. The first player can choose to accept or reject the team request. The first player's choice (accept or reject) is sent back to the server through the client. After receiving the first player's response, the server determines the response type (accept or reject). If the first player accepts the team request, the server will update the status of the two players and mark them as teamed. If the first player rejects the team request, the server will not update the status of the two players.
[0104] In a possible implementation, the above step S202 may include the following steps:
[0105] S2021: Get the exploration progress record of the first player.
[0106] S2022: Combine the exploration progress record with the exploration task information to obtain detailed exploration progress information.
[0107] S2023: Send the exploration progress detailed information to the client of the first player, so that the client of the first player can display the exploration progress of each exploration item.
[0108] The exploration progress record of the first player can be directly obtained from the memory of the first player's client or from the database, which mainly includes which exploration items and still lifes in the exploration task have been explored. The record is combined with the exploration task information and displayed on the first player's client. For example, still lifes 1 and 2 of exploration item 1 have been explored, and still life 3 of exploration item 2 has been explored. The display on the first player's client is as follows: Figure 7 As shown, the entire exploration project 1 is marked as explored, only the still life 3 in exploration project 2 is marked as explored, and there is nothing marked as explored in exploration project 3.
[0109] Further, see Figure 8 The embodiment of the present invention further provides a processing device for an exploration task in an online game. The processing device 300 for an exploration task in an online game includes:
[0110] The configuration file parsing unit 310 is used to parse the first configuration file of the exploration task to obtain the exploration task information of the exploration task; the first configuration file is independent of the second configuration file of the main task of the online game.
[0111] The exploration task information display unit 320 is used to send the exploration task information to the client of the first player in response to the viewing exploration information display instruction sent by the first player, so that the client displays the exploration task information.
[0112] In summary, the embodiments of the present invention provide a method, device, electronic device and storage medium for processing exploration tasks in an online game. By parsing an independent exploration task configuration file, it can be decoupled from the main task system in the online game, reducing the complexity of the main task system configuration, and making the exploration task have higher flexibility and scalability. By pre-planting still life on the server, the rendering of still life on the client can be accelerated, the exploration progress records are cached in memory, and the exploration progress records are stored in a database, which can reduce the server burden, improve data access speed, and ensure the security of player data.
[0113] In the embodiments provided by the present invention, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present invention. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of the code, and a module, a program segment or a part of the code contains one or more executable instructions for implementing the specified logical functions. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0114] In addition, the functional modules in the various embodiments of the present invention may be integrated together to form an independent part, or each module may exist independently, or two or more modules may be integrated to form an independent part.
[0115] If the function is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a computer-readable storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0116] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
[0117] It will be apparent to those skilled in the art that the invention is not limited to the details of the exemplary embodiments described above and that the invention can be implemented in other specific forms without departing from the spirit or essential features of the invention. Therefore, the embodiments should be considered exemplary and non-limiting in all respects, and the scope of the invention is defined by the appended claims rather than the foregoing description, and it is intended that all variations falling within the meaning and scope of the equivalent elements of the claims be included in the invention. Any reference numeral in a claim should not be considered as limiting the claim to which it relates.
Claims
1. A method for processing exploration tasks in an online game, characterized in that: The method comprises: Parsing a first configuration file of the exploration task to obtain exploration task information of the exploration task; the first configuration file is independent of a second configuration file of the main task of the online game; In response to a viewing exploration information display instruction sent by the first player, the exploration task information is sent to a client of the first player so that the client displays the exploration task information.
2. The method according to claim 1, characterized in that: The exploration task information includes a plurality of exploration items, each of the exploration items includes at least one still object, and the still object includes coordinate information and appearance information. The method further includes: Each of the still objects is pre-planted according to its own coordinate information and appearance information, and an index number is incrementally assigned to each of the still objects.
3. The method according to claim 2, characterized in that: The method further comprises: Determining whether the first player moves to the vicinity of any coordinate of the pre-planted still objects, and the coordinate enters the field of view of the first player; If so, the coordinates and appearance information of the still life are sent to the client of the first player, so that the client can plant the still life in the client according to the coordinates and the appearance information.
4. The method according to claim 2, characterized in that: The method further comprises: When the first player logs into the online game, obtaining the exploration progress record of the first player from a database; the exploration progress record includes a status of whether each of the still objects has been explored; In the case where the exploration progress record exists, applying for an area in the memory of the first player's client as a progress recording module, and caching the exploration progress record in the progress recording module; When the exploration progress record does not exist, an area is applied for in the memory of the first player's client as a progress recording module, and the progress recording module is initialized to 0.
5. The method according to claim 4, characterized in that: The exploration project also includes exploration conditions, and the method further includes: Responding to a still life interaction instruction sent by the client; the still life interaction instruction includes a target exploration item and a target index number; the target exploration item represents the exploration item to which the still life that the first player is interacting belongs, and the target index number represents the index number of the still life that the first player is interacting; Determining whether the first player meets the exploration condition of the target exploration item; If yes, modify the state of the still object corresponding to the progress record module of the first player to explored according to the target exploration item and the target index number, and persist the state to the exploration progress record in the database; If not, a prompt instruction is sent to the client of the first player.
6. The method according to claim 5, characterized in that: The method further comprises: responding to a team formation request sent by the second player to the first player, and sending the team formation request to a client of the first player; In response to the team formation response sent by the first player to the second player, determining whether the team formation response is an acceptance of team formation; If yes, completing the teaming of the first player and the second player, and sending a successful teaming prompt to the client of the second player; If not, a team formation failure prompt is sent to the client of the second player.
7. The method according to claim 4, characterized in that: The step of sending the exploration task information to the client of the first player in response to the viewing exploration information display instruction sent by the first player includes: Obtaining the exploration progress record of the first player; Combining the exploration progress record with the exploration task information to obtain exploration progress detailed information; The exploration progress detailed information is sent to the client of the first player, so that the client of the first player displays the exploration progress of each exploration item.
8. A processing device for exploration tasks in an online game, characterized in that: The device comprises: A configuration file parsing unit, used to parse a first configuration file of the exploration task to obtain exploration task information of the exploration task; the first configuration file is independent of a second configuration file of the main task of the online game; The exploration task information display unit is used to send the exploration task information to the client of the first player in response to the viewing exploration information display instruction sent by the first player, so that the client displays the exploration task information.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that: When the processor executes the program, the method according to any one of claims 1 to 7 is implemented.
10. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.