A game data storage method and system
By optimizing game data storage through machine learning and quantum encryption technology, the problems of low data reading efficiency and insufficient security have been solved, achieving intelligent adaptive storage and efficient data transmission, thereby improving the smoothness and security of game operation.
Patent Information
- Application Number
- CN202510673345.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-23
- Publication Date
- 2026-11-24
AI Technical Summary
Existing game data storage methods suffer from low efficiency in data reading and updating, difficulty in supporting complex attribute systems, and insufficient data security and compatibility, resulting in game running delays and high development costs.
Machine learning algorithms are used to predict and analyze the frequency of game data and code usage, which are then moved to a high-speed cache area. Quantum encryption technology is used for data transmission, and blockchain technology is used for backup, thus achieving an intelligent adaptive storage structure.
It improves data reading efficiency, reduces latency and development costs, enhances data security and compatibility, and ensures smooth and secure gameplay.
Smart Images

Figure CN123148658A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of data storage technology, and in particular to a method and system for storing game data. Background Technology
[0002] In the gaming industry, when the program code for enhancing game equipment is stored on computer-readable storage media, a relatively simple storage architecture is often used. From a data storage perspective, equipment data is typically stored in a relatively simple format, such as a simple table, recording only the basic attribute values of the equipment. This lacks effective support for the complex attribute systems of powerful artifacts, making it difficult to store special information such as divine blessing levels and multi-attribute attributes completely and efficiently. This results in low data reading and updating efficiency, and when processing large amounts of artifact equipment data, data congestion and delays can easily occur, affecting the smooth operation of the game.
[0003] Regarding algorithm storage, the storage of key program code such as random number generation algorithms and attribute calculation functions lacks optimization. Random number generation algorithms may be stored simply and are highly coupled with other code, failing to flexibly adapt to different game scenarios and artifact characteristic requirements when generating random attributes for equipment, resulting in a lack of diversity and rationality in the generated attributes. The storage of attribute calculation functions also fails to consider the dynamic changes in artifact attributes. When the divine blessing level increases or attribute refinement causes attribute changes, the calculation process becomes complex and error-prone, making it difficult to quickly and accurately derive new attribute values.
[0004] Furthermore, existing storage media perform poorly in terms of data security and compatibility. Data backup mechanisms are simplistic and cannot effectively handle unexpected situations such as system failures or player errors, easily leading to data loss. Moreover, when the game is updated or adapted to new gaming devices or operating systems, the program code stored on the media is often incompatible, requiring extensive redevelopment and debugging, increasing development and time costs. Summary of the Invention
[0005] The technical problem to be solved by this invention is to provide a game data storage method and system, thereby improving data reading efficiency.
[0006] To solve the above-mentioned technical problems, the present invention adopts the following technical solution: A method for storing game data, comprising the following steps: Receive a player's game data processing request, and determine the player's game data and processing code corresponding to the game data processing request; Determine the frequency of game data processing for the game data processing request; If the frequency of game data processing reaches a preset frequency, the game data and the processing code will be moved to the high-speed read / write area of the storage medium. Machine learning algorithms are used to predict and analyze the player's historical game data and historical code corresponding to the game data processing request, obtain relevant game data and relevant code, and move the relevant game data and relevant code to the cache area of the storage medium.
[0007] To solve the above-mentioned technical problems, another technical solution adopted by the present invention is as follows: A game data storage system includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it performs the following steps: Receive a player's game data processing request, and determine the player's game data and processing code corresponding to the game data processing request; Determine the frequency of game data processing for the game data processing request; If the frequency of game data processing reaches a preset frequency, the game data and the processing code will be moved to the high-speed read / write area of the storage medium. Machine learning algorithms are used to predict and analyze the player's historical game data and historical code corresponding to the game data processing request, obtain relevant game data and relevant code, and move the relevant game data and relevant code to the cache area of the storage medium.
[0008] The beneficial effects of this invention are as follows: It determines the player's game data and processing code corresponding to the received game data processing request; it determines the game data processing frequency of the request; if the game data processing frequency reaches a preset frequency, it is considered high-frequency, and the game data and processing code are moved to the high-speed read / write area of the storage medium; it uses machine learning algorithms to predict and analyze the historical related game data and historical related codes of the player corresponding to the game data processing request, obtaining relevant game data and related codes, and moving these to the high-speed cache area of the storage medium. This ensures that frequently used game data and processing codes are moved to the high-speed read / write area in advance, guaranteeing rapid access and use during subsequent data processing, reducing read time. Furthermore, it moves predicted future potentially used game data and related codes to the high-speed cache area, optimizing storage in advance. Based on real-time changes and usage frequency of game data, it automatically adjusts the storage layout, unlike traditional fixed storage methods, achieving an intelligent adaptive storage structure, thereby improving data reading efficiency. Attached Figure Description
[0009] Figure 1 This is a flowchart illustrating the steps of a game data storage method according to an embodiment of the present invention; Figure 2This is a schematic diagram of the structure of a game data storage system according to an embodiment of the present invention. Detailed Implementation
[0010] To explain in detail the technical content, objectives, and effects of the present invention, the following description is provided in conjunction with the embodiments and accompanying drawings.
[0011] Please refer to Figure 1 A method for storing game data, comprising the following steps: Receive a player's game data processing request, and determine the player's game data and processing code corresponding to the game data processing request; Determine the frequency of game data processing for the game data processing request; If the frequency of game data processing reaches a preset frequency, the game data and the processing code will be moved to the high-speed read / write area of the storage medium. Machine learning algorithms are used to predict and analyze the player's historical game data and historical code corresponding to the game data processing request, obtain relevant game data and relevant code, and move the relevant game data and relevant code to the cache area of the storage medium.
[0012] As can be seen from the above description, the beneficial effects of the present invention are as follows: It determines the game data and processing code of the player corresponding to the received game data processing request; it determines the game data processing frequency of the game data processing request; if the game data processing frequency reaches a preset frequency, it is considered high-frequency; and then the game data and processing code are moved to the high-speed read / write area of the storage medium. Machine learning algorithms are used to predict and analyze the historical related game data and historical related codes of the player corresponding to the game data processing request, obtaining relevant game data and related codes, and moving these relevant game data and related codes to the high-speed cache area of the storage medium. This ensures that frequently used game data and processing codes are moved to the high-speed read / write area in advance, guaranteeing rapid access and use during subsequent data processing, reducing read time. Furthermore, it moves predicted future potentially used relevant game data and related codes to the high-speed cache area, performing storage optimization in advance. Based on real-time changes and usage frequency of game data, it automatically adjusts the storage layout, unlike traditional fixed storage methods, achieving an intelligent adaptive storage structure, thereby improving data reading efficiency.
[0013] Furthermore, it also includes: Receive the game data and the request to call the processing code; The game data and the processing code are encrypted using quantum encryption technology according to the call request to obtain ciphertext; The ciphertext is transferred from the high-speed read / write area to memory.
[0014] As described above, when the backend program receives a player's game data processing request and reads game data and processing code from the high-speed read / write area of the storage medium, this data is encrypted during the transmission from the storage medium to the memory using quantum encryption technology. This leverages the non-eavesdropping and non-cloning characteristics of quantum key distribution to provide unprecedented security for game data, thereby improving game data security.
[0015] Furthermore, determining the game data processing frequency of the game data processing request includes: Get the number of times the player's game data processing requests were received within a preset historical time period; The frequency of game data processing for the game data processing request is determined based on the number of times mentioned.
[0016] As described above, by obtaining the number of times the player's game data processing requests were received within a preset historical time period, the recent game data processing frequency can be determined, so as to reliably judge whether the game data processing is frequent.
[0017] Furthermore, the game data processing request includes a virtual item identification request; The process of determining the player's game data and processing code corresponding to the game data processing request includes: Determine the virtual item data to be identified, the virtual item identification code, and the random number generation algorithm code of the player corresponding to the virtual item identification request; The step of using machine learning algorithms to predict and analyze the player's historical game data and historical code corresponding to the game data processing request, and obtaining the relevant game data and relevant code, includes: Machine learning algorithms are used to predict and analyze the player's historical random number range, historically generated attribute values, and historical environmental data corresponding to the virtual item identification request, so as to obtain virtual item attribute range configuration data.
[0018] As described above, when game data processing requests include virtual item identification requests, the virtual item data to be identified, the virtual item identification code, and the random number generation algorithm code are determined. This allows frequently used virtual item data, identification codes, and random number generation algorithm codes to be moved to a high-speed read / write area for faster subsequent reading. Machine learning algorithms are used to predict and analyze the player's historical random number range, historically generated attribute values, and historical environmental data corresponding to the virtual item identification request. This yields the necessary virtual item attribute range configuration data, which helps optimize the storage layout, reduce data read latency, and improve the efficiency of artifact identification.
[0019] Furthermore, the game data processing request also includes a virtual character attribute level upgrade request; The process of determining the player's game data and processing code corresponding to the game data processing request includes: Determine the virtual character attribute resource data, attribute level upgrade rule data, virtual character attribute level upgrade function, and attribute calculation function code corresponding to the player's virtual character attribute level upgrade request; The step of using machine learning algorithms to predict and analyze the player's historical game data and historical code corresponding to the game data processing request, and obtaining the relevant game data and relevant code, includes: Machine learning algorithms are used to calculate the attribute bonus calculation data and attribute bonus calculation code by analyzing the historical level range and historical attribute bonus calculation code of the player's virtual character attributes corresponding to the virtual character attribute level upgrade request.
[0020] As described above, game data processing requests may also include virtual character attribute level upgrade requests. This involves determining the player's virtual character attribute resource data, attribute level upgrade rule data, virtual character attribute level upgrade function, and attribute calculation function code corresponding to the virtual character attribute level upgrade request. This allows for the rapid reading of frequently used virtual character attribute resource data, attribute level upgrade rule data, virtual character attribute level upgrade function, and attribute calculation function code, as well as predicting potentially needed attribute bonus calculation data and attribute bonus calculation code, thereby improving the speed of virtual character attribute level upgrades.
[0021] Please refer to Figure 2 A game data storage system includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it performs the following steps: Receive a player's game data processing request, and determine the player's game data and processing code corresponding to the game data processing request; Determine the frequency of game data processing for the game data processing request; If the frequency of game data processing reaches a preset frequency, the game data and the processing code will be moved to the high-speed read / write area of the storage medium. Machine learning algorithms are used to predict and analyze the player's historical game data and historical code corresponding to the game data processing request, obtain relevant game data and relevant code, and move the relevant game data and relevant code to the cache area of the storage medium.
[0022] As can be seen from the above description, the beneficial effects of the present invention are as follows: It determines the game data and processing code of the player corresponding to the received game data processing request; it determines the game data processing frequency of the game data processing request; if the game data processing frequency reaches a preset frequency, it is considered high-frequency; and then the game data and processing code are moved to the high-speed read / write area of the storage medium. Machine learning algorithms are used to predict and analyze the historical related game data and historical related codes of the player corresponding to the game data processing request, obtaining relevant game data and related codes, and moving these relevant game data and related codes to the high-speed cache area of the storage medium. This ensures that frequently used game data and processing codes are moved to the high-speed read / write area in advance, guaranteeing rapid access and use during subsequent data processing, reducing read time. Furthermore, it moves predicted future potentially used relevant game data and related codes to the high-speed cache area, performing storage optimization in advance. Based on real-time changes and usage frequency of game data, it automatically adjusts the storage layout, unlike traditional fixed storage methods, achieving an intelligent adaptive storage structure, thereby improving data reading efficiency.
[0023] Furthermore, it also includes: Receive the game data and the request to call the processing code; The game data and the processing code are encrypted using quantum encryption technology according to the call request to obtain ciphertext; The ciphertext is transferred from the high-speed read / write area to memory.
[0024] As described above, when the backend program receives a player's game data processing request and reads game data and processing code from the high-speed read / write area of the storage medium, this data is encrypted during the transmission from the storage medium to the memory using quantum encryption technology. This leverages the non-eavesdropping and non-cloning characteristics of quantum key distribution to provide unprecedented security for game data, thereby improving game data security.
[0025] Furthermore, determining the game data processing frequency of the game data processing request includes: Get the number of times the player's game data processing requests were received within a preset historical time period; The frequency of game data processing for the game data processing request is determined based on the number of times mentioned.
[0026] As described above, by obtaining the number of times the player's game data processing requests were received within a preset historical time period, the recent game data processing frequency can be determined, so as to reliably judge whether the game data processing is frequent.
[0027] Furthermore, the game data processing request includes a virtual item identification request; The process of determining the player's game data and processing code corresponding to the game data processing request includes: Determine the virtual item data to be identified, the virtual item identification code, and the random number generation algorithm code of the player corresponding to the virtual item identification request; The step of using machine learning algorithms to predict and analyze the player's historical game data and historical code corresponding to the game data processing request, and obtaining the relevant game data and relevant code, includes: Machine learning algorithms are used to predict and analyze the player's historical random number range, historically generated attribute values, and historical environmental data corresponding to the virtual item identification request, so as to obtain virtual item attribute range configuration data.
[0028] As described above, when game data processing requests include virtual item identification requests, the virtual item data to be identified, the virtual item identification code, and the random number generation algorithm code are determined. This allows frequently used virtual item data, identification codes, and random number generation algorithm codes to be moved to a high-speed read / write area for faster subsequent reading. Machine learning algorithms are used to predict and analyze the player's historical random number range, historically generated attribute values, and historical environmental data corresponding to the virtual item identification request. This yields the necessary virtual item attribute range configuration data, which helps optimize the storage layout, reduce data read latency, and improve the efficiency of artifact identification.
[0029] Furthermore, the game data processing request also includes a virtual character attribute level upgrade request; The process of determining the player's game data and processing code corresponding to the game data processing request includes: Determine the virtual character attribute resource data, attribute level upgrade rule data, virtual character attribute level upgrade function, and attribute calculation function code corresponding to the player's virtual character attribute level upgrade request; The step of using machine learning algorithms to predict and analyze the player's historical game data and historical code corresponding to the game data processing request, and obtaining the relevant game data and relevant code, includes: Machine learning algorithms are used to calculate the attribute bonus calculation data and attribute bonus calculation code by analyzing the historical level range and historical attribute bonus calculation code of the player's virtual character attributes corresponding to the virtual character attribute level upgrade request.
[0030] As described above, game data processing requests may also include virtual character attribute level upgrade requests. This involves determining the player's virtual character attribute resource data, attribute level upgrade rule data, virtual character attribute level upgrade function, and attribute calculation function code corresponding to the virtual character attribute level upgrade request. This allows for the rapid reading of frequently used virtual character attribute resource data, attribute level upgrade rule data, virtual character attribute level upgrade function, and attribute calculation function code, as well as predicting potentially needed attribute bonus calculation data and attribute bonus calculation code, thereby improving the speed of virtual character attribute level upgrades.
[0031] The game data storage method and system of the present invention are applicable to game data storage scenarios, and are described below through specific embodiments: Please refer to Figure 1 Embodiment 1 of the present invention is as follows: A method for storing game data, comprising the following steps: S1. Receive the player's game data processing request and determine the player's game data and processing code corresponding to the game data processing request.
[0032] When a player triggers a game data processing operation on the game interface, the front end sends the game data processing request to the back end server via a network communication protocol (such as WebSocket or HTTP / HTTPS), and the back end server receives the player's game data processing request.
[0033] In one optional implementation, the game data processing requests include virtual item (such as artifact) identification requests, virtual character attribute (such as divine blessing) level upgrade requests, and affix refinement requests.
[0034] In one optional implementation, determining the player's game data and processing code corresponding to the game data processing request includes: Determine the virtual item data to be identified, the virtual item identification code, and the random number generation algorithm code of the player corresponding to the virtual item identification request.
[0035] In one optional implementation, determining the player's game data and processing code corresponding to the game data processing request includes: Determine the virtual character attribute resource data, attribute level upgrade rule data, virtual character attribute level upgrade function, and attribute calculation function code of the player corresponding to the virtual character attribute level upgrade request.
[0036] In one optional implementation, determining the player's game data and processing code corresponding to the game data processing request includes: Determine the player's material data, attribute database data, and attribute refinement code corresponding to the attribute refinement request.
[0037] S2. Determine the game data processing frequency of the game data processing request, specifically including S21-S22: S21. Obtain the number of times the player's game data processing requests were received within a preset historical time period.
[0038] For example, if a virtual item appraisal request is received, the number of virtual item appraisal requests received from that player within a preset historical time period is obtained; if a virtual character attribute level upgrade request is received, the number of virtual character attribute level upgrade requests received from that player within a preset historical time period is obtained; if an attribute refinement request is received, the number of attribute refinement requests received from that player within a preset historical time period is obtained.
[0039] S22. Determine the game data processing frequency of the game data processing request based on the number of times.
[0040] S3. If the game data processing frequency reaches a preset frequency, the game data and the processing code are moved to the high-speed read / write area of the storage medium.
[0041] S4. Use machine learning algorithms to predict and analyze the player's historical game data and historical code corresponding to the game data processing request, obtain relevant game data and relevant code, and move the relevant game data and relevant code to the cache area of the storage medium.
[0042] In one optional implementation, the step of using machine learning algorithms to predictively analyze the player's historical game data and historical code corresponding to the game data processing request, and obtaining the relevant game data and relevant code, includes: Machine learning algorithms are used to predict and analyze the player's historical random number range, historically generated attribute values, and historical environmental data (such as the current map and completed tasks) corresponding to the virtual item identification request, so as to obtain virtual item attribute range configuration data.
[0043] The aforementioned adaptive storage method significantly improves data retrieval speed during virtual item identification, reducing player waiting time and enhancing game smoothness and immediacy. Optimizing storage by analyzing historical environmental and identification data increases the diversity and rationality of attribute generation, providing players with a richer gaming experience and avoiding retrieval bottlenecks caused by fixed storage layouts.
[0044] In one optional implementation, the step of using machine learning algorithms to predictively analyze the player's historical game data and historical code corresponding to the game data processing request, and obtaining the relevant game data and relevant code, includes: Machine learning algorithms are used to calculate the attribute bonus calculation data and attribute bonus calculation code by analyzing the historical level range and historical attribute bonus calculation code of the player's virtual character attributes corresponding to the virtual character attribute level upgrade request.
[0045] For example, if historical data reveals that players frequently trigger certain attribute bonus calculations when upgrading virtual character attributes within a specific level range, then these related attribute bonus calculation data and code will be moved to a more easily readable location.
[0046] This improves the data processing efficiency of the virtual character attribute level-up process, allowing players to receive quick feedback during upgrades and enhancing the game's pace and enjoyment. Optimized storage reduces data reading and calculation time, preventing game lag caused by slow data processing, while ensuring the accuracy of attribute calculations and increasing player trust in the game system.
[0047] In one optional implementation, the step of using machine learning algorithms to predictively analyze the player's historical game data and historical code corresponding to the game data processing request, and obtaining the relevant game data and relevant code, includes: Machine learning algorithms are used to predict and analyze the player's historical refining behavior and historical refining preference data corresponding to the refining request of the term, so as to obtain the relevant term attribute data and relevant refining algorithm code that may be needed.
[0048] This makes the affix refinement process more efficient, allowing players to complete the refinement operation faster and saving game time. By analyzing player preferences and optimizing storage, the probability of players obtaining the desired affixes is increased, enhancing the player's game experience and satisfaction, and improving the game's attractiveness and playability.
[0049] In one alternative implementation, it further includes: S5. Receive the game data and the call request for the processing code.
[0050] S6. Based on the call request, use quantum encryption technology to encrypt the game data and the processing code to obtain ciphertext.
[0051] Specifically, the game data and the processing code are encrypted using a quantum key generated by a quantum key distribution protocol according to the call request, resulting in ciphertext.
[0052] For example, when executing the virtual item identification process requires calling the data of the virtual item to be identified, the virtual item identification code, and the random number generation algorithm code, quantum encryption technology is used to encrypt the data of the virtual item to be identified, the virtual item identification code, and the random number generation algorithm code. This ensures the security of the code and identification data during transmission and storage, prevents the code from being stolen or tampered with, avoids malicious interference with the random number generation algorithm, ensures that the identified virtual item attributes are true and reliable, and improves the fairness and security of the game.
[0053] When performing virtual character attribute level upgrades, which requires calling virtual character attribute resource data, attribute level upgrade rule data, virtual character attribute level upgrade functions, and attribute calculation function code, quantum encryption technology is used to encrypt these data. This protects the player's virtual character attribute resource data, preventing unauthorized access and tampering. During the virtual character attribute level upgrade process, the integrity and security of relevant function code and historical data are ensured, avoiding abnormal virtual character attribute level upgrades or attribute calculation errors due to data tampering, thus safeguarding the player's gaming rights.
[0054] When performing affix refinement, which requires calling material data, affix attribute library data, and affix refinement code, quantum encryption technology is used to encrypt these materials, prevent players' material data from being stolen, avoid malicious modification of the affix refinement algorithm and attribute library data, ensure the fairness and credibility of the refinement results, and improve players' experience with game refinement.
[0055] S7. Transfer the ciphertext from the high-speed read / write area to the memory.
[0056] When the program calls this code and data, it uses the corresponding quantum key to decrypt the ciphertext in memory.
[0057] In one alternative implementation, it further includes: S8. Receive the relevant game data and related code call requests.
[0058] S9. Based on the call request, use quantum encryption technology to encrypt the relevant game data and related code to obtain ciphertext.
[0059] S10. Transfer the ciphertext from the cache area to memory.
[0060] Therefore, related game data and code are also encrypted during transmission to ensure game data security.
[0061] In one alternative implementation, it further includes: Receive the processing result data corresponding to the game data processing request, and encrypt the processing result data using quantum encryption technology and store it in the artifact data structure area of the storage medium.
[0062] Specifically, a transaction processing mechanism is used to ensure the atomicity of the data writing of the processing results, that is, either all data is written successfully or all data is rolled back.
[0063] In one alternative implementation, it further includes: The processing result data and the corresponding game data processing operations are updated in the blockchain for backup, and the processing result data is returned to the front end.
[0064] By combining this with blockchain technology for data backup, each data change is recorded in the form of blocks on a distributed ledger. This not only ensures the integrity and immutability of the data backup, but also enables full-process traceability of the data. Players can view the historical change records of the artifact data at any time, enhancing data security and transparency.
[0065] In one alternative implementation, it further includes: During game operation, the system information acquisition interface provided by the operating system is used to monitor changes in the device environment and operating system characteristics in real time. If a change is detected (such as a change in device resolution, an update in the operating system version, etc.), then based on the detected device environment change information, the adaptation rules and code template data are read from the storage medium, and the code in the storage medium is dynamically modified and adapted using code generation technology and bytecode manipulation technology; for example, the graphics rendering code is adjusted to adapt to the new device resolution, and the data interaction interface code is modified to adapt to the new operating system version. If a game code update message has been received, the system reads the code from the storage medium, calls the update function, downloads the new code from the specified update server, performs difference analysis and merging operations on the old and new code, and reloads the updated code into the program runtime space to achieve hot code updates. The entire process does not interrupt the normal operation of the game.
[0066] The code mentioned above includes the processing code and any related code that may be required.
[0067] This system monitors the device environment and operating system characteristics in real time, automatically and dynamically adapting the stored program code. When the game runs on a new device or operating system, the adaptation engine can quickly adjust the code's execution method and data interaction interface, eliminating the need for redevelopment and large-scale debugging. This achieves true plug-and-play functionality, greatly improving the game's compatibility and portability. When game developers release new algorithms or fix program vulnerabilities, hot updates of the program code can be achieved without interrupting game operation. Simultaneously, by monitoring performance data during game runtime, the module automatically optimizes the stored algorithm code, such as optimizing the random number generation algorithm's computational flow and improving the execution efficiency of attribute calculation functions, ensuring the game always maintains optimal performance.
[0068] Additionally, upon program shutdown, ensure that all unsaved virtual item data, player information, enhancement logs, etc., are completely written to the storage medium and encrypted using quantum encryption technology. Simultaneously, trigger a blockchain backup operation to guarantee data integrity and immutability. Close the driver connection to the storage medium, release various data structures and program code space occupied in memory, shut down the connection to blockchain network nodes, clean up temporary files and cached data, ensuring a normal system exit without leaving any unprocessed resource usage.
[0069] Please refer to Figure 2 Embodiment two of the present invention is as follows: A game data storage system includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements the various steps of the game data storage method in Embodiment 1.
[0070] In summary, this invention provides a game data storage method and system. It determines the player's game data and processing code corresponding to the received game data processing request, determines the game data processing frequency of the request, and if the frequency reaches a preset level, moves the game data and processing code to a high-speed read / write area of the storage medium. It uses machine learning algorithms to predictively analyze the historical game data and related codes of the player corresponding to the request, obtaining relevant game data and related codes, and moves these to a high-speed cache area of the storage medium. This ensures that frequently used game data and processing codes are moved to the high-speed read / write area in advance, guaranteeing rapid access during subsequent data processing. This reduces read time and moves anticipated future game data and code to a high-speed cache area for proactive storage optimization. It automatically adjusts the storage layout based on real-time changes and usage frequency of game data, unlike traditional fixed storage methods, achieving an intelligent adaptive storage structure that improves data read efficiency. Furthermore, when the backend program receives a player's game data processing request and reads game data and processing code from the high-speed read / write area of the storage medium, this data is encrypted during transmission from the storage medium to memory using quantum encryption technology. Leveraging the uneavesdroppable and unclonable characteristics of quantum key distribution, it provides unprecedented security for game data, thereby enhancing game data security.
[0071] The above description is merely an embodiment of the present invention and does not limit the patent scope of the present invention. Any equivalent modifications made based on the content of the present invention specification and drawings, or direct or indirect applications in related technical fields, are similarly included within the patent protection scope of the present invention.
Claims
1. A method for storing game data, characterized in that, Including the following steps: Receive a player's game data processing request, and determine the player's game data and processing code corresponding to the game data processing request; Determine the frequency of game data processing for the game data processing request; If the frequency of game data processing reaches a preset frequency, the game data and the processing code will be moved to the high-speed read / write area of the storage medium. Machine learning algorithms are used to predict and analyze the player's historical game data and historical code corresponding to the game data processing request, obtain relevant game data and relevant code, and move the relevant game data and relevant code to the cache area of the storage medium.
2. The game data storage method according to claim 1, characterized in that, Also includes: Receive the game data and the request to call the processing code; The game data and the processing code are encrypted using quantum encryption technology according to the call request to obtain ciphertext; The ciphertext is transferred from the high-speed read / write area to memory.
3. The game data storage method according to claim 1, characterized in that, The determination of the game data processing frequency for the game data processing request includes: Get the number of times the player's game data processing requests were received within a preset historical time period; The frequency of game data processing for the game data processing request is determined based on the number of times mentioned.
4. A game data storage method according to claim 1, characterized in that, The game data processing requests include virtual item identification requests; The process of determining the player's game data and processing code corresponding to the game data processing request includes: Determine the virtual item data to be identified, the virtual item identification code, and the random number generation algorithm code of the player corresponding to the virtual item identification request; The step of using machine learning algorithms to predict and analyze the player's historical game data and historical code corresponding to the game data processing request, and obtaining the relevant game data and relevant code, includes: Machine learning algorithms are used to predict and analyze the player's historical random number range, historically generated attribute values, and historical environmental data corresponding to the virtual item identification request, so as to obtain virtual item attribute range configuration data.
5. A game data storage method according to claim 1, characterized in that, The game data processing request also includes a virtual character attribute level upgrade request; The process of determining the player's game data and processing code corresponding to the game data processing request includes: Determine the virtual character attribute resource data, attribute level upgrade rule data, virtual character attribute level upgrade function, and attribute calculation function code corresponding to the player's virtual character attribute level upgrade request; The step of using machine learning algorithms to predict and analyze the player's historical game data and historical code corresponding to the game data processing request, and obtaining the relevant game data and relevant code, includes: Machine learning algorithms are used to calculate the attribute bonus calculation data and attribute bonus calculation code by analyzing the historical level range and historical attribute bonus calculation code of the player's virtual character attributes corresponding to the virtual character attribute level upgrade request.
6. A game data storage system, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it performs the following steps: Receive a player's game data processing request, and determine the player's game data and processing code corresponding to the game data processing request; Determine the frequency of game data processing for the game data processing request; If the frequency of game data processing reaches a preset frequency, the game data and the processing code will be moved to the high-speed read / write area of the storage medium. Machine learning algorithms are used to predict and analyze the player's historical game data and historical code corresponding to the game data processing request, obtain relevant game data and relevant code, and move the relevant game data and relevant code to the cache area of the storage medium.
7. A game data storage system according to claim 6, characterized in that, Also includes: Receive the game data and the request to call the processing code; The game data and the processing code are encrypted using quantum encryption technology according to the call request to obtain ciphertext; The ciphertext is transferred from the high-speed read / write area to memory.
8. A game data storage system according to claim 6, characterized in that, The determination of the game data processing frequency for the game data processing request includes: Get the number of times the player's game data processing requests were received within a preset historical time period; The frequency of game data processing for the game data processing request is determined based on the number of times mentioned.
9. A game data storage system according to claim 6, characterized in that, The game data processing requests include virtual item identification requests; The process of determining the player's game data and processing code corresponding to the game data processing request includes: Determine the virtual item data to be identified, the virtual item identification code, and the random number generation algorithm code of the player corresponding to the virtual item identification request; The step of using machine learning algorithms to predict and analyze the player's historical game data and historical code corresponding to the game data processing request, and obtaining the relevant game data and relevant code, includes: Machine learning algorithms are used to predict and analyze the player's historical random number range, historically generated attribute values, and historical environmental data corresponding to the virtual item identification request, so as to obtain virtual item attribute range configuration data.
10. A game data storage system according to claim 6, characterized in that, The game data processing request also includes a virtual character attribute level upgrade request; The process of determining the player's game data and processing code corresponding to the game data processing request includes: Determine the virtual character attribute resource data, attribute level upgrade rule data, virtual character attribute level upgrade function, and attribute calculation function code corresponding to the player's virtual character attribute level upgrade request; The step of using machine learning algorithms to predict and analyze the player's historical game data and historical code corresponding to the game data processing request, and obtaining the relevant game data and relevant code, includes: Machine learning algorithms are used to calculate the attribute bonus calculation data and attribute bonus calculation code by analyzing the historical level range and historical attribute bonus calculation code of the player's virtual character attributes corresponding to the virtual character attribute level upgrade request.
