Method, device, equipment and storage medium for synchronizing map data in game applications

By using a version number mechanism in online games, the server generates and stores land change information, and terminal devices request the latest land data, which solves the data synchronization problem when players disconnect and reconnect, and achieves efficient incremental data transmission and storage optimization.

CN113633981BActive Publication Date: 2024-11-26NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110926103.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-12
Publication Date
2024-11-26
Estimated Expiration
2041-08-12

AI Technical Summary

Technical Problem

In online games, when players disconnect and reconnect, the entire map's information needs to be retrieved again, resulting in long data synchronization times and wasted resources. Furthermore, unreliable networks may cause map corruption.

Method used

By adopting a version number mechanism, the server generates a version number and stores the changed plot identifier when the plot information changes. The terminal device sends the maximum version number to request the latest plot information, and only synchronizes the changed data, reducing the amount of data stored and transmitted.

Benefits of technology

Incremental synchronization of map data saves storage space and transmission time, improves transmission efficiency, reduces traffic consumption, and ensures the accuracy and efficiency of data synchronization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113633981B_ABST
    Figure CN113633981B_ABST
Patent Text Reader

Abstract

The present application provides a method, apparatus, device and storage medium for synchronizing map data in a game application. The method maintains a monotonically increasing version number, generates a version number corresponding to the change when the plot information changes, stores the identifier of the changed plot in correspondence with the version number, reduces the amount of data in the plot change information, and saves storage space. The terminal device sends the maximum version number stored in the terminal device to the server. The server determines the identifier of the target plot that the terminal device needs to update based on the maximum version number stored in the terminal device and the locally stored version number, and synchronizes the latest plot information of the target plot to the terminal device. The terminal device obtains the latest plot information of the target plot and updates the locally stored plot information of the target plot. When synchronizing map data, only the latest plot information of some plots needs to be incrementally synchronized, and there is no need to transmit the historical modification data of the plots, which improves the efficiency of map data synchronization and reduces traffic consumption.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a method, device, equipment and storage medium for synchronizing map data in a game application. Background Art

[0002] In some online games, a large map is used, which is divided into multiple map areas, each of which is called a plot. Players compete on the plots to grab resources or build on them. This type of game involves multiple people operating the map, so when one player operates a plot on the map, the changes to the plot need to be synchronized to all players on the map.

[0003] In most current games of this type, players pull information about all plots when they first log in to the game. After players disconnect and reconnect to the server, they do not log in again, but since they cannot receive synchronization messages about plot changes between disconnection and reconnection, they need to re-pull information about all plots on the entire map, which takes a long time and more resources. Summary of the invention

[0004] The present application provides a method, apparatus, device and storage medium for synchronizing map data in a game application.

[0005] In a first aspect, the present application provides a method for synchronizing map data in a game application, which is applied to a server, wherein the server stores map data, wherein a map corresponding to the map data is divided into a plurality of plots, and the map data includes plot information of each plot, including:

[0006] When the plot information changes, a version number corresponding to the change is generated, and the identifier of the changed plot is stored corresponding to the version number, wherein the version number corresponding to the change is greater than the maximum version number stored locally;

[0007] Determine, according to the maximum version number stored in the terminal device and the version number stored locally, the identifier of the target plot that needs to be updated by the terminal device;

[0008] According to the identifier of the target plot, the latest plot information of the target plot is synchronized to the terminal device.

[0009] In a second aspect, the present application provides a method for synchronizing map data in a game application, which is applied to a terminal device as a client, comprising:

[0010] Sending the maximum version number stored in the terminal device to the server, so that the server determines the identifier of the plot that needs to be updated by the terminal device according to the maximum version number stored in the terminal device and the maximum version number stored locally, and synchronizes the latest plot information of the target plot that needs to be updated by the terminal device to the terminal device, wherein the server stores the version number of each change of the plot information and the identifier of the plot to be changed, and the version number corresponding to each change is greater than the version number corresponding to the previous change;

[0011] Acquire the latest plot information of the target plot from the server;

[0012] According to the latest plot information of the target plot, the locally stored plot information of the target plot is updated.

[0013] In a third aspect, the present application provides a device for synchronizing map data in a game application, which is applied to a server, wherein the server stores map data, wherein a map corresponding to the map data is divided into a plurality of plots, and the map data includes plot information of each plot, including:

[0014] The land parcel change information storage module is used to generate a version number corresponding to the change when the land parcel information changes, and store the identifier of the changed land parcel in correspondence with the version number, wherein the version number corresponding to the change is greater than the maximum version number stored locally;

[0015] A synchronization requirement determination module, used to determine the identifier of the target plot that the terminal device needs to update according to the maximum version number stored in the terminal device and the version number stored locally;

[0016] A data synchronization module is used to synchronize the latest plot information of the target plot to the terminal device according to the identifier of the target plot.

[0017] In a fourth aspect, the present application provides a device for synchronizing map data in a game application, which is applied to a terminal device as a client, including:

[0018] A sending module, used for sending the maximum version number stored in the terminal device to the server, so that the server determines the identifier of the plot that needs to be updated by the terminal device according to the maximum version number stored in the terminal device and the maximum version number stored locally, and synchronizes the latest plot information of the target plot that needs to be updated by the terminal device to the terminal device, wherein the server stores the version number of each change of the plot information and the identifier of the plot to be changed, and the version number corresponding to each change is greater than the version number corresponding to the previous change;

[0019] A data synchronization module is used to obtain the latest plot information of the target plot from the server; and update the locally stored plot information of the target plot according to the latest plot information of the target plot.

[0020] In a fifth aspect, the present application provides a server, including:

[0021] A processor, a memory, and a computer program stored on the memory and executable on the processor;

[0022] Wherein, when the processor runs the computer program, the method described in the first aspect above is implemented.

[0023] In a sixth aspect, the present application provides a terminal device, including:

[0024] A processor, a memory, and a computer program stored on the memory and executable on the processor;

[0025] Wherein, when the processor runs the computer program, the method described in the second aspect above is implemented.

[0026] In a seventh aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method described in any one of the above aspects is implemented.

