柯波蒙(Cobblemon)的 RUN AND BUN AI!
新版本已发布!附加包更新 0.16:
极巨化更新!以及兼容 1.8 版 Cobblemon
请查看变更日志以获取所有详细信息
重要公告!
对于 0.15 及之后的所有版本,本模组现在作为 Radical Cobblemon Trainers API 的附加包。最初,它是该模组的替代品,但在新的 0.15 版本中,情况发生了变化。现在本模组依赖于 Radical Cobblemon Trainers API 才能运行,这意味着你必须同时在模组文件夹中包含两者才能使其正常工作。
如果你更新 Radical Cobblemon Trainers 模组,它将自动下载 Radical Cobblemon Trainers API。如果没有,你可以手动安装最新版本的 Radical Cobblemon Trainers API。
特别感谢 Radical Cobblemon Trainers 的开发者 Hdainester,他为我制作了此附加包版本。
如有问题、请求或 Bug,请通过以下方式联系我(请参阅底部的已知问题)。
或者在此处提交问题:
如果你想使用预制的对战和道馆进度,可以查看我的数据包和资源包。
主要功能:
-动态决策: 根据伤害、属性相克、速度和对手潜力,实时评估招式和交换宝可梦的操作。
-伤害计算: 优先执行一击必杀(OHKO)、两击必杀(2HKO)和高伤害机会,同时遵循贪心算法。
-智能交换逻辑: 对潜在的队伍交换进行评分,偏好更快的克制手、更安全的切换位,甚至包括像百变怪或果然翁/小果然这样的特殊选择。
-招式评分系统: 根据属性效果、状态可能性、场地危害、能力下降以及各种特殊情况,为每个招式分配智能分数,使训练家能够选择潜在的最佳招式。
-环境感知: 追踪隐形岩、隐形岩、戏法空间、天气效果等。允许更全面地理解当前战斗背景,从而更好地进行招式评分。
-速度控制机制: 识别何时设置顺风、戏法空间等。
-超级进化对决: 超级进化会立即触发。太晶化在新更新中更为复杂。你现在可以在 JSON 中选择谁太晶化,第一个匹配该名称的 Cobblemon 将会太晶化。太晶化也是一个开关选项,默认关闭。请查看 0.14.6 版本的变更日志以了解太晶化逻辑。(无 Z 招式,无极巨化)
-单打和双打格式
未来路线图
-
使本模组成为 Radical Cobblemon Trainers API 的附加包,以便两者可以同时运行。0.15.0?(已完成) -
研究将我的数据包中的一些精彩对战整合到本次下载中,并附带相应的资源包。
-
基本极巨化逻辑,以及可能的 Z 招式相关内容。
-
在配置文件中增加更多控制选项(目前不确定要更改什么)。
-
继续将新招式纳入评分考虑范围。
-
研究天气变化能力的逻辑。
如果你有任何建议,请告诉我。我会考虑所有建议并告知我的看法。(请为每个建议留下一个基本的理由,这样我更有可能会采纳)
所需模组:
Cobblemon 1.7
Radical Cobblemon Trainers 0.17.x
Radical Cobblemon Trainers API 0.14.x
公告:
双打对战现已可用!!!
许多特殊情况已被考虑在内,随着我们测试和添加更多功能,列表将继续增长。
捐赠:
如果你喜欢我们正在制作的内容,欢迎留下捐赠;任何金额都表示感谢,并能让我们继续致力于这个项目。
兼容性问题
由于 0.15 版本的近期更改,本模组现在依赖于 Radical Cobblemon Trainers API 而不是替代它。你必须同时在模组文件夹中包含 Radical Cobblemon Trainers API 才能使本模组正常工作。
与其他模组的兼容性
秘密基地训练家: 0.16.1+ 版本允许你使用命令强制覆盖克隆体的 AI 模型。
操作方法如下:
- 创建包含所有修改的克隆体并保存。
- 使用命令 1 强制将附近的训练家切换到新的 AI 模型。
- 使用命令 2 检查新的 AI 模型标签。
命令 1: /data merge entity @e[type=cobblemon_secret_base_trainer:battle_clone,sort=nearest,limit=1] {AIDifficulty:"rb"}
命令 2: /data get entity @e[type=cobblemon_secret_base_trainer:battle_clone,sort=nearest,limit=1] AIDifficulty
**关于此模组的注意事项:**
1. 覆盖 AI 配置仅会生成一个默认的 "rb" 配置文件。这意味着 Mega、Tera 和极巨化(Dynamax)在默认情况下处于关闭状态。
2. 如果您在将宝可梦的 AIDifficulty 更改为 "rb" 后重新保存克隆体,它将重置,您需要再次使用命令将其强制改回 "rb"。
3. 如果您希望增加更多功能,请告诉我,以便我着手开发。例如:启用 Mega、Tera 和极巨化(Dynamax)。
----------------------------------------------------------------------------------------------
### 使用此 AI 的 RCTMOD JSON 示例
/字符串采用小写是有原因的,否则 Cobblemon 将无法识别它们/ { "name": "Brock", "ai": { "type": "rb", //我们的 AI 标签 "data": { "canTera": true, //这将开启太晶化逻辑 "teraTarget": "geodude", //这将使得第一只小拳石进行太晶化 "canDynamax": true, // 这将开启极巨化 "dynamaxTarget": "geodude", //这将强制对小拳石使用极巨化 "canGmax": true //这将为所有物种开启超级极巨化 } }, "battleFormat": "GEN_9_SINGLES", //("GEN_9_DOUBLES") "team": [ { "species": "geodude", "gender": "MALE", "level": 12, "nature": "adamant", "ability": "sturdy", "moveset": [ "rollout", "magnitude" ], "ivs": { "hp": 31, "atk": 31, "def": 31, "spa": 31, "spd": 31, "spe": 31 }, "evs": {"atk": 252,"hp": 252}, "heldItem": "eviolite", "gimmicks" { "tera": "rock" } //指定这只宝可梦将太晶化为岩石属性 }, //end of geodude { "species": "absol", "gender": "MALE", "level": 15, "nature": "adamant", "ability": "pressure", "moveset": [ "nightslash" ], "heldItem": "mega_showdown:absolite" //如何在队伍中获得 Mega 进化,这模拟了 /give 命令 } ] //end of team }
### 已知问题:每次更新补丁都可能会出现新的 Bug。我会尽力在发布前修复并发现这些问题,但我只是一个人。
RUN AND BUN AI FOR COBBLEMON!!
New Update is out! Add-on Update 0.16:
Dynamax Update! and 1.8 Cobblemon Compatible
Check out the changelog for all the details
IMPORTANT ANNOUNCEMENT!
For all versions at or after 0.15, this mod is now an add-on to the Radical Cobblemon Trainers API. Originally, this was a replacement for that mod, but in the new 0.15 version, this has changed. Now this mod is dependent on the Radical Cobblemon Trainers API to function, meaning you must have both in your mods folder for it to work.
If you update the Radical Cobblemon Trainers mod, it auto-downloads the Radical Cobblemon Trainers API. If not, you can install the latest version of Radical Cobblemon Trainers API manually.
BIG shoutout to the developer of the Radical Cobblemon Trainers, Hdainester, for putting together this add-on version for me.
Message me for questions, requests, and bugs (check out known issues at the bottom).
or submit issues here:
If you want some pre-made fights and gym progression, check out my datapack and resource pack to go with it.
Key Features:
-Dynamic Decision Making: Evaluates moves and switches in real-time based on damage, type matchups, speed, and opponent potential.
-Damage Calcs: Prioritizes OHKOs, 2HKOs, and high-damage opportunities while following a greedy algorithm.
-Intelligent Switching Logic: Scores potential party swaps, preferring faster counters, safer pivots, and even special picks like Ditto or Wobbuffet/Wynaut.
-Move Scoring System: Assigns smart scores to each move based on type effectiveness, status potential, hazards, stat drops, and tons of special cases, allowing the trainer to pick the potential best move.
-Room Awareness: Tracks Spikes, Stealth Rock, Trick Room, Weather effects, etc. Allowing for a more complete understanding of the current battle context for better move scoring.
-Speed Control Mechanics: Recognizes when to set up Tailwind, Trick Room, etc.
-Mega Showdown: Mega transformations are used instantly. Tera is more complex with the new update. You can now choose who to Tera in your JSON, and the first Cobblemon matching that name will Tera. Tera is also a toggle to turn on and is off by default. Check out the changelog for version 0.14.6 for Tera Logic. (No Z-moves, No Dynamax)
-Singles and Doubles Format
Future Roadmap
-
Make this mod an addon to Radical Cobblemon Trainers API so both can be operational together. 0.15.0? (Done) -
Look into tying my data pack with some cool fights into this download, along with the appropriate resource pack.
-
Basic Dynamax logic, and maybe some Z-Move stuff.
-
Add more control in the config (not sure what to change rn).
-
Continue putting new moves into scoring consideration.
-
Look into weather change ability logic.
If you have any suggestions, please let me know. I will consider all and let you know my thoughts. (Please leave a basic reason for each suggestion, as I am more likely to add it)
Required Mods:
Cobblemon 1.7
Radical Cobblemon Trainers 0.17.x
Radical Cobblemon Trainers API 0.14.x
PSA:
DOUBLE BATTLES ARE NOW OPERATIONAL!!!
Tons of special circumstances have already been accounted for, and the list will keep on growing as we test and add in more features.
Donate:
If you like what we are making, feel free to leave a donation; any amount is appreciated and allows us to continue working on this project.
Compatibility Issues
Due to recent changes in version 0.15, this mod now depends on the Radical Cobblemon Trainers API rather than replacing it. You must also have Radical Cobblemon Trainers API in your mod folder for this mod to work.
Compatibility with other mods
Secret Base Trainers: Version 0.16.1+ allows you to use a command to force overwrite the AI model of clones.
How to do this:
- Create a clone with all modifications and save.
- Use command 1 to force-swap trainers nearby to a new AI model.
- Use command 2 to check for the new AI model tag.
Command 1: /data merge entity @e[type=cobblemon_secret_base_trainer:battle_clone,sort=nearest,limit=1] {AIDifficulty:"rb"}
Command 2: /data get entity @e[type=cobblemon_secret_base_trainer:battle_clone,sort=nearest,limit=1] AIDifficulty
Things to consider for this mod:
- Overwriting the AI will only create a default "rb" config file. Meaning mega, tera, and dynamax will be off by default.
- If you resave a clone after changing its AIDifficulty to "rb" it will reset, and you will need to use the command again to force it back to "rb".
- If you want more features, let me know so I can work on them. Ex. Mega, Tera, and Dynamax being enabled.
Example of RCTMOD JSON using this AI
/*Strings are lowercase for a reason because Cobblemon will not recognize them otherwise*/
{
"name": "Brock",
"ai": {
"type": "rb", //our AI tag
"data": {
"canTera": true, //This will turn on Tera logic
"teraTarget": "geodude", //This will make it so the first geodude will tera
"canDynamax": true, // This will toggle Dynamax on
"dynamaxTarget": "geodude", //This will force Dynamax on Geodude
"canGmax": true //This will toggle G-Max for all species
}
},
"battleFormat": "GEN_9_SINGLES", //("GEN_9_DOUBLES")
"team": [
{
"species": "geodude",
"gender": "MALE",
"level": 12,
"nature": "adamant",
"ability": "sturdy",
"moveset": [
"rollout",
"magnitude"
],
"ivs": {
"hp": 31,
"atk": 31,
"def": 31,
"spa": 31,
"spd": 31,
"spe": 31
},
"evs": {"atk": 252,"hp": 252},
"heldItem": "eviolite",
"gimmicks" { "tera": "rock" } //specifies that this will tera into rock
}, //end of geodude
{
"species": "absol",
"gender": "MALE",
"level": 15,
"nature": "adamant",
"ability": "pressure",
"moveset": [
"nightslash"
],
"heldItem": "mega_showdown:absolite" // how to get mega in your team, this mirrors /give
}
] //end of team
}
KNOWN ISSUES: There are bound to be new bugs every patch. I'll try to get them handled and found before launch, but I'm only one person.
下载 Cobblemon: Run & Bun(Advanced Trainer AI)
下载 Cobblemon: Run & Bun(Advanced Trainer AI)
下载 Cobblemon: Run & Bun(Advanced Trainer AI)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Cobblemon: Run & Bun(Advanced Trainer AI)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Cobblemon: Run & Bun(Advanced Trainer AI)
下载 Cobblemon: Run & Bun(Advanced Trainer AI)
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 Cobblemon: Run & Bun(Advanced Trainer AI)
下载 Cobblemon: Run & Bun(Advanced Trainer AI)
下载 Cobblemon: Run & Bun(Advanced Trainer AI)
下载 Cobblemon: Run & Bun(Advanced Trainer AI)
极巨化逻辑
评分规则:
- 击杀优先,其次是伤害最高,若免疫则减 50 分
- 对能力提升、能力下降、天气/场地变化以及极巨招式效果给予小幅加分
- 如果该招式会替换掉对我们有利的天气或场地,则减 2 分
- 日志应显示极巨招式的对应名称,而非基础招式。
极巨防(Max Guard):
- 在刚使用过守住或极巨防之后:−20
- 当对手处于极巨化状态时,或在双打中我方本回合将被击败时:+6
- 其他情况:−5
极巨化期间切换:
处于极巨化的宝可梦现在仅在所有招式的评分均为 −5 或更低(即免疫或无用)时才考虑切换。被强制极巨化的那一回合,极巨目标仍然不会切换出去。
Bug 修复:
- 改进了寻找太晶化和极巨化目标的方式,使其更加准确。(例如:物种:武道熊师,形态:连击流,dynamaxTarget:武道熊师。现在可以正常工作,而之前会因为识别为“连击流武道熊师”而非单纯的“武道熊师”而静默失败。)
- 胆量(Guts)特性未能正确应用其伤害加成。
- 中性气体(Neutralizing Gas)错误地阻止了切换评分,而非仅仅跳过天气加成。
- 某些特性的功能被跳过;现已能正确识别它们。
- 沙暴的持续伤害计算错误。
- 戏法空间(Roleplay)特性的检查方式不正确。
- 如果招式不是标准的 Cobblemon 招式,招式映射表可能会崩溃。
- 如果没有招式被评估,则选择剩下的唯一可能招式。
- highestPercentDamageMove 的计算方式不正确。
- 替身换尾(Shed Tail)现在能正确看到 HP 的变化。
- 自由变身(Libero)和变身(Protean)在预测计算时,现在能对所有招式看到属性一致加成(STAB)。
- 天气伤害计算现在再次与 Showdown 的 ID 匹配……
- 群体伤害被稀释过多;现在应显示原始伤害的 75%。
- 妖精皮肤(Pixilate)现在能穿透幽灵属性,因为普通属性现在被视为妖精属性。
- 只有防守方的防御性伞状特性(Utility umbrella)能被正确使用。
- 原始回归(Primal)天气现在应能将招式伤害降至 0。
- 沙暴现在提供 1.5 倍的特殊防御增加。
- 光墙和反射壁原本在全场范围内为 (0.66×。现在:单打中为 0.5×,双打中为 2732/4096。)
- 极光幕(Aurora Veil)在计算中未被正确识别。
- 暴击无视防护类技能。
- 神鸟猛击(Facade)现在无视烧伤减半效果。
- 偷取(Knock Off)在对手持有道具时现拥有正确的威力。
- 剧毒(Hex)和解毒剂(Smelling Salts)已更新为正确的威力。
- 过滤(Filter)、厚甲(Solid Rock)和棱镜装甲(Prism Armor)现在能正确识别克制属性的招式。
- 厚脂肪(Thick Fat)原本减少的是水属性招式伤害,而非冰属性。(MB)
- 破灭之愿(Vessel of Ruin)对防守方产生了双倍效果。
- 慢启动(Slow Start)现在仅减半物理招式伤害。
- 晶体管(Transistor)现为 1.3 倍,而非 1.5 倍(第 9 世代更改)。
- charcoalstick 在 Showdown 中的 ID 为 charcoal;已修复。
- 物种锁定道具现在能正确检查物种名称。
- 速度锁(Choice Scarf)在极巨化期间不再提供速度提升。
- 恶作剧之心(Prankster)的变动招式对恶属性使用时现在计为失败。
- 粉末类招式对携带安全护目镜的目标现在会失败。
- 当缺少太晶属性时,游戏不再崩溃。
- 切换出场时应清除能力提升。
- 火焰吸收(Flash Fire)和充电(Charge)在战斗中未被正确检测。
- 归巢(Roost)会在当回合移除其飞行属性。
- 即使持有道具,如果使用燕返(Acrobatics)会移除该道具,则燕返应预测为双倍伤害。
修复了一个 bug:即使配置中已关闭 Dynamax,它仍会在最后一个宝可梦身上被使用。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
AE2:一款流行的自动化与存储模组
模组
那是什么?一个 Waila/Hwyla 的分支。
评论 0
登录后参与评分
还没有评论,来抢沙发吧