Data processing method, device and electronic equipment for virtual props in a game
By writing attribute rules into the smart contract of item NFTs, controllable virtual items are generated, solving the problem of players' low control over virtual item data. This achieves decentralized management of equipment and autonomous control of player data in the game, thus improving the gaming experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-13
- Publication Date
- 2026-03-27
AI Technical Summary
In existing technologies, players have limited control over virtual item data in games, and game developers have absolute control over equipment and player data, resulting in a lack of synergy and playability.
By writing the attribute rules of virtual items into the smart contract of the item NFT, an item NFT with attribute rules is generated. Players can handle virtual items in the game according to the rules, thus achieving decentralized management.
Players can control their game equipment data and perform operations such as synthesizing and upgrading virtual items, thereby improving the game experience and playability.
Smart Images

Figure CN115089970B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present disclosure relates to the technical field of games, and in particular to a data processing method and device for virtual props in a game and an electronic device. BACKGROUND
[0002] Non-fungible tokens (NFTs) are also known as non-homogeneous tokens, each of which is unique like an artwork. It has the technical advantages of decentralization, tamper resistance, and time stamping based on blockchain technology. By benchmarking the value of off-chain items against NFTs, the ownership of the items can be verified and the transactions can be queried.
[0003] The main application scenarios of NFTs include games. Based on blockchain technology, NFTs can record the status and achievements of players in games and save the lists of items obtained in games, such as weapons, power sources, vehicles, and characters. However, the existing technology has the technical problem that the controllability of virtual prop data by players is low. SUMMARY
[0004] The purpose of the present disclosure is to provide a data processing method and device for virtual props in a game and an electronic device to alleviate the technical problem that the controllability of virtual prop data by players is low.
[0005] In a first aspect, the embodiments of the present disclosure provide a data processing method for virtual props in a game, a game scene of the game corresponding to a virtual prop to be generated; the data processing method for virtual props in the game comprises:
[0006] determining a prop NFT corresponding to the virtual prop;
[0007] writing attribute rules of the virtual prop into a smart contract of the prop NFT to obtain a written smart contract;
[0008] generating the virtual prop corresponding to the prop NFT in the game scene based on the prop NFT with the written smart contract.
[0009] In one possible implementation, the attribute rules include any one or more of the following:
[0010] The level rules, classification rules, issuance rules, acquisition rules, synthesis rules, upgrade rules, decomposition rules, usage rules, and transaction rules of the virtual prop.
[0011] In one possible implementation, the writing of the attribute rules of the virtual prop into the smart contract of the prop NFT to obtain the written smart contract comprises:
[0012] write the attribute rule of the virtual prop into a smart contract of the prop NFT and make the attribute rule public, to obtain the smart contract after the attribute rule is written.
[0013] In a second aspect, the embodiments of the present disclosure provide a data processing method for a virtual prop in a game. The game scene of the game includes the virtual prop and a virtual character controlled by a terminal device. Each virtual prop is represented by a prop NFT. Each prop NFT corresponds to a smart contract. The smart contract includes the attribute rule of the virtual prop. The data processing method for the virtual prop in the game includes:
[0014] In response to a game event in which the virtual character acquires a target prop NFT, determining a target smart contract corresponding to the target prop NFT;
[0015] Determining a target attribute rule corresponding to the target prop NFT through the target smart contract;
[0016] In response to a processing instruction for the target prop NFT, processing the target prop NFT based on the target attribute rule to obtain a target prop NFT processing result.
[0017] In one possible implementation, the determining a target attribute rule corresponding to the target prop NFT through the target smart contract includes:
[0018] Determining the target attribute rule corresponding to the target prop NFT by calling a contract interface of the target smart contract.
[0019] In one possible implementation, the processing the target prop NFT based on the target attribute rule to obtain a target prop NFT processing result in response to a processing instruction for the target prop NFT includes:
[0020] In response to a synthesis instruction for a plurality of target prop NFTs, synthesizing the plurality of target prop NFTs based on a synthesis rule in the target attribute rule to obtain a target prop NFT synthesis result.
[0021] In one possible implementation, the synthesizing the plurality of target prop NFTs based on the synthesis rule in the target attribute rule to obtain a target prop NFT synthesis result in response to a synthesis instruction for a plurality of target prop NFTs includes:
[0022] In response to a synthesis instruction for a plurality of target prop NFTs, if a synthesis request corresponding to the synthesis instruction meets a synthesis rule in the target attribute rule, synthesizing the plurality of target prop NFTs to obtain a target prop NFT synthesis result.
[0023] In a possible implementation, the method further includes:
[0024] In response to the synthesis instruction for the plurality of target prop NFTs, if the synthesis request corresponding to the synthesis instruction does not conform to the synthesis rule in the target attribute rule, a synthesis failure result is returned.
[0025] In a possible implementation, the synthesizing the plurality of target prop NFTs to obtain a target prop NFT synthesis result includes:
[0026] The plurality of target prop NFTs are synthesized to obtain a synthesized target prop NFT, and the target prop NFT before synthesis is eliminated.
[0027] In a possible implementation, the synthesis rule includes any one or more of the following:
[0028] A synthesis quantity rule, a synthesis type rule, and a synthesis level rule.
[0029] In a possible implementation, the synthesis instruction is generated by the virtual character; and in response to the synthesis instruction for the plurality of target prop NFTs, if the synthesis request corresponding to the synthesis instruction conforms to the synthesis rule in the target attribute rule, the plurality of target prop NFTs are synthesized to obtain a target prop NFT synthesis result, including:
[0030] In response to the synthesis instruction for the plurality of target prop NFTs, it is verified by signature whether the target prop NFT belongs to the virtual character in the game scene, and if the target prop NFT belongs to the virtual character, the plurality of target prop NFTs are synthesized to obtain a target prop NFT synthesis result.
[0031] In a third aspect, the embodiments of the present disclosure provide a data processing apparatus for a virtual prop in a game, a virtual prop to be generated corresponding to a game scene of the game; the data processing apparatus for the virtual prop in the game includes:
[0032] A determination module configured to determine a prop NFT corresponding to the virtual prop;
[0033] A writing module configured to write an attribute rule of the virtual prop into a smart contract of the prop NFT to obtain a written smart contract;
[0034] A generation module configured to generate, based on the prop NFT with the written smart contract, the virtual prop corresponding to the prop NFT in the game scene.
[0035] In a fourth aspect, the embodiments of the present disclosure provide a data processing apparatus for a virtual prop in a game, the game scene of the game including the virtual prop and a virtual character controlled by a terminal device, each virtual prop being represented by a prop NFT, each prop NFT corresponding to a smart contract, and the smart contract including attribute rules of the virtual prop.
[0036] A first determination module is configured to determine a target smart contract corresponding to a target prop NFT in response to a game event in which the virtual character acquires the target prop NFT.
[0037] A second determination module is configured to determine a target attribute rule corresponding to the target prop NFT by using the target smart contract.
[0038] A processing module is configured to process the target prop NFT based on the target attribute rule in response to a processing instruction for the target prop NFT, and obtain a target prop NFT processing result.
[0039] In a fifth aspect, the embodiments of the present disclosure further provide an electronic device including a memory and a processor, the memory storing a computer program executable on the processor, and the processor implementing the steps of the method of the first aspect and the second aspect when executing the computer program.
[0040] In a sixth aspect, the embodiments of the present disclosure further provide a computer readable storage medium storing computer executable instructions, the computer executable instructions causing the processor to execute the method of the first aspect and the second aspect when invoked and executed by the processor.
[0041] The embodiments of the present disclosure bring the following beneficial effects:
[0042] The data processing method, device and electronic equipment for a virtual prop in a game provided by the embodiments of the present disclosure first determine the prop NFT corresponding to the virtual prop, then write the attribute rules of the virtual prop into the smart contract of the prop NFT, obtain the smart contract after writing, and then generate the virtual prop corresponding to the prop NFT in the game scene based on the prop NFT with the written smart contract. In the present scheme, before issuing the prop NFT, the attribute rules of the virtual prop are written into the smart contract, such as the value rules, issuance rules and synthesis rules of the virtual prop, and the like, to obtain the smart contract after writing the attribute rules, and then the virtual prop corresponding to the prop NFT can be generated in the game scene based on the prop NFT carrying the attribute rule smart contract. By writing the attribute rules of the virtual prop into the smart contract of the prop NFT corresponding to the virtual prop, the virtual prop generated based thereon enables the player to process the virtual prop according to the attribute rules in the game, which realizes the decentralized management of the virtual prop by using the NFT, and the player can also control his own game equipment data in the game, thereby alleviating the technical problem that the controllability of the virtual prop data is low. BRIEF DESCRIPTION OF DRAWINGS
[0043] In order to more clearly illustrate the technical solutions in the specific embodiments of the present disclosure or the prior art, the drawings needed to be used in the specific embodiments or prior art description will be briefly introduced. Obviously, the drawings in the following description are some embodiments of the present disclosure, and other drawings can also be obtained by those skilled in the art without creative labor.
[0044] Figure 1 An application scenario schematic diagram provided by the embodiments of the present disclosure;
[0045] Figure 2 A structural schematic diagram of an electronic device provided by the embodiments of the present disclosure;
[0046] Figure 3 A use scenario schematic diagram of an electronic device provided by the embodiments of the present disclosure;
[0047] Figure 4 A flowchart of a data processing method for a virtual prop in a game provided by the embodiments of the present disclosure;
[0048] Figure 5 A flowchart of another data processing method for a virtual prop in a game provided by the embodiments of the present disclosure;
[0049] Figure 6 A structural schematic diagram of a data processing device for a virtual prop in a game provided by the embodiments of the present disclosure;
[0050] Figure 7Another structure of a data processing device for a virtual prop in a game is provided for the embodiments of the present disclosure. DETAILED DESCRIPTION
[0051] To make the objectives, technical solutions, and advantages of the embodiments of the present disclosure clearer, the technical solutions of the present disclosure will be described below in connection with the drawings. Obviously, the described embodiments are only some of the embodiments of the present disclosure, rather than all the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the protection scope of the present disclosure.
[0052] The terms "comprising" and "having" and any variations thereof mentioned in the embodiments of the present disclosure are intended to cover the inclusion not the exclusion of one or more steps or units. For example, a process, method, system, product, or device that includes a series of steps or units is not limited to the listed steps or units, but can optionally include other steps or units not listed, or can optionally include other steps or units inherent to the process, method, product, or device.
[0053] At present, there are three underlying protocol standards for NFT, namely, smart contract standards, namely, ERC721, ERC1155, and ERC998. There are differences among the three underlying protocol standards. ERC721 is the first underlying protocol standard for NFT, and is the most commonly used token form in the NFT ecosystem at present. The ERC1155 standard has the characteristics of semi-fungible token (semi-fungible token). The difference from ERC721 is that the identity document (Identity document, ID) is no longer an item, but a category. Based on a category, a smart contract can simultaneously realize the transfer of a large number of multi-category assets, significantly improving the transfer speed, and can meet the flexible application in different scenarios. Compared with ERC-20 and other standards, the outstanding place of the ERC-1155 token protocol standard is that it can realize cross-chain compatibility. ERC998 means Composable NFTs (CNFT). This protocol standard can contain tokens in the form of ERC721 and ERC20. Tokens generated by using this protocol standard can realize the packaging of all different types of tokens in one transfer. The functions of the three underlying protocol standards for NFT are a gradual upgrading process. From ERC721 to ERC1155, the token transfer transaction can be more convenient and low-cost transaction; from ERC1155 to ERC998, the token packaging transaction and multi-scene application can be realized. However, at present, ERC721 is still the most commonly used token form in the NFT ecosystem.
[0054] One of the main application scenarios of NFT is games. NFT based on blockchain technology can record the status and achievements of players in the game and save the list of items obtained in the game, such as weapons, power supplies, vehicles, characters, etc. However, in the prior art, the synthesis and upgrade logic of virtual props such as props equipment is mainly determined by the game manufacturer for the centralized server device, and the game manufacturer has absolute control over various data of the equipment and the player, and the player cannot control his own user data. The game equipment based on NFT issuance, one NFT represents one equipment, but there is a lack of connection between multiple equipment, the value cannot be transmitted, and there is a lack of linkage, for example, NFT game equipment cannot be synthesized, upgraded, etc. The playability of the player is reduced.
[0055] Therefore, based on this, the embodiments of the present disclosure provide a game virtual prop data processing method and device and electronic equipment. Through the method provided by the embodiments of the present disclosure, the player can control his own game equipment data in the game, and the technical problem of low controllability of virtual prop data by the player is alleviated.
[0056] In one embodiment of the present disclosure, the game virtual prop data processing method can run on a local terminal device or a server. When the game virtual prop data processing method runs on the server, the method can be implemented and executed based on a cloud interaction system, wherein the cloud interaction system includes a server and a client device.
[0057] In an optional embodiment, various cloud applications can run under the cloud interaction system, for example, cloud games. Taking cloud games as an example, cloud games refer to a game mode based on cloud computing. In the running mode of cloud games, the running body of the game program and the presentation body of the game picture are separated, and the storage and running of the game virtual prop data processing method are completed on the cloud game server. The client device is used for receiving and sending data and presenting game pictures. For example, the client device can be a display device close to the user side with data transmission function, such as a mobile terminal, a television, a computer, a palm computer, etc. However, the cloud game server in the cloud end performs information processing. When playing the game, the player operates the client device to send operation instructions to the cloud game server, the cloud game server runs the game according to the operation instructions, encodes and compresses the game picture data, returns the data to the client device through the network, and finally decodes and outputs the game picture through the client device.
[0058] In an optional embodiment, taking a game as an example, the local terminal device stores a game program and is configured to present a game picture. The local terminal device is configured to interact with a player through a graphical user interface, i.e., a conventional game program is downloaded and installed through an electronic device and is run. The local terminal device can provide the graphical user interface to the player in various ways, for example, the graphical user interface can be rendered and displayed on a display screen of the terminal, or the graphical user interface can be provided to the player through holographic projection. For example, the local terminal device can include a display screen configured to present a graphical user interface including a game picture, and a processor configured to run the game, generate the graphical user interface, and control display of the graphical user interface on the display screen.
[0059] In a possible embodiment, the present disclosure provides a data processing method for a virtual prop in a game. A graphical user interface is provided through a terminal device. The terminal device can be a local terminal device as mentioned above, or a client device in a cloud interaction system as mentioned above.
[0060] For example, as shown in FIG. 1, Figure 1 Figure 1 An application scenario provided by the present disclosure is shown in FIG. 1. The application scenario can include an electronic terminal (e.g., a mobile phone 102) and a server 101. The electronic terminal can communicate with the server 101 through a wired network or a wireless network. The electronic terminal is configured to run a virtual desktop. Through the virtual desktop, the electronic terminal can interact with the server 101 to control a virtual character in the server 101.
[0061] The electronic terminal of the present embodiment is taken as the mobile phone 102 for example. The mobile phone 102 includes a radio frequency (RF) circuit 210, a memory 220, a touch screen 230, a processor 240, and the like. Those skilled in the art can understand that the structure of the mobile phone shown in FIG. 1 does not limit the mobile phone, and the mobile phone can include more or fewer components than those shown in the figure, or some components can be combined, or some components can be split, or different component arrangements. Those skilled in the art can understand that the touch screen 230 belongs to a user interface (UI), and the mobile phone 102 can include more or fewer user interfaces than those shown in the figure. Figure 2
[0062] The RF circuitry 210 can also be configured to communicate with networks and other devices over wireless communication. The wireless communication can use any of a plurality of communications standards, protocols, and / or technologies, such as Global System for Mobile Communications (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), Bluetooth®, Wi-Fi, etc. The various
[0063] The memory 220 can be used to store software programs and modules, and the processor 240 can execute various function applications and data processing of the mobile phone 102 by running the software programs and modules stored in the memory 220. The memory 220 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, application programs required by at least one function, etc.; and the data storage area can store data created according to the use of the mobile phone 102, etc. In addition, the memory 220 can include a high-speed random access memory, and can also include a nonvolatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state memory device.
[0064] The touch screen 230 can be used to display a graphical user interface and receive user operations on the graphical user interface. Specifically, the touch screen 230 can include a display panel and a touch panel. The display panel can be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), etc. The touch panel can collect touch or non-touch operations (for example, as a hovering operation) of a user on or near the touch panel (for example, a user's finger, a stylus, etc.), and convert the touch or non-touch operations into electrical signals to be sent to the processor 240. Figure 3As shown, the user uses a finger 301, a stylus, or any suitable object or accessory to operate on or near the touch panel, and generates a preset operation instruction. In addition, the touch panel can include two parts of a touch detection device and a touch controller. The touch detection device detects the touch position and posture of the user, and detects the signal generated by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, and converts it into information that the processor can process, and then sends it to the processor 240, and can also receive the command from the processor 240 and execute it. In addition, the touch panel can be realized by using various types such as resistance type, capacitance type, infrared type, and surface acoustic wave type, and can also be realized by using any technology developed in the future. Further, the touch panel can cover the display panel, and the user can operate on or near the touch panel covering the display panel according to the graphical user interface displayed on the display panel. After the touch panel detects the operation on or near it, it transmits it to the processor 240 to determine the user input, and then the processor 240 provides corresponding visual output on the display panel in response to the user input. In addition, the touch panel and the display panel can be realized as two independent components or can be integrated.
[0065] The processor 240 is the control center of the mobile phone 102, which connects all parts of the mobile phone through various interfaces and lines, executes various functions of the mobile phone 102 and processes data by running or executing software programs and / or modules stored in the memory 220 and calling data stored in the memory 220, thereby monitoring the whole mobile phone.
[0066] The embodiments of the present disclosure will be further described below with reference to the drawings.
[0067] Figure 4 A flowchart of a data processing method of a virtual prop in a game is provided for the embodiments of the present disclosure. In the game scene of the game, there is a virtual prop to be generated. As shown in Figure 4 The data processing method of the virtual prop in the game includes:
[0068] Step S410, determining the prop NFT corresponding to the virtual prop.
[0069] As an example, since one of the main application scenarios of NFT is a game, game equipment can be issued based on NFT, one prop NFT represents one virtual prop, and each virtual prop is unique. Before generating the virtual prop, the prop NFT corresponding to the virtual prop needs to be determined.
[0070] Step S420, writing the attribute rule of the virtual prop into the smart contract of the prop NFT to obtain the written smart contract.
[0071] It should be noted that the function of the NFT depends on the smart contract supporting it, which is a piece of code based on the blockchain that enables applications to save information from NFT transactions, which users can access at any time after it is set up. The smart contract also ensures that the information saved is both accessible and immutable. The smart contract also does not require a third party to act as an intermediary, thereby reducing commission costs and shortening transaction times.
[0072] In practical applications, the types of attribute rules can include various rules related to virtual props, such as level rules, classification rules, issuance rules, acquisition rules, synthesis rules, upgrade rules, decomposition rules, use rules, and transaction rules, etc.
[0073] For example, a game developer can write code based on functional requirements, such as based on the ERC721 standard, to write attribute rules required for a prop NFT as a blueprint, write attribute rules of virtual props into the smart contract of the prop NFT, i.e., add the required features to the smart contract, thereby obtaining the written smart contract.
[0074] Step S430, based on the prop NFT with the written smart contract, generating a virtual prop corresponding to the prop NFT in a game scene.
[0075] For example, after obtaining the written smart contract, the system can obtain different prop NFTs with written smart contracts based on different attribute rules, thereby generating different virtual props corresponding to different prop NFTs in a game scene.
[0076] Based on different prop NFTs, virtual props of different levels, different classifications, and different attributes can be generated. Each prop is generated based on a unique prop NFT, for example, according to the written smart contract, the virtual prop corresponding to the first prop NFT is an ordinary shoe, and the virtual prop corresponding to the second prop NFT is a rare helmet, etc.
[0077] In the embodiments of the present disclosure, first, the prop NFT corresponding to the virtual prop is determined, and before the prop NFT is issued, the attribute rules of the virtual prop are written into the smart contract, such as the value rules, issuance rules and synthesis rules of the virtual prop, and the like, to obtain the smart contract after writing the attribute rules, and then the virtual prop corresponding to the prop NFT can be generated in the game scene based on the prop NFT carrying the attribute rules smart contract. By writing the attribute rules of the virtual prop into the smart contract corresponding to the virtual prop, the virtual prop generated based thereon enables the player to process the virtual prop according to the attribute rules in the game, thereby realizing the decentralized management of the virtual prop by using the NFT, and the player can also control his own game equipment data in the game, thereby solving the technical problem that the controllability of the virtual prop data is low.
[0078] The above steps are described in detail below.
[0079] In some embodiments, the types of attribute rules can include multiple types, thereby making the function more comprehensive. By including multiple types of attribute rules, richer content can be written into the smart contract, and then based on the prop NFT carrying the written smart contract, the corresponding virtual prop is generated, thereby enriching the game content and improving the game experience of the player. For example, the attribute rules include any one or more of the following:
[0080] The level rules, classification rules, issuance rules, acquisition rules, synthesis rules, upgrade rules, decomposition rules, use rules and transaction rules of the virtual prop.
[0081] As an example, the attribute rules can include the level rules of the virtual prop, for example, the virtual prop can be defined into four levels: white, green, purple and orange, and the prop attributes are increased in turn according to the levels.
[0082] As another example, the attribute rules can include the classification rules of the virtual prop, for example, the virtual prop can be divided into three classifications: shoes, helmets and weapons. Based on the level rules and the classification rules, diversified virtual props can be obtained, for example, the shoes can be divided into white shoes increasing 10 points of moving speed, green shoes increasing 18 points of moving speed, purple shoes increasing 30 points of moving speed, and orange shoes increasing 45 points of moving speed; the helmets can be divided into white helmets increasing 10 points of armor, green helmets increasing 25 points of armor, purple helmets increasing 40 points of armor, and orange helmets increasing 60 points of armor; and the weapons can be divided into white weapons increasing 100 points of attack, green weapons increasing 200 points of attack, purple weapons increasing 500 points of attack, and orange weapons increasing 800 points of attack.
[0083] As another example, the attribute rule can include an issuance rule of the virtual prop, for example, an issuance quantity. Generally, the higher the level of the virtual prop, the less the quantity can be set. For example, 1 million white virtual props (100 million shoes, 100 million helmets, and 100 million weapons), 50,000 green virtual props (50,000 shoes, 50,000 helmets, and 50,000 weapons), 5,000 purple virtual props (5,000 shoes, 5,000 helmets, and 5,000 weapons), and 100 orange virtual props (100 shoes, 100 helmets, and 100 weapons) can be set.
[0084] As another example, the attribute rule can include an acquisition rule of the virtual prop, for example, it can be set to be obtained randomly in the game, or obtained by defeating an enemy, or obtained by completing a special achievement, or obtained by purchasing with virtual currency, or obtained by a blind box in the game, and the like.
[0085] As another example, the attribute rule can include a synthesis rule of the virtual prop, that is, a rule defining that a low-level virtual prop can be synthesized into a high-level virtual prop, for example, 4 white virtual props can be synthesized into 1 green virtual prop, 4 green virtual props can be synthesized into 1 purple virtual prop, and 10 purple virtual props can be synthesized into 1 orange virtual prop. Moreover, it can be defined that only virtual props of the same type can be synthesized, for example, 4 white shoes can be synthesized into 1 green shoe. If 2 white shoes and 2 white weapons are synthesized, the synthesis will fail. If 3 white shoes are synthesized, the synthesis will also fail.
[0086] As another example, the attribute rule can include an upgrade rule of the virtual prop, for example, it can be defined that some preset conditions are required for the virtual prop to reach the preset conditions in the game before the virtual prop can be upgraded. Taking the white weapon as an example, it can be set that the player needs to defeat a preset number of enemies using the white weapon, and a preset amount of virtual currency needs to be spent to upgrade the white weapon to a higher level white weapon or to a green weapon.
[0087] As another example, the attribute rule can include a decomposition rule of the virtual prop, for example, after successfully synthesizing 4 white virtual props into 1 green virtual prop, the 4 white virtual props consumed in the synthesis need to be decomposed and destroyed.
[0088] As another example, the attribute rule can include a use rule of the virtual prop, which can define the use rule of the virtual prop, for example, the shoe can only be equipped to the foot of the virtual character, the helmet can only be equipped to the head of the virtual character, different types of weapons can only be fitted to corresponding game professions, and the like.
[0089] As another example, the attribute rule can include a transaction rule of the virtual prop, for example, the value of each virtual prop can be defined, the white virtual prop can be purchased by 10 virtual currencies, the green virtual prop can be purchased by 100 virtual currencies, and so on.
[0090] By making the attribute rule include multiple types, the function is more comprehensive, richer content can be written into the smart contract, and the corresponding virtual prop can be generated based on the prop NFT with the written smart contract, enriching the game content and improving the game experience of the player.
[0091] In some embodiments, the smart contract with the written attribute rule can be obtained in a more flexible manner, so that the player can control his own game data. For example, the attribute rule of the virtual prop can be written into the smart contract of the prop NFT, and then the attribute rule is disclosed in the game community to obtain the corresponding smart contract, and then obtain diversified game equipment. As an example, the above step S420 can specifically include the following steps:
[0092] Step a), write the attribute rule of the virtual prop into the smart contract of the prop NFT and disclose the attribute rule to obtain the smart contract with the written attribute rule.
[0093] For example, the attribute rule can be written into the smart contract and disclosed in the game community to realize the deployment of the smart contract. Once the smart contract is deployed, the attribute rule is determined by the smart contract, and the player cannot modify the attribute rule. After the smart contract is deployed, the attribute rule cannot be modified without upgrading the smart contract.
[0094] In actual application, the smart contract can provide an upgrade interface, whether to upgrade is determined by the game community instead of being determined unilaterally by the service provider. The specific upgrade can include adding new equipment types in the game or providing new equipment synthesis routes, and so on.
[0095] By writing the attribute rule of the virtual prop into the smart contract of the prop NFT and disclosing the attribute rule, the smart contract with the written attribute rule is obtained, so that the player can control his own game data, and can also determine whether the attribute rule can be modified and upgraded, improving the playability of the game. Furthermore, the attribute rule is written into the smart contract and the attribute rule is disclosed in the community, and once the smart contract is deployed, the rule can no longer be modified, and the decision is completed by the smart contract.
[0096] Figure 5A flowchart of a data processing method of a virtual prop in a game is provided for an embodiment of the present disclosure. The game scene of the game includes virtual props and a virtual character controlled by a terminal device. Each virtual prop is represented by a prop NFT. Each prop NFT corresponds to a smart contract. The smart contract includes attribute rules of the virtual prop. Figure 5 As shown in FIG. 11, the data processing method of the virtual prop in the game includes the following steps.
[0097] In step S510, a target smart contract corresponding to the target prop NFT is determined in response to a game event of the virtual character obtaining the target prop NFT.
[0098] For example, each virtual prop in the game corresponds to a unique prop NFT. Therefore, obtaining a virtual prop in the game essentially means obtaining a prop NFT. When the virtual character obtains a virtual prop in the game, it can be determined that a game event of the virtual character obtaining a prop NFT has occurred in the game. The system can determine the target smart contract corresponding to the prop NFT.
[0099] In step S520, a target attribute rule corresponding to the target prop NFT is determined through the target smart contract.
[0100] For example, the attribute rules are written into the smart contract in advance. All virtual props are generated based on the prop NFT with the written smart contract. Therefore, after determining the target smart contract corresponding to the target prop NFT, the system can determine the target attribute rule corresponding to the target prop NFT.
[0101] In step S530, the target prop NFT is processed based on the target attribute rule in response to a processing instruction for the target prop NFT, and a target prop NFT processing result is obtained.
[0102] For example, the system can process the target prop NFT based on the target attribute rule in response to a processing instruction for the target prop NFT from the player. Specifically, the processing instruction can be a synthesis instruction and a transaction instruction for the target prop NFT from the player, and the system synthesizes or transacts the target prop NFT based on the target attribute rule.
[0103] In the embodiments of the present disclosure, since each virtual prop has a corresponding NFT, and each prop NFT carries a smart contract, when the virtual character obtains a target prop in the game, the target smart contract corresponding to the target prop NFT can be determined, so that the target attribute rule corresponding to the target prop NFT is determined through the target smart contract, for example, the value rule, the issuance rule and the synthesis rule of the virtual prop and the like, and then the target prop NFT can be processed based on the above rules after the player issues a processing instruction, so as to obtain a target prop NFT processing result, so that the player can perform operations such as synthesis and upgrading on the virtual prop in the game, establish a connection between multiple virtual props, realize value conduction linkage, and improve the game experience of the player.
[0104] The above steps will be described in detail below.
[0105] In some embodiments, the determination of the target attribute rule corresponding to the target prop NFT can be realized in a relatively flexible manner, so that the target prop NFT can be processed based on the target attribute rule and the target attribute rule can be adjusted in subsequent steps. For example, the determination of the target attribute rule corresponding to the target prop NFT can be realized by calling the contract interface of the target smart contract. As an example, the above step S520 can specifically include the following steps:
[0106] Step b), determining the target attribute rule corresponding to the target prop NFT by calling the contract interface of the target smart contract.
[0107] For example, the smart contract can include a plurality of interface functions, and a plurality of interfaces are provided through the functions. By calling different contract interfaces, the determination of the target attribute rule corresponding to the target prop NFT can be realized, and the corresponding functions can be realized. For example, determining the holder of the prop NFT; determining the address of the holder of the prop NFT; calling the prop NFT synthesis / trading method in the smart contract, and checking the return value. If the smart contract does not have this synthesis method / trading method or the return value is incorrect, it is rolled back to avoid the loss of prop NFT and the loss of virtual assets of the player; by calling the standard NFT contract interface, the prop NFT can be authorized to other players, so that the transaction in the NFT market can be realized. The transaction mode can be a general mode, for example, Opensea exchange.
[0108] By calling the contract interface of the target smart contract, the target attribute rule corresponding to the target prop NFT can be determined more accurately, the target prop NFT can be processed based on the target attribute rule, and the target attribute rule can be adjusted, so as to realize the functions of equipment synthesis and transaction, and improve the game experience of the player.
[0109] In some embodiments, the processing instruction can include multiple types, making the function more comprehensive and the game content more abundant. For example, the processing instruction can be a synthesis instruction, and the multiple target prop NFTs can be synthesized based on the synthesis instruction for the multiple target prop NFTs, thereby realizing the value linkage between NFT game equipment. As an example, the above step S530 can specifically include the following steps:
[0110] Step c), in response to the synthesis instruction for the multiple target prop NFTs, synthesizing the multiple target prop NFTs based on the synthesis rule in the target attribute rule to obtain a target prop NFT synthesis result.
[0111] For example, each virtual prop in the game corresponds to a unique prop NFT, so the synthesis of virtual props in the game is essentially the synthesis of prop NFTs. When a player wants to synthesize multiple target prop NFTs, for example, the player adds four green equipment to the synthesis column in the game and wants to synthesize them into one purple equipment. The system can respond to the synthesis instruction and synthesize the four green equipment and the corresponding prop NFT based on the synthesis rule in the previously written target attribute rule to obtain a synthesis result, i.e., one purple equipment and the corresponding prop NFT.
[0112] By making the system respond to the player's synthesis instruction for multiple target prop NFTs, synthesizing the multiple target prop NFTs based on the synthesis rule in the target attribute rule, and obtaining a target prop NFT synthesis result, the synthesis function of prop NFTs in the game is realized, and the value linkage between NFT game equipment is realized.
[0113] Based on the above step c), the synthesis process of multiple target prop NFTs can be realized in a rigorous manner. For example, it can be first determined whether the synthesis request corresponding to the synthesis instruction conforms to the synthesis rule, and the synthesis request conforming to the rule is executed, thereby avoiding the player from synthesizing props in a way that violates the rules, and realizing the maintenance of a fair game environment. As an example, the above step c) can specifically include the following steps:
[0114] Step d), in response to the synthesis instruction for the multiple target prop NFTs, if the synthesis request corresponding to the synthesis instruction conforms to the synthesis rule in the target attribute rule, synthesizing the multiple target prop NFTs to obtain a target prop NFT synthesis result.
[0115] For example, assume that the synthesis rule in the game is that 4 green shoes can synthesize 1 purple shoe. When the player adds 4 green shoes to the synthesis column in the game, the system will determine that the synthesis request corresponding to the synthesis instruction meets the synthesis rule, and synthesize the 4 green shoes to obtain 1 purple shoe. The specific synthesis rule can be a quantity rule, a type rule, a level rule, etc.
[0116] By causing the system to respond to the synthesis instruction of the player for the plurality of target prop NFTs, when the synthesis request corresponding to the synthesis instruction meets the synthesis rule in the target attribute rule, the plurality of target prop NFTs are synthesized to obtain a target prop NFT synthesis result. Not only can the player synthesize a rich virtual prop, but also can avoid the player synthesizing the prop in a way that violates the rules, and maintain a fair game environment.
[0117] Based on the above step d), after determining whether the synthesis request corresponding to the synthesis instruction meets the synthesis rule, the synthesis request that does not meet the rule can be rejected, and a synthesis failure result is returned, avoiding the virtual assets of the player from being damaged, and improving the game experience of the player. As an example, the method can further include the following steps:
[0118] Step e), in response to the synthesis instruction for the plurality of target prop NFTs, if the synthesis request corresponding to the synthesis instruction does not meet the synthesis rule in the target attribute rule, a synthesis failure result is returned.
[0119] For example, assume that the synthesis rule in the game is that 4 green shoes can synthesize 1 purple shoe. When the player adds 2 green weapons and 2 green shoes to the synthesis column in the game, the system will determine that the synthesis request corresponding to the synthesis instruction does not meet the synthesis rule, and cannot be synthesized. The system will return a synthesis failure result to the player, and return the 2 green weapons and 2 green shoes to the player. For another example, when the player adds 3 green shoes to the synthesis column in the game, the system will determine that the synthesis request corresponding to the synthesis instruction does not meet the synthesis rule, and cannot be synthesized. The system will return a synthesis failure result to the player, and return the 3 green shoes to the player.
[0120] By causing the system to respond to the synthesis instruction of the player for the plurality of target prop NFTs, if the synthesis request corresponding to the synthesis instruction does not meet the synthesis rule in the target attribute rule, a synthesis failure result is returned to the player, a fair game environment is maintained, and the virtual assets of the player are prevented from being damaged, improving the game experience of the player.
[0121] Based on the above step d), after the successful synthesis of the plurality of target prop NFTs, the plurality of target prop NFTs before synthesis can be destroyed, avoiding the existence of synthesis materials, avoiding the appearance of NFT data duplication, maintaining a fair game environment, and improving the game experience of players. As an example, the step of synthesizing a plurality of target prop NFTs to obtain a target prop NFT synthesis result can include the following steps:
[0122] Step f), synthesizing a plurality of target prop NFTs to obtain a target prop NFT after synthesis, and eliminating the target prop NFT before synthesis.
[0123] For example, in the game, a plurality of virtual props are synthesized into 1 virtual prop, and the plurality of virtual props as synthesis materials need to be eliminated. For example, the player synthesizes 4 green equipment and corresponding prop NFTs in the game to obtain 1 purple equipment and corresponding prop NFT after synthesis. After successful synthesis, the system can eliminate the 4 green virtual props and corresponding prop NFTs as synthesis materials.
[0124] The system can obtain a target prop NFT after synthesis by synthesizing a plurality of target prop NFTs, eliminate the target prop NFT before synthesis, avoid NFT data duplication, ensure the stability of virtual assets in the game, maintain a fair game environment, and improve the game experience of players.
[0125] Based on the above step d), the type of synthesis rule can include a plurality of types, thereby making the function more comprehensive, and by including a plurality of types of synthesis rules, players can more flexibly synthesize virtual props based on different synthesis rules in the game, generate a variety of virtual props, enrich game content, and improve the game experience of players. For example, the synthesis rule includes any one or more of the following:
[0126] Synthesis quantity rule, synthesis type rule, and synthesis level rule.
[0127] As an example, the synthesis rule can include a synthesis quantity rule, for example, 4 green virtual props can be synthesized into 1 purple virtual prop, or 10 green virtual props can be synthesized into 1 purple virtual prop, and the like.
[0128] As another example, the synthesis rule can include a synthesis type rule, which can be that only virtual props of the same type can be synthesized. For example, 4 green shoes can be synthesized into 1 purple shoe, but 2 green weapons and 2 green shoes cannot be synthesized, and the system will return a synthesis failure result to the player.
[0129] As another example, the synthesis rule can include a synthesis level rule, for example, 4 white virtual props can synthesize 1 green virtual prop, 4 green virtual props can synthesize 1 purple virtual prop, 10 purple equipment can synthesize 1 orange virtual prop, and so on.
[0130] By making the synthesis rule include multiple types, the function is more comprehensive, so that players can more flexibly synthesize virtual props based on different synthesis rules in the game, generate a variety of virtual props, enrich the game content, and improve the game experience of players.
[0131] Based on the above step d), the synthesis instruction in the game is generated by the virtual character, and the initiator of the synthesis request can be confirmed by signature authentication to be the owner of the equipment, so as to avoid damage to the virtual assets of the player, realize the maintenance of the fair game environment, and improve the game experience of the player. As an example, the synthesis instruction is generated by the virtual character; the above step d) can specifically include the following steps:
[0132] Step g), in response to the synthesis instruction for the plurality of target prop NFTs, verifying by signature whether the target prop NFT belongs to the virtual character in the game scene, and if it belongs to the virtual character, synthesizing the plurality of target prop NFTs to obtain a target prop NFT synthesis result.
[0133] For example, the system can perform ownership judgment and signature verification on the plurality of target prop NFTs, and before synthesizing the virtual prop, the relevant low-level virtual prop NFTs need to be under the name of the virtual character of the player, and the initiator of the synthesis needs to be the owner of the virtual prop, that is, the virtual character of the player. For example, the player wants to synthesize 4 green virtual props into 1 purple virtual prop, and the system will verify by signature whether the NFTs of the 4 green virtual props belong to the virtual character of the player in the game scene. If the NFTs of the 4 green virtual props belong to the virtual character of the player in the game scene, the system synthesizes to obtain 1 purple virtual prop, and generates a new prop NFT. The newly generated purple virtual prop can be used or traded in the game.
[0134] By making the system respond to the synthesis instruction of the player for the plurality of target prop NFTs, verifying by signature whether the target prop NFT belongs to the virtual character in the game scene, and if it belongs to the virtual character, synthesizing the plurality of target prop NFTs to obtain a target prop NFT synthesis result, it is ensured that the player processes the virtual assets that belong to him, avoids damage to the virtual assets of the player, realizes the maintenance of the fair game environment, and improves the game experience of the player.
[0135] Figure 6A structural schematic diagram of a data processing apparatus for a virtual prop in a game is provided for an embodiment of the present disclosure. In the game, a virtual prop to be generated corresponds to a game scene. As shown in Figure 6 The data processing apparatus 600 for the virtual prop in the game includes:
[0136] A determination module 601 is configured to determine a prop NFT corresponding to the virtual prop.
[0137] A writing module 602 is configured to write attribute rules of the virtual prop into a smart contract of the prop NFT, to obtain a written smart contract.
[0138] A generation module 603 is configured to generate the virtual prop corresponding to the prop NFT in the game scene based on the prop NFT with the written smart contract.
[0139] In some embodiments, the attribute rules include any one or more of the following:
[0140] A level rule, a classification rule, an issuance rule, an acquisition rule, a synthesis rule, an upgrade rule, a decomposition rule, a use rule, and a transaction rule of the virtual prop.
[0141] In some embodiments, the writing module 602 is specifically configured to:
[0142] Write the attribute rules of the virtual prop into the smart contract of the prop NFT and disclose the attribute rules, to obtain the smart contract with the written attribute rules.
[0143] The data processing apparatus for the virtual prop in the game provided by the embodiment of the present disclosure has the same technical features as the data processing method for the virtual prop in the game provided by the above-mentioned embodiment, and can solve the same technical problems and achieve the same technical effects. First, the prop NFT corresponding to the virtual prop is determined. Before the prop NFT is issued, the attribute rules of the virtual prop, such as the value rule, the issuance rule, and the synthesis rule of the virtual prop, are written into the smart contract, to obtain the smart contract with the written attribute rules. Then, the virtual prop corresponding to the prop NFT can be generated in the game scene based on the prop NFT with the attribute rule smart contract. This allows the player to acquire the virtual prop in the game, and realizes that the player can control his own game equipment data in the game, thereby alleviating the technical problem that the controllability of the virtual prop data is low.
[0144] Figure 7 A structural schematic diagram of another data processing apparatus for a virtual prop in a game is provided for an embodiment of the present disclosure. In the game, a virtual prop and a virtual character controlled by a terminal device are included in a game scene. Each virtual prop is represented by a prop NFT, and each prop NFT corresponds to a smart contract. The smart contract includes attribute rules of the virtual prop. As shown inFigure 7 As shown, the data processing apparatus 700 of the virtual game props includes:
[0145] The first determination module 701 is configured to determine a target smart contract corresponding to the target prop NFT in response to a game event in which the virtual character acquires the target prop NFT.
[0146] The second determination module 702 is configured to determine a target attribute rule corresponding to the target prop NFT through the target smart contract.
[0147] The processing module 703 is configured to process the target prop NFT based on the target attribute rule to obtain a target prop NFT processing result in response to a processing instruction for the target prop NFT.
[0148] In some embodiments, the second determination module 702 is specifically configured to:
[0149] Determine the target attribute rule corresponding to the target prop NFT by calling a contract interface of the target smart contract.
[0150] In some embodiments, the processing module 703 is specifically configured to:
[0151] In response to a synthesis instruction for a plurality of target prop NFTs, synthesize the plurality of target prop NFTs based on a synthesis rule in the target attribute rule to obtain a target prop NFT synthesis result.
[0152] In some embodiments, the processing module 703 is specifically configured to:
[0153] In response to a synthesis instruction for a plurality of target prop NFTs, if a synthesis request corresponding to the synthesis instruction meets a synthesis rule in the target attribute rule, synthesize the plurality of target prop NFTs to obtain a target prop NFT synthesis result.
[0154] In some embodiments, the apparatus further includes:
[0155] The return module is configured to return a synthesis failure result in response to a synthesis instruction for a plurality of target prop NFTs if a synthesis request corresponding to the synthesis instruction does not meet a synthesis rule in the target attribute rule.
[0156] In some embodiments, the processing module 703 is specifically configured to:
[0157] Synthesize the plurality of target prop NFTs to obtain a synthesized target prop NFT and eliminate the target prop NFT before the synthesis.
[0158] In some embodiments, the processing module 703 is specifically configured to:
[0159] The synthesis rule includes any one or more of the following:
[0160] a synthesis quantity rule, a synthesis type rule, and a synthesis level rule.
[0161] In some embodiments, the synthesis instruction is generated by the virtual character; the processing module 703 is specifically configured to:
[0162] In response to the synthesis instruction for the plurality of target prop NFTs, it is verified through signature verification whether the target prop NFTs belong to the virtual character in the game scene, and if so, the plurality of target prop NFTs are synthesized to obtain a target prop NFT synthesis result.
[0163] The game virtual prop data processing apparatus provided by the embodiments of the present disclosure has the same technical features as the game virtual prop data processing method provided by the above embodiments, can solve the same technical problems, and achieve the same technical effects. Since each virtual prop has a corresponding NFT, and each prop NFT carries a smart contract, when the virtual character obtains a target prop in the game, the target smart contract corresponding to the target prop NFT can be determined, and the target attribute rule corresponding to the target prop NFT is determined through the target smart contract, such as the value rule, the issuance rule, and the synthesis rule of the virtual prop, and the like. Then, based on the above rules, the target prop NFT can be processed after the player issues a processing instruction, and a target prop NFT processing result is obtained, so that the player can perform operations such as synthesis and upgrading on the virtual prop in the game, establish a connection between a plurality of virtual props, realize value conduction linkage, and improve the game experience of the player.
[0164] The game virtual prop data processing apparatus provided by the embodiments of the present disclosure can be specific hardware on a device or software or firmware installed on the device. The apparatus provided by the embodiments of the present disclosure has the same implementation principle and technical effects as the foregoing method embodiments. For brevity and conciseness, the apparatus embodiment part is not mentioned, and the corresponding content in the foregoing method embodiments can be referred to. Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the system, apparatus, and unit described above can be referred to the corresponding process in the foregoing method embodiments, which will not be described herein.
[0165] The embodiments of the present disclosure also provide an electronic device, which comprises a processor, a storage medium, and a bus. The storage medium stores machine-readable instructions executable by the processor. When the electronic device runs a game virtual prop data processing method as in an embodiment, the processor communicates with the storage medium through the bus. The processor executes the machine-readable instructions, and the processor method item performs the following steps:
[0166] determining a prop NFT corresponding to the virtual prop;
[0167] write the attribute rule of the virtual prop into the smart contract of the prop NFT to obtain a written smart contract;
[0168] generate the virtual prop corresponding to the prop NFT in the game scene based on the prop NFT carrying the written smart contract.
[0169] The specific embodiments and specific working processes can refer to the corresponding processes in the above method embodiments, which will not be described here.
[0170] In a feasible implementation, the attribute rule includes any one or more of the following:
[0171] The level rule, classification rule, issuance rule, acquisition rule, synthesis rule, upgrade rule, decomposition rule, use rule, and transaction rule of the virtual prop.
[0172] In a feasible implementation, when performing the step of writing the attribute rule of the virtual prop into the smart contract of the prop NFT to obtain a written smart contract, the processor is specifically configured to:
[0173] write the attribute rule of the virtual prop into the smart contract of the prop NFT and disclose the attribute rule to obtain a smart contract after the attribute rule is written.
[0174] In the above manner, first, the prop NFT corresponding to the virtual prop is determined, and before the prop NFT is issued, the attribute rule of the virtual prop is written into the smart contract, such as the value rule, issuance rule, and synthesis rule of the virtual prop, and the like, to obtain a smart contract after the attribute rule is written. Then, the virtual prop corresponding to the prop NFT can be generated in the game scene based on the prop NFT carrying the attribute rule smart contract, so that the player can acquire the virtual prop in the game, and the technical problem that the controllability of the virtual prop data by the player is low in the game is solved.
[0175] The embodiment of the disclosure provides another electronic device, which comprises a processor, a storage medium and a bus. The storage medium stores machine readable instructions executable by the processor. When the electronic device runs a game in which a virtual prop data processing method is executed, the processor communicates with the storage medium through the bus. The processor executes the machine readable instructions, and the processor executes the prelude of the method item to execute the following steps:
[0176] In response to a game event in which the virtual character acquires a target prop NFT, determine a target smart contract corresponding to the target prop NFT;
[0177] determine, by the target smart contract, a target attribute rule corresponding to the target prop NFT;
[0178] In response to a processing instruction for the target prop NFT, process the target prop NFT based on the target attribute rule to obtain a target prop NFT processing result.
[0179] The specific embodiments and specific working processes can refer to the corresponding processes in the above method embodiments, which will not be repeated here.
[0180] In one possible implementation, when performing the step of determining, by the target smart contract, a target attribute rule corresponding to the target prop NFT, the processor is specifically configured to:
[0181] determine, by calling a contract interface of the target smart contract, a target attribute rule corresponding to the target prop NFT.
[0182] In one possible implementation, when performing the step of, in response to a processing instruction for the target prop NFT, processing the target prop NFT based on the target attribute rule to obtain a target prop NFT processing result, the processor is specifically configured to:
[0183] In response to a synthesis instruction for a plurality of target prop NFTs, synthesize the plurality of target prop NFTs based on a synthesis rule in the target attribute rule to obtain a target prop NFT synthesis result.
[0184] In one possible implementation, when performing the step of, in response to a synthesis instruction for a plurality of target prop NFTs, synthesizing the plurality of target prop NFTs based on a synthesis rule in the target attribute rule to obtain a target prop NFT synthesis result, the processor is specifically configured to:
[0185] In response to a synthesis instruction for a plurality of target prop NFTs, if a synthesis request corresponding to the synthesis instruction meets a synthesis rule in the target attribute rule, synthesize the plurality of target prop NFTs to obtain a target prop NFT synthesis result.
[0186] In one possible implementation, the processor is further configured to:
[0187] In response to a synthesis instruction for a plurality of target prop NFTs, if a synthesis request corresponding to the synthesis instruction does not meet a synthesis rule in the target attribute rule, return a synthesis failure result.
[0188] In an implementable embodiment, when performing the step of synthesizing a plurality of the target prop NFTs to obtain a target prop NFT synthesis result, the processor is specifically configured to:
[0189] synthesizing a plurality of the target prop NFTs to obtain a synthesized target prop NFT, and eliminating the target prop NFT before synthesis.
[0190] In an implementable embodiment, the synthesis rule includes any one or more of the following:
[0191] a synthesis quantity rule, a synthesis type rule, and a synthesis level rule.
[0192] In an implementable embodiment, the synthesis instruction is generated by the virtual character; and when performing the step of, in response to a synthesis instruction for a plurality of the target prop NFTs, if a synthesis request corresponding to the synthesis instruction meets a synthesis rule in the target attribute rule, synthesizing a plurality of the target prop NFTs to obtain a target prop NFT synthesis result, the processor is specifically configured to:
[0193] In response to a synthesis instruction for a plurality of the target prop NFTs, verifying by signature whether the target prop NFT belongs to the virtual character in the game scene, and if it belongs to the virtual character, synthesizing a plurality of the target prop NFTs to obtain a target prop NFT synthesis result.
[0194] In the above manner, since each virtual prop has a corresponding NFT, and each prop NFT carries a smart contract, when a virtual character obtains a target prop in the game, the target smart contract corresponding to the target prop NFT can be determined, so that the target attribute rule corresponding to the target prop NFT, such as the value rule, the issuance rule, and the synthesis rule of the virtual prop, etc., can be determined through the target smart contract, and then the target prop NFT can be processed based on the above rules after the player issues a processing instruction, to obtain a target prop NFT processing result, so that the player can perform operations such as synthesis and upgrading on the virtual prop in the game, to establish a connection between a plurality of virtual props, realize value transmission linkage, and improve the game experience of the player.
[0195] Corresponding to the above data processing method of the virtual prop in the game, the embodiments of the present disclosure further provide a program product, for example, a computer readable storage medium, which stores computer executable instructions, wherein when the computer executable instructions are called and run by a processor, the computer executable instructions cause the processor to perform the following steps:
[0196] determining the prop NFT corresponding to the virtual prop;
[0197] write the attribute rule of the virtual prop into the smart contract of the prop NFT, to obtain a written smart contract;
[0198] generate the virtual prop corresponding to the prop NFT in the game scene based on the prop NFT carrying the written smart contract.
[0199] The specific embodiments and specific working processes can refer to the corresponding processes in the above method embodiments, which will not be described here.
[0200] In a feasible implementation, the attribute rule includes any one or more of the following:
[0201] The level rule, classification rule, issuance rule, acquisition rule, synthesis rule, upgrade rule, decomposition rule, use rule, and transaction rule of the virtual prop.
[0202] In a feasible implementation, when performing the step of writing the attribute rule of the virtual prop into the smart contract of the prop NFT, to obtain a written smart contract, the processor is specifically configured to:
[0203] write the attribute rule of the virtual prop into the smart contract of the prop NFT and disclose the attribute rule, to obtain a smart contract after the attribute rule is written.
[0204] In the above manner, first, the prop NFT corresponding to the virtual prop is determined, and before the prop NFT is issued, the attribute rule of the virtual prop is written into the smart contract, such as the value rule, issuance rule, and synthesis rule of the virtual prop, to obtain a smart contract after the attribute rule is written. Then, the virtual prop corresponding to the prop NFT can be generated in the game scene based on the prop NFT carrying the attribute rule smart contract, so that the player can acquire the virtual prop in the game, and the technical problem that the controllability of the virtual prop data by the player is low in the game is solved.
[0205] Corresponding to the above data processing method of the virtual prop in the game, the embodiment of the disclosure also provides another program product, for example, a computer readable storage medium, which stores computer executable instructions. When the processor calls and runs the computer executable instructions, the computer executable instructions cause the processor to execute the following steps:
[0206] In response to the game event that the virtual character acquires the target prop NFT, determine the target smart contract corresponding to the target prop NFT;
[0207] determine, by the target smart contract, a target attribute rule corresponding to the target prop NFT;
[0208] In response to a processing instruction for the target prop NFT, process the target prop NFT based on the target attribute rule to obtain a target prop NFT processing result.
[0209] The specific embodiments and specific working processes can refer to the corresponding processes in the above method embodiments, which will not be described here.
[0210] In one possible implementation, when performing the step of determining, by the target smart contract, a target attribute rule corresponding to the target prop NFT, the processor is specifically configured to:
[0211] Determine the target attribute rule corresponding to the target prop NFT by calling a contract interface of the target smart contract.
[0212] In one possible implementation, when performing the step of responding to a processing instruction for the target prop NFT, processing the target prop NFT based on the target attribute rule to obtain a target prop NFT processing result, the processor is specifically configured to:
[0213] In response to a synthesis instruction for a plurality of target prop NFTs, synthesize the plurality of target prop NFTs based on a synthesis rule in the target attribute rule to obtain a target prop NFT synthesis result.
[0214] In one possible implementation, when performing the step of responding to a synthesis instruction for a plurality of target prop NFTs, synthesizing the plurality of target prop NFTs based on a synthesis rule in the target attribute rule to obtain a target prop NFT synthesis result, the processor is specifically configured to:
[0215] In response to a synthesis instruction for a plurality of target prop NFTs, if a synthesis request corresponding to the synthesis instruction meets a synthesis rule in the target attribute rule, synthesize the plurality of target prop NFTs to obtain a target prop NFT synthesis result.
[0216] In one possible implementation, the processor is further configured to:
[0217] In response to a synthesis instruction for a plurality of target prop NFTs, if a synthesis request corresponding to the synthesis instruction does not meet a synthesis rule in the target attribute rule, return a synthesis failure result.
[0218] In an implementable embodiment, when the processor executes the step of synthesizing a plurality of the target prop NFTs to obtain a target prop NFT synthesis result, it is specifically used for:
[0219] Synthesizing a plurality of the target prop NFTs to obtain a synthesized target prop NFT and eliminating the target prop NFT before synthesis.
[0220] In an implementable embodiment, the synthesis rule includes any one or more of the following:
[0221] The synthesis quantity rule, the synthesis type rule, and the synthesis level rule.
[0222] In an implementable embodiment, the synthesis instruction is generated by the virtual character; when the processor executes the step of responding to the synthesis instruction for a plurality of the target prop NFTs, if the synthesis request corresponding to the synthesis instruction meets the synthesis rule in the target attribute rule, synthesizing a plurality of the target prop NFTs to obtain a target prop NFT synthesis result, it is specifically used for:
[0223] In response to the synthesis instruction for a plurality of the target prop NFTs, verifying by signature whether the target prop NFT belongs to the virtual character in the game scene, if it belongs to the virtual character, synthesizing a plurality of the target prop NFTs to obtain a target prop NFT synthesis result.
[0224] In the above manner, since each virtual prop has a corresponding NFT, and each prop NFT carries a smart contract, when the virtual character obtains the target prop in the game, the target smart contract corresponding to the target prop NFT can be determined, so as to determine the target attribute rule corresponding to the target prop NFT through the target smart contract, such as the value rule, the issuance rule, and the synthesis rule of the virtual prop, and the like, and then the target prop NFT can be processed based on the above rules after the player issues a processing instruction, to obtain a target prop NFT processing result, so that the player can perform operations such as synthesis and upgrading on the virtual prop in the game, to establish a connection between a plurality of virtual props, realize value conduction linkage, and improve the game experience of the player.
[0225] In the embodiments of the present disclosure, it should be understood that the disclosed apparatus and method can be implemented in other manners. The embodiments described above are merely exemplary, for example, the division of the units is only a logical function division, and there can be another division manner in actual implementation; for example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the displayed or discussed mutual couplings or direct couplings or communication connections can be indirect couplings or communication connections through some interfaces, devices or units, and can be in electrical, mechanical or other forms.
[0226] For another example, the flowcharts and block diagrams in the drawings show the possible implementation architectures, functions and operations of the apparatus, method and computer program product according to the embodiments of the present disclosure. In this regard, each block in the flowcharts or block diagrams can represent a module, a program segment or a part of code, which contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions noted in the blocks can occur in different orders from that shown in the drawings. For example, two consecutive blocks can actually be executed substantially in parallel, and sometimes they can be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and the combination of blocks in the block diagrams and / or flowcharts, can be implemented by a dedicated hardware-based system for performing the specified functions or actions, or can be implemented by a combination of dedicated hardware and computer instructions.
[0227] The units described as separate components can or can not be physically separate, and the components shown as units can or can not be physical units, i.e. they can be located in one place or distributed on multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the present embodiment.
[0228] In addition, each functional unit in the embodiments provided by the present disclosure can be integrated into one processing unit, or each unit can exist physically as a separate unit, or two or more units can be integrated into one unit.
[0229] If the functions are implemented in the form of software function units and sold or used as independent products, they can be stored in a computer readable storage medium. Based on this understanding, the technical solutions of the present disclosure can be embodied in the form of a software product, which is stored in a storage medium and includes a number of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the data processing method of the virtual prop in the game described in various embodiments of the present disclosure. The aforementioned storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and various program code storage media.
[0230] It should be noted that: similar reference numbers and letters represent similar items in the following drawings, therefore, once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings, in addition, the terms "first", "second", "third" and the like are only used to distinguish the description, and cannot be understood as indicating or implying relative importance.
[0231] Finally, it should be noted that: the above-described embodiments are only specific embodiments of the present disclosure, used to illustrate the technical solutions of the present disclosure, and not to limit them, the protection scope of the present disclosure is not limited thereto, although the present disclosure has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand: any person skilled in the art who is familiar with the technical field of the present disclosure can still modify or easily think of changes to the technical solutions recorded in the foregoing embodiments, or make equivalent replacements to some technical features; and these modifications, changes or replacements do not make the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present disclosure. All should be covered within the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be subject to the protection scope of the claims.
Claims
1. A data processing method of a virtual prop in a game, characterized by, The game scene of the game corresponds to a virtual prop to be generated; The data processing method of the virtual prop in the game includes: Determine the prop NFT corresponding to the virtual prop; Write the attribute rules of the virtual prop into the smart contract of the prop NFT to obtain the written smart contract; Based on the prop NFT with the written smart contract, generate the virtual prop corresponding to the prop NFT in the game scene; In response to a synthesis instruction for multiple prop NFTs, perform ownership judgment and signature verification on multiple prop NFTs, verify through signature whether the target prop NFT belongs to the virtual character controlled by the terminal device in the game scene, and whether the synthesis initiator corresponding to the synthesis instruction is the virtual character, if the target prop NFT belongs to the virtual character and the synthesis initiator is the virtual character, based on the synthesis rule in the target attribute rule, multiple target prop NFTs are synthesized to obtain a target prop NFT synthesis result.
2. The method of claim 1, wherein, The attribute rules include any one or more of the following: The level rule, classification rule, issuance rule, acquisition rule, synthesis rule, upgrade rule, decomposition rule, use rule, and transaction rule of the virtual prop.
3. The method of claim 1, wherein, The attribute rules of the virtual prop are written into the smart contract of the prop NFT to obtain the written smart contract, including: Write the attribute rules of the virtual prop into the smart contract of the prop NFT and make the attribute rules public to obtain the smart contract after writing the attribute rules.
4. A data processing method of a virtual prop in a game, characterized by, The game scene of the game includes the virtual prop and the virtual character controlled by the terminal device, each virtual prop is represented by a prop NFT, each prop NFT corresponds to a smart contract, and the smart contract includes the attribute rules of the virtual prop; the data processing method of the virtual prop in the game includes: In response to a game event in which the virtual character acquires a target prop NFT, determine the target smart contract corresponding to the target prop NFT; Determine the target attribute rule corresponding to the target prop NFT through the target smart contract; In response to a synthesis instruction for multiple target prop NFTs, perform ownership judgment and signature verification on multiple target prop NFTs, verify through signature whether the target prop NFT belongs to the virtual character in the game scene, and whether the synthesis initiator corresponding to the synthesis instruction is the virtual character, if the target prop NFT belongs to the virtual character and the synthesis initiator is the virtual character, based on the synthesis rule in the target attribute rule, multiple target prop NFTs are synthesized to obtain a target prop NFT synthesis result.
5. The method of claim 4, wherein, Determine the target attribute rule corresponding to the target prop NFT through the target smart contract, including: Determine the target attribute rule corresponding to the target prop NFT by calling the contract interface of the target smart contract.
6. The method of claim 4, wherein, The response to the synthesis instruction for the plurality of target prop NFTs is based on the synthesis rule in the target attribute rule to synthesize the plurality of target prop NFTs to obtain a target prop NFT synthesis result, including: In response to the synthesis instruction for the plurality of target prop NFTs, if the synthesis request corresponding to the synthesis instruction meets the synthesis rule in the target attribute rule, the plurality of target prop NFTs are synthesized to obtain a target prop NFT synthesis result.
7. The method of claim 6, wherein, Also includes: In response to the synthesis instruction for the plurality of target prop NFTs, if the synthesis request corresponding to the synthesis instruction does not meet the synthesis rule in the target attribute rule, a synthesis failure result is returned.
8. The method of claim 6, wherein, The plurality of target prop NFTs are synthesized to obtain a target prop NFT synthesis result, including: Synthesizing the plurality of target prop NFTs to obtain a synthesized target prop NFT and eliminating the target prop NFT before synthesis.
9. The method of claim 6, wherein, The synthesis rule includes any one or more of the following: Synthesis quantity rule, synthesis type rule, synthesis level rule.
10. A data processing apparatus of a virtual item in a game, characterized by, The game scene of the game corresponds to a virtual prop to be generated; The data processing apparatus of the virtual prop in the game includes: A determination module for determining the prop NFT corresponding to the virtual prop; A writing module for writing the attribute rule of the virtual prop into the smart contract of the prop NFT to obtain a written smart contract; A generation module for generating the virtual prop corresponding to the prop NFT in the game scene based on the prop NFT with the written smart contract; The device further includes a processing module, specifically configured to: in response to a synthesis instruction for a plurality of target prop NFTs, perform ownership judgment and signature verification on the plurality of target prop NFTs, and verify through signature verification whether the target prop NFT belongs to a virtual character controlled through a terminal device in a game scene, and whether the synthesis initiator corresponding to the synthesis instruction is the virtual character, if the target prop NFT belongs to the virtual character and the synthesis initiator is the virtual character, then based on the synthesis rule in the target attribute rule, the plurality of target prop NFTs are synthesized to obtain a target prop NFT synthesis result.
11. A data processing apparatus of a virtual item in a game, characterized by, The game scene of the game includes the virtual prop and a virtual character controlled through a terminal device, each of the virtual props is represented by a prop NFT, and each of the prop NFTs corresponds to a smart contract, and the smart contract includes attribute rules of the virtual prop; The data processing apparatus of the virtual prop in the game includes: A first determination module for determining a target smart contract corresponding to a target prop NFT in response to a game event in which the virtual character acquires the target prop NFT; A second determination module for determining a target attribute rule corresponding to the target prop NFT through the target smart contract; A processing module for processing the target prop NFT based on the target attribute rule in response to a processing instruction for the target prop NFT to obtain a target prop NFT processing result; The processing module is specifically configured to: in response to a synthesis instruction for a plurality of target prop NFTs, perform ownership judgment and signature verification on the plurality of target prop NFTs, verify, through the signature verification, whether the target prop NFTs belong to the virtual character in a game scene, and whether a synthesis initiator corresponding to the synthesis instruction is the virtual character, and if the target prop NFTs belong to the virtual character and the synthesis initiator is the virtual character, perform synthesis on the plurality of target prop NFTs based on a synthesis rule in a target attribute rule to obtain a target prop NFT synthesis result.
12. An electronic device comprising a memory, a processor, the memory having stored therein a computer program executable on the processor, characterized in that, The processor executes the computer program to implement the steps of the method of any one of claims 1 to 9.
13. A computer-readable storage medium, characterized in that, The computer readable storage medium stores computer executable instructions, and when the computer executable instructions are called and executed by the processor, the computer executable instructions cause the processor to execute the method of any one of claims 1 to 9.
Citation Information
Patent Citations
A method for transferring game equipment, computer equipment
CN114307164A
Processing method and device of block chain game equipment
CN114377401A