Method and terminal for loading game data shared resources based on block chain

Through a blockchain-based method, the game data resources are loaded on the client side, and the resource clusters are synchronized to obtain and compare the resource clusters, efficient update of resources is achieved, solving the problems of low resource loading efficiency and large server burden in the existing technology. Improves the efficiency and user experience of game resource loading.

CN119158272AActive Publication Date: 2024-12-20FUJIAN TQ ONLINE INTERACTIVE INC
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202411006359.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-25
Publication Date
2024-12-20
Estimated Expiration
2044-07-25

AI Technical Summary

Technical Problem

The existing game data resource loading method requires frequent update of resource files, which leads to a large burden on server resource scheduling and time-consuming loading, and the update file is a fragmented file, which has the problem of low loading efficiency.

Method used

Using a blockchain-based method, the first shared resource of game data is obtained by synchronizing the block when the client runs for the first time, and the resource cluster is generated and stored. Then, the second shared resource is obtained through the storage block and compared with the resource cluster. If there is a difference, the resource cluster will be updated, and the updated resources will be temporarily stored for the client to obtain, reducing the time cost and memory cost of resource loading.

Benefits of technology

It reduces the scheduling burden of game data resources, reduces the time and memory cost of game resources loading, improves resource utilization, and players can quickly enter the game, avoid long-term downloads and waits, and solves the problem of fragmented files.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119158272A_ABST
    Figure CN119158272A_ABST
Patent Text Reader

Abstract

The invention discloses a method and terminal for loading game data shared resources based on a block chain, and the method comprises the steps: directly downloading first shared resources through a synchronization block when a client operates for the first time, merging the first shared resources to generate a resource cluster, and storing the resource cluster in a storage space of the client. Therefore, the resource cluster is a set of the first shared resources; and then, obtaining a second shared resource of the game data through the storage block, comparing the second shared resource with the first shared resource of the resource cluster in the storage space, and if a difference exists, updating the resource cluster according to the second shared resource. In this way, the updated shared resources are temporarily stored in the storage block for the client to obtain, and the client updates the corresponding shared resources in the resource cluster after comparison, so that the scheduling burden of the game data resources is reduced, and the time cost and the memory cost of game resource loading can also be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of block data sharing, and in particular to a method and a terminal for loading game data sharing resources based on blockchain. Background Art

[0002] With the popularization of blockchain technology, users' requirements for data confidentiality and blockchain's requirements for data connectivity transmission efficiency are becoming increasingly higher.

[0003] At present, resource loading of game data is usually divided into two situations: one is to pre-download resource files to the local on the PC, or load resources while playing games; the other is to save the resources required by the web page through cache on the Web interface and store them in the user storage area. If the resources are not updated when the user needs to use them, the resources are updated according to the user storage area.

[0004] Therefore, the current loading of game data resources requires resource preservation, and when updating resources, the update files need to be downloaded to the user storage space, which will cause a resource scheduling burden on the server; and the update files are fragmented files, which are time-consuming to load. Summary of the invention

[0005] The technical problem to be solved by the present invention is to provide a method and terminal for loading game data shared resources based on blockchain, which can reduce the scheduling burden of game data resources and reduce the time cost and memory cost of loading game resources.

[0006] In order to solve the above technical problems, the technical solution adopted by the present invention is:

[0007] A method for loading game data shared resources based on blockchain, comprising the steps of:

[0008] When the client runs for the first time, the first shared resource of the game data is obtained through the synchronization block, the first shared resource obtained is merged to generate a resource cluster, and the resource cluster is stored in the storage space of the client;

[0009] A second shared resource of game data is obtained through a storage block, and the second shared resource is compared with the first shared resource of the resource cluster in the storage space. If there is a difference, the resource cluster is updated according to the second shared resource.

[0010] In order to solve the above technical problems, another technical solution adopted by the present invention is:

[0011] A terminal for loading game data sharing resources based on blockchain, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements each step of the above-mentioned method for loading game data sharing resources based on blockchain when executing the computer program.

[0012] The beneficial effect of the present invention is that when the client runs for the first time, the first shared resource is directly downloaded through the synchronization block, and the first shared resource is merged to generate a resource cluster, and the resource cluster is stored in the storage space of the client, so the resource cluster is a collection of the first shared resources; afterwards, the second shared resource of the game data is obtained through the storage block, and the second shared resource is compared with the first shared resource of the resource cluster in the storage space, and if there is a difference, the resource cluster is updated according to the second shared resource. In this way, the updated shared resource is temporarily stored in the storage block for the client to obtain, and the client updates the corresponding shared resource in the resource cluster only after comparison, reducing the scheduling burden of the game data resources, and can also reduce the time cost and memory cost of loading game resources. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] Figure 1 This is a flowchart of a method for loading game data shared resources based on blockchain according to an embodiment of the present invention;

