Distributed game terminal data sharing method and system based on cloud platform
By determining the main game terminal and sub-game terminal in multi-user game scenarios and building a communication channel with the cloud platform, the problem of difficulty in updating game data in a timely manner is solved, and efficient and reliable game data sharing is achieved.
Patent Information
- Application Number
- CN202311736109.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-18
- Publication Date
- 2025-06-20
AI Technical Summary
In the existing multi-user game scenarios, it is difficult for cloud platforms to update game data in a timely manner, and it is impossible to ensure the latest data sharing of all game terminals, which reduces the efficiency and reliability of data sharing.
By determining the main game terminal and the sub-game terminal in the distributed game terminal system, a communication channel between the main game terminal and the cloud platform is built, and the main game terminal is used as the source of game data sharing, the game data is synchronized to the cloud platform and a game data mapping library is formed, the game data to be shared is located and sent to the sub-game terminal in time periods.
It reduces the pressure on data sharing on cloud platforms, improves the richness and sharing efficiency of game data, and ensures efficient and reliable data sharing of sub-game terminals.
Smart Images

Figure CN120168950A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of cloud platform data sharing, and particularly to a method and system for distributed game terminal data sharing based on a cloud platform. Background Art
[0002] In a multi-user game scenario, game terminals such as smart phones or portable computers held by different users need to share and load game data so that all game terminals held by users can synchronously enter the same game scenario. Existing multi-user game scenarios all use a cloud platform as a storage and sharing control terminal for game data, that is, the cloud platform simultaneously sends game data stored by itself to all game terminals, which poses relatively high requirements on the game data storage performance of the cloud platform itself. In actual work, the cloud platform cannot update game data in a timely manner, cannot ensure the sharing of the latest game data with all game terminals, cannot make full use of each game terminal as a data source for game data sharing, and reduces the data sharing efficiency and reliability of game terminals. Summary of the Invention
[0003] The purpose of the present invention is to provide a method and system for distributed game terminal data sharing based on a cloud platform, which determines a main game terminal and several sub-game terminals in a current game scenario from all game terminals under a distributed game terminal system, constructs communication channels between the main game terminal and the sub-game terminals and the cloud platform, uses the main game terminal as a game data sharing source for the distributed game terminal system, reduces the data sharing pressure of the cloud platform and improves the richness of game data; synchronizes the game data of the main game terminal to the cloud platform and forms a game data mapping library on the cloud platform, queries the game data mapping library to obtain attribute information of game data to be shared, locates the game data to be shared from the main game terminal based on this, and sends the game data to be shared to the sub-game terminals in time periods through the cloud platform to ensure efficient and reliable data sharing with the sub-game terminals.
[0004] The present invention is realized by the following technical solutions:
[0005] A method for distributed game terminal data sharing based on a cloud platform includes:
[0006] Sending a game invitation request to all game terminals under a distributed game terminal system through a cloud platform, and determining a main game terminal and several sub-game terminals in a current game scenario from all game terminals based on response messages of all game terminals regarding the game invitation request; respectively constructing communication channels between the main game terminal and the sub-game terminals and the cloud platform based on gateway connection states of the main game terminal and the sub-game terminals;
[0007] Synchronize the game data of the main game terminal to the cloud platform and form a corresponding game data mapping library within the cloud platform; based on the game data acquisition request from the sub-game terminal, query the data in the game data mapping library and obtain the attribute information of the game data to be shared from the game data mapping library;
[0008] Based on the attribute information of the game data to be shared, locate the corresponding game data to be shared from the main game terminal and upload the game data to be shared to the cloud platform; based on the respective real-time working states of all sub-game terminals, send the game data to be shared to the corresponding sub-game terminals in segments from the cloud platform.
[0009] Optionally, send a game invitation request to all game terminals under the distributed game terminal system through the cloud platform; based on the response messages of all game terminals regarding the game invitation request, determine a main game terminal and several sub-game terminals in the current game scenario from all game terminals; based on the gateway connection status of the main game terminal and the sub-game terminals, respectively construct communication channels between the main game terminal and the cloud platform, and between the sub-game terminals and the cloud platform, including:
[0010] Based on the terminal identity list of all awakened game terminals under the distributed game terminal system, send a game invitation request to all awakened game terminals through the cloud platform; extract the game data feature information of each game terminal from the response messages of all awakened game terminals regarding the game invitation request, and determine the matching degree between each game data feature information and the game data feature information required in the current game scenario; then use the game terminal corresponding to the highest matching degree as the main game terminal in the current game scenario, and the remaining game terminals as the sub-game terminals in the current game scenario;
[0011] Based on the respective connection gateway addresses of the main game terminal and the sub-game terminals, respectively construct the shortest communication channels between the main game terminal and the cloud platform, and between the sub-game terminals and the cloud platform.
[0012] Optionally, synchronize the game data of the main game terminal to the cloud platform and form a corresponding game data mapping library within the cloud platform; based on the game data acquisition request from the sub-game terminal, query the data in the game data mapping library and obtain the attribute information of the game data to be shared, including:
[0013] Based on the game data storage log of the main game terminal itself, determine the game data storage directory of the main game terminal; wherein, the game data storage directory includes the data keywords and data storage addresses of each game data stored in the main game terminal;
[0014] Synchronize the game data storage directory to the cloud platform, and form a game data mapping library in the cloud platform that matches the game data storage directory;
[0015] Parse and process the game data acquisition request from the sub-game terminal to obtain the keyword information of the game data that the sub-game terminal expects to obtain. Then, based on the keyword information of the game data that is expected to be obtained, query the game data mapping library for data, and determine the data keyword with the highest semantic similarity to the keyword information of the game data that is expected to be obtained from the game data mapping library; and use the data storage address corresponding to the data keyword with the highest semantic similarity in the game data mapping library as the attribute information of the game data to be shared.
[0016] Optionally, based on the attribute information of the game data to be shared, locate the corresponding game data to be shared from the main game terminal, and upload the game data to be shared to the cloud platform; based on the respective real-time working states of all sub-game terminals, send the game data to be shared to the corresponding sub-game terminals in time periods, including:
[0017] Based on the data storage address included in the attribute information of the game data to be shared, locate the corresponding game data to be shared from the main game terminal, compress and package the game data to be shared to form a game data packet to be shared, and then upload it to the cloud platform;
[0018] Obtain the respective real-time data reception progress information of all sub-game terminals, and based on the real-time data reception progress information, determine the time periods when each sub-game terminal is allowed to receive the game data packet to be shared; based on the time periods when all sub-game terminals are allowed to receive the game data packet to be shared, send the game data packet to be shared to the corresponding sub-game terminals in time periods.
[0019] Optionally, based on the data storage address included in the attribute information of the game data to be shared, locate the corresponding game data to be shared from the main game terminal, and compress and package the game data to be shared to form a game data packet to be shared, and then upload it to the cloud platform, including:
[0020] Step S1, use the following formula (1) to obtain the compression amount of the game data to be shared according to the data storage address included in the attribute information of the game data to be shared and the game data to be shared,
[0021]
[0022] In the above formula (1), Y 16Represents the hexadecimal form of the compression amount of the game data to be shared; Z 16 Represents the hexadecimal form of the data storage address included in the attribute information of the game data to be shared; >> represents the right shift symbol; D 16 Represents the hexadecimal form of the game data to be shared; max[,] represents obtaining the maximum value between the left and right ends of the comma within the brackets; K represents the compression parameter value of the game data to be shared;
[0023] Step S2, using the following formula (2), compress and package the game data to be shared according to the compression amount of the game data to be shared,
[0024]
[0025] In the above formula (2), A represents the data group obtained after compressing and packaging the game data to be shared; () 16 Represents converting the value within the brackets into a hexadecimal number; {} represents packaging the upper and lower two hexadecimal numbers within the brackets to form a data group;
[0026] Step S3, when it is necessary to extract the game data to be shared, use the following formula (3) to extract the game data to be shared,
[0027] d 16 = A{1}+{Z 16 >>(A{2}) 10} (3)
[0028] In the above formula (3), d 16 Represents the hexadecimal form of the game data to be shared obtained by extraction; A{1} represents the hexadecimal data in the first row of the data group A; A{2} represents the hexadecimal data in the second row of the data group A; () 10 Represents converting the value within the brackets into a decimal number.
[0029] A distributed game terminal data sharing system based on a cloud platform, including:
[0030] A game terminal identification module, used to send a game invitation request to all game terminals under the distributed game terminal system through the cloud platform, and determine a main game terminal and several sub-game terminals in the current game scenario from all game terminals based on the response messages of all game terminals regarding the game invitation request;
[0031] A communication channel construction module, used to respectively construct communication channels between the main game terminal and the sub-game terminals and the cloud platform based on the gateway connection status of the main game terminal and the sub-game terminals;
[0032] A game data mapping library generation module, which is used to synchronize the game data of the main game terminal to the cloud platform and form a corresponding game data mapping library inside the cloud platform;
[0033] A to-be-shared game data identification module, which is used to query the game data mapping library based on a game data acquisition request from the sub-game terminal and obtain the to-be-shared game data attribute information from the game data mapping library;
[0034] A to-be-shared game data location and upload module, which is used to locate the corresponding to-be-shared game data from the main game terminal based on the to-be-shared game data attribute information and upload the to-be-shared game data to the cloud platform;
[0035] A to-be-shared game data sending module, which is used to send the to-be-shared game data from the cloud platform to the corresponding sub-game terminals in time periods based on the respective real-time working states of all sub-game terminals.
[0036] Optionally, the game terminal identification module is used to send a game invitation request to all game terminals under the distributed game terminal system through the cloud platform, and determine a main game terminal and several sub-game terminals in the current game scenario from all game terminals based on the response messages of all game terminals regarding the game invitation request, including:
[0037] Based on the terminal identity list of all awakened game terminals under the distributed game terminal system, send a game invitation request to all awakened game terminals through the cloud platform; extract the game data feature information of each game terminal from the response messages of all awakened game terminals regarding the game invitation request, and determine the matching degree between each game data feature information and the game data feature information required for the current game scenario; then use the game terminal corresponding to the highest matching degree as the main game terminal in the current game scenario, and the remaining game terminals as the sub-game terminals in the current game scenario;
[0038] The communication channel construction module is used to construct communication channels between the main game terminal and the cloud platform and between the sub-game terminal and the cloud platform respectively based on the gateway connection status of the main game terminal and the sub-game terminal, including:
[0039] Based on the respective connection gateway addresses of the main game terminal and the sub-game terminal, construct the shortest communication channels between the main game terminal and the cloud platform and between the sub-game terminal and the cloud platform respectively.
[0040] Optionally, the game data mapping library generation module is used to synchronize the game data of the main game terminal to the cloud platform and form a corresponding game data mapping library inside the cloud platform, including:
[0041] Based on the game data storage log of the main game terminal itself, determine the game data storage directory of the main game terminal; wherein, the game data storage directory includes the data keywords and data storage addresses of each game data stored in the main game terminal;
[0042] Synchronize the game data storage directory to the cloud platform and form a game data mapping library in the cloud platform that matches and corresponds to the game data storage directory;
[0043] The game data to be shared identification module is used to query the game data mapping library based on the game data acquisition request from the sub-game terminal, and obtain the game data attribute information to be shared from the game data mapping library, including:
[0044] Parse and process the game data acquisition request from the sub-game terminal to obtain the keyword information of the game data expected to be acquired by the sub-game terminal, and then query the game data mapping library based on the keyword information of the game data expected to be acquired, and determine the data keyword with the highest semantic similarity to the keyword information of the game data expected to be acquired in the game data mapping library; and use the data storage address corresponding to the data keyword with the highest semantic similarity in the game data mapping library as the game data attribute information to be shared.
[0045] Optionally, the game data to be shared location and upload module is used to locate the corresponding game data to be shared from the main game terminal based on the game data attribute information to be shared and upload the game data to be shared to the cloud platform, including:
[0046] Locate the corresponding game data to be shared from the main game terminal based on the data storage address included in the game data attribute information to be shared, and compress and package the game data to be shared to form a game data packet to be shared and then upload it to the cloud platform;
[0047] The game data to be shared sending module is used to send the game data to be shared from the cloud platform to the corresponding sub-game terminal in time periods based on the respective real-time working states of all sub-game terminals, including:
[0048] Obtain the real-time data reception progress information of each sub-game terminal, and based on the real-time data reception progress information, determine the time period during which each sub-game terminal is allowed to receive the game data packet to be shared; based on the time periods during which all sub-game terminals are allowed to receive the game data packet to be shared, send the game data packet to be shared to the corresponding sub-game terminal in time periods from the cloud platform.
[0049] Compared with the prior art, the present invention has the following beneficial effects:
[0050] The method and system for sharing game terminal data based on a cloud platform provided in this application determine a main game terminal and several sub-game terminals in the current game scenario from all game terminals under the distributed game terminal system, and establish a communication channel between the main game terminal, the sub-game terminals and the cloud platform. Using the main game terminal as the source of game data sharing in the distributed game terminal system reduces the data sharing pressure on the cloud platform and improves the richness of game data; synchronize the game data of the main game terminal to the cloud platform and form a game data mapping library on the cloud platform, query the data in the game data mapping library to obtain the attribute information of the game data to be shared, thereby locate the game data to be shared from the main game terminal and send the game data to be shared to the sub-game terminals in time periods through the cloud platform, ensuring efficient and reliable data sharing to the sub-game terminals. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts. Among them:
[0052] Figure 1 It is a schematic flow chart of the method for sharing game terminal data based on a cloud platform provided by the present invention.
[0053] Figure 2 It is a schematic structural diagram of the system for sharing game terminal data based on a cloud platform provided by the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0054] To make the above objects, features, and advantages of the present application more apparent and understandable, the following will describe the specific embodiments of the present application in detail with reference to the accompanying drawings. It can be understood that the specific embodiments described herein are only for explaining the present application and not for limiting the present application. Additionally, it should be noted that for the convenience of description, only the parts related to the present application rather than all the structures are shown in the drawings. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in the present application without creative efforts belong to the scope of protection of the present application.
[0055] The terms "including" and "having" and any variations thereof in the present application are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units is not limited to the listed steps or units, but optionally further includes steps or units not listed, or optionally further includes other steps or units inherent to these processes, methods, products, or devices.
[0056] Referring to the embodiments herein means that the specific features, structures, or characteristics described in connection with the embodiments can be included in at least one embodiment of the present application. The phrase appears at various positions in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment mutually exclusive with other embodiments. Those skilled in the art explicitly and implicitly understand that the embodiments described herein can be combined with other embodiments.
[0057] Please refer to Figure 1 As shown, a method for sharing distributed game terminal data based on a cloud platform provided by an embodiment of the present application includes:
[0058] Sending a game invitation request to all game terminals under the distributed game terminal system through the cloud platform, and determining a main game terminal and several sub-game terminals in the current game scenario from all game terminals based on the response messages of all game terminals regarding the game invitation request; respectively constructing communication channels between the main game terminal and the sub-game terminals and the cloud platform based on the gateway connection status of the main game terminal and the sub-game terminals;
[0059] Synchronizing the game data of the main game terminal to the cloud platform and forming a corresponding game data mapping library within the cloud platform; querying the game data mapping library based on the game data acquisition request from the sub-game terminals to obtain the attribute information of the game data to be shared from the game data mapping library;
[0060] Based on the game data attribute information to be shared, locate the corresponding game data to be shared from the main game terminal, and upload the game data to be shared to the cloud platform; based on the respective real-time working states of all sub-game terminals, send the game data to be shared to the corresponding sub-game terminals in time segments from the cloud platform.
[0061] Beneficial effects of the above embodiments: The distributed game terminal data sharing method based on the cloud platform determines a main game terminal and several sub-game terminals in all game terminals under the distributed game terminal system as the current game scenario, and constructs communication channels between the main game terminal, the sub-game terminals and the cloud platform. Using the main game terminal as the source of game data sharing for the distributed game terminal system reduces the data sharing pressure on the cloud platform and improves the richness of game data; synchronizes the game data of the main game terminal to the cloud platform and forms a game data mapping library on the cloud platform, queries the data in the game data mapping library to obtain the game data attribute information to be shared, and thus locates the game data to be shared from the main game terminal and sends the game data to be shared to the sub-game terminals in time segments through the cloud platform, ensuring efficient and reliable data sharing to the sub-game terminals.
[0062] In another embodiment, send a game invitation request to all game terminals under the distributed game terminal system through the cloud platform, and determine a main game terminal and several sub-game terminals in all game terminals as the current game scenario based on the response messages of all game terminals regarding the game invitation request; respectively construct communication channels between the main game terminal, the sub-game terminals and the cloud platform based on the gateway connection states of the main game terminal and the sub-game terminals, including:
[0063] Based on the terminal identity list of all awakened game terminals under the distributed game terminal system, send a game invitation request to all awakened game terminals through the cloud platform; extract the game data feature information of each game terminal from the response messages of all awakened game terminals regarding the game invitation request, and determine the matching degree between each game data feature information and the game data feature information required for the current game scenario; then use the game terminal corresponding to the highest matching degree as the main game terminal in the current game scenario, and the remaining game terminals as the sub-game terminals in the current game scenario;
[0064] Based on the respective connection gateway addresses of the main game terminal and the sub-game terminals, respectively construct the shortest communication channels between the main game terminal and the cloud platform, and between the sub-game terminal and the cloud platform.
[0065] The beneficial effects of the above embodiments are as follows. The distributed game terminal system consists of smartphones or portable computers held by different users respectively. Obtain the terminal identity list of all game terminals in the distributed game terminal system that are in the wake-up state. Based on this terminal identity list, send a game invitation request to the corresponding game terminals through the cloud platform. When a game terminal receives the game invitation request, it will return a corresponding response message according to the game data status stored in itself. Analyze and process the response message returned by each game terminal to obtain the game data feature information of each game terminal. The game data feature information can be, but is not limited to, the data content feature information of the game data stored in the game terminal itself. Then determine the matching degree between the game data feature information of each game terminal and the game data feature information required by the current game scenario. The higher the matching degree, the more matching game data the corresponding game terminal can provide for the current game scenario. Then use the game terminal with the highest matching degree as the main game terminal in the current game scenario, and the other game terminals as the sub-game terminals in the current game scenario. In this way, use the main game terminal as the game data source of the game scenario to share game data for the sub-game terminals. Also, based on the connection gateway addresses of the main game terminal and the sub-game terminals respectively, construct the shortest communication channels between the main game terminal and the cloud platform, and between the sub-game terminal and the cloud platform, to improve the data transmission efficiency and reliability between the main game terminal, the sub-game terminals and the cloud platform.
[0066] In another embodiment, synchronize the game data of the main game terminal to the cloud platform and form a corresponding game data mapping library inside the cloud platform; based on the game data acquisition request from the sub-game terminal, query the game data mapping library for data, and obtain the game data attribute information to be shared from the game data mapping library, including:
[0067] Based on the game data storage log of the main game terminal itself, determine the game data storage directory of the main game terminal; wherein, the game data storage directory includes the data keywords and data storage addresses of each game data stored in the main game terminal;
[0068] Synchronize the game data storage directory to the cloud platform and form a game data mapping library corresponding to and matching the game data storage directory inside the cloud platform;
[0069] Parse and process the game data acquisition request from the sub-game terminal to obtain the keyword information of the game data expected to be obtained by the sub-game terminal. Then, based on the keyword information of the game data expected to be obtained, query the game data mapping library to determine the data keyword with the highest semantic similarity to the keyword information of the game data expected to be obtained from the game data mapping library. And use the data storage address corresponding to the data keyword with the highest semantic similarity in the game data mapping library as the attribute information of the game data to be shared.
[0070] The beneficial effects of the above embodiments are as follows: Extract the game storage directory of the main game terminal from the game data storage log of the main game terminal, and use the game storage directory to comprehensively identify the data keywords and data storage addresses of the game data stored in the main game terminal. Then synchronize the game data storage directory to the cloud platform, so that a game data mapping library matching the game data storage directory is formed inside the cloud platform. The game data mapping library is not an entity database, but serves as an index library for the game data stored in the main game terminal, facilitating the cloud platform to accurately query and retrieve the corresponding game data from the game data stored in the main game terminal for sharing. Additionally, parse and process the game data acquisition request from the sub-game terminal to obtain the keyword information of the game data expected to be obtained by the sub-game terminal. Then, based on the keyword information of the game data expected to be obtained, query the game data mapping library to determine the data keyword with the highest semantic similarity to the keyword information of the game data expected to be obtained from the game data mapping library. Next, use the data storage address corresponding to the data keyword with the highest semantic similarity in the game data mapping library as the attribute information of the game data to be shared, facilitating subsequent quick and accurate acquisition of the corresponding game data from the main game terminal and sharing and transmission to the sub-game terminal.
[0071] In another embodiment, based on the attribute information of the game data to be shared, locate the corresponding game data to be shared from the main game terminal and upload the game data to be shared to the cloud platform. Based on the respective real-time working states of all sub-game terminals, send the game data to be shared to the corresponding sub-game terminals in segments, including:
[0072] Based on the data storage address included in the attribute information of the game data to be shared, locate the corresponding game data to be shared from the main game terminal, compress and package the game data to be shared to form a game data packet to be shared, and then upload it to the cloud platform.
[0073] Obtain the real-time data reception progress information of each sub-game terminal, and based on this real-time data reception progress information, determine the time period during which each sub-game terminal is allowed to receive the to-be-shared game data packet; based on the time periods during which all sub-game terminals are respectively allowed to receive the to-be-shared game data packet, send the to-be-shared game data packet to the corresponding sub-game terminal in time periods from the cloud platform.
[0074] The beneficial effects of the above embodiments are as follows. Based on the data storage address included in the to-be-shared game data attribute information, locate the corresponding to-be-shared game data from the main game terminal, and after compressing and packaging the to-be-shared game data to form a to-be-shared game data packet, upload it to the cloud platform, so that the cloud platform can obtain the game data that needs to be shared. Then obtain the real-time data reception progress information of each sub-game terminal, and based on this real-time data reception progress information, determine the time period during which each sub-game terminal is allowed to receive the to-be-shared game data packet, that is, based on this real-time data reception progress information, determine the time information corresponding to the sub-game terminal completing the current data reception task, and then use the time information corresponding to each sub-game terminal completing the current data reception task as a reference to determine the time periods during which the sub-game terminals are respectively allowed to receive the to-be-shared game data packet, and in this way, send the to-be-shared game data packet to the corresponding sub-game terminal in time periods from the cloud platform to ensure that all sub-game terminals can receive the shared game data in a timely and accurate manner.
[0075] In another embodiment, based on the data storage address included in the to-be-shared game data attribute information, locate the corresponding to-be-shared game data from the main game terminal, and after compressing and packaging the to-be-shared game data to form a to-be-shared game data packet, upload it to the cloud platform, including:
[0076] Step S1, use the following formula (1) to obtain the compression amount of the to-be-shared game data according to the data storage address included in the to-be-shared game data attribute information and the to-be-shared game data.
[0077]
[0078] In the above formula (1), Y 16 represents the hexadecimal form of the compression amount of the to-be-shared game data; Z 16 represents the hexadecimal form of the data storage address included in the to-be-shared game data attribute information; >> represents the right shift symbol; D 16 represents the hexadecimal form of the to-be-shared game data; max[,] represents obtaining the maximum value of the left and right ends of the comma in the brackets; K represents the compression parameter value of the to-be-shared game data.
[0079] Step S2, use the following formula (2) to compress and package the to-be-shared game data according to the compression amount of the to-be-shared game data.
[0080]
[0081] In the above formula (2), A represents a data group obtained after compressing and packing the game data to be shared; () 16 represents converting the value inside the parentheses into a hexadecimal number; {} represents packing the two upper and lower hexadecimal numbers inside the parentheses to form a data group;
[0082] Step S3, when it is necessary to extract the game data to be shared, use the following formula (3) to extract the game data to be shared,
[0083] d 16 = A{1}+{Z 16 >>(A{2}) 10} (3)
[0084] In the above formula (3), d 16 represents the hexadecimal form of the game data to be shared obtained by extraction; A{1} represents the hexadecimal data in the first row of the data group A; A{2} represents the hexadecimal data in the second row of the data group A; () 10 represents converting the value inside the parentheses into a decimal number.
[0085] The beneficial effects of the above embodiments are as follows: Using the above formula (1), according to the data storage address and the game data to be shared included in the attribute information of the game data to be shared, the compression amount of the game data to be shared is obtained, so that the data is compressed to the shortest according to its own attribute information, which not only ensures the reliability of data compression but also ensures the shortest data compression; then using the above formula (2), the game data to be shared is compressed and packed according to the compression amount of the game data to be shared, so as to perform automatic compression and packing using the formula, reflecting the intelligence of the system; finally using the above formula (3), the game data to be shared is extracted, so as to automatically decompress when parsing is required, ensuring the accuracy and reliability of system decompression.
[0086] Please refer to Figure 2 As shown in the figure, a distributed game terminal data sharing system based on a cloud platform provided by an embodiment of the present application includes:
[0087] A game terminal identification module, configured to send a game invitation request to all game terminals under the distributed game terminal system through the cloud platform, and determine a main game terminal and several sub-game terminals in the current game scenario from all game terminals based on the response messages of all game terminals regarding the game invitation request;
[0088] A communication channel construction module, configured to respectively construct communication channels between the main game terminal and the sub-game terminals and the cloud platform based on the gateway connection statuses of the main game terminal and the sub-game terminals;
[0089] A game data mapping library generation module, configured to synchronize the game data of the main game terminal to the cloud platform and form a corresponding game data mapping library within the cloud platform;
[0090] A to-be-shared game data identification module, configured to query the game data mapping library based on a game data acquisition request from the sub-game terminal and obtain to-be-shared game data attribute information from the game data mapping library;
[0091] A to-be-shared game data location and upload module, configured to locate corresponding to-be-shared game data from the main game terminal based on the to-be-shared game data attribute information and upload the to-be-shared game data to the cloud platform;
[0092] A to-be-shared game data sending module, configured to send the to-be-shared game data from the cloud platform to the corresponding sub-game terminals in time segments based on the respective real-time working states of all sub-game terminals.
[0093] Beneficial effects of the above embodiments: The distributed game terminal data sharing system based on the cloud platform determines a main game terminal and several sub-game terminals in the current game scenario from all game terminals under the distributed game terminal system, and constructs communication channels between the main game terminal and the sub-game terminals and the cloud platform. Using the main game terminal as the game data sharing source of the distributed game terminal system reduces the data sharing pressure on the cloud platform and improves the richness of game data; synchronizes the game data of the main game terminal to the cloud platform and forms a game data mapping library in the cloud platform, queries the game data mapping library to obtain to-be-shared game data attribute information, thereby locating the to-be-shared game data from the main game terminal and sending the to-be-shared game data to the sub-game terminals in time segments through the cloud platform, ensuring efficient and reliable data sharing to the sub-game terminals.
[0094] In another embodiment, the game terminal identification module is configured to send a game invitation request to all game terminals under the distributed game terminal system through the cloud platform, and determine a main game terminal and several sub-game terminals in the current game scenario from all game terminals based on the respective response messages of all game terminals regarding the game invitation request, including:
[0095] Based on the terminal identity list of all game terminals in the distributed game terminal system that are in the wake-up state, send a game invitation request to all game terminals in the wake-up state through the cloud platform; extract the game data feature information of each game terminal from the response messages of each game terminal in the wake-up state regarding the game invitation request, and determine the matching degree between each game data feature information and the game data feature information required for the current game scenario; then use the game terminal corresponding to the highest matching degree as the main game terminal in the current game scenario, and the remaining game terminals as the sub-game terminals in the current game scenario;
[0096] The communication channel construction module is used to respectively construct communication channels between the main game terminal and the sub-game terminals and the cloud platform based on the gateway connection status of the main game terminal and the sub-game terminals, including:
[0097] Based on the respective connection gateway addresses of the main game terminal and the sub-game terminals, respectively construct the shortest communication channels between the main game terminal and the cloud platform, and between the sub-game terminal and the cloud platform.
[0098] The beneficial effects of the above embodiments are as follows. The distributed game terminal system consists of smartphones or portable computers held by different users respectively. Obtain the terminal identity list of all game terminals in the distributed game terminal system that are in the wake-up state. Based on this terminal identity list, send a game invitation request to the corresponding game terminals through the cloud platform. When a game terminal receives the game invitation request, it will return a corresponding response message according to the game data status stored in itself. Parse and process the response message returned by each game terminal to obtain the game data feature information of each game terminal. The game data feature information can be, but is not limited to, the data content feature information of the game data stored in the game terminal itself. Then determine the matching degree between the game data feature information of each game terminal and the game data feature information required for the current game scenario. The higher the matching degree, the more matching game data the corresponding game terminal can provide for the current game scenario. Then use the game terminal corresponding to the highest matching degree as the main game terminal in the current game scenario, and the remaining game terminals as the sub-game terminals in the current game scenario, so as to share game data for the sub-game terminals with the main game terminal as the game data source for the game scenario. Also, based on the respective connection gateway addresses of the main game terminal and the sub-game terminals, respectively construct the shortest communication channels between the main game terminal and the cloud platform, and between the sub-game terminal and the cloud platform, improving the data transmission efficiency and reliability between the main game terminal and the sub-game terminals and the cloud platform.
[0099] In another embodiment, the game data mapping library generation module is used to synchronize the game data of the main game terminal to the cloud platform and form a corresponding game data mapping library within the cloud platform, including:
[0100] Based on the game data storage log of the main game terminal itself, determine the game data storage directory of the main game terminal; wherein, the game data storage directory includes the data keywords and data storage addresses of each game data stored in the main game terminal;
[0101] Synchronize the game data storage directory to the cloud platform and form a game data mapping library in the cloud platform that matches and corresponds to the game data storage directory;
[0102] The game data to be shared identification module is used to query the game data mapping library based on the game data acquisition request from the sub-game terminal and obtain the attribute information of the game data to be shared from the game data mapping library, including:
[0103] Parse and process the game data acquisition request from the sub-game terminal to obtain the keyword information of the game data expected to be obtained by the sub-game terminal, and then query the game data mapping library based on the keyword information of the game data expected to be obtained, and determine the data keyword with the highest semantic similarity to the keyword information of the game data expected to be obtained from the game data mapping library; and use the data storage address corresponding to the data keyword with the highest semantic similarity in the game data mapping library as the attribute information of the game data to be shared.
[0104] The beneficial effects of the above embodiments are as follows: Extract the game storage directory of the main game terminal from the game data storage log of the main game terminal, and use the game storage directory to comprehensively identify the data keywords and data storage addresses of the game data stored in the main game terminal. Then synchronize the game data storage directory to the cloud platform, so that a game data mapping library matching the game data storage directory is formed inside the cloud platform. The game data mapping library is not an entity database, but serves as an index library for the game data stored in the main game terminal, facilitating the cloud platform to accurately query and retrieve corresponding game data from the game data stored in the main game terminal for sharing according to the game data mapping library. Additionally, parse and process the game data acquisition request from the sub-game terminal to obtain the keyword information of the game data expected to be acquired by the sub-game terminal. Then, based on the keyword information of the game data expected to be acquired, query the game data mapping library, determine the data keyword with the highest semantic similarity to the keyword information of the game data expected to be acquired from the game data mapping library, and use the data storage address corresponding to the data keyword with the highest semantic similarity in the game data mapping library as the attribute information of the game data to be shared, facilitating subsequent rapid and accurate acquisition of the corresponding game data from the main game terminal and sharing and transmitting it to the sub-game terminal.
[0105] In another embodiment, the game data to be shared positioning and uploading module is used to locate the corresponding game data to be shared from the main game terminal based on the attribute information of the game data to be shared, and upload the game data to be shared to the cloud platform, including:
[0106] Locate the corresponding game data to be shared from the main game terminal based on the data storage address included in the attribute information of the game data to be shared, compress and package the game data to be shared to form a game data packet to be shared, and then upload it to the cloud platform;
[0107] The game data to be shared sending module is used to send the game data to be shared from the cloud platform to the corresponding sub-game terminal in time periods based on the respective real-time working states of all sub-game terminals, including:
[0108] Obtain the respective real-time data reception progress information of all sub-game terminals, and based on the real-time data reception progress information, determine the time periods when each sub-game terminal is allowed to receive the game data packet to be shared; based on the time periods when all sub-game terminals are allowed to receive the game data packet to be shared, send the game data packet to be shared from the cloud platform to the corresponding sub-game terminal in time periods.
[0109] Based on the data storage address included in the game data attribute information to be shared, the beneficial effect of the above embodiment is to locate the corresponding game data to be shared from the main game terminal, compress and package the game data to be shared to form a game data packet to be shared, and then upload it to the cloud platform, so that the cloud platform can obtain the game data that needs to be shared. Then, obtain the real-time data reception progress information of each sub-game terminal respectively. Based on the real-time data reception progress information, determine the time period when each sub-game terminal is allowed to receive the game data packet to be shared, that is, based on the real-time data reception progress information, determine the time information corresponding to the completion of the current data reception task of the sub-game terminal. Then, based on the time information corresponding to the completion of the current data reception task of each sub-game terminal, determine the time period when each sub-game terminal is allowed to receive the game data packet to be shared, and thus send the game data packet to the corresponding sub-game terminal in time periods from the cloud platform to ensure that all sub-game terminals can receive the shared game data in a timely and accurate manner.
[0110] Generally speaking, the distributed game terminal data sharing method and system based on the cloud platform determine a main game terminal and several sub-game terminals in all game terminals under the distributed game terminal system as the current game scenario, and build a communication channel between the main game terminal and the sub-game terminals and the cloud platform. Using the main game terminal as the game data sharing source of the distributed game terminal system can reduce the data sharing pressure on the cloud platform and improve the richness of game data; synchronize the game data of the main game terminal to the cloud platform and form a game data mapping library on the cloud platform, query the game data mapping library to obtain the game data attribute information to be shared, and thus locate the game data to be shared from the main game terminal and send the game data to be shared to the sub-game terminals in time periods through the cloud platform to ensure efficient and reliable data sharing to the sub-game terminals.
[0111] The above is only a specific implementation manner of the present invention, and any improvement made on the premise of the present invention's concept is regarded as the protection scope of the present invention.
Claims
1. A method for sharing data of distributed game terminals based on a cloud platform, characterized in that, Including: Sending a game invitation request to all game terminals under the distributed game terminal system through the cloud platform, and determining, based on the response messages of all game terminals regarding the game invitation request, a main game terminal and several sub-game terminals in the current game scenario from all game terminals; Based on the gateway connection status of the main game terminal and the sub-game terminals, respectively constructing communication channels between the main game terminal and the sub-game terminals and the cloud platform; Synchronizing the game data of the main game terminal to the cloud platform and forming a corresponding game data mapping library within the cloud platform; based on the game data acquisition requests from the sub-game terminals, querying the game data mapping library to obtain the attribute information of the game data to be shared from the game data mapping library; Based on the attribute information of the game data to be shared, locating the corresponding game data to be shared from the main game terminal and uploading the game data to be shared to the cloud platform; based on the respective real-time working states of all sub-game terminals, sending the game data to be shared to the corresponding sub-game terminals in segments from the cloud platform.
2. The method for sharing data of distributed game terminals based on a cloud platform according to claim 1, characterized in that: Sending a game invitation request to all game terminals under the distributed game terminal system through the cloud platform, and determining, based on the response messages of all game terminals regarding the game invitation request, a main game terminal and several sub-game terminals in the current game scenario from all game terminals; Based on the gateway connection status of the main game terminal and the sub-game terminals, respectively constructing communication channels between the main game terminal and the sub-game terminals and the cloud platform, including: Based on the terminal identity list of all game terminals in the distributed game terminal system that are in the wake-up state, sending a game invitation request to all game terminals in the wake-up state through the cloud platform; extracting the game data feature information of each game terminal from the response messages of all game terminals in the wake-up state regarding the game invitation request, and determining the matching degree between each game data feature information and the game data feature information required in the current game scenario; then taking the game terminal corresponding to the highest matching degree as the main game terminal in the current game scenario, and the remaining game terminals as the sub-game terminals in the current game scenario; Based on the respective connection gateway addresses of the main game terminal and the sub-game terminals, respectively constructing the shortest communication channels between the main game terminal and the cloud platform and between the sub-game terminals and the cloud platform.
3. The method for sharing data of distributed game terminals based on a cloud platform according to claim 1, characterized in that: Synchronizing the game data of the main game terminal to the cloud platform and forming a corresponding game data mapping library within the cloud platform; based on the game data acquisition requests from the sub-game terminals, querying the game data mapping library to obtain the attribute information of the game data to be shared from the game data mapping library, including: Based on the game data storage log of the main game terminal itself, determining the game data storage directory of the main game terminal; wherein, the game data storage directory includes the data keywords and data storage addresses of each game data stored by the main game terminal. Synchronize the game data storage directory to the cloud platform and form a game data mapping library that matches the game data storage directory within the cloud platform; Parse and process the game data acquisition request from the sub-game terminal to obtain the keyword information of the game data expected to be acquired by the sub-game terminal. Then, based on the keyword information of the game data expected to be acquired, query the game data mapping library for data, and determine the data keyword with the highest semantic similarity to the keyword information of the game data expected to be acquired from the game data mapping library; and use the data storage address corresponding to the data keyword with the highest semantic similarity in the game data mapping library as the attribute information of the game data to be shared.
4. The method for sharing data of distributed game terminals based on a cloud platform according to claim 1, characterized in that: Locate the corresponding game data to be shared from the main game terminal based on the attribute information of the game data to be shared, and upload the game data to be shared to the cloud platform; Based on the respective real-time working states of all sub-game terminals, send the game data to be shared to the corresponding sub-game terminals in time periods from the cloud platform, including: Locate the corresponding game data to be shared from the main game terminal based on the data storage address included in the attribute information of the game data to be shared, compress and package the game data to be shared to form a game data packet to be shared, and then upload it to the cloud platform; Obtain the respective real-time data reception progress information of all sub-game terminals, and based on the real-time data reception progress information, determine the time periods when each sub-game terminal is allowed to receive the game data packet to be shared; based on the time periods when all sub-game terminals are allowed to receive the game data packet to be shared, send the game data packet to be shared to the corresponding sub-game terminals in time periods from the cloud platform.
5. The method for sharing data of distributed game terminals based on a cloud platform according to claim 4, characterized in that: Locate the corresponding game data to be shared from the main game terminal based on the data storage address included in the attribute information of the game data to be shared, compress and package the game data to be shared to form a game data packet to be shared, and then upload it to the cloud platform, including: Step S1, use the following formula (1) to obtain the compression amount of the game data to be shared according to the data storage address included in the attribute information of the game data to be shared and the game data to be shared; In the above formula (1), Y 16 represents the hexadecimal form of the compression amount of the game data to be shared; Z 16 represents the hexadecimal form of the data storage address included in the attribute information of the game data to be shared; >> represents the right shift symbol; D 16 represents the hexadecimal form of the game data to be shared; max[,] represents obtaining the maximum value of the left and right ends of the comma within the brackets; K represents the compression parameter value of the game data to be shared; Step S2, use the following formula (2) to compress and package the game data to be shared according to the compression amount of the game data to be shared; In the above formula (2), A represents the data group obtained after compressing and packaging the game data to be shared; () 16 represents converting the value inside the parentheses into a hexadecimal number; {} represents packaging the two hexadecimal numbers above and below inside the parentheses to form a data group; Step S3, when the game data to be shared needs to be extracted, use the following formula (3) to extract the game data to be shared; d 16 = A{1}+{Z 16 >>(A{2}) 10} (3) In the above formula (3), d 16 represents the hexadecimal form of the game data to be shared obtained by extraction; A{1} represents the hexadecimal data in the first row of data group A; A{2} represents the hexadecimal data in the second row of data group A; () 10 means converting the value within the parentheses into a decimal number.
6. A system for sharing data of distributed game terminals based on a cloud platform, characterized in that, including: A game terminal identification module for sending a game invitation request to all game terminals under the distributed game terminal system through the cloud platform, and determining a main game terminal and several sub-game terminals in the current game scenario from all game terminals based on the respective response messages of all game terminals regarding the game invitation request; A communication channel construction module for respectively constructing communication channels between the main game terminal and the sub-game terminals and the cloud platform based on the gateway connection states of the main game terminal and the sub-game terminals; The game data mapping library generation module is used to synchronize the game data of the main game terminal to the cloud platform and form a corresponding game data mapping library within the cloud platform; The game data to be shared identification module is used to query the game data mapping library based on the game data acquisition request from the sub-game terminal and obtain the game data attribute information to be shared from the game data mapping library; The game data to be shared location and upload module is used to locate the corresponding game data to be shared from the main game terminal based on the game data attribute information to be shared and upload the game data to be shared to the cloud platform; The game data to be shared sending module is used to send the game data to be shared from the cloud platform to the corresponding sub-game terminals in time periods based on the respective real-time working states of all sub-game terminals.
7. The distributed game terminal data sharing system based on a cloud platform according to claim 5, wherein: The game terminal identification module is used to send a game invitation request to all game terminals under the distributed game terminal system through the cloud platform. Based on the response messages of all game terminals regarding the game invitation request, a main game terminal and several sub-game terminals in the current game scenario are determined from all game terminals, including: Based on the terminal identity list of all awakened game terminals under the distributed game terminal system, send a game invitation request to all awakened game terminals through the cloud platform; extract the game data feature information of each game terminal from the response messages of all awakened game terminals regarding the game invitation request, and determine the matching degree between each game data feature information and the game data feature information required in the current game scenario; then use the game terminal corresponding to the highest matching degree as the main game terminal in the current game scenario, and the remaining game terminals as the sub-game terminals in the current game scenario; The communication channel construction module is used to construct communication channels between the main game terminal and the cloud platform and between the sub-game terminal and the cloud platform respectively based on the gateway connection states of the main game terminal and the sub-game terminal, including: Based on the respective connection gateway addresses of the main game terminal and the sub-game terminal, construct the shortest communication channels between the main game terminal and the cloud platform and between the sub-game terminal and the cloud platform respectively.
8. The distributed game terminal data sharing system based on a cloud platform according to claim 5, wherein: The game data mapping library generation module is used to synchronize the game data of the main game terminal to the cloud platform and form a corresponding game data mapping library within the cloud platform, including: Determine the game data storage directory of the main game terminal based on the game data storage log of the main game terminal itself; wherein, the game data storage directory includes the data keywords and data storage addresses of each game data stored in the main game terminal; Synchronize the game data storage directory to the cloud platform and form a game data mapping library in the cloud platform that matches and corresponds to the game data storage directory; The to-be-shared game data identification module is used to query the game data mapping library based on the game data acquisition request from the sub-game terminal, and obtain the to-be-shared game data attribute information from the game data mapping library, including: Parse and process the game data acquisition request from the sub-game terminal to obtain the keyword information of the game data expected to be acquired by the sub-game terminal, and then query the game data mapping library based on the keyword information of the game data expected to be acquired, and determine the data keyword with the highest semantic similarity to the keyword information of the game data expected to be acquired in the game data mapping library; and use the data storage address corresponding to the data keyword with the highest semantic similarity in the game data mapping library as the to-be-shared game data attribute information.
9. The distributed game terminal data sharing system based on a cloud platform according to claim 5, wherein: The to-be-shared game data location and upload module is used to locate the corresponding to-be-shared game data from the main game terminal based on the to-be-shared game data attribute information, and upload the to-be-shared game data to the cloud platform, including: Locate the corresponding to-be-shared game data from the main game terminal based on the data storage address included in the to-be-shared game data attribute information, and compress and package the to-be-shared game data to form a to-be-shared game data packet and then upload it to the cloud platform; The to-be-shared game data sending module is used to send the to-be-shared game data from the cloud platform to the corresponding sub-game terminals in time periods based on the respective real-time working states of all sub-game terminals, including: Obtain the respective real-time data reception progress information of all sub-game terminals, and based on the real-time data reception progress information, determine the time periods when each sub-game terminal is allowed to receive the to-be-shared game data packet; based on the time periods when all sub-game terminals are allowed to receive the to-be-shared game data packet, send the to-be-shared game data packet from the cloud platform to the corresponding sub-game terminals in time periods.