Data processing method and device, server and storage medium

By mapping real objects in adjacent maps of segmented maps into segmented maps and processing map objects, the problem of high data processing pressure caused by large scene experience in the prior art is solved, improving user experience and reducing server load.

CN112675534BActive Publication Date: 2024-11-29BEIJING PIXEL SOFTWARE TECH
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202011527399.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-22
Publication Date
2024-11-29
Estimated Expiration
2040-12-22

AI Technical Summary

Technical Problem

In order to ensure the player's large-scene experience in the prior art, it is necessary to display the NPC and player game characters included in all scenarios, resulting in overloading of the server CPU and the problem of high data processing pressure.

Method used

By mapping real objects in adjacent maps of segmented maps into the segmented map, the mapping objects are acquired and processed, the pressure of data processing is reduced. The specific steps include obtaining the real objects in the adjacent map, calculating the scaling ratio, and mapping them into the split map, and processing the updated objects.

Benefits of technology

It effectively reduces the pressure of data processing, avoids the sudden appearance and disappearance of NPCs and players around them when switching scenes, improves the user experience, and greatly alleviates the load on the server by splitting map processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112675534B_ABST
    Figure CN112675534B_ABST
Patent Text Reader

Abstract

The data processing method and device, server and storage medium provided in the embodiments of the present application relate to the field of data processing technology. The data processing method is applied to a server, which stores multiple segmented maps. The data processing method includes: first, for each segmented map, obtaining the real objects in the adjacent map of the segmented map; second, mapping the real objects in the adjacent map to the segmented map to obtain the corresponding mapping objects. Through the above method, it is possible to map the game characters in the adjacent map to the current map, which improves the problem of high data processing pressure caused by the need to display the game characters attached to all game scenes in order to ensure the player's large-scale scene experience in the prior art.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] In order to ensure the player's large-scale scene experience in the existing technology, it is necessary to display all NPCs and players in all scenes. The increase in the number of game characters leads to performance problems on the server, CPU overload, and high data processing pressure. Summary of the invention

[0003] In view of this, the purpose of the present application is to provide a data processing method and device, a server and a storage medium to improve the problems existing in the prior art.

[0004] To achieve the above purpose, the embodiment of the present application adopts the following technical solution:

[0005] In a first aspect, the present invention provides a data processing method, which is applied to a server, wherein the server stores a plurality of segmented maps, and the data processing method comprises:

[0006] For each segmented map, obtain the real objects in the adjacent maps of the segmented map;

[0007] The real objects in the adjacent map are mapped into the segmented map to obtain corresponding mapped objects.

[0008] In an optional implementation manner, the step of mapping the real object in the adjacent map into the segmented map to obtain the corresponding mapped object includes:

[0009] Calculating a scaling ratio according to a contact distance from a real object in the adjacent map to a map boundary and a preset distance;

[0010] The real object is mapped into the segmentation map according to the scaling ratio to obtain a corresponding mapping object.

[0011] In an optional embodiment, the contact distance includes a first contact distance, the first contact distance is the distance between the real object and the nearest point of the boundary of the segmented map, the preset distance is a first preset distance, the first preset distance is the sum of the first contact distance and the distance between the real object and the boundary of the adjacent map away from the segmented map, the zoom ratio includes a first zoom ratio, and the step of calculating the zoom ratio according to the contact distance from the real object in the adjacent map to the map boundary and the preset distance includes:

[0012] A first scaling ratio is calculated according to the first contact distance and a first preset distance.

[0013] In an optional implementation, the contact distance includes a second contact distance, the second contact distance is the distance between the real object and the nearest point of the border of the adjacent map, the preset distance includes a second preset distance, the second preset distance is the sum of the second contact distance and the distance between the real object and the border of the adjacent map away from the nearest point, the zoom ratio includes a second zoom ratio, and the step of calculating the zoom ratio according to the contact distance from the real object in the adjacent map to the map border and the preset distance includes:

[0014] A second scaling ratio is calculated according to the second contact distance and the second preset distance.

[0015] In an optional implementation manner, the step of obtaining, for each segmented map, a real object in a map adjacent to the segmented map includes:

[0016] Determining whether the object in the adjacent map is within a preset range of the segmented map;

[0017] If so, the object within the preset range is regarded as a real object.

[0018] In an optional embodiment, the data processing method further includes a step of obtaining a plurality of segmentation maps, the step comprising:

[0019] The preset map is segmented to obtain multiple segmented maps.

[0020] In an optional implementation manner, the data processing method further includes:

[0021] Determining whether the real object in the adjacent map is updated;

[0022] If so, the updated real object is mapped into the segmentation map to obtain an updated mapping object.

[0023] In a second aspect, the present invention provides a data processing device applied to a server, wherein the server stores a plurality of segmented maps, the data processing device comprising:

[0024] An object acquisition module is used to acquire, for each segmented map, real objects in a map adjacent to the segmented map;

[0025] The object mapping module is used to map the real objects in the adjacent map into the segmented map to obtain corresponding mapped objects.

[0026] In a third aspect, the present invention provides a server, comprising a memory and a processor, wherein the processor is used to execute an executable computer program stored in the memory to implement the data processing method described in any one of the aforementioned embodiments.

[0027] In a fourth aspect, the present invention provides a storage medium having a computer program stored thereon, which, when executed, implements the steps of the data processing method described in any one of the aforementioned embodiments.

[0028] The data processing method and device, server and storage medium provided in the embodiments of the present application obtain corresponding mapping objects by mapping real objects in the adjacent map of the split map to the split map, thereby realizing mapping of game characters in the adjacent map to the current map, thereby improving the problem of high data processing pressure caused by the need to display the game characters attached to all game scenes in order to ensure the player's large-scale scene experience in the prior art. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application 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 paying creative work.

[0030] Figure 1 A structural block diagram of a data processing system provided in an embodiment of the present application.

[0031] Figure 2 A flowchart of a data processing method provided in an embodiment of the present application.

[0032] Figure 3 Another flowchart of the data processing method provided in an embodiment of the present application.

[0033] Figure 4 Another flowchart of the data processing method provided in an embodiment of the present application.

[0034] Figure 5 Another flowchart of the data processing method provided in an embodiment of the present application.

[0035] Figure 6 A schematic diagram of a scene for object mapping provided in an embodiment of the present application.

[0036] Figure 7 A schematic diagram of another scenario of object mapping provided in an embodiment of the present application.

[0037] Figure 8 Another flowchart of the data processing method provided in an embodiment of the present application.

[0038] Fig. 9 This is a structural block diagram of a data processing device provided in an embodiment of the present application.

[0039] Icons: 10 - data processing system; 100 - server; 200 - terminal device; 900 - data processing device; 910 - object acquisition module; 920 - object mapping module. DETAILED DESCRIPTION

[0040] As game technology becomes more and more mature, players' demands for gaming experience are increasing, and the experience of super-large scenes (environment, buildings, machinery, props, etc. in the game) is also one of the important demands pursued by players. As the scene becomes larger, the number of attached NPCs (system characters in the game, such as monsters, etc.) and players (game characters controlled by players in online games) will also increase, leading to performance problems on the server and CPU overload.

[0041] A common method in the prior art is not to create a large scene or to cut a large scene into multiple different small scenes, with no interaction between the scenes. Because there is no interaction between the small scenes, players cannot see the players and NPCs in the next small scene when they are near a small scene. When switching small scenes, the surrounding players and NPCs will appear and disappear abruptly, which cannot give the players the feeling of a truly large scene. In other words, the prior art has the problem of high data processing pressure and the inability to see the players and NPCs in the next small scene when they are near a different small scene.

[0042] In order to improve at least one of the above technical problems raised by the present application, the embodiments of the present application provide a data processing method and device, a server and a storage medium. The technical solution of the present application is described below through possible implementation methods.

[0043] The defects existing in the above solutions are the results obtained by the inventor after practice and careful research. Therefore, the discovery process of the above problems and the solutions proposed in this application for the above problems should be the contributions made by the inventor to this application during the application process.

[0044] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be described in detail below in conjunction with the drawings in the embodiments of the present application. It should be understood that the drawings in the present application only serve the purpose of explanation and description and are not used to limit the scope of protection of the present application. In addition, it should be understood that the schematic drawings are not drawn in real proportion. The flowchart used in this application shows the operations implemented according to some embodiments of the present application. It should be understood that the operations of the flowchart can be implemented out of sequence, and the steps without logical context can be reversed in order or implemented simultaneously. In addition, those skilled in the art, under the guidance of the content of the present application, can add one or more other operations to the flowchart, or remove one or more operations from the flowchart.

[0045] In addition, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.

[0046] In order to enable those skilled in the art to use the content of the present application, the following implementation methods are provided. For those skilled in the art, the general principles defined herein can be applied to other embodiments and application scenarios without departing from the spirit and scope of the present application. The application of the system or method of the present application may include a web page, a browser plug-in, a client terminal, a customization system, an internal analysis system, or an artificial intelligence robot, etc., or any combination thereof.

[0047] It should be noted that the term "comprising" will be used in the embodiments of the present application to indicate the existence of the features declared thereafter, but does not exclude the addition of other features.

[0048] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.

[0049] Figure 1 This is a structural block diagram of the data processing system 10 provided in the embodiment of the present application, which provides a possible implementation of the data processing system 10, see Figure 1 The data processing system 10 may include one or more of a server 100 and a terminal device 200 .

[0050] The server 100 may be connected to communicate with a plurality of terminal devices 200 , and the server 100 obtains a plurality of segmented maps on the terminal devices 200 , and maps real objects in adjacent maps into the segmented maps for display.

[0051] For the server 100, it should be noted that, in some embodiments, the server 100 can be a single server device or a server group. The server group can be centralized or distributed (for example, the server 100 can be a distributed system). In some embodiments, the server 100 can be local or remote relative to the terminal device 200. For example, the server 100 can access information and / or data stored in the terminal device 200 via a network. As another example, the server 100 can be directly connected to the terminal device 200 to access the stored information and / or data. In some embodiments, the server 100 can be implemented on a cloud platform. As an example only, the cloud platform can include a private cloud, a public cloud, a hybrid cloud, an elastic cloud, a community cloud, a distributed cloud, an inter-cloud, a multi-cloud, etc., or any combination thereof. In some embodiments, the server 100 can be implemented on the terminal device 200.

[0052] In some embodiments, the server 100 may include a processor. The processor may process the information and / or data sent by the terminal device 200 to perform one or more functions described in the present application. In some embodiments, the processor may include one or more processing cores (e.g., a single-core processor (S) or a multi-core processor (S)). By way of example only, the processor may include a central processing unit (CPU), an application-specific integrated circuit (ASIC), an application-specific instruction set processor (ASIP), a graphics processing unit (GPU), a physical processing unit (PPU), a digital signal processor (DSP), a field programmable gate array (FPGA), a programmable logic device (PLD), a controller, a microcontroller unit, a reduced instruction set computer (RISC) or a microprocessor, or any combination thereof.

[0053] The network can be used for the exchange of information and / or data. In some embodiments, one or more components (e.g., server 100 and terminal device 200) in data processing system 10 can send information and / or data to other components. For example, server 100 can obtain data from terminal device 200 via network. In some embodiments, the network can be any type of wired or wireless network, or a combination thereof. As an example only, the network can include a wired network, a wireless network, an optical fiber network, a telecommunication network, an intranet, the Internet, a local area network (LAN), a wide area network (WAN), a wireless local area network (WLAN), a metropolitan area network (MAN), a wide area network (WAN), a public switched telephone network (PSTN), a Bluetooth network, a ZigBee network, or a near field communication (NFC) network, etc., or any combination thereof.

[0054] In some embodiments, the network may include one or more network access points. For example, the network may include a wired or wireless network access point, such as a base station and / or a network switching node, through which one or more components of the data processing system 10 may connect to the network to exchange data and / or information.