[0027] The method, device, equipment and storage medium for synchronizing map data in a game application provided by the present application generate a version number corresponding to the change when the plot information changes, and store the identifier of the changed plot and the version number in correspondence, wherein the version number corresponding to the change is greater than the maximum version number stored locally. For a change of any plot, the server only needs to store the identifier of the changed plot and the version number in correspondence, thereby reducing the amount of stored data and saving storage space. Further, when it is necessary to synchronize map data, the terminal device sends the maximum version number stored in the terminal device to the server. The server determines the identifier of the target plot that the terminal device needs to update based on the maximum version number stored in the terminal device and the version number stored locally; and synchronizes the latest plot information of the target plot to the terminal device based on the identifier of the target plot. The terminal device obtains the latest plot information of the target plot from the server; and updates the plot information of the target plot stored locally based on the latest plot information of the target plot. When synchronizing map data, only the latest plot information of some plots needs to be synchronized incrementally, and there is no need to transmit the historical modification data of the plots, which can save transmission time, improve transmission efficiency, and reduce the traffic consumption of map data synchronization. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] Figure 1A flowchart of a method for synchronizing map data in a game application provided in Embodiment 1 of the present application;

[0029] Figure 2 A schematic diagram of map data provided in Example 2 of the present application;

[0030] Figure 3 A schematic diagram of a land parcel change list provided in Example 2 of the present application;

[0031] Figure 4 A schematic diagram of another land parcel change list provided in Example 2 of the present application;

[0032] Figure 5 A flowchart of a method for synchronizing map data in a game application provided in Embodiment 3 of the present application;

[0033] Figure 6 A schematic diagram of the structure of a device for synchronizing map data in a game application provided in Embodiment 4 of the present application;

[0034] Figure 7 A schematic diagram of the structure of a device for synchronizing map data in a game application provided in Embodiment 5 of the present application;

[0035] Figure 8 A schematic diagram of the structure of a server provided in Example 6 of the present application;

[0036] Fig. 9 This is a schematic diagram of the structure of the terminal device provided in Example 7 of the present application.

[0037] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0038] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0039] The terms "first", "second", etc. used in this application are only used for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. In the description of the following embodiments, the meaning of "multiple" is more than two, unless otherwise clearly and specifically defined.

[0040] In some online games, a large map is used, which is divided into multiple map areas, each of which is called a plot. Players compete on the plots to grab resources or build on them. This type of game involves multiple people operating the map, so when one player operates a plot on the map, the changes to the plot need to be synchronized to all players on the map.

[0041] In the map data synchronization solution, the terminal device (server) can pull the information of all the plots of the entire map from the server each time to keep the local map data synchronized with the server. However, this method transmits a large amount of data each time it synchronizes, which consumes a long time and more traffic resources.

[0042] In addition, this scheme assumes that after the initial pull, as long as the connection between the player and the server is not interrupted, the player can receive incremental plot synchronization messages without duplication or disorder. This may cause the loss of plot synchronization messages and cause the entire map to be disrupted in some unreliable transmission framework networks.

[0043] In order to reduce the consumption of data synchronization, the server can save the modification data of each land block change (such as items on the block are destroyed, resources on the block are collected, and buildings on the block are started to be built, etc.) and the change version number into the historical change data list. When synchronizing map data, the historical change data that has not been synchronized by the terminal device is obtained according to the version number updated to the terminal device, and all the historical change data that has not been synchronized by the terminal device are sent to the terminal device. The terminal device updates the local land block information according to the historical change data to achieve synchronization of local and server-side map data. However, the specific modification data of each land block change is stored in the historical change data list, and the data volume is large, and the storage space occupied is large. In actual applications, the same land block may be repeatedly modified by multiple players (for example, multiple players repeatedly compete to occupy the same land block, and the land block is occupied by A, then occupied by B, and then occupied by C). When players synchronize land block information, they only need to synchronize the latest land block information of the land block (such as the land block is occupied by C), and do not care about the historical change message of the land block. This solution will synchronize unnecessary historical change data, resulting in a waste of time and traffic resources.

[0044] Among them, the terminal device refers to the client device used by players of the game application.

[0045] The method for synchronizing map data in a game application provided in this application is intended to solve the above technical problems in the prior art.

[0046] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0047] Embodiment 1

[0048] Figure 1 A flowchart of a method for synchronizing map data in a game application provided in Embodiment 1 of the present application. The method of this embodiment is applied to a game application scenario, where the game application has map data, and the map data corresponds to a map divided into multiple plots, and the map data includes plot information of each plot.

[0049] like Figure 1 As shown, the specific steps of this method are as follows:

[0050] Step S101: When the land parcel information changes, the server generates a version number corresponding to the change, and stores the identifier of the changed land parcel in correspondence with the version number, wherein the version number corresponding to the change is greater than the maximum version number stored locally.

[0051] In this embodiment, a monotonically increasing version number is maintained. Initially, each plot does not change. Whenever one of the plots changes, a new version number is generated, and the identifier of the changed plot corresponding to the version number is recorded. For a change in any plot, the server only needs to store the identifier and version number of the changed plot, which reduces the amount of stored data and saves storage space.

[0052] Among them, the newly generated version number is greater than the existing maximum version number, that is, the newly generated version number is greater than the previous version number, and the version number increases monotonically.

[0053] The identifier of a plot of land can uniquely identify a plot of land, and may be the ID of the plot of land, etc.

[0054] Step S102: The terminal device sends the maximum version number stored in the terminal device to the server.

[0055] When synchronization of map data is required, the terminal device sends the maximum version number (referred to as "client_version") stored in the terminal device to the server.

[0056] Step S103: The server determines the identifier of the target plot that the terminal device needs to update based on the maximum version number stored in the terminal device and the version number stored locally.

[0057] The server receives the maximum version number client_version stored in the terminal device and sends it. Based on client_version and the locally stored version number, the server can determine the version number greater than client_version in the locally stored version number. The identifier of the plot corresponding to the version number greater than client_version is, that is, the identifier of the target plot that the terminal device needs to update.

[0058] Step S104: The server synchronizes the latest plot information of the target plot to the terminal device according to the identifier of the target plot.

[0059] Step S105: The terminal device obtains the latest plot information of the target plot from the server.

[0060] After determining the identifier of the target plot that needs to be updated by the terminal device, the server synchronizes the latest plot information of the target plot to the terminal device according to the identifier of the target plot.