[0014] Figure 2 This is a schematic diagram of a terminal for loading game data sharing resources based on blockchain according to an embodiment of the present invention;

[0015] Figure 3 This is a block relationship diagram of a method for loading game data shared resources based on blockchain according to an embodiment of the present invention.

[0016] Description of labels:

[0017] 1. A terminal for loading game data sharing resources based on blockchain; 2. Memory; 3. Processor. DETAILED DESCRIPTION

[0018] In order to explain the technical content, achieved objectives and effects of the present invention in detail, the following is an explanation in conjunction with the implementation modes and the accompanying drawings.

[0019] Please refer to Figure 1 , an embodiment of the present invention provides a method for loading game data sharing resources based on blockchain, comprising the steps of:

[0020] When the client runs for the first time, the first shared resource of the game data is obtained through the synchronization block, the first shared resource obtained is merged to generate a resource cluster, and the resource cluster is stored in the storage space of the client;

[0021] A second shared resource of game data is obtained through a storage block, and the second shared resource is compared with the first shared resource of the resource cluster in the storage space. If there is a difference, the resource cluster is updated according to the second shared resource.

[0022] From the above description, it can be seen that the beneficial effect of the present invention is that: when the client runs for the first time, the first shared resource is directly downloaded through the synchronization block, and the first shared resource is merged to generate a resource cluster, and it is stored in the client's storage space, so the resource cluster is a collection of the first shared resources; afterwards, the second shared resource of the game data is obtained through the storage block, and the second shared resource is compared with the first shared resource of the resource cluster in the storage space, and if there is a difference, the resource cluster is updated according to the second shared resource. In this way, the updated shared resource is temporarily stored in the storage block for the client to obtain, and the client updates the corresponding shared resource in the resource cluster only after comparison, reducing the scheduling burden of game data resources, and can also reduce the time cost and memory cost of loading game resources.

[0023] Further, obtaining the first shared resource of the game data through the synchronization block includes:

[0024] Generate first shared resources of various game data types in the game resource block according to the latest game data, wherein the first shared resources include game data type, compressed game data, data size and version;

[0025] A first shared resource of game data is obtained from the game resource block through a synchronization block.

[0026] From the above description, it can be seen that when the client runs for the first time, the first shared resource in the game resource block can be obtained through the synchronization block. Since the first shared resources are divided according to the game data type, it is convenient for the subsequent client to merge and process according to the obtained first shared resources.

[0027] Furthermore, generating first shared resources of various types in the game resource block according to the latest game data also includes:

[0028] A resource linked list is generated according to the first shared resource and its type in the game resource block.

[0029] As can be seen from the above description, by generating a resource linked list for the first shared resource and its type, it is convenient to compare the resources in the client with the updated resources in the storage block.

[0030] Furthermore, it also includes:

[0031] When the game resource block is in an idle state, the first shared resource in the game resource block is compared with the data in the storage block according to the game data type through the synchronization block, and the updated result obtained by the comparison is used as the second shared resource. The resource list and the second shared resource and its game data type are sent to the storage block through the synchronization block to update the storage block.

[0032] From the above description, it can be seen that the game resource block stores the updated game data in the storage block according to the type through the synchronization block, so that each client connected to the storage block can obtain the game data. It can also be used to replace the resource storage function of the game resource server and save the pressure on the server.

[0033] Further, comparing the second shared resource with the first shared resource of the resource cluster in the storage space, and if there is a difference, updating the resource cluster according to the second shared resource, including:

[0034] The first shared resources of the resource cluster in the storage space are traversed, and the first shared resources of each game data type are compared with the second shared resources of the corresponding type in combination with the resource linked list. If there is a difference in the comparison, the first shared resource in the resource cluster is replaced with the second shared resource of the corresponding type, and the data size and version are updated.

[0035] From the above description, it can be seen that the client only updates the shared resources of different game data types. There is no need to update the entire resource cluster. Instead, only one type of shared resources in the resource cluster is updated, so that the latest resources can be loaded without restarting the client.

[0036] Please refer to Figure 2 Another embodiment of the present invention provides a terminal for loading game data sharing resources based on blockchain, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, each step of the above-mentioned method for loading game data sharing resources based on blockchain is implemented.

[0037] The method and terminal for loading game data shared resources based on blockchain described above in the present invention are suitable for reducing the scheduling burden of game data resources in the game, while reducing the time cost and memory cost of loading game resources. The following is an explanation through specific implementation methods:

[0038] Embodiment 1

[0039] Please refer to Figure 1 and Figure 3 , a method for loading game data sharing resources based on blockchain, comprising the steps of:

