Primodium创始人:解析游戏资源管理与未来的金融化策略

币圈资讯 阅读:37 2024-04-22 10:58:53 评论:0
美化布局示例

欧易(OKX)最新版本

【遇到注册下载问题请加文章最下面的客服微信】永久享受返佣20%手续费!

APP下载   全球官网 大陆官网

币安(Binance)最新版本

币安交易所app【遇到注册下载问题请加文章最下面的客服微信】永久享受返佣20%手续费!

APP下载   官网地址

火币HTX最新版本

火币老牌交易所【遇到注册下载问题请加文章最下面的客服微信】永久享受返佣20%手续费!

APP下载   官网地址

译者序:“本文编译自Primodium两位创始人的推特长文,系统介绍了Primodium团队在开发游戏过程中如何降低gas消耗、存储玩家游戏中的资源。以及为什么金融化对全链游戏同样不可或缺。”

01.Primodium是如何进行Lazy Update的

作者:Emerson Hsieh

原文链接:https://twitter.com/intemerson/status/1740787479203004559

一个全链上的游戏必然会消耗大量的gas,因此我们必须找到方法以减少玩家签署交易的数量。引入lazy update后,我们只在玩家执行操作时计算所需的游戏资源。

在 Primodium 的第一个版本中,玩家必须先在节点旁边放置矿机,然后才能放置传送带将资源运输到主基地。

当玩家从他们的主基地申领资源时,我们必须弄清楚以下问题:

  1. 如何跟踪每个玩家所拥有的矿机;

  2. 让这些矿机连接到正确的加工厂;

我们的首个方案是在玩家提取资源时,从其主基地出发进行深度优先搜索。玩家可以在每个块旁边最多放置四个矿机。

当我们引入从矿机获取资源的工厂时,玩家开始构建更复杂的结构以优化资源产出。例如,玩家@CincauHangus就创造了下面这样的工厂设计:

在@AlirezaN95加入了我们团队后,他对我们基于MUD开发的资源组件进行了重设计。在 v0.6.0 版本中,我们为每个玩家提供了一个全局资源生产速率,每当在资源上建造一个矿机,该生产率就会增加。

这使得更新变得原子化,玩家每执行一次操作,我们都可以通过其生产率快速计算资源总量。而当他们建造工厂并消耗资源生产物品时,便会从全局生产率中简单地扣除消耗资源的部分。

在后续的版本中,我们发现玩家在建造矿机后的参与度有所下降,这可能是因为矿物传送带的建设机制让一些玩家感到困惑。

通过设定全局资源生产率,我们可以完全去除矿物传送带和传送节点,从而实现今天Primodium中更复杂的游戏玩法。

在我们的最新版本中,我们重新设计了在智能合约中存储并计算资源生产率的方式,为即将推出的激动人心的新功能奠定了基础。

02.Primodium如何储存玩家资源

作者:Emerson Hsieh

原文链接:https://twitter.com/intemerson/status/1742214023809306953

在 Primodium 中,你将出生在一个资源丰富的小行星上。通过建造矿机采集资源,并用这些资源来强化建筑、训练军队并攻击其他玩家。

上图可见Miner和可挖掘资源

在使用 Lattice 的 MUD V1 版引擎构建的 Primodium 最初版本中,所有智能合约都围绕实体组件系统(ECS)架构开发。

一开始,我为每一种资源设计了一个独立的新合约。这种做法使得客户端可以单独追踪每种资源的数量,但随着游戏复杂性的提高,他产生了难以处理的开销。

例如,Primodium v0.0(十一个版本前!)中,仅存储玩家物品就需要63个合约。@l_udens提出了一个有效的解决方案:使用资源名和玩家地址的哈希值作为一个统一的组件键,以将所有内容简化为一个组件。

在接下来的几个月中,我们不断地增加游戏的内容与复杂性。更多的资源物品丰富了玩家的体验,进而提高了玩家的留存率。

下图展示了在当前测试版本的Primodium中,一位热情的玩家建造的复杂基地!

我们还将游戏引擎升级到了 MUD V2 版本,这意味着我们必须重构我们资源的合约架构。

@0xhank 重新设计了合约,使用了以实体(entity)和资源(resource)作为key schema的表,避免了额外的哈希计算步骤。

玩家在建造工厂或矿机时,相关资源的生产率会增加。例如,建造铁矿可以提高铁的生产率。同样,建造使用铁的工厂(比如铁板工厂)则会增加铁的消耗率。

通过 @AlirezaN95 构建的store hooks系统,游戏能够实时更新生产率和消耗率,进而改变玩家的资源数量。玩家每次行动时,资源计数都会更新。

