Method and system for sharing data in game account
Technical Field
The invention relates to the field of games, in particular to a method and a system for sharing data in a game account.
Background
Compared with the online game, the stand-alone game or the host game is more real, is richer and more vivid in the aspects of drama, music and the like, and a series of game experiences developed under the story background of the game theme often give people a feeling of being personally on the scene.
Therefore, in stand-alone games, there are often too many linkage scenarios, including the narration of the NPC characters and the story background, which may not have a positive effect on the user's game experience, and thus, such scenarios only waste the user's game time.
Disclosure of Invention
The purpose of the invention is as follows: in order to overcome the disadvantages in the background art, embodiments of the present invention provide a method and a system for sharing data in a game account, which can effectively solve the problems related to the background art.
The technical scheme is as follows: a data sharing method in game account is based on a sharing platform, game data are stored in a server of the sharing platform, and the method comprises the following working steps:
s101: a first user logs in a sharing platform through first account information to obtain a game item selected by the first user;
s102: acquiring game data uploaded by a first user;
s103: judging whether the game data is matched with the game items;
s104: if yes, establishing a corresponding relation between the game data and the game items, and storing the game data in a server;
s105: a second user logs in the sharing platform through second account information, obtains a game item selected by the second user, and extracts game data corresponding to the game item and game progress and game difficulty included in the game data;
s106: acquiring the game progress of a second user according to the second account information and the game item;
s107: extracting game data within a first preset progress difference range according to the game progress of the second user;
s108: acquiring the game difficulty of a second user according to the second account information and the game items;
s109: judging whether the game difficulty of the game data extracted in the step S107 and the game difficulty of the second user are within a first preset difficulty difference range;
s110: and if so, extracting the game data from the server and sending the game data to the second user.
As a preferable mode of the present invention, the acquiring the game data uploaded by the first user further includes:
analyzing the game data, extracting the game data including game progress and game difficulty, and establishing a corresponding relation between the game progress and the game difficulty and the game data;
the game difficulty comprises two calculation modes, wherein one mode is a difficulty level selected by a user for the game;
and secondly, extracting various game records from the game data, and calculating the difficulty level corresponding to the game records according to a preset formula.
As a preferable mode of the present invention, the obtaining of the game difficulty of the second user according to the second account information and the game item further includes:
the second user selects a game item and uploads game data;
acquiring the game data and judging whether the game data is matched with the game items;
if yes, extracting game records of the game data, and calculating difficulty levels corresponding to the game records according to a preset formula, wherein the difficulty levels are game difficulties.
As a preferable mode of the present invention, the acquiring the game data uploaded by the first user further includes:
extracting a first game progress and a first game difficulty included in the game data;
extracting second game progress and second game difficulty of all game data from the server;
judging whether the first game progress and the second game progress are within a second preset progress difference range or not;
if so, judging whether the first game difficulty and the second game difficulty are within a second preset difficulty difference range;
if yes, the game data uploaded by the first user are not saved.
As a preferable aspect of the present invention, the extracting the game data from the server and transmitting the game data to the second user further includes:
and extracting second user self-defined options including game characters from the game data uploaded by the second user, and replacing the self-defined options in the game data with the self-defined options.
An in-game account data sharing system, comprising:
a first acquisition module configured to acquire a game item selected by a first user;
the second acquisition module is configured to acquire the game items uploaded by the first user;
a first judgment module configured to judge whether the game data matches the game data;
the storage module is configured to establish a corresponding relation between the game data and the game items and store the game data in the server;
a third acquisition module configured to acquire a game item selected by a second user;
the game system comprises a first extraction module, a second extraction module and a third extraction module, wherein the first extraction module is configured to extract game data corresponding to a game item and game progress and game difficulty included in the game data;
the second extraction module is configured to extract game data within a first preset progress difference range from the game data of the second user;
the fourth acquisition module is configured to acquire the game difficulty of the second user;
the second judgment module is configured to judge whether the game difficulty of the second user and the game difficulty included in the game data extracted by the second extraction module are within a first preset difficulty difference range;
and the sending module is configured to extract the game data from the server and send the game data to the second user.
As a preferred embodiment of the present invention, the present invention further comprises:
the third extraction module is configured to extract game progress, game difficulty and game records included in the game data;
and the calculating module is configured to calculate the difficulty level corresponding to the game record according to the game record and a preset formula.
As a preferred embodiment of the present invention, the present invention further comprises:
and the fifth acquisition module is configured to acquire the game data uploaded by the second user.
As a preferred embodiment of the present invention, the present invention further comprises:
the third judging module is configured to judge whether the first game progress included in the game data uploaded by the first user and the second game progress included in the game data in the server are within a second preset progress difference range or not;
the fourth judgment module is configured to judge whether the first game difficulty included in the game data uploaded by the first user and the second game difficulty included in the game data in the server are within a second preset difficulty difference range or not;
and the deleting module is configured to delete the game data uploaded by the first user.
As a preferred embodiment of the present invention, the present invention further comprises:
the fourth extraction module is configured to extract the custom option of the second user from the game data uploaded by the second user;
and the replacing module is configured to replace the custom option of the second user with the custom option in the game data to be sent to the second user.
The invention realizes the following beneficial effects:
1. the game data sharing method and the game data sharing device have the advantages that the game data sharing is provided for users on the basis of one sharing platform, a first user can upload local game data of the first user to a server of the sharing platform, a second user applies for using the game data in the server, the game data with the game progress within a first preset progress difference range and the game difficulty within the first preset difficulty difference range are extracted according to the game progress and the game difficulty of the second user, and the game data are sent to the second user, so that the second user can share the game data which are most suitable for the second user, and meanwhile the second user is guaranteed not to miss excessive scenarios.
2. Before applying for sharing game data, the second user uploads the game data to the sharing platform, and the game progress and the game difficulty included in the game data are automatically analyzed, so that the most real game progress and the game difficulty of the second user are obtained.
3. And repeatedly checking the game data uploaded by the second user, comparing the game data with the game data in the server, if the game progress of the first user and the game difficulty of the second user is within a second preset progress difference range and within a second preset difficulty difference range, not storing the game data uploaded by the second user, and if the first game progress and the first game difficulty are only one item which is not within the second preset progress difference range or the second preset difficulty difference range, storing the game data.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 is a flowchart of a method for sharing data in a game account according to the present invention;
FIG. 2 is a flow chart of a game difficulty calculation method provided by the present invention;
FIG. 3 is a flow chart of a method for modifying game data according to the present invention;
FIG. 4 is a flow chart of a method for verifying game data according to the present invention;
fig. 5 is a block diagram of a structure of a data sharing system in a game account according to the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments.
Example one
As shown in fig. 1, the present embodiment provides a method for sharing data in a game account, where based on a sharing platform, game data is stored in a server of the sharing platform, and the method includes the following steps:
s101: a first user logs in a sharing platform through first account information to obtain a game item selected by the first user;
s102: acquiring game data uploaded by a first user;
s103: judging whether the game data is matched with the game items;
s104: if yes, establishing a corresponding relation between the game data and the game items, and storing the game data in a server;
s105: a second user logs in the sharing platform through second account information, obtains a game item selected by the second user, and extracts game data corresponding to the game item and game progress and game difficulty included in the game data;
s106: acquiring the game progress of a second user according to the second account information and the game item;
s107: extracting game data within a first preset progress difference range according to the game progress of the second user;
s108: acquiring the game difficulty of a second user according to the second account information and the game items;
s109: judging whether the game difficulty of the game data extracted in the step S107 and the game difficulty of the second user are within a first preset difficulty difference range;
s110: and if so, extracting the game data from the server and sending the game data to the second user.
Obtaining the game data uploaded by the first user further comprises:
analyzing the game data, extracting the game data including game progress and game difficulty, and establishing a corresponding relation between the game progress and the game difficulty and the game data;
the game difficulty comprises two calculation modes, wherein one mode is a difficulty level selected by a user for the game;
and secondly, extracting various game records from the game data, and calculating the difficulty level corresponding to the game records according to a preset formula.
Specifically, in this embodiment, data sharing is performed based on a sharing platform, and in a server of the game data storage and sharing platform, the sharing platform includes two types of users: a first user providing game data and a second user using the game data.
In S101, a first user registers a first account on a sharing platform and logs in the sharing platform through first account information, after the first user logs in, the sharing platform displays all game items included in the sharing platform to the first user, the first user may select one game item in which the game data needs to be uploaded, and after the selection is completed, the first user selects the game data from a local file and uploads the game data to the sharing platform.
In S102, after the uploading is completed, the game data uploaded by the first user is acquired, and the game data is analyzed.
In S103, a game item to which the game data is uploaded is extracted, and it is determined whether the game data and the game item are the same game.
In S104, if the game is the same game, a corresponding relationship is established between the game data and the game item, and the game data is stored in the server.
If the game is not the same game, intelligently analyzing the game to which the game data belongs according to the game data, transferring the game data to a correct game item, and establishing a corresponding relation between the game data and the game item and storing the game data and the game item.
In S105, the second user also registers a second account on the sharing platform and logs in the sharing platform using the second account information, and after logging in, the second user selects a game item that needs to use the game data, acquires the game item selected by the second user, and extracts the game data corresponding to the game item and the game progress and the game difficulty included in the game data.
In S106, the second account information of the second user includes the progress and the difficulty of the second user in playing the game, and the progress of the second user in playing the game is obtained first.
In S107, a first preset progress difference is built in the system, and in this embodiment, the first preset progress difference is set to 20%, that is, the second user can use game data exceeding the game progress of the second user by at most 20%, and extract game data exceeding the game progress of the second user by 0-20%.
In S108, the game difficulty of the second user playing the game is obtained again.
In S109, a first preset difficulty difference is built in the system, and in this embodiment, the first preset difficulty difference is set to two levels, that is, the user can use two levels of difficulty lower than the game difficulty of the user and two levels of difficulty higher than the game difficulty of the user, and it is determined whether the game difficulty included in the game data extracted in S107 is between two levels of difficulty lower than the game difficulty of the user and two levels of difficulty higher than the game difficulty of the user.
In S110, if the game data is in the middle, the first game data is sent to the second user, and the second user may select downloading from the first game data, and if the game data is not in the middle, the closest game data is selected and sent to the second user.
The embodiment also provides a game progress and game difficulty calculation method, wherein the game progress can be directly calculated according to the opening degree of a game map or the level of the game role and the achievement obtained by the game role.
The game difficulty comprises two calculation modes, wherein one mode is that the game is opened to provide difficulty selection for a player, and the system defaults to set the difficulty of the opening selection of the user as the game difficulty.
Secondly, if the game opening does not set the difficulty, the game difficulty is calculated according to the game level of the first user, if the game level of the first user is higher, the game difficulty is lower for a second user, if the game level of the first user is lower, the game difficulty is higher for the second user, all game records, the obtained game achievements and the props included in the game data of the first user are extracted, the system is used for accumulating the score values to obtain a total score value included in the game data of the first user, each game achievement and each game prop, the corresponding relation between all the total score values and the game difficulty is built in the system, and the total score value is in an inverse proportion relation with the game difficulty, and extracting corresponding game difficulty according to the total score value obtained by calculation, wherein the extracted game difficulty is the game difficulty of the first user for uploading the game data.
Example two
As shown in fig. 2, the obtaining of the game difficulty of the second user according to the second account information and the game item according to the embodiment of the present invention further includes:
the second user selects a game item and uploads game data;
acquiring the game data and judging whether the game data is matched with the game items;
if yes, extracting game records of the game data, and calculating difficulty levels corresponding to the game records according to a preset formula, wherein the difficulty levels are game difficulties.
As shown in fig. 3, extracting the game data from the server and transmitting the game data to the second user further includes:
and extracting second user self-defined options including game characters from the game data uploaded by the second user, and replacing the self-defined options in the game data with the self-defined options.
Specifically, the embodiment selects appropriate game data for the second user according to the game difficulty of the second user.
The precondition is that the game difficulty of the second user is identified, and the second user selects local game data to upload to the sharing platform for analysis after logging in the sharing platform.
The method comprises the steps of obtaining game data uploaded by a user and game items selected by the user, judging whether the game data and the game items are the same game or not, and if so, further analyzing the game data.
Extracting game records, the obtained game achievements and the items included in the game data, wherein the system is used for attaching the score values to the game records, the game achievements and the game items, accumulating the score values to obtain total score values included in the second user game data, the system is internally provided with corresponding relations between all the total score values and game difficulty, the total score values and the game difficulty are in inverse proportion, extracting corresponding game difficulty according to the calculated total score values, and the extracted game difficulty is the game difficulty of uploading the game data by the second user.
The method comprises the steps that game data uploaded by a first user comprise custom setting of the first user on game options, the custom options are simply called as custom options, the custom options of each user are different, the custom options comprise role names, sound effect setting, display setting and the like, when the game data uploaded by a second user are obtained, the custom options of the second user are extracted, after the game data are extracted from a server, the custom options of the second user are replaced into the game data extracted from the server, and then the replaced game data are sent to the second user.
EXAMPLE III
As shown in fig. 4, the present embodiment provides a method for checking game data, where acquiring game data uploaded by a first user further includes:
extracting a first game progress and a first game difficulty included in the game data;
extracting second game progress and second game difficulty of all game data from the server;
judging whether the first game progress and the second game progress are within a second preset progress difference range or not;
if so, judging whether the first game difficulty and the second game difficulty are within a second preset difficulty difference range;
if yes, the game data uploaded by the first user are not saved.
Specifically, the first user uploads game data as shared data, and the game data is directly stored in the server after the game data sent by the first user is received for the first time.
When receiving the game data sent by the first user for the second time, the repeatability of the game data is checked, the first game progress and the first game difficulty included in the game data uploaded by the first user are extracted, the second game progress and the second game difficulty included in all the game data are extracted from the server, wherein the game progress and the game difficulty of one game data can only be compared with the game progress and the game difficulty of another game data integrally, but the game progress of one game data cannot be compared with the game progress of another game data, and then the game difficulty of the game data is compared with the game difficulty of the third game data.
Comparing the first game progress and the first game difficulty with the second game progress and the second game difficulty in sequence, firstly, judging whether the first game progress and the second game progress are within a second preset progress difference range, if so, further judging whether the first game difficulty and the second game difficulty are within the second preset difficulty difference range, and if so, indicating that the repeatability of the game data uploaded by the first user and the game data in the server is too high and no additional storage is needed.
If only one of the first game progress and the first game difficulty is not in a second preset progress difference range or a second preset difficulty difference range, the game data can be stored.
Example four
As shown in fig. 5, the present embodiment provides an in-game account data sharing system, including:
a first obtaining module 401 configured to obtain a game item selected by a first user;
a second obtaining module 402 configured to obtain a game item uploaded by a first user;
a first judgment module 403 configured to judge whether the game data matches the game data;
a storage module 404 configured to establish a corresponding relationship between the game data and the game items, and store the game data in the server;
a third obtaining module 405 configured to obtain a game item selected by a second user;
a first extraction module 406, configured to extract game data corresponding to the game item and game progress and game difficulty included in the game data;
a second extraction module 407 configured to extract game data within a first preset progress difference range from the game data of the second user;
a fourth obtaining module 408 configured to obtain a game difficulty level of the second user;
a second judging module 409 configured to judge whether the game difficulty of the second user and the game difficulty included in the game data extracted by the second extracting module are within a first preset difficulty difference range;
a transmitting module 410 configured to extract game data from the server and transmit the game data to a second user;
a third extracting module 411 configured to extract game progress, game difficulty and game record included in the game data;
the calculating module 412 is configured to calculate a difficulty level corresponding to the game record according to the game record and a preset formula;
a fifth obtaining module 413 configured to obtain game data uploaded by the second user;
a third determining module 414, configured to determine whether a first game progress included in the game data uploaded by the first user and a second game progress included in the game data in the server are within a second preset progress difference range;
a fourth determining module 415 configured to determine whether the first game difficulty included in the game data uploaded by the first user and the second game difficulty included in the game data in the server are within a second preset difficulty difference range;
a deletion module 416 configured to delete the game data uploaded by the first user;
a fourth extraction module 417, configured to extract the customization options of the second user from the game data uploaded by the second user;
a replacement module 418 configured to replace the custom option of the second user with the custom option in the game data to be sent to the second user.
The system provided in the fourth embodiment is only illustrated by dividing the functional modules, and in practical applications, the functions may be distributed by different functional modules according to needs, that is, the internal structure of the system is divided into different functional modules to complete all or part of the functions described above.
The above embodiments are merely illustrative of the technical ideas and features of the present invention, and are intended to enable those skilled in the art to understand the contents of the present invention and implement the present invention, and not to limit the scope of the present invention. All equivalent changes or modifications made according to the spirit of the present invention should be covered within the protection scope of the present invention.