[0040] S1. When the client runs for the first time, the first shared resource of the game data is obtained through the synchronization block, the first shared resource obtained is merged to generate a resource cluster, and the resource cluster is stored in the storage space of the client.

[0041] S11. Generate a first shared resource of each game data type in a game resource block according to the latest game data, wherein the first shared resource includes the game data type, compressed game data, data size and version; and obtain the first shared resource of the game data from the game resource block through a synchronization block.

[0042] Specifically, a first shared resource is generated for the game data, and the structure of the first shared resource includes the game data type, compressed game data, data size and version. For example, when the game data type is MP3, the compressed game data can be a zip compressed package of files such as 1.mp3 and 2.mp3, and finally the "first shared resource (zip compressed package - data version - data size)" can be obtained.

[0043] S12: Generate a resource list according to the first shared resource and its type in the game resource block.

[0044] S13: Merge the acquired first shared resources to generate a resource cluster, and store the resource cluster in the storage space of the client.

[0045] The resource cluster is a collection of first shared resources, and the resource cluster Data satisfies:

[0046] Data={List_1,List_2,...,List_n};

[0047] List_n = {L1 resources, L2 resources, L3 resources, ..., Ln resources};

[0048] Ln resource = {Ln data, size of Ln data};

[0049] When running:

[0050] M:=>{MS->Ln}, where M represents memory and MS represents the memory scenario, that is, M is the memory corresponding to the Ln resource.

[0051] Therefore, when the client is run for the first time, the resources in the storage space are empty, so the resources can be downloaded directly through the synchronization block.

[0052] S2. Obtain a second shared resource of game data through a storage block, and compare the second shared resource with the first shared resource of the resource cluster in the storage space. If there is a difference, update the resource cluster according to the second shared resource.

[0053] First, when the game resource block is in an idle state, the first shared resource in the game resource block is compared with the data in the storage block according to the game data type through the synchronization block, and the updated result obtained by the comparison is used as the second shared resource. The resource list and the second shared resource and its game data type are sent to the storage block through the synchronization block to update the storage block.

[0054] Specifically, the synchronization block can be used to update the game data of the storage block when the game resource block is in a spatial state. Specifically, the synchronization block obtains the content of the storage block, and disassembles and compares the latest game data in the game resource block with the content of the storage block, so as to update the updated game data to the storage block according to the game data type; and the storage block is jointly owned by the current block client, and is used to replace the resource storage function of the game resource server, and is provided for players to download to save server pressure. The data of the storage block needs to be coordinated and updated by the synchronization block.

[0055] Furthermore, the second shared resource of the game data is obtained through the storage block, the first shared resources of the resource cluster in the storage space are traversed, and the first shared resource of each game data type is compared with the second shared resource of the corresponding type in combination with the resource linked list. If there is a difference in the comparison, the first shared resource in the resource cluster is replaced with the second shared resource of the corresponding type, and the data size and version are updated.

[0056] It can be seen that the storage block can assist in updating the game data, which is equivalent to the storage block being used to help temporarily store the updated game data.

[0057] Specifically, the client can compare the first shared resource and the second shared resource of the same type according to the resource chain table, and when there is a difference in the comparison, the second shared resource can be used to replace the first shared resource in the resource cluster. Therefore, in this embodiment, the traditional method of downloading files and then loading new files is not adopted for updating, but loading or updating the game data cluster resources in the storage space without restarting the client, which can solve the problem of storing multiple types of shared resources and multiple files; at the same time, the memory loading method is adopted, and the direct update in the memory can reduce the use of system IO, solve the cumbersome replacement problem required for multiple files, and improve the user experience. Players can enter the game faster, reduce the experience of repeatedly restarting the client due to downloading, improve resource utilization, reduce fragmented files, and players can quickly start the game experience without waiting for a long time to download the entire resource.

[0058] Embodiment 2

[0059] Please refer to Figure 2 A terminal 1 for loading game data sharing resources based on blockchain includes a memory 2, a processor 3, and a computer program stored in the memory 2 and executable on the processor 3. When the processor 3 executes the computer program, each step of a method for loading game data sharing resources based on blockchain in embodiment 1 is implemented.

[0060] In summary, the present invention provides a method and terminal for loading game data shared resources based on blockchain. When the client runs for the first time, it directly downloads the first shared resource in the game resource block through the synchronization block, merges the first shared resource to generate a resource cluster, and stores it in the client's storage space; afterwards, the second shared resource and resource chain list of the game data are obtained through the storage block, and the second shared resource is compared with the first shared resource of the same game data type in the resource cluster through the resource chain list. If there is a difference, the resource cluster is updated according to the second shared resource. Therefore, it is possible to update a certain type of shared resource in the storage space without restarting the client, which can solve the problem of storing multiple types of shared resources and the problem of resources needing to be updated. In this way, the scheduling burden of game data resources is reduced, and the time cost and memory cost of loading game resources can also be reduced.