[0055] The server 100 may include a database, which may store data and / or instructions. In some embodiments, the database may store data obtained from the terminal device 200. In some embodiments, the database may store data and / or instructions of the exemplary method described in the present application. In some embodiments, the database may include a large capacity memory, a removable memory, a volatile read-write memory, or a read-only memory (ROM), etc., or any combination thereof. As an example, the large capacity memory may include a disk, an optical disk, a solid-state drive, etc.; the removable memory may include a flash drive, a floppy disk, an optical disk, a memory card, a zip disk, a tape, etc.; the volatile read-write memory may include a random access memory (RAM); the RAM may include a dynamic RAM (DRAM), a double data rate synchronous dynamic RAM (DDR SDRAM); a static RAM (SRAM), a thyristor RAM (T-RAM), and a zero capacitor RAM (Zero-RAM), etc. As an example, ROM may include mask ROM (Mask Read-Only Memory, MROM), programmable ROM (Programmable Read-Only Memory, PROM), erasable programmable ROM (Programmable Erasable Read-only Memory, PEROM), electrically erasable programmable ROM (Electrically Erasable Programmable read only memory, EEPROM), CD-ROM (CD-ROM), and digital universal disk ROM, etc. In some embodiments, the database can be implemented on a cloud platform. As an example only, the cloud platform can include a private cloud, a public cloud, a hybrid cloud, a community cloud, a distributed cloud, a cross-cloud, a multi-cloud, an elastic cloud, or other similar, or any combination thereof.

[0056] In some embodiments, the database may be connected to a network to communicate with one or more components in the data processing system 10 (e.g., server 100 and terminal device 200). One or more components in the data processing system 10 may access data or instructions stored in the database via the network. In some embodiments, the database may be directly connected to one or more components in the data processing system 10 (e.g., server 100 and terminal device 200). Alternatively, in some embodiments, the database may also be part of the server 100. In some embodiments, one or more components in the data processing system 10 (e.g., server 100 and terminal device 200) may have access to the database.

[0057] Figure 2 A flowchart of a data processing method provided in an embodiment of the present application is shown, which can be applied to Figure 1 The server 100 shown in FIG. Figure 1 It should be understood that in other embodiments, the order of some steps in the data processing method of this embodiment can be interchanged according to actual needs, or some steps can be omitted or deleted. Figure 2 The process of the data processing method shown is described in detail.

[0058] Step S210: for each segmented map, obtain the real objects in the adjacent maps of the segmented map.

[0059] Step S220, mapping the real object in the adjacent map into the segmented map to obtain a corresponding mapped object.

[0060] The above method maps the real objects in the adjacent map of the split map to the split map to obtain the corresponding mapping objects, thereby realizing the mapping of the game characters in the adjacent map to the current map, and improving the problem of high data processing pressure caused by the need to display the game characters attached to all game scenes in order to ensure the player's large-scale scene experience in the prior art.

[0061] It should be noted that, before step S210, the data processing method provided in the embodiment of the present application may further include the step of obtaining a plurality of segmentation maps. Figure 2 On the basis of Figure 3 For a flow chart of another data processing method provided in an embodiment of the present application, see Figure 3 , the data processing method may further include:

[0062] Step S230, segmenting the preset map to obtain a plurality of segmented maps.

[0063] In detail, when it is necessary to split the map, the server 100 reads the size of the preset map and splits the preset map. The splitting can be performed when the scene is running without planning in advance. For example, the size of the preset map provided in the embodiment of the present application can be 16384*16384 meters, and the large scene (preset map) can be split into 1024 small scenes (split maps) of 512*512 meters. The horizontal coordinate of the preset map is x, and the vertical coordinate is y. The map with an x ​​range of 0-512 and a y range of 0-512 can be used as the first split map; the map with an x ​​range of 0-512 and a y range of 512-1024 can be used as the second split map... The map with an x ​​range of 15872-16384 and a y range of 15872-16384 can be used as the 1024th split map.

[0064] Among them, the objects in the map may include players and NPCs. After the segmentation process, each segmented map can have all the players and NPCs within the segmented map range. It should be noted that some objects are located at the boundaries of multiple maps, and not all are located inside a certain segmented map. When segmenting, the objects at the boundary belong to the segmented map with the smaller ID. For example, object A is located at the boundary between the first segmented map and the second segmented map. When segmenting, object A belongs to the first segmented map.