在玩家执行交易前,客户端会提前在@0xNAB5设计的面板上显示预测的资源数值。在Primodium的未来版本中,我们计划进行更深入的技术探索,并开放我们的合约以方便社区探索新的游戏玩法。

03.为什么金融化对全链游戏同样不可或缺

作者:Tax cuts

原文链接:https://twitter.com/tax_cuts/status/1740453166875877768

由于Play to Earn游戏过去带来了太多灾难性的后果,开发者们纷纷转向全链游戏,寻求以不同的方式将Crypto融入游戏之中。对全链游戏的主要观点是其增加了游戏的可组合性(Composability)和永久性(Permanence),而金融化的部分往往被强烈抵制。

但我认为金融化仍然非常重要:

金融化是加密货币作为底层架构存在的根本原因。想象一下,如果我在我的个人电脑上运行比特币协议,他可以显示你有1 BTC,我有5 BTC,没有人会赋予缺乏去中心化共识的比特币真实价值。因为我可以随便篡改后台数据,说我其实有50个BTC。

可见,在中心化服务器上运行比特币协议依赖于对中心化服务器的信任。而在crypto的世界里,去中心化共识让谁持有1 BTC这件事需要通过一定数量节点的验证,从某种角度来说,去中心化构成了赋予加密货币现实价值的基础。在去中心化共识的保护下,人们愿意赋予加密货币价值。

而至于这个价值究竟是1美元还是4万美元,这并不是我们今天讨论的重点。关键在于,区块空间的限制和去中心化共识使得被记录在链上的事物具有了稀缺性,这种稀缺性赋予了其真正的价值。这在其他行业是闻所未闻的,他们无法凭空创造出真正有价值的事物。

你可能会说,在没有加密货币的游戏中,游戏公司也能创造出价值十亿美元的物品。是的,但这些公司拥有着玩家多年的信任所凝聚成的共识。而对于创业公司来说,实现这一点将更加艰难。这与美元法币与加密货币获得价值的方式是类似的。

对于全链上游戏来说,想象一下,如果不仅仅是部分资产,而是整个游戏都被放在链上 —— 那么每一件物品、每一个单位、决策、建筑都会获得真正的价值,因为他们都是去中心化共识守护下的稀缺资源。

而提供这样的稀缺资源正是primodium的诸多目标之一。基于这种价值赋予过程,你可以建立真正的经济体,这是一件令人兴奋的事(我将会在另一个thread中解释为什么 web2.5 游戏行不通,其中的主要原因是他们需要面对非常多的监管和合规问题。)

你可能会反驳:但是 tax cuts先生,金融化意味着每个人都试图从系统中提取利益并赚钱,所以这个系统终将崩溃!

但我的观点是,在BTC 挖矿的过程中,每一个参与者也都在努力赚钱,只要这个系统拥有外部价值,他就能持续下去。而显而易见的是,维持下去的关键在于平衡,所以这个游戏会提供足够趣味性,以保证他对于大多数人来说是能达到期望值的。

Primodium V0.9 中推出的游戏内资源交易市场正是朝着这个方向迈出的一步,但我们未来要做的工作还有很多很多。