[0061] Exemplarily, the server may directly send the latest plot information of the target plot to the terminal device, or the server may send the identifier of the target plot to the terminal device, and the terminal device may actively pull the latest plot information of the target plot from the server according to the identifier of the target plot.

[0062] Step S106: The terminal device updates the locally stored plot information of the target plot according to the latest plot information of the target plot.

[0063] After acquiring the latest plot information of the target plot, the terminal device updates the locally stored plot information of the target plot according to the latest plot information of the target plot.

[0064] In the embodiment of the present application, when the plot information changes, a version number corresponding to the change is generated, and the identifier of the changed plot is stored in correspondence with the version number, wherein the version number corresponding to the change is greater than the maximum version number stored locally. For a change of any plot, the server only needs to store the identifier and version number of the changed plot, thereby reducing the amount of stored data and saving storage space. Furthermore, when it is necessary to synchronize map data, the terminal device sends the maximum version number stored in the terminal device to the server. The server determines the identifier of the target plot that the terminal device needs to update based on the maximum version number stored in the terminal device and the version number stored locally; based on the identifier of the target plot, the latest plot information of the target plot is synchronized to the terminal device. The terminal device obtains the latest plot information of the target plot from the server; based on the latest plot information of the target plot, the plot information of the target plot stored locally is updated. When synchronizing map data, only the latest plot information of some plots needs to be synchronized incrementally, and there is no need to transmit the historical modification data of the plots, which can save transmission time, improve transmission efficiency, and reduce the traffic consumption of map data synchronization.

[0065] Embodiment 2

[0066] Based on the above-mentioned first embodiment, in this embodiment, a parcel change list is used to record each parcel change information, and the parcel change information includes a version number corresponding to this change and an identifier of the parcel that has changed. For a change of any parcel, the server only needs to store the identifier and version number of the parcel that has changed, thereby reducing the amount of stored data and saving storage space.

[0067] In this way, when the terminal device synchronizes the plot information with the server, the terminal device will upload the maximum version number client_version that it has synchronized. The server calculates the target plot that needs to be synchronized based on the currently stored version number server_version and the version number client_version sent by the terminal device, and returns it to the terminal device. After receiving the corresponding status, the terminal device will update the plot information of the terminal device and the maximum version number that has been synchronized.

[0068] In this embodiment, the map data stored in the server includes the plot information of all plots on the map, and each plot information includes plot resource related information and a version number.

[0069] For example, Figure 2 This is a schematic diagram of the map data stored on the server. Figure 2 The numbers in the first row and the letters in the first column in can be used to represent the row and column coordinates of the plot, and a plot can be uniquely identified based on the row and column coordinates of the plot. The plot information of each plot includes a version number corresponding to the plot. Figure 2Taking the example of changing the plots 3F, 4G, 5H, and 6I in sequence, the version numbers of the four plot information changes are recorded in the corresponding plot information respectively.

[0070] In an optional implementation, the server may maintain a parcel change list and store a starting value of a version number record. Each list item in the parcel change list is used to store a parcel identifier of a parcel information change, and the starting value of the version number record corresponding to the parcel change list is the version number corresponding to the first list item in the parcel change list.

[0071] In this way, only the identifier of each changed plot is saved in the plot change list, which can greatly reduce the data volume of the stored plot modification information and save storage space to the greatest extent.

[0072] When the block information is changed, a version number corresponding to the change is generated, and the identifier of the changed block and the version number are stored correspondingly. This can be implemented in the following way:

[0073] When any plot information changes, a new list item is inserted at the end of the plot change list, and the identifier of the plot that has changed is recorded in the list item. The version number corresponding to the list item is determined based on the position of the list item in the plot change list and the starting value of the version number record corresponding to the plot change list.

[0074] For example, Figure 2 As shown in the figure, take the plots 3F, 4G, 5H, and 6I as an example. Assuming that the starting value of the version number record is 1, the list items with values ​​of 3F, 4G, 5H, and 6I can be inserted into the plot change list in sequence, and the following is obtained: Figure 3 The list of plot changes shown. Figure 3 In the table shown, the first item corresponds to the parcel ID corresponding to the parcel change with version number 1, the second item corresponds to the parcel ID corresponding to the parcel change with version number 2, and so on. The version number and parcel ID corresponding to each parcel change can be determined.

[0075] Furthermore, if the number of list items in the land parcel change list is equal to the list item number threshold, the first number of list items in the land parcel change list are deleted, and the version number record start value is updated, wherein the first number is less than the list item number threshold.

[0076] In this way, when the number of list items in the plot change list reaches the list item number threshold, the plot change list can be compressed to reduce the number of list items in the plot change list, avoid the plot change list being too long, and further save storage space.

[0077] The threshold of the number of list items may be set and adjusted according to the needs of actual application scenarios, and is not specifically limited in this embodiment.

[0078] For example, assuming that the threshold value of the number of list items is 500 and the first number is 100, Figure 3 When the number of list items in the plot change list shown in reaches 500, the first 100 list items are deleted and the starting value of the version number record is updated to 101, resulting in the following Figure 4 The plot change list shown, at this time, the first item in the plot change list corresponds to the identifier of the plot corresponding to the plot change with version number 101.

[0079] When the version number record starting value changes, such as Figure 4 In the example shown, the starting value of the version number record is 101, indicating that the land parcel change information before 101 has been cleared. At this time, if the version number client_version of the current terminal device is less than the starting value 101 of the version number record, the terminal device can synchronize the complete map data from the server. In this way, even if some of the earlier land parcel change information in the land parcel change list is deleted in the middle, it will not affect the correctness of the map data synchronization.

[0080] In this embodiment, unlike the traditional solution that stores the specific change information of each plot information change, this embodiment only stores the version number corresponding to the plot change and the identifier of the changed plot (plot ID), and does not need to store the specific information of the change. The specific information of the plot will be stored in the map data, which takes up very little space and can store information of many plot changes. In addition, through the mechanism of plot change list compression, some earlier plot change information is deleted when the plot change list reaches a certain length, so as to avoid excessive space growth of the plot change list.

[0081] Embodiment 3