[0065] Regarding step S210, it should be noted that the specific method of obtaining the real object is not limited and can be set according to actual application requirements. For example, in an alternative example, step S210 may include a step of obtaining the real object according to the range. Figure 2 On the basis of Figure 4 For a flow chart of another data processing method provided in an embodiment of the present application, see Figure 4 , step S210 may include:

[0066] Step S211, determining whether the object in the adjacent map is within a preset range of the segmented map.

[0067] In an embodiment of the present application, when the object in the adjacent map is within the preset range of the segmented map, it is determined that there is a real object in the adjacent map and step S212 is executed; when the object in the adjacent map is not within the preset range of the segmented map, it is determined that there is no real object in the adjacent map.

[0068] Step S212: taking the objects within the preset range as real objects.

[0069] Optionally, the specific value of the preset range is not limited and can be set according to actual application requirements. For example, in an alternative example, the specific value of the preset range can be 50 meters. The preset range can be the distance from the object to the boundary of the segmented map, or the distance from the object to the center point of the segmented map.

[0070] In detail, NPCs and players within a preset range in adjacent maps can have a mapping object on the split map. The mapping object refers to the shadow of the real object in the adjacent map on the split map. The mapping object has all the data of the real object, but this data cannot be changed actively. The modification of the mapping object data is synchronized with the change of the real object. In this way, the map scene only needs players, NPCs and mapping objects to ensure that the surrounding players and NPCs will not appear and disappear abruptly when the player switches scenes, thereby improving the user experience.

[0071] Regarding step S220, it should be noted that the specific method of mapping the real object is not limited and can be set according to actual application requirements. For example, in an alternative example, step S220 may include a step of mapping the real object according to a scaling ratio. Figure 2 On the basis of Figure 5 For a flow chart of another data processing method provided in an embodiment of the present application, see Figure 5 , step S220 may include:

[0072] Step S221, calculating a zoom ratio according to a contact distance from a real object in an adjacent map to a map boundary and a preset distance.

[0073] Step S222, mapping the real object into the segmentation map according to the scaling ratio to obtain a corresponding mapping object.

[0074] For step S221, it should be noted that the specific method of calculating the zoom ratio is not limited and can be set according to actual application requirements. For example, in an alternative example, the contact distance includes a first contact distance, the first contact distance is the distance from the real object to the nearest point of the boundary of the segmented map, the preset distance is a first preset distance, the first preset distance is the sum of the first contact distance and the distance from the real object to the boundary of the adjacent map away from the segmented map, the zoom ratio includes the first zoom ratio, and step S221 may include the step of calculating the first zoom ratio. Therefore, step S221 may include the following sub-steps:

[0075] A first scaling ratio is calculated according to the first contact distance and the first preset distance.

[0076] Combination Figure 6The segmented map is an area covered by four points ABCD, the adjacent map is an area covered by four points AEFD, the real object is located at point M on the adjacent map, the first contact distance is a distance MA from point M of the real object to point A, the nearest point on the boundary of the segmented map, the first preset distance is a sum EA of the first contact distance MA and a distance ME from point M of the real object to point E, a boundary point of the adjacent map far from the segmented map, and the first scaling ratio is calculated according to the first contact distance MA and the first preset distance EA.

[0077] The adjacent map AEFD can be mapped as a whole to the segmented map ABCD to obtain the mapped adjacent map A1-E1-F1-D1. That is, the first preset distance EA can be mapped to E1A1 in the segmented map, and then the position M1 of the mapped object on E1A1 is obtained according to the position of the real object in the first preset distance and the first scaling ratio.

[0078] That is to say, when mapping the position of the real object, the horizontal coordinate of the real object can be mapped through the above sub-steps of step S221 to obtain the mapped horizontal coordinate.

[0079] For step S221, it should be noted that the specific method of calculating the zoom ratio is not limited and can be set according to actual application requirements. For example, in an alternative example, the contact distance includes a second contact distance, the second contact distance is the distance from the real object to the nearest point of the adjacent map boundary, the preset distance includes a second preset distance, the second preset distance is the sum of the second contact distance and the distance from the real object to the adjacent map boundary away from the nearest point, the zoom ratio includes the second zoom ratio, and step S221 may include the step of calculating the second zoom ratio. Therefore, step S221 may include the following sub-steps:

