# MechaDronesTweaks #### Some tweaks for mecha drones(Successor to FastDrones MOD) #### 机甲建设机调整(FastDrones MOD的后继者) ## Updates * 1.1.1 * Fixed crash in `LargeAreaForTerraform` functions. * 1.1.0 * Added `RemoveBuildRangeLimit`, `LargerAreaForUpgradeAndDismantle` and `LargerAreaForTerraform` options (Check Usage for details). ## Usage * Inspired by [FastDrones](https://dsp.thunderstore.io/package/dkoppstein/FastDrones/), but patching IL codes, consuming less CPU to reduce lags on massive builds especially blueprints' put. * Does not affect current game-saves, which means: * All values are patched in memory but written to game-saves so that you can play with normal mecha drone parameters while disabling this MOD. * You can take benefit from this MOD on any game-saves after enabling this MOD. * Config entries: * `[MechaDrones]` * `UseFixedSpeed` [Default Value: false]: * If enabled: Use `FixedSpeed` for mecha drones, which makes related Upgrades not used any more. * If disabled: Use `SpeedMultiplier` for mecha drones. * `SkipStage1` [Default Value: false]: Skip mecha drones' 1st stage (flying away from mecha in ~1/3 speed for several frames). * `RemoveSpeedLimitForStage1` [Default Value: true]: Remove speed limit for 1st stage (has a speed limit @ ~10m/s originally). * `FixedSpeed` [Default Value: 300]: Fixed flying speed for mecha drones. * `SpeedMultiplier` [Default Value: 4]: Speed multiplier for mecha drones. * `EnergyMultiplier` [Default Value: 0.1]: Energy consumption multiplier for mecha drones. * `[MechaBuild]` * `RemoveBuildRangeLimit` [Default Value: true]: Remove limit for build range and maximum count of drag building belts/buildings. * Note: this does not affect range limit for mecha drones' action * `LargerAreaForUpgradeAndDismantle` [Default Value: true]: Increase maximum area size for upgrade and dismantle to 31x31 (from 11x11). * `LargerAreaForTerraform` [Default Value: true]: Increase maximum area size for terraform to 30x30 (from 10x10). * Note: this may impact game performance while using large area. * Note: This MOD will disable `FastDrones` if the MOD is installed, to avoid conflict in functions. ## 使用说明 * 功能参考 [FastDrones](https://dsp.thunderstore.io/package/dkoppstein/FastDrones/),但主要对IL代码进行Patch因此消耗更少的CPU,尤其在大规模建造比如放置蓝图的时候可以大大减少卡顿。 * 不影响当前游戏存档: * 所有修改参数都在内存中Patch不会写入存档,禁用此MOD后可恢复正常建设机参数。 * 启用本MOD后可以在已经游玩的游戏存档上享受参数的改动。 * 设置选项: * `[MechaDrones]` * `UseFixedSpeed` [默认值: false]: * 启用: 使用 `FixedSpeed`,固定速度,这将覆盖对应机甲建设机速度的升级数值。 * 禁用: 使用 `SpeedMultiplier` * `SkipStage1` [默认值: false]: 跳过建设机起飞的第一阶段(以大约1/3速度从机甲身上飞出,持续若干帧). * `RemoveSpeedLimitForStage1` [默认值: true]: 移除第一阶段的速度限制 (原本大约有10m/s的限制). * `FixedSpeed` [默认值: 300]: 固定速度。 * `SpeedMultiplier` [默认值: 4]: 速度倍数。 * `EnergyMultiplier` [默认值: 0.1]: 能量消耗倍数。 * `[MechaBuild]` * `RemoveBuildRangeLimit` [默认值: true]: 解除摆放建筑距离和拖放建筑/传送带数量的限制。 * 注意: 并不会解除建设机行动的距离限制。 * `LargerAreaForUpgradeAndDismantle` [默认值: true]: 提升区域升级和拆除建筑的最大区域至31x31 (之前是11x11)。 * `LargerAreaForTerraform` [默认值: true]: 提升区域铺设地地基的最大区域至30x30 (之前是10x10)。 * 注意: 使用较大的区域可能对游戏实时性能有影响。 * 说明: 如果安装了`FastDrones`本MOD会将其禁用避免功能冲突。