MCPcopy Index your code
hub / github.com/eigeen/more-auto-shoutouts

github.com/eigeen/more-auto-shoutouts @v0.2.3

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.2.3 ↗ · + Follow
161 symbols 253 edges 24 files 17 documented · 11% updated 21mo agov0.2.0 · 2024-04-10★ 885 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Monster Hunter: World - More Auto Shoutouts Plugin

MHW 更多定型文mod

目录

安装和使用时出现问题?查看 >常见问题<

版本更新内容不明白?查看 >更新日志<

支持功能

盾斧的部分动作出现复用,可能导致误判断。后续更新会有解决方案,例如延迟触发等。

当前支持

通用配置

  • 动作
  • 任务状态
  • 使用道具/衣装
  • 伤害统计

通用配置与武器无关,所有武器均支持检测动作。

某些武器有特殊状态,例如太刀、斩斧等,才会支持专有触发器。例如片手是否红jr等都可以通过动作判断。

武器专有

  • 太刀:开刃等级
  • 虫棍:红白黄三灯时间
  • 盾斧:
    • 红盾时间
    • 红剑时间
    • 电锯时间
    • 瓶子数量
    • 剑能量(瓶子外框)

游戏内命令

  • !mas reload 重新加载配置文件(若加载失败不会覆盖当前已经加载的配置)
  • !mas enable 启用插件(插件加载时默认启用)
  • !mas disable 禁用插件

计划功能

更多计划功能请查看 >里程碑<

配置文件

配置文件在使用时放置于 <游戏根目录>/nativePC/plugins/mas-config.toml

配置文件使用时出现问题?查看 >常见问题<

结构

参考 示例文件,在此基础上修改

如果能够阅读源码,推荐阅读 configs.rs

编译

  1. 拉取工具库 https://github.com/eigeen/mhw-toolkit
  2. 在同一目录下,拉取本仓库内容
  3. 拉取MHW前置(本人fork版本内含一个FFI静态库,用于该插件发送日志) https://github.com/eigeen/MHW-QuestLoader,编译并获取 loader.libLoaderFFI.lib 两个静态库
  4. 将静态库放在 more-auto-shoutouts/lib 目录内
  5. 确保当前工作目录包含 mhw-toolkitmore-auto-shoutouts
  6. more-auto-shoutouts 目录内运行 cargo build --release --features use_logger,hooks

如果你不需要log功能,则可以忽略 3-4 步,并使用 cargo build --release 编译。

Features

  • use_logger 启用log功能:将会静态链接到 stracker's loader 的日志输出模块
  • hooks 启用钩子功能:启用MinHook钩子事件监听,额外增加一些可选配置项
  • 钩子功能提供攻击伤害获取,订阅怪物创建和销毁事件

Extension points exported contracts — how you extend this code

AsTriggerCondition (Interface)
(no doc) [7 implementers]
src/triggers.rs
AsAction (Interface)
(no doc) [1 implementers]
src/actions.rs
AsCheckCondition (Interface)
(no doc) [5 implementers]
src/triggers.rs
AsTrigger (Interface)
(no doc) [1 implementers]
src/triggers.rs

Core symbols most depended-on inside this repo

compare_cfg_ctx_f32
called by 4
src/conditions/charge_blade.rs
load_config
called by 3
src/configs.rs
execute
called by 3
src/triggers.rs
event_type
called by 3
src/triggers.rs
on_event
called by 3
src/triggers.rs
compare_cfg_ctx
called by 3
src/conditions/insect_glaive.rs
load_triggers
called by 2
src/handlers.rs
collect_one
called by 2
src/game.rs

Shape

Method 74
Function 45
Class 29
Enum 9
Interface 4

Languages

Rust100%

Modules by API surface

src/triggers.rs33 symbols
src/game.rs21 symbols
src/configs.rs21 symbols
src/game_context.rs11 symbols
src/conditions/charge_blade.rs8 symbols
src/logger.rs7 symbols
src/handlers.rs7 symbols
src/actions.rs6 symbols
src/lib.rs5 symbols
src/conditions/weapon_id.rs5 symbols
src/conditions/quest_state.rs5 symbols
src/conditions/longsword.rs5 symbols

For agents

$ claude mcp add more-auto-shoutouts \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page