[0082] Figure 5 A flowchart of a method for synchronizing map data in a game application provided in Embodiment 3 of the present application. Based on Embodiment 2 above, in this embodiment, an exemplary description is given of the specific implementation process of directly synchronizing plot information between a terminal device and a server. In this embodiment, the first terminal device may be any terminal device, and the second terminal device refers to an online terminal device other than the first terminal device.

[0083] In an optional implementation of this embodiment, when the first terminal device is online, the player can perform a change operation on the plot on the first terminal device. In response to the change operation on any plot, the first terminal device sends a plot information change request to the server, and the plot information change request includes: the identifier of the first plot to be modified and the change content information.

[0084] The server receives a plot information modification request sent by the first terminal device, the plot information modification request including the identifier of the first plot and modification content information. The server determines whether the plot information modification request complies with the plot change rule according to the plot change rule of the game application, and if so, confirms the plot information modification request.

[0085] Exemplarily, the server may send confirmation modification information to the first terminal device. In response to the server's confirmation modification information for the land parcel information change request, the terminal device modifies the locally stored land parcel information of the first land parcel according to the change content information.

[0086] After confirming the request to modify the plot information, the server generates a version number corresponding to this change based on the largest version number stored locally, and stores the identifier of the changed plot in correspondence with the version number; and modifies the version number corresponding to this change based on the modified content information, and updates the plot information of the first plot stored locally.

[0087] Further, after modifying the version number corresponding to the modification content information and the current change and updating the locally stored plot information of the first plot, the server sends the plot change synchronization information of the first plot to the second terminal device except the first terminal device.

[0088] The parcel change synchronization information includes: the version number corresponding to the current change, and the identification and modification content information of the first parcel; or, the parcel change synchronization information includes: the version number corresponding to the current change, and the parcel information of the modified first parcel.

[0089] The second terminal device receives the land parcel change synchronization information of the first land parcel sent by the server. If the version number corresponding to the current change is the next version number of the largest version number stored locally, the land parcel information of the first land parcel stored locally is updated according to the land parcel change synchronization information.

[0090] Optionally, the server can synchronize the version number corresponding to the current change, as well as the identification and modified content information of the first plot to the second terminal device. The second terminal device updates the locally stored plot information of the first plot according to the identification and modified content information of the first plot, and updates the locally stored maximum version number.

[0091] Optionally, the server may synchronize the version number corresponding to the current change and the modified plot information of the first plot to the second terminal device. The second terminal device updates the locally stored plot information of the first plot according to the modified plot information of the first plot, and updates the locally stored maximum version number.

[0092] Exemplarily, the server may broadcast the land parcel change synchronization information to the second terminal device.

[0093] Furthermore, if the version number corresponding to this change is not the next version number of the locally stored maximum version number, the second terminal device can determine that at least one version number is missing between the locally stored maximum version number and the received latest version number, that is, the second terminal device has lost the land parcel change information corresponding to at least one version number. The second terminal device needs to send a land parcel information synchronization request containing the locally stored maximum version number to the server.

[0094] Of course, after other terminal devices perform change operations on the second plot, the first terminal device can also receive the plot change synchronization information of the second plot sent by the server, and the plot change synchronization information includes: the version number corresponding to this change, and the identification and modification content information of the second plot; or, the plot change synchronization information includes: the version number corresponding to this change, and the modified plot information of the second plot.

[0095] If the version number corresponding to this change is the next version number of the largest version number stored locally, the first terminal device updates the locally stored plot information of the second plot according to the plot change synchronization information. If the version number corresponding to this change is not the next version number of the largest version number stored locally, the first terminal device can determine that at least one version number is missing between the locally stored largest version number and the latest version number received, that is, the first terminal device has lost the plot change information corresponding to at least one version number. The first terminal device needs to send a plot information synchronization request containing the locally stored largest version number to the server.

[0096] In the above manner, when synchronizing map data, for the server that has been synchronized to the maximum version number, the server will subsequently receive the synchronization information of the plot change, and update the plot information according to the synchronization information of the plot change and the field. For players who have lost some of the synchronization information of the plot change, the version number and the corresponding plot identifier that the server lacks can be determined based on the maximum version number stored locally and the maximum version number stored by the server, so as to obtain the plot information of the plots that the server needs to synchronize, and obtain the latest plot information from the large map data according to the plot identifier and return it to the server.

[0097] In an extreme case in actual application, part of the data may be lost, and there is no subsequent new message. For example, the server loses the message of client_version+1, and there is no change in the block afterwards. In this case, the server cannot realize that the synchronization information of the block is missing, so it is necessary to introduce additional self-healing logic for block synchronization information to handle it.

[0098] In an optional implementation, after the terminal device is offline and reconnects to the server, it can actively send a plot information synchronization request to the server, and the plot information synchronization request includes the maximum version number stored locally on the terminal device. The server receives the plot information synchronization request from the terminal device and can obtain the maximum version number stored on the terminal device.

[0099] For example, Figure 2 Taking the four plot changes shown as an example, when the server logs in for the first time, it will pull all the plot information of all plots because it does not have the maximum version number. Assuming that the server is offline after receiving the plot information of two changes with version numbers 1 and 2, after reconnecting to the server, the server can send the stored maximum version number 2. Based on the maximum version number 4 stored locally, the server can calculate that the server is missing version numbers 3 and 4, and determine that the plots that the server needs to synchronize are the plots corresponding to version numbers 3 and 4, that is, 5H, 6I.

[0100] In another optional implementation, the online game itself needs to perform an online test on whether the terminal device is online. The online terminal device needs to send an online test message to the server at intervals to inform the server that the terminal device is still online. Optionally, the maximum version number stored in the terminal device can be carried in the online test message and sent to the server. The server receives the online test message of the terminal device and obtains the maximum version number stored in the terminal device.

[0101] While conducting online testing, it is also possible to verify whether the maximum version number stored in the terminal device (expressed by client_version) is consistent with the maximum version number stored in the server (expressed by server_version). When it is determined that they are inconsistent, incremental synchronization of the plot information is performed.

[0102] In another optional implementation, when the first terminal device is online, when the player performs a change operation on the first plot of land on the first terminal device, in response to the change operation on the first plot of land, the first terminal device sends a plot information change request to the server, and the plot information change request includes: an identifier of the first plot of land to be modified, change content information, and the maximum version number corresponding to the first plot of land.