This article is compiled from the Twitter long text system of the two founders, and introduces how the team can reduce the consumption of the resources in the game and why financialization is also indispensable for the full-chain game. The author's original text linking a full-chain game will inevitably consume a lot of money, so we must find ways to reduce the number of transactions signed by players. After the introduction, we only calculate the required game resources when the players perform operations. In the first version, the players. Mining machines must be placed next to nodes before conveyor belts can be placed to transport resources to the main base. When players apply for resources from their main base, we must figure out the following questions: How to track the mining machines owned by each player and connect these mining machines to the correct processing plants? Our first plan is to conduct depth-first search from their main base when players extract resources. Players can place up to four mining machines next to each block. When we introduce factories that obtain resources from mining machines, players can. Began to build a more complex structure to optimize the output of resources. For example, the player created the following factory design. After joining our team, he redesigned our development-based resource components. In the version, we provided a global resource production rate for each player. Every time a mining machine is built on the resource, the productivity will increase, which makes the update atomized. Every time the player performs an operation, we can quickly calculate the total amount of resources through its productivity, and when they are builders, When a factory consumes resources to produce goods, it will simply deduct the part that consumes resources from the global productivity. In the subsequent version, we found that the participation of players decreased after the mining machine was built. This may be because the construction mechanism of mineral conveyor belt puzzled some players. By setting the global resource productivity, we can completely remove the mineral conveyor belt and transmission nodes, so as to realize the more complicated gameplay in today's game. In our latest version, we redesigned it and stored it in the smart contract. The way to store and calculate the productivity of resources lays the foundation for the exciting new functions to be launched soon. How to store player resources? The author links in the original text. You will be born on a resource-rich asteroid. By building a mining machine, you will collect resources and use these resources to strengthen the building, train the army and attack other players. In the initial version of the engine, all intelligent contracts were developed around the physical component system architecture. At the beginning, I designed for each resource. An independent new contract is made, which enables the client to track the quantity of each resource separately. However, with the increase of the complexity of the game, it has caused intractable expenses. For example, eleven versions ago, only players' items were stored, and a contract was needed. An effective solution was put forward, using the hash value of resource name and player address as a unified component key to simplify all the contents into one component. In the next few months, we continued to increase the content and complexity of the game. The following figure shows the complex base built by an enthusiastic player in the current beta version. We also upgraded the game engine to the version, which means that we have to reconstruct the contract structure of our resources, redesign the contract, use the table based on entities and resources, and avoid the extra hash calculation steps. The productivity of related resources will increase when players build factories or mining machines, for example, building iron mines can improve iron. Productivity is the same. Building a factory that uses iron, such as an iron plate factory, will increase the iron consumption rate. By building a system game, the productivity and consumption rate can be updated in real time, thus changing the player's resource quantity. Every time the player acts, the resource count will be updated. Before the player executes the transaction, the client will display the predicted resource value on the designed panel in advance. In the future version, we plan to conduct more in-depth technical exploration and open our contract to facilitate the community to explore new gameplay. Why? Financialization is also indispensable for full-chain games. Because the game has brought too many disastrous consequences in the past, developers have turned to full-chain games to seek different ways to integrate them into the game. The main point of view of full-chain games is that they increase the composability and permanence of the game, and the financialization part is often strongly resisted, but I think financialization is still very important. Financialization is the fundamental reason why cryptocurrency exists as the underlying architecture. Imagine if I were in my personal computer. Running the bitcoin protocol in your head can show whether you have me or not, because I can tamper with the background data at will and say that I actually have a decentralized consensus that running the bitcoin protocol on the centralized server depends on the trust in the centralized server. Who should hold this matter needs to be verified by a certain number of nodes. From a certain point of view, decentralization constitutes the basis for giving the encrypted currency real value. Under the protection of the centralized consensus, people are willing to give cryptocurrency value, and whether this value is USD or USD 10,000 is not the focus of our discussion today. The key lies in the limitation of block space and decentralization consensus, which makes things recorded in the chain scarce, and this scarcity gives it real value, which is unheard of in other industries. They can't create really valuable things out of thin air. You may say that game companies can create them even in games without cryptocurrency. It is true to create items worth billions of dollars, but these companies have the consensus formed by players' trust for many years, and it will be more difficult for startups to achieve this, which is similar to the way that US dollar fiat and cryptocurrency gain value. For the whole chain game, imagine that if not only some assets but the whole game is put on the chain, then every item, every unit and decision-making building will gain real value because they are all under the protection of decentralized consensus. It is an exciting thing that you can build a real economy based on this value-giving process. I will explain why the game doesn't work in another book. The main reason is that they have to face a lot of regulatory and compliance problems. You may refute it, but sir, financialization means that everyone tries to extract benefits from the system and make money, so the system will eventually collapse, but my point is that every participant is also trying to make money in the process of mining. As long as the system has external value, it will continue to be obvious. 比特币今日价格行情网_okx交易所app_永续合约_比特币怎么买卖交易_虚拟币交易所平台

文字格式和图片示例

注册有任何问题请添加 微信:MVIP619 拉你进入群

弹窗与图片大小一致 文章转载注明 网址:https://netpsp.com/?id=61764

美化布局示例

欧易(OKX)最新版本

【遇到注册下载问题请加文章最下面的客服微信】永久享受返佣20%手续费!

APP下载   全球官网 大陆官网

币安(Binance)最新版本

币安交易所app【遇到注册下载问题请加文章最下面的客服微信】永久享受返佣20%手续费!

APP下载   官网地址

火币HTX最新版本

火币老牌交易所【遇到注册下载问题请加文章最下面的客服微信】永久享受返佣20%手续费!

APP下载   官网地址
可以去百度分享获取分享代码输入这里。
声明

1.本站遵循行业规范,任何转载的稿件都会明确标注作者和来源;2.本站的原创文章,请转载时务必注明文章作者和来源,不尊重原创的行为我们将追究责任;3.作者投稿可能会经我们编辑修改或补充。

发表评论
平台列表
美化布局示例

欧易(OKX)

  全球官网 大陆官网

币安(Binance)

  官网

火币(HTX)

  官网

Gate.io

  官网

Bitget

  官网

deepcoin

  官网
关注我们

若遇到问题,加微信客服---清歌

搜索
排行榜
扫一扫,加我为微信好友加我为微信好友