[0061] The above descriptions are merely embodiments of the present invention and are not intended to limit the patent scope of the present invention. Any equivalent transformations made using the contents of the present invention's specification and drawings, or directly or indirectly applied in related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A method for loading game data sharing resources based on blockchain, characterized in that: Includes steps: When the client runs for the first time, the first shared resource of the game data is obtained through the synchronization block, the first shared resource obtained is merged to generate a resource cluster, and the resource cluster is stored in the storage space of the client; A second shared resource of game data is obtained through a storage block, and the second shared resource is compared with the first shared resource of the resource cluster in the storage space. If there is a difference, the resource cluster is updated according to the second shared resource.

2. A method for loading game data sharing resources based on blockchain according to claim 1, characterized in that: The first shared resource for obtaining game data through the synchronization block includes: Generate first shared resources of various game data types in the game resource block according to the latest game data, wherein the first shared resources include game data type, compressed game data, data size and version; A first shared resource of game data is obtained from the game resource block through a synchronization block.

3. A method for loading game data sharing resources based on blockchain according to claim 2, characterized in that: Generating first shared resources of various types in the game resource block according to the latest game data also includes: A resource linked list is generated according to the first shared resource and its type in the game resource block.

4. A method for loading game data sharing resources based on blockchain according to claim 3, characterized in that: Also includes: When the game resource block is in an idle state, the first shared resource in the game resource block is compared with the data in the storage block according to the game data type through the synchronization block, and the updated result obtained by the comparison is used as the second shared resource. The resource list and the second shared resource and its game data type are sent to the storage block through the synchronization block to update the storage block.

5. A method for loading game data sharing resources based on blockchain according to claim 3, characterized in that: Comparing the second shared resource with the first shared resource of the resource cluster in the storage space, and updating the resource cluster according to the second shared resource if there is a difference, includes: The first shared resources of the resource cluster in the storage space are traversed, and the first shared resources of each game data type are compared with the second shared resources of the corresponding type in combination with the resource linked list. If there is a difference in the comparison, the first shared resource in the resource cluster is replaced with the second shared resource of the corresponding type, and the data size and version are updated.

6. A terminal for loading game data sharing resources based on blockchain, 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, the following steps are implemented: When the client runs for the first time, the first shared resource of the game data is obtained through the synchronization block, the first shared resource obtained is merged to generate a resource cluster, and the resource cluster is stored in the storage space of the client; A second shared resource of game data is obtained through a storage block, and the second shared resource is compared with the first shared resource of the resource cluster in the storage space. If there is a difference, the resource cluster is updated according to the second shared resource.

7. A terminal for loading game data sharing resources based on blockchain according to claim 6, characterized in that: The first shared resource for obtaining game data through the synchronization block includes: Generate first shared resources of various game data types in the game resource block according to the latest game data, wherein the first shared resources include game data type, compressed game data, data size and version; A first shared resource of game data is obtained from the game resource block through a synchronization block.

8. A terminal for loading game data sharing resources based on blockchain according to claim 7, characterized in that: Generating first shared resources of various types in the game resource block according to the latest game data also includes: A resource linked list is generated according to the first shared resource and its type in the game resource block.

9. A terminal for loading game data sharing resources based on blockchain according to claim 8, characterized in that: Also includes: When the game resource block is in an idle state, the first shared resource in the game resource block is compared with the data in the storage block according to the game data type through the synchronization block, and the updated result obtained by the comparison is used as the second shared resource. The resource list and the second shared resource and its game data type are sent to the storage block through the synchronization block to update the storage block.

10. A terminal for loading game data sharing resources based on blockchain according to claim 8, characterized in that: Comparing the second shared resource with the first shared resource of the resource cluster in the storage space, and updating the resource cluster according to the second shared resource if there is a difference, includes: The first shared resources of the resource cluster in the storage space are traversed, and the first shared resources of each game data type are compared with the second shared resources of the corresponding type in combination with the resource linked list. If there is a difference in the comparison, the first shared resource in the resource cluster is replaced with the second shared resource of the corresponding type, and the data size and version are updated.

Citation Information

Patent Citations

  • Service management method and device based on block chain

    CN111931237A

  • Cloud memory sharing method and system

    CN112468576A

  • Multi-node storage system and method based on alliance block chain

    CN112613060A

  • Game resource updating method, system and equipment and storage medium

    CN116850598A

  • A data updating method based on data block comparison

    KR1020180073128A