Skip to content

Latest commit

 

History

17 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeonHelper

LeonHelper 是一组用于《植物大战僵尸》的 AVZ/C++ TAS 辅助头文件,也提供可直接启动的完整 UI 版本。

使用

将仓库或 Release 完整解压到 AVZ 脚本工作区的 LeonHelper 目录。使用完整 UI 时运行 Start-LeonHelper.cmd;启动器会先检查更新,再从 app/ 注入 LeonHelper。

在自己的脚本中使用头文件时:

#include "LeonHelper/myTasUI.h"

void AScript()
{
    lh::tasUi();
}

环境要求:

  • AVZ 2026_05_01
  • C++23
  • PvZ 1.0.0.1051
  • AVZ Extension:vector/AsmInsertCode、vector/win32gui、Leonhardqwq/line_up、Reisen/mod

目录

  • myPT.h、myTas.h、myTasUI.h、myTest.h、mySetPlace.h:公开头文件,保留在根目录以兼容现有 include。
  • app/:注入器、AVZ 脚本模块、更新器和压缩工具,请勿手动修改。
  • replay/:发布版默认录像目录,不受自动更新管理。
  • docs/:更新日志和许可证。
  • .github/:构建与自动发布文件,不进入面向用户的 Release 包。

直接使用头文件时,默认录像目录仍为 D:\AAA_LH_SL;发布版使用根目录的 replay/。两种模式都从 app/ 读取 7z.exe 和 7z.dll。

LeonHelper 按 AVZ 的单脚本模型设计:请在一个翻译单元中使用,不要将同一头文件同时编入多个翻译单元后再链接。

发布

  1. 更新 myTasUI.h 中的 LEON_HELPER_VERSION 和 docs/CHANGELOG.md。
  2. 编译 .github/scripts/LeonHelperScript.cpp,将生成的 libavz.dll 复制到 app/libavz.dll。
  3. 仅当注入器源码或编译参数有改动,或 app/LeonHelper.exe 缺失、损坏时,运行 .github/scripts/Build-LeonHelper.cmd 重新生成注入器;常规版本发布无需执行此步。
  4. 在 main 分支创建并推送最后一个提交:
git commit -m "release 202607311827"
git push origin main

提交中的十二位版本必须与 LEON_HELPER_VERSION 一致。GitHub Actions 会自动生成 LeonHelper.zip、manifest.sha256 和同版本 GitHub Release。

构建注入器时可通过参数指定 AVZ 目录;省略时会读取相邻 AVZ 工作区的 .vscode/settings.json:

.github\scripts\Build-LeonHelper.cmd "D:\path\to\AsmVsZombies"

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages