Buhe-MachineControl icon

MachineControl

Host-side casino machine spawn control. Configure fixed machine types, spawn counts, and banned random machine types.

By Buhe
Last updated 8 hours ago
Total downloads 28
Total rating 0 
Categories Mods
Dependency string Buhe-MachineControl-0.2.1
Dependants 0 other packages depend on this package

This mod requires the following mods to function

BepInEx-BepInExPack-5.4.2100 icon
BepInEx-BepInExPack

BepInEx pack for Mono Unity games. Preconfigured and ready to use.

Preferred version: 5.4.2100

README

MachineControl

English | 中文

English

Host-side casino machine spawn control.

Features

  • Configure fixed machine types for each casino floor.
  • Configure how many positions each selected machine type should use.
  • Ban selected machine types from the game's random spawn pool.
  • Host/server side: the host should install this mod because casino machine spawning is decided by the server.

Installation

Install with a Thunderstore-compatible mod manager, or extract the full package into the game folder.

The plugin folder only needs two runtime files:

GWYF-MachineControl-BUHE.dll
GWYF-MachineControl-BUHE.settings.txt

Configuration

Edit the settings file installed with the plugin:

Enabled=true
PositionsPerFloor=2
Machines=Crash
BannedMachines=

Parameters

Enabled=true: enables the mod.

Enabled=false: disables the mod.

PositionsPerFloor=2: for each floor, each selected machine type will use 2 spawn positions. Some positions display two machines, so 2 positions may look like 4 machines in-game.

Machines=Crash: each floor gets fixed Crash positions.

Machines=Crash,DuckRace: each floor gets fixed Crash positions and Duck Race positions. If PositionsPerFloor=1, each floor gets 1 Crash position and 1 Duck Race position.

BannedMachines=: do not ban any random machine type.

BannedMachines=DuckRace: ban Duck Race from random spawns. If the game randomly selects Duck Race, the mod replaces it with the first available machine from Machines that is not banned.

BannedMachines=DuckRace,Slots: ban both Duck Race and Slots from random spawns.

Machine Names

Use the English machine parameter names in the settings file:

Crash = Crash
DuckRace = Duck Race
Slots = Slots
Roulette = Roulette
Blackjack = Blackjack
Poker = Poker
Baccarat = Baccarat
Craps = Craps
CoinFlip = Coin Flip
DragonTower = Dragon Tower
HiLoGame = Hi-Lo
Keno = Keno
MoneyWheel = Money Wheel
Plinko = Plinko
ClawMachine = Claw Machine
WheelOfFortune = Wheel of Fortune
BeybladeBattle = Beyblade Battle / MoreGames mod

Writing Rules

  • Put English parameter names after Machines, not translated names.
  • Separate multiple machines with English commas.
  • Correct: Machines=Crash,DuckRace
  • Wrong: Machines=Crash,DuckRace
  • After changing settings, enter a new casino round for the changes to take effect.
  • If a machine parameter does not exist in the current game/mod environment, the mod skips it and writes a warning to the BepInEx log.

中文

这是房主端赌场机位生成控制模组。

功能

  • 可以指定每层固定刷哪些机位。
  • 可以指定每种机位固定刷几个位置。
  • 可以禁止游戏随机刷出某些机位。
  • 这是房主/服务器端模组:因为赌场机位生成由服务器决定,所以房主安装即可生效。

安装

推荐使用 Thunderstore / r2modman / Gale 这类模组管理器安装。

如果手动安装,把整个压缩包解压到游戏根目录即可。

插件文件夹里只需要两个运行文件:

GWYF-MachineControl-BUHE.dll
GWYF-MachineControl-BUHE.settings.txt

配置文件示例

真正要改的是模组同目录的设置文件:

Enabled=true
PositionsPerFloor=2
Machines=Crash
BannedMachines=

参数说明

Enabled=true:开启模组。

Enabled=false:关闭模组。

PositionsPerFloor=2:每一层、每一种机器固定刷 2 个机位。注意:有些机位本身会显示两台机器,所以 2 个机位看起来可能是 4 台机器。

Machines=Crash:每一层固定刷 Crash。

Machines=Crash,DuckRace:每一层固定刷 2 个 Crash 机位,再固定刷 2 个 DuckRace 机位。如果 PositionsPerFloor=1,就变成每层 1 个 Crash + 1 个 DuckRace。

BannedMachines=:不禁用任何机器。

BannedMachines=DuckRace:禁止随机刷出 DuckRace。如果游戏原本随机到了 DuckRace,模组会把它替换成 Machines 里面第一个可用、并且没有被禁用的机器。例如 Machines=CrashBannedMachines=DuckRace,就会把随机到的鸭子赛跑替换成崩溃。

BannedMachines=DuckRace,Slots:禁止随机刷出 DuckRace 和 Slots。

常用机器参数

配置文件里要填英文参数:

Crash = 崩溃
DuckRace = 鸭子赛跑
Slots = 老虎/老虎机
Roulette = 轮盘
Blackjack = 二十一点
Poker = 扑克
Baccarat = 百家/百家乐
Craps = 骰子
CoinFlip = 抛硬币
DragonTower = 龙塔
HiLoGame = 高低牌
Keno = 基诺
MoneyWheel = 金钱轮盘
Plinko = 弹珠机
ClawMachine = 抓娃娃机
WheelOfFortune = 幸运转盘
BeybladeBattle = 陀螺对战(MoreGames 模组)

填写规则

  • Machines 后面填英文参数,不要填中文名。
  • 多个机器之间用英文逗号隔开。
  • 正确:Machines=Crash,DuckRace
  • 错误:Machines=崩溃,鸭子赛跑
  • 错误:Machines=Crash,DuckRace
  • 改完设置文件后,重新进一把赌场才会生效。
  • BannedMachines 也填英文参数,不要填中文名。
  • 正确:BannedMachines=DuckRace,Slots
  • 错误:BannedMachines=鸭子赛跑,老虎机
  • 如果某个机器参数当前游戏或当前模组环境里找不到,模组会跳过它,并在 BepInEx 日志里提示。