[0080] The second scaling ratio is calculated according to the second contact distance and the second preset distance.

[0081] Combination Figure 7 The segmented map is an area covered by four points ABCD, the adjacent map is an area covered by four points AEFD, the real object is located at point N on the adjacent map, the second contact distance is a distance NE from point N of the real object to the nearest point E of the adjacent map boundary, the second preset distance is a sum EF of the second contact distance NE and a distance NF from point N of the real object to a boundary point F of the adjacent map farthest from the nearest point, and the second scaling ratio is calculated according to the second contact distance NE and the second preset distance EF.

[0082] The adjacent map AEFD can be mapped as a whole to the segmented map ABCD to obtain the mapped adjacent map A1-E1-F1-D1. That is, the second preset distance EF can be mapped to E1F1 in the segmented map, and then the position N1 of the mapped object on E1F1 is obtained according to the position of the real object in the second preset distance and the second scaling ratio.

[0083] That is to say, when mapping the position of the real object, the vertical coordinate of the real object can be mapped through the above sub-steps of step S221 to obtain the mapped vertical coordinate.

[0084] Furthermore, when the real object is not a point but a game character with an area (the area is calculated by the horizontal distance and the vertical distance), the horizontal distance can be scaled by the first scaling ratio, and the vertical distance can be scaled by the second scaling ratio to obtain the scaled real object. Then, the scaled real object is mapped to the segmented map to obtain the scaled mapped object, thereby completing the simultaneous scaling of the area and position of the real object.

[0085] It should be noted that, after step S220, the data processing method provided in the embodiment of the present application may further include the step of updating. Figure 2 On the basis of Figure 8 For a flow chart of another data processing method provided in an embodiment of the present application, see Figure 8 , the data processing method may further include:

[0086] Step S240, determining whether the real object in the adjacent map is updated.

[0087] In the embodiment of the present application, when the real object in the adjacent map is updated, it is determined that the mapping object needs to be updated, and step S250 is executed; when the real object in the adjacent map is not updated, it is determined that the mapping object does not need to be updated.

[0088] Step S250, mapping the updated real object into the segmentation map to obtain an updated mapping object.

[0089] For example, if scene A (adjacent map) and scene B (the split map) are adjacent, the range within scene A that is no more than 50 meters from scene B is used as the synchronization range, and the NPCs and players within the synchronization range each have a mapping object on scene B. When the NPCs and players within the synchronization range of scene A notify scene B when a change occurs, the corresponding mapping object on scene B will respond accordingly. When a player walks into scene B from the synchronization range of scene A, you only need to mark the player as a mapping object on scene A, and the corresponding mapping object of scene B will become a real object.

[0090] Through the above method, only the players, NPCs and mapped objects in scene B need to be processed to ensure that the players and NPCs around the players will not appear or disappear abruptly when the scene is switched. In addition, the scene is divided into 1024 segments, and each segment processes the players, NPCs and mapped objects in a small scene. Only a few hundredths of the objects in the large scene need to be processed, which greatly alleviates the pressure of data processing.

[0091] Combination Fig. 9 The embodiment of the present application further provides a data processing device 900, and the functions implemented by the data processing device 900 correspond to the steps performed by the above method. The data processing device 900 can be understood as a processor of the above server 100, or can be understood as a component independent of the above server 100 or the processor that implements the functions of the present application under the control of the server 100. The data processing device 900 may include an object acquisition module 910 and an object mapping module 920.

[0092] The object acquisition module 910 is used to obtain the real objects in the adjacent maps of each segmented map. In the embodiment of the present application, the object acquisition module 910 can be used to execute Figure 2 As shown in step S210, the relevant contents about the object acquisition module 910 can refer to the above description of step S210.

[0093] The object mapping module 920 is used to map the real objects in the adjacent maps to the segmented map to obtain the corresponding mapped objects. Figure 2 As shown in step S220, the relevant contents about the object mapping module 920 can refer to the above description of step S220.