[0103] After the server receives the request for change of plot information, if the request for modification of plot information also includes the maximum version number corresponding to the first plot stored in the terminal device, and the maximum version number corresponding to the first plot stored in the terminal device is inconsistent with the maximum version number corresponding to the first plot stored locally, it means that the plot information of the first plot stored on the first terminal device is inconsistent with that of the server. At this time, the modification of the plot information requested by the first terminal device is not allowed, and the server synchronizes the plot information of the first plot to the first terminal device.

[0104] The terminal device may update the locally stored plot information of the first plot according to the received plot information of the first plot, where the plot information includes a version number.

[0105] After updating the plot information of the first plot, the player can re-change the first plot on the first terminal device if necessary.

[0106] For example, in some unreliable network situations, the synchronization information of land parcel changes may be lost. Figure 2 Taking the 4 plot changes shown as an example, the server version number is synchronized to 2, and the plot change synchronization information with version number 3 is lost. Therefore, when the server receives the plot change synchronization information with version number 4, it can find that it is currently missing the plot change synchronization information with version number 3. At this time, the server can actively request to pull the latest plot information of the plots corresponding to version numbers 3 and 4.

[0107] Combine the following Figure 5 , the specific implementation of the method for synchronizing map data is exemplarily described, such as Figure 5 As shown, the specific steps of this method are as follows:

[0108] Step S201: The terminal device sends the maximum version number stored in the terminal device to the server.

[0109] In an optional implementation of this embodiment, after obtaining the maximum version number stored in the terminal device, the server determines the identifier of the target plot that the terminal device needs to update based on the maximum version number stored in the terminal device and the locally stored version number through step S202 or S203.

[0110] In another optional implementation of the present embodiment, after obtaining the maximum version number stored in the terminal device, the server can also determine the version number of the unsynchronized plot changes of the terminal device based on the maximum version number stored in the terminal device and the version number stored locally, that is, a version number greater than the maximum version number stored in the terminal device, and send the version number of the unsynchronized plot changes of the terminal device to the terminal device, and the terminal device pulls the latest plot information of the plots corresponding to these version numbers from the server based on the version number of the unsynchronized plot changes.

[0111] Step S202: The server receives the maximum version number stored in the terminal device.

[0112] Step S203: If the maximum version number stored in the terminal device is greater than the starting value of the version number record, and the difference between the maximum version number stored locally and the maximum version number stored in the terminal device is less than or equal to the difference threshold, the server determines the identifier of the plot corresponding to each locally stored version number after the maximum version number stored in the terminal device based on the maximum version number stored in the terminal device, and obtains the identifier of the target plot that the terminal device needs to update.

[0113] If the maximum version number stored in the terminal device is greater than the starting value of the version number record, and the difference between the maximum version number stored locally and the maximum version number stored in the terminal device is less than or equal to the difference threshold, it means that the terminal device has missed the synchronization of a few changes in the plot information.

[0114] Based on the maximum version number stored in the terminal device and the stored plot change table, the server can determine the version number after the maximum version number stored in the terminal device and the identifier of the corresponding plot, and obtain the identifier of the target plot that the terminal device needs to update.

[0115] For example, Figure 2 Taking the four plot changes shown as an example, when the server logs in for the first time, it will pull all the plot information of all plots because it does not have the maximum version number. Assuming that the server is offline after receiving the plot information of two changes with version numbers 1 and 2, after reconnecting to the server, the server can send the stored maximum version number 2. Based on the maximum version number 4 stored locally, the server can calculate that the server is missing version numbers 3 and 4, and determine that the plots that the server needs to synchronize are the plots corresponding to version numbers 3 and 4, that is, 5H, 6I.

[0116] Step S204: If the maximum version number stored in the terminal device is less than the starting value of the version number record, or the difference between the maximum version number stored locally and the maximum version number stored in the terminal device is greater than the difference threshold, the server takes all plots as target plots that need to be updated by the terminal device and obtains the identification of the target plot.

[0117] If the maximum version number stored in the terminal device is less than the starting value of the version number record, or the difference between the maximum version number stored locally and the maximum version number stored in the terminal device is greater than the difference threshold, it means that the terminal device has missed the synchronization of a lot of changed plot information, and the entire map data can be resynchronized.

[0118] The server regards all the plots as target plots that need to be updated by the terminal device, and obtains the identifiers of the target plots.

[0119] Step S205: The server sends the latest plot information of the target plot to the terminal device according to the identifier of the target plot.

[0120] After determining the identifier of the target plot that the terminal device needs to update, the server obtains the latest plot information of the target plot according to the identifier of the target plot, and sends the latest plot information of the target plot to the terminal device. The plot information contains the version number of the most recent change of the corresponding plot, that is, the maximum version number corresponding to the plot.

[0121] Step S206: The terminal device receives the latest plot information of the target plot sent by the server.

[0122] Step S207: The terminal device updates the locally stored plot information of the target plot according to the latest plot information of the target plot.

[0123] After receiving the latest plot information of the target plot sent by the server, the locally stored plot information of the target plot is updated, and the locally stored maximum version number is updated.

[0124] In the embodiment of the present application, an incremental parcel information synchronization scheme for parcel changes is implemented through a parcel change list based on version numbers. The incremental pull of parcel change information is achieved by comparing the maximum version number stored on the server with the maximum version number stored locally on the server, avoiding the complete pull when disconnecting and reconnecting due to the inability to determine whether there are any messages that have not been received. In addition, a self-healing mechanism is provided, which automatically checks the difference in version numbers when receiving a disordered message so that the server can discover the need for parcel information synchronization by itself, thereby realizing the synchronization of map data between servers.

[0125] Embodiment 4

[0126] Figure 6 This is a schematic diagram of the structure of the device for synchronizing map data in a game application provided in the fourth embodiment of the present application. The device for synchronizing map data in a game application provided in the embodiment of the present application can execute the processing flow provided in the method embodiment for synchronizing map data in a game application. The device for synchronizing map data in a game application is applied to a server, and the server stores map data. The map corresponding to the map data is divided into multiple plots, and the map data includes plot information of each plot.

