Pasha-Autobattler-Fix

If you liked this item, please rate it up on Steam Workshop page.

Author: lkx001017

Last revision: 29 Mar at 12:45 UTC

File size: 262.71 KB

On Steam Workshop

Description:

对原版AutoBattler做了一些优化和修复(Fixes and optimizations base on the original AutoBattler mod)
演示视频:https://www.bilibili.com/video/BV11ZXHBqEwN/

AI权重
新增冲锋类敌人权重设置
将原有的距离权重改为可设置

特殊角色逻辑
新增网络主播、和平主义者、士兵、驯兽师的特殊逻辑
此外新增强制逃跑设置:角色将不考虑攻击只考虑远离敌人,就像和平主义者那样

热键
修复战斗中按下shift+空格快捷开关AI的功能

取消镜头平滑设置
现在启动ai时默认启用镜头平滑
修复战斗中开关ai会导致平滑失效的问题

图标显示
修复在开启了重复挑战的情况下,死亡时ai图标不消失的问题

ai视觉
修复在启用ai视觉的情况下,在战斗中死亡会导致引擎崩溃的问题

躲避子弹逻辑
修复无法识别某些类型子弹的问题

消耗品
新增强制拾取消耗品设置:即使满血也拾取消耗品

对现有设置选项的解释:
enable autobattler:总开关
enable ai visual:可视化ai检测到的目标权重,圆圈越大代表权重越大
enable ai marker:启用ai时是否显示特殊的角色贴图
force flee mode:仅逃跑模式
force consumable:即使满血也捡消耗品(不启用则半血才捡)

distance weight:ai试图和敌人保持最佳距离的权重(最佳距离实际上是当前最小的武器范围)
projectile weight:ai试图躲避靠近子弹的权重
item weight:ai靠近金币的权重
tree weight:ai靠近树的权重
boss weight:ai试图和boss保持最佳距离的权重
egg weight:ai试图和必定掉落单位的敌人保持最佳距离的权重(包括产蛋类敌人、宝箱怪)
charging weight:ai试图沿垂直方向躲避怪物冲撞的权重
bumper weight、bumper distance:ai试图和墙壁保持一定距离的权重

设置中的所有权重均为我自己使用100+小时后调整得到的最常用权值,但绝对不适用于部分特殊角色!即使我已经尽可能为这些角色添加了特殊逻辑,但你仍需要调整部分权值来获得最优效果
——————————————————————————————————————————
AI weight
Added weight setting for charging enemy types
Changed the original distance weight to a configurable one
Special charactor
New special logic for network hosts, pacifists, soldiers, and animal trainers
In addition, a forced escape setting has been added: The character will only consider avoiding the enemy and not attacking, just like the pacifists do.
Hotkey
Fix the function of pressing "Shift + Space" to quickly switch the AI in combat.
Disable the lens smoothing setting
When starting the AI now, lens smoothing is enabled by default
Fix the issue where switching the AI during combat causes the smoothing to fail
Icon display
Fix the issue where the AI icon does not disappear when dying in the case of enabling repeated challenges.
AI visual
Fixed the issue where the engine would crash when dying in battle with AI Vision enabled.
Bullet Logic
Fix the issue of not being able to recognize certain types of bullets
Consumables
Add mandatory collection setting for consumables: Collect consumables even when full health.

Explanation of existing settings options:
enable autobattler: Main switch
enable ai visual: Weight of visually detected targets by AI, the larger the circle, the greater the weight
enable ai marker: Whether to display special character textures when AI is enabled
force flee mode: Only escape mode
force consumable: Pick up consumables even when full health (disabled, then only pick up when half health)

Distance weight: The weight that AI assigns to maintaining the optimal distance from the enemy (the optimal distance is actually the current minimum weapon range)
Projectile weight: The weight that AI assigns to avoiding the approaching projectiles
Item weight: The weight that AI assigns to approaching the gold coins
Tree weight: The weight that AI assigns to approaching the trees
Boss weight: The weight that AI assigns to maintaining the optimal distance from the boss
Egg weight: The weight that AI assigns to maintaining the optimal distance from enemies that always drop items (including egg-laying enemies and chest monsters)
Charging weight: The weight that AI assigns to avoiding the monster’s charge along the vertical direction
Bumper weight, bumper distance: The weight that AI assigns to maintaining a certain distance from the walls

All the weights in the settings were adjusted by myself after using them for over 100 hours and are the most commonly used ones. However, they are definitely not applicable to some special characters! Even though I have added as much special logic as possible for these characters, you still need to adjust some of the weights to achieve the best results.

Download
Required items:

Click the title to search on this site.


Mod OptionsSteam Workshop