FreeKill icon indicating copy to clipboard operation
FreeKill copied to clipboard

破坏性更新与注意事项

Open Notify-ctrl opened this issue 1 year ago • 3 comments

本issue用于记载更新过程中会破坏拓展兼容性的更新,供拓展主们参考。更新的节点有可能是出现某个tag,也有可能是freekill-core仓库里面的某条commit。目前的稳定版本是v0.4.19

Notify-ctrl avatar Oct 24 '24 07:10 Notify-ctrl

v0.4.21

  • Room:askForRespond函数的bug被修复,cancelable参数已可正常控制取消键亮灭。拓展中可能不少调用了该函数的地方传参了cancelable = false,请注意查验。
  • 客户端手牌可见性被大幅度改动。受到影响的有:
    • Room:prepareDrawPile添加了参数seed,因此不要再用这个函数了,用GameLogic:prepareDrawPile()
    • Player的role_shown属性需要被客户端知道。为此,在player.role_shown = xxx的地方都要改成room:setPlayerProperty(player, "role_shown", xxx)。可以用正则表达式将(\w+).role_shown = (.+)替换为room:setPlayerProperty($1, "role_shown", $2),注意room是否为nil。
    • Player的role属性是公开信息,在客户端由role_shown控制。因此请使用room:broadcastProperty(p, "role")或者setPlayerProperty等
  • 现在所有的私人pile都是公开的。如果需要暗置pile的话,那么pile的名字需要以'$'符号开头。如果需要暗置pile中混合有明置牌(或者反之),请使用fk.CreateVisibilitySkill创建状态技管理。
  • 通过GetGeneralDetail不再直接获得武将的related_skill,全部放入skill,依靠参数is_related_skill区分。

Notify-ctrl avatar Oct 24 '24 15:10 Notify-ctrl

qsgs-fans/freekill-core@e3fe1aa629584ec61713946fe1dece5ede45031f

Room:doRequest系列函数宣告废弃并即将删除。请拓展主将这些函数用新的写法重新实现一下:https://github.com/Qsgs-Fans/FreeKill/discussions/409

Notify-ctrl avatar Oct 26 '24 20:10 Notify-ctrl

https://github.com/Qsgs-Fans/freekill-core/commit/465f6b7aa5109dc72aaaeb1e969ccc4b5f09dca6

Room:getNCards函数依然是从牌堆中拿牌,但不再从牌堆删除,请注意

Notify-ctrl avatar Dec 10 '24 07:12 Notify-ctrl

https://fkbook-all-in-one.readthedocs.io/zh-cn/latest/about/changelog.html 已搬家

Notify-ctrl avatar Aug 22 '25 09:08 Notify-ctrl