[0127] like Figure 6 As shown, the device 30 for synchronizing map data in the game application includes: a land change information storage module 301, a synchronization requirement determination module 302 and a data synchronization module 303.

[0128] Specifically, the land parcel change information storage module 301 is used to generate a version number corresponding to the change when the land parcel information changes, and store the identifier of the changed land parcel in correspondence with the version number, wherein the version number corresponding to the change is greater than the maximum version number stored locally.

[0129] The synchronization requirement determination module 302 is used to determine the identifier of the target plot that the terminal device needs to update according to the maximum version number stored in the terminal device and the version number stored locally.

[0130] The data synchronization module 303 is used to synchronize the latest plot information of the target plot to the terminal device according to the identifier of the target plot.

[0131] Optionally, the land parcel change information storage module is specifically used for:

[0132] When any plot information changes, a new list item is inserted at the end of the plot change list, and the identifier of the plot that has changed is recorded in the list item. The version number corresponding to the list item is determined based on the position of the list item in the plot change list and the starting value of the version number record corresponding to the plot change list.

[0133] The starting value of the version number record corresponding to the land parcel change list is the version number corresponding to the first list item in the land parcel change list.

[0134] Optionally, the land parcel change information storage module is also used for:

[0135] If the number of list items in the land parcel change list is equal to the list item number threshold, the first number of list items in the land parcel change list are deleted, and the version number record start value is updated.

[0136] The first number is less than a threshold value of the number of list items.

[0137] Optionally, the synchronization requirement determination module is specifically used for:

[0138] If the maximum version number stored in the terminal device is greater than the starting value of the version number record, and the difference between the maximum version number stored locally and the maximum version number stored in the terminal device is less than or equal to the difference threshold, then based on the maximum version number stored in the terminal device, determine the identifier of the plot corresponding to each locally stored version number after the maximum version number stored in the terminal device, and obtain the identifier of the target plot that the terminal device needs to update.

[0139] Optionally, the synchronization requirement determination module is further used for:

[0140] If the maximum version number stored in the terminal device is less than the starting value of the version number record, or the difference between the maximum version number stored locally and the maximum version number stored in the terminal device is greater than the difference threshold, all plots are regarded as target plots that need to be updated by the terminal device, and the identification of the target plot is obtained.

[0141] Optionally, the synchronization requirement determination module is specifically used for:

[0142] Receiving a land parcel information synchronization request from a terminal device, the land parcel information synchronization request including a maximum version number stored in the terminal device;

[0143] or,

[0144] An online test message from a terminal device is received, where the online test message includes a maximum version number stored in the terminal device.

[0145] Optionally, the land parcel change information storage module is also used to

[0146] receiving a land parcel information modification request sent by the first terminal device, the land parcel information modification request including an identifier of the first land parcel and modification content information;

[0147] After confirming the request to modify the land parcel information, a version number corresponding to the change is generated according to the maximum version number stored locally, and the identifier of the changed land parcel is stored in correspondence with the version number;

[0148] According to the modified content information, the version number corresponding to the current change is modified, and the locally stored plot information of the first plot is updated.

[0149] Optionally, the data synchronization module is further used to:

[0150] After updating the locally stored parcel information of the first parcel according to the modified content information and the version number corresponding to the current change, the parcel change synchronization information of the first parcel is sent to the second terminal device other than the first terminal device, and the parcel change synchronization information includes: the version number corresponding to the current change, and the identification and modified content information of the first parcel; or, the parcel change synchronization information includes: the version number corresponding to the current change, and the modified parcel information of the first parcel.

[0151] Optionally, the data synchronization module is further used to:

[0152] After receiving the plot information modification request sent by the first terminal device, if the plot information modification request also includes the maximum version number corresponding to the first plot stored in the terminal device, and the maximum version number corresponding to the first plot stored in the terminal device is inconsistent with the maximum version number corresponding to the first plot stored locally, the plot information of the first plot is synchronized to the terminal device.

[0153] The device provided in the embodiment of the present application can be specifically used to execute the method process executed by the terminal device in any of the above method embodiments, and the specific functions and technical effects that can be achieved are not repeated here.

[0154] Embodiment 5

[0155] Figure 7This is a schematic diagram of the structure of the device for synchronizing map data in a game application provided in Embodiment 5 of the present application. The device for synchronizing map data in a game application provided in the embodiment of the present application can execute the processing flow provided in the embodiment of the method for synchronizing map data in a game application. The device for synchronizing map data in a game application is applied to a terminal device as a client.

[0156] like Figure 7 As shown, the device 40 for synchronizing map data in the game application includes: a sending module 401 and a data synchronization module 402.

[0157] Specifically, the sending module 401 is used to send the maximum version number stored in the terminal device to the server, so that the server determines the identifier of the plot that the terminal device needs to update based on the maximum version number stored in the terminal device and the maximum version number stored locally, and synchronizes the latest plot information of the target plot that the terminal device needs to update to the terminal device, wherein the server stores the version number of each change in plot information and the identifier of the changed plot, and the version number corresponding to each change is greater than the version number corresponding to the previous change.

[0158] The data synchronization module 402 is used to obtain the latest plot information of the target plot from the server; and update the locally stored plot information of the target plot according to the latest plot information of the target plot.

[0159] Optionally, the sending module is further used for:

[0160] After disconnecting and reconnecting to the server, send a synchronization request for the plot information containing the largest version number stored locally to the server;

[0161] or,

[0162] An online test message is sent to the server, where the online test message includes the maximum version number stored in the terminal device.

[0163] Optionally, the sending module is further used for:

[0164] In response to a change operation on any plot, a plot information change request is sent to the server, and the plot information change request includes: an identifier of the first plot to be modified and change content information.

[0165] The data synchronization module is also used to:

[0166] In response to the confirmation modification information of the server for the land parcel information change request, the locally stored land parcel information of the first land parcel is modified according to the change content information.

[0167] Optionally, the data synchronization module is further used to:

[0168] Receive the plot change synchronization information of the second plot sent by the server, the plot change synchronization information including: the version number corresponding to the current change, and the identification and modification content information of the second plot; or, the plot change synchronization information including: the version number corresponding to the current change, and the modified plot information of the second plot; if the version number corresponding to the current change is the next version number of the largest version number stored locally, update the locally stored plot information of the second plot according to the plot change synchronization information.