[0094] In addition, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned data processing method are executed.

[0095] The computer program product of the data processing method provided in the embodiment of the present application includes a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the steps of the data processing method in the above method embodiment. Please refer to the above method embodiment for details, which will not be repeated here.

[0096] To summarize, the data processing method and device, server, and storage medium provided in the embodiments of the present application obtain corresponding mapping objects by mapping real objects in the adjacent map of the split map to the split map, thereby realizing mapping of game characters in the adjacent map to the current map, thereby improving the problem of high data processing pressure caused by the need to display the game characters attached to all game scenes in order to ensure the player's large-scale scene experience in the prior art.

[0097] In the embodiments provided in the present application, 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 the embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and a module, a program segment or a part of a code contains one or more executable instructions for implementing a specified logical function. 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 the flowchart, and the combination of boxes in the block diagram and / or the 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.

[0098] In addition, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.

[0099] 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 application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server 100, or network device, etc.) to perform all or part of the steps of the various embodiments of the present application. 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., which can store program code.

[0100] It should be noted that, in this article, the terms "include", "comprises" or any other variations 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 includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.

[0101] The above are only preferred embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims

1. A data processing method, characterized in that: Applied to a server storing a plurality of segmented maps, the data processing method comprises: For each segmented map, obtain the real objects in the adjacent map of the segmented map; the real objects in the adjacent map are the players and NPCs in the adjacent map that are within a preset range of the segmented map; Calculating a scaling ratio according to a contact distance from a real object in the adjacent map to a map boundary and a preset distance; The real object is scaled according to the scaling ratio to obtain a scaled real object, and the scaled real object is mapped to the segmentation map to obtain a corresponding mapping object.

2. The data processing method according to claim 1, characterized in that: The contact distance includes a first contact distance, which is the distance between the real object and the nearest point of the boundary of the segmented map; the preset distance includes a first preset distance, which is the sum of the first contact distance and the distance between the real object and the boundary of the adjacent map away from the segmented map; the zoom ratio includes a first zoom ratio, and the step of calculating the zoom ratio according to the contact distance from the real object in the adjacent map to the map boundary and the preset distance includes: A first scaling ratio is calculated according to the first contact distance and a first preset distance.

3. The data processing method according to claim 1, characterized in that: The contact distance includes a second contact distance, the second contact distance is the distance between the real object and the nearest point of the border of the adjacent map, the preset distance includes a second preset distance, the second preset distance is the sum of the second contact distance and the distance between the real object and the border of the adjacent map away from the nearest point, the zoom ratio includes a second zoom ratio, and the step of calculating the zoom ratio according to the contact distance between the real object in the adjacent map and the map border and the preset distance includes: A second scaling ratio is calculated according to the second contact distance and the second preset distance.

4. The data processing method according to claim 1, characterized in that: The data processing method further comprises the step of obtaining a plurality of segmentation maps, the step comprising: The preset map is segmented to obtain multiple segmented maps.

5. The data processing method according to claim 1, characterized in that: The data processing method further includes: Determining whether the real object in the adjacent map is updated; If so, the updated real object is mapped into the segmentation map to obtain an updated mapping object.

6. A data processing device, characterized in that: Applied to a server, the server stores a plurality of segmented maps, the data processing device comprises: An object acquisition module is used to acquire, for each segmented map, real objects in a map adjacent to the segmented map; the real objects in the adjacent map are players and NPCs in the adjacent map that are within a preset range of the segmented map; The object mapping module is used to calculate the scaling ratio according to the contact distance between the real object in the adjacent map and the map boundary and the preset distance; scale the real object according to the scaling ratio to obtain the scaled real object, and map the scaled real object to the segmented map to obtain the corresponding mapping object.

7. A server, characterized in that: It comprises a memory and a processor, wherein the processor is used to execute an executable computer program stored in the memory to implement the data processing method according to any one of claims 1 to 5.

8. A storage medium, characterized in that: A computer program is stored thereon, and when the program is executed, the steps of the data processing method described in any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • Map viewing method in game, terminal, electronic equipment and storage medium

    CN111957041A