[0169] Optionally, the data synchronization module is further used to:

[0170] After receiving the parcel change synchronization information of the second parcel sent by the server, if the version number corresponding to this change is not the next version number of the largest version number stored locally, a parcel information synchronization request containing the largest version number stored locally is sent to the server.

[0171] Optionally, the parcel information change request includes: the maximum version number corresponding to the first parcel.

[0172] The data synchronization module is also used to:

[0173] According to the received plot information of the first plot, the locally stored plot information of the first plot is updated, where the plot information includes a version number.

[0174] The device provided in the embodiment of the present application can be specifically used to execute the method process executed by the server in any of the above method embodiments, and the specific functions and technical effects that can be achieved are not repeated here.

[0175] Embodiment 6

[0176] Figure 8 This is a schematic diagram of the structure of the server provided in Example 6 of this application. Figure 8 As shown, the server 100 includes: a processor 1001 , a memory 1002 , and a computer program stored in the memory 1002 and executable on the processor 1001 .

[0177] Among them, when the processor 1001 runs the computer program, it implements the method flow executed by the server in any of the above method embodiments, and the specific functions and technical effects that can be achieved are not repeated here.

[0178] Embodiment 7

[0179] Fig. 9 This is a schematic diagram of the structure of the terminal device provided in Example 7 of the present application. Fig. 9 As shown, the terminal device 110 includes: a processor 1101 , a memory 1102 , and a computer program stored in the memory 1102 and executable on the processor 1101 .

[0180] Among them, when the processor 1101 runs the computer program, it implements the method flow executed by the server in any of the above method embodiments, and the specific functions and technical effects that can be achieved are not repeated here.

[0181] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the method flow executed by the server or terminal device in any of the above method embodiments is implemented.

[0182] An embodiment of the present application also provides a computer program product, which includes: a computer program, which is stored in a readable storage medium. At least one processor of an electronic device can read the computer program from the readable storage medium, and at least one processor executes the computer program so that the electronic device executes the method flow executed by the server or terminal device in any of the above method embodiments.

[0183] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0184] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0185] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0186] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to perform some steps of the methods of each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store program codes.

[0187] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example for illustration. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0188] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.

[0189] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

Claims

1. A method for synchronizing map data in a game application, characterized in that: Applied to a server, the server stores map data, the map data corresponds to a map divided into a plurality of plots, the map data includes plot information of each plot, including: When the plot information changes, a version number corresponding to the change is generated, and the identifier of the changed plot is stored corresponding to the version number, wherein the version number corresponding to the change is greater than the maximum version number stored locally; Determine, according to the maximum version number stored in the terminal device and the version number stored locally, the identifier of the target plot that needs to be updated by the terminal device; Sending the identifier of the target plot to the terminal device, so that the terminal device pulls the latest plot information of the target plot from the server according to the identifier of the target plot, and synchronizes the latest plot information of the target plot to the terminal device; When the land parcel information changes, a version number corresponding to the change is generated, and the identifier of the changed land parcel is stored correspondingly to the version number, including: Receiving a land parcel information modification request sent by a first terminal device, wherein the land parcel information modification request includes an identifier of the first land parcel and modification content information; After confirming the request to modify the land parcel information, generating a version number corresponding to the current change according to the largest version number stored locally, and storing the identifier of the changed land parcel in correspondence with the version number; Update the locally stored parcel information of the first parcel according to the modified content information and the version number corresponding to the current change; After receiving the land parcel information modification request sent by the first terminal device, the method further includes: If the plot information modification request also includes the maximum version number corresponding to the first plot stored in the terminal device, and the maximum version number corresponding to the first plot stored in the terminal device is inconsistent with the maximum version number corresponding to the first plot stored locally, the plot information of the first plot is synchronized to the terminal device.

2. The method according to claim 1, characterized in that: When the land parcel information is changed, a version number corresponding to the change is generated, and the identifier of the changed land parcel is stored correspondingly to the version number, including: When any plot information changes, a new list item is inserted at the end of the plot change list, and the identifier of the plot that has changed is recorded in the list item. The version number corresponding to the list item is determined according to the position of the list item in the plot change list and the starting value of the version number record corresponding to the plot change list; The starting value of the version number record corresponding to the land parcel change list is the version number corresponding to the first list item in the land parcel change list.

3. The method according to claim 2, characterized in that When any plot information changes, a new list item is inserted at the end of the plot change list, and the identifier of the plot that has changed is recorded after the list item, and the method further includes: If the number of list items in the land parcel change list is equal to the list item number threshold, deleting the first number of list items in the land parcel change list, and updating the starting value of the version number record; The first number is smaller than the list item number threshold.

4. The method according to claim 2, characterized in that: The step of determining the identifier of the target plot that needs to be updated by the terminal device according to the maximum version number stored in the terminal device and the version number stored locally includes: If the maximum version number stored in the terminal device is greater than the starting value of the version number record, and the difference between the locally stored maximum version number and the maximum version number stored in the terminal device is less than or equal to the difference threshold, then based on the maximum version number stored in the terminal device, determine the identifier of the plot corresponding to each locally stored version number after the maximum version number stored in the terminal device, and obtain the identifier of the target plot that the terminal device needs to update.

5. The method according to claim 2, characterized in that: The step of determining the identifier of the target plot that needs to be updated by the terminal device according to the maximum version number stored in the terminal device and the version number stored locally includes: If the maximum version number stored in the terminal device is less than the starting value of the version number record, or the difference between the maximum version number stored locally and the maximum version number stored in the terminal device is greater than the difference threshold, all plots are regarded as target plots that need to be updated by the terminal device, and the identifier of the target plot is obtained.

6. The method according to claim 4 or 5, characterized in that: Before determining the identifier of the target plot that needs to be updated by the terminal device according to the maximum version number stored in the terminal device and the version number stored locally, the method further includes: receiving a land parcel information synchronization request from the terminal device, wherein the land parcel information synchronization request includes a maximum version number stored in the terminal device; or, An online test message from the terminal device is received, where the online test message includes a maximum version number stored in the terminal device.

7. The method according to claim 1, characterized in that After the version number corresponding to the current change is modified according to the modified content information and the parcel information of the first parcel stored locally is updated, the method further includes: Sending the plot change synchronization information of the first plot to a second terminal device other than the first terminal device, the plot change synchronization information including: the version number corresponding to the current change, and the identification and modification content information of the first plot; or, the plot change synchronization information including: the version number corresponding to the current change, and the modified plot information of the first plot.

8. A method for synchronizing map data in a game application, characterized in that: Applicable to terminal devices acting as clients, including: Sending the maximum version number stored in the terminal device to the server, so that the server determines the identifier of the plot that needs to be updated by the terminal device according to the maximum version number stored in the terminal device and the maximum version number stored locally, and synchronizes the latest plot information of the target plot that needs to be updated by the terminal device to the terminal device, wherein the server stores the version number of each change of the plot information and the identifier of the plot to be changed, and the version number corresponding to each change is greater than the version number corresponding to the previous change; Obtaining from the server an identifier of a target plot to be updated; Pulling the latest plot information of the target plot from the server according to the identifier of the target plot, and updating the plot information of the target plot stored locally; In response to a change operation on any land parcel, a land parcel information modification request is sent to the server, wherein the land parcel information modification request includes: an identifier of a first land parcel to be modified and change content information; In response to confirmation modification information of the server for the land parcel information change request, modify the locally stored land parcel information of the first land parcel according to the change content information; Receive the parcel information of the first parcel synchronized with the server, wherein the parcel information of the first parcel synchronized with the server is sent when the parcel information modification request includes the maximum version number corresponding to the first parcel stored in the terminal device, and the maximum version number corresponding to the first parcel stored in the terminal device is inconsistent with the maximum version number corresponding to the first parcel locally stored in the server.

9. The method according to claim 8, characterized in that The sending the maximum version number stored in the terminal device to the server includes: After disconnecting and reconnecting to the server, sending a land parcel information synchronization request including the largest version number stored locally to the server; or, An online test message is sent to the server, where the online test message includes the maximum version number stored in the terminal device.

10. The method according to claim 8, characterized in that Also includes: receiving the parcel change synchronization information of the second parcel sent by the server, the parcel change synchronization information including: a version number corresponding to the current change, and an identifier and modified content information of the second parcel; or the parcel change synchronization information including: a version number corresponding to the current change, and the parcel information of the second parcel after modification; If the version number corresponding to the current change is the next version number of the largest version number stored locally, the locally stored plot information of the second plot is updated according to the plot change synchronization information.

11. The method according to claim 10, characterized in that After receiving the land parcel change synchronization information of the second land parcel sent by the server, the method further includes: If the version number corresponding to the current change is not the next version number of the largest version number stored locally, a plot information synchronization request including the largest version number stored locally is sent to the server.

12. The method according to claim 8, characterized in that The land parcel information change request includes: the maximum version number corresponding to the first land parcel, According to the received plot information of the first plot, the locally stored plot information of the first plot is updated, where the plot information includes a version number.

13. A device for synchronizing map data in a game application, characterized in that: Applied to a server, the server stores map data, the map data corresponds to a map divided into a plurality of plots, the map data includes plot information of each plot, including: The land parcel change information storage module is used to generate a version number corresponding to the change when the land parcel information changes, and store the identifier of the changed land parcel in correspondence with the version number, wherein the version number corresponding to the change is greater than the maximum version number stored locally; A synchronization requirement determination module, used to determine the identifier of the target plot that the terminal device needs to update according to the maximum version number stored in the terminal device and the version number stored locally; A data synchronization module, used for sending the identifier of the target plot to the terminal device, so that the terminal device pulls the latest plot information of the target plot from the server according to the identifier of the target plot, and synchronizes the latest plot information of the target plot to the terminal device; The land parcel change information storage module is specifically used to receive a land parcel information modification request sent by a first terminal device, wherein the land parcel information modification request includes an identifier of a first land parcel and modification content information; after confirming the land parcel information modification request, generate a version number corresponding to this change according to the maximum version number stored locally, store the identifier of the changed land parcel in correspondence with the version number; and update the land parcel information of the first land parcel stored locally according to the modification content information and the version number corresponding to this change; The plot change information storage module is also specifically used to synchronize the plot information of the first plot to the terminal device if the plot information modification request also includes the maximum version number corresponding to the first plot stored in the plot change information storage module, and the maximum version number corresponding to the first plot stored in the plot change information storage module is inconsistent with the maximum version number corresponding to the first plot stored locally.

14. A device for synchronizing map data in a game application, characterized in that: Applicable to terminal devices acting as clients, including: A sending module, used for sending the maximum version number stored in the terminal device to the server, so that the server determines the identifier of the plot that needs to be updated by the terminal device according to the maximum version number stored in the terminal device and the maximum version number stored locally, and synchronizes the latest plot information of the target plot that needs to be updated by the terminal device to the terminal device, wherein the server stores the version number of each change of the plot information and the identifier of the plot to be changed, and the version number corresponding to each change is greater than the version number corresponding to the previous change; A data synchronization module is used to obtain the identifier of the target plot to be updated from the server; pull the latest plot information of the target plot from the server according to the identifier of the target plot, and update the plot information of the target plot stored locally; The sending module is further used to send a land parcel information modification request to the server in response to a change operation on any land parcel, wherein the land parcel information modification request includes: an identifier of a first land parcel to be modified and change content information; The data synchronization module is further configured to respond to confirmation modification information of the server regarding the land parcel information change request, and modify the locally stored land parcel information of the first land parcel according to the change content information; Receive the parcel information of the first parcel synchronized with the server, wherein the parcel information of the first parcel synchronized with the server is sent when the parcel information modification request includes the maximum version number corresponding to the first parcel stored in the terminal device, and the maximum version number corresponding to the first parcel stored in the terminal device is inconsistent with the maximum version number corresponding to the first parcel locally stored in the server.

15. A server, characterized in that: include: A processor, a memory, and a computer program stored on the memory and executable on the processor; Wherein, when the processor runs the computer program, the method according to any one of claims 1 to 7 is implemented.

16. A terminal device, characterized in that: include: A processor, a memory, and a computer program stored on the memory and executable on the processor; Wherein, when the processor runs the computer program, the method as claimed in any one of claims 8 to 12 is implemented.

17. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 12 is implemented.