Rust 控制台命令
give 物品列表 →用于 F1 菜单或 RCON 的控制台命令。来源:社区维护的 Rust 自身生成的命令元数据导出——请将其视为有用的参考,而非详尽无遗的清单。
命令数:3,848
| 命令 | 描述 | 分类 | 类型 | 默认 | 权限 | |
|---|---|---|---|---|---|---|
pool.print_prefabs |
(自动生成)输出所有预制体池条目的表格,显示预制体名称、未命中次数、当前数量、目标容量以及 push/pop 次数;支持 --json | pool | 客户端 | |||
pool.reset_max_pool_counter |
(自动生成)重置所有池的峰值使用量高水位计数器,以便重新测量池的最大需求 | pool | 客户端 | |||
pooltable.debug_pool |
pooltable | 变量 | False |
管理员 | ||
pooltable.idle_reset_seconds |
(自动生成)任何人都可以重置超过这么多秒无人互动的台球游戏 | pooltable | 变量 | 180 |
管理员 | |
pooltable.physics_update_rate |
pooltable | 变量 | 64 |
管理员 | ||
pooltable.show_tooltips |
显示台球游戏的提示通知 | pooltable | 变量 | False |
管理员 | |
pooltable.transform_update_rate |
pooltable | 变量 | 128 |
|||
pooltable.watch_after_shot_seconds |
(自动生成)射击者保持坐姿观看自己射击后,被强制下来之前的秒数 | pooltable | 变量 | 2 |
管理员 | |
pool.usemutexpool |
是否使用原始的池实现(较慢,但经过测试)。默认为 false | pool | 变量 | False |
||
powergrid.enabled |
powergrid | 变量 | True |
管理员 | ||
powergrid.fusedecayhighpop |
在线玩家数量达到或高于此值时,发电厂的重型保险丝按正常速率腐朽。参见 fuseDecayLowPop。 | powergrid | 变量 | 100 |
管理员 | |
powergrid.fusedecaylowpop |
在线玩家数量达到或低于此值时,发电厂的重型保险丝按正常速率的 fuseDecayLowPopScale 倍腐朽。腐朽速率倍数随人数增加线性上升,到 fuseDecayHighPop 时回到 1 倍。 | powergrid | 变量 | 10 |
管理员 | |
powergrid.fusedecaylowpopscale |
在线玩家数量达到或低于 fuseDecayLowPop 时,发电厂重型保险丝腐朽速率的倍数。为 1 时,玩家数量对腐朽没有影响。 | powergrid | 变量 | 0.25 |
管理员 | |
powergrid.fusefulldecaycount |
发电厂中状态最差的重型保险丝有多少个以全速率腐朽(在 fuseLifespanSeconds 后烧毁)。其他所有已插入的保险丝则缓慢腐朽。如果为 0,则没有保险丝会以全速率腐朽。 | powergrid | 变量 | 3 |
管理员 | |
powergrid.fuselifespanseconds |
插在发电厂中的重型保险丝以全速率腐朽时的持续时间(发电厂中最差的保险丝能撑多久)。如果 <= 0,则保险丝永远不会耗尽。 | powergrid | 变量 | 9600 |
管理员 | |
powergrid.fuseslowdecayfractionmax |
不属于最差 fuseFullDecayCount 个的重型保险丝所适用的全腐朽速率最大比例(0-1)。参见 fuseSlowDecayFractionMin。 | powergrid | 变量 | 0.12 |
管理员 | |
powergrid.fuseslowdecayfractionmin |
不属于最差 fuseFullDecayCount 个的重型保险丝所适用的全腐朽速率最小比例(0-1)。每个保险丝会在 fuseSlowDecayFractionMin 和 fuseSlowDecayFractionMax 之间随机抽取自己的比例,并在其生命周期内保持不变。 | powergrid | 变量 | 0.08 |
管理员 | |
powergrid.fusestatus |
powergrid | 服务器 | 管理员 | |||
powergrid.greenrecyclerfullefficiencystage |
powergrid | 变量 | -1 |
管理员 | ||
powergrid.marketplacechargecapacity |
无人机市场电力缓冲区的电量容量。市场从发电厂充电至此容量,并在发电厂停止供电时将其流失。 | powergrid | 变量 | 100 |
管理员 | |
powergrid.marketplacechargeperfuse |
无人机市场在发电厂插入至少 marketplaceMinimumFusesToCharge 个重型保险丝后,每插入一个重型保险丝每秒获得的电量。 | powergrid | 变量 | 0.01 |
管理员 | |
powergrid.marketplacedrainrate |
发电厂没有插入重型保险丝时,无人机市场每秒损失的电量。只要有一个保险丝就足以阻止流失。 | powergrid | 变量 | 0.05 |
管理员 | |
powergrid.marketplaceminimumfusestocharge |
无人机市场开始充电之前,需要在发电厂插入的重型保险丝数量。低于此数量时,它只保持现有电量而不会继续充电。 | powergrid | 变量 | 4 |
管理员 | |
powergrid.marketplacerequiredchargefraction |
无人机市场需要充入其容量的多少比例(0-1)才能接受订单。这同时决定了冷启动的市场需要多久才能上线,以及满电的市场在发电厂断电后还能运行多久。 | powergrid | 变量 | 0.5 |
管理员 | |
powergrid.powerlinebasepoweroutput |
发电厂中插入 1 个重型保险丝时电线杆的起始功率输出。 | powergrid | 变量 | 5 |
管理员 | |
powergrid.powerlinemaxpoweroutput |
发电厂中插满所有可能的重型保险丝时,电线杆的功率输出。 | powergrid | 变量 | 50 |
管理员 | |
powergrid.simulatepowerplantfuses |
powergrid | 变量 | 0 |
管理员 | ||
powergrid.stagechangeworkqueuebudget |
每帧用于通知电网实体阶段变更的最大时间(毫秒)。 | powergrid | 变量 | 0.1 |
管理员 | |
powergrid.stagechangeworkqueuedelaybetweenjobs |
每个实体被通知电网阶段变更之间等待的时间(秒)。数值越高,所有实体收到阶段变更通知所需的时间越长。实体可通过 stageChangeWorkQueueGroupJobsDistance 跳过这一等待 | powergrid | 变量 | 0 |
管理员 | |
powergrid.stagechangeworkqueuegroupjobsdistance |
如果某电网实体与本帧第一个收到阶段变更更新的电网实体距离在此范围内,则该实体也会收到更新(跳过 stageChangeWorkQueueTimeBetweenJobs) | powergrid | 变量 | 20 |
管理员 | |
powergrid.status |
powergrid | 服务器 | 管理员 | |||
printpos <Steam64ID> |
输出你当前的坐标位置。可加前缀 "sv" 以便输入玩家的 Steam64ID 并获取其位置 | General | 无 | 获取其他玩家的位置需要管理员权限 | ||
profile.command_lagspike_threshold |
profile | 变量 | 40 |
管理员 | ||
profile.countsyncmoveentities |
(自动生成)统计并输出所有使用同步移动更新的实体,按预制体分组,帮助找出开销大的逐帧移动实体 | profile | 服务器 | 管理员 | ||
profile.dump_profile_recorders |
(自动生成)将所有可用的 Unity 分析器记录器句柄导出为 CSV 格式,显示名称、类别、单位类型和标志;适用于发现可用的性能指标 | profile | 客户端 | |||
profile.exportintervals |
(自动生成)服务器分析器数据自动导出到磁盘的间隔(秒);数值越低,快照越频繁,但 I/O 开销越高 | profile | 变量 | 1800 |
管理员 | |
profile.flush_analytics |
(自动生成)立即将所有缓冲的分析事件刷新到分析后端,而不是等待下一次计划的刷新 | profile | 客户端 | |||
profile.immediatemodeenabled |
(自动生成)启用后,服务器原生分析器以即时模式运行,捕获每一帧而不是采样;更准确但开销更高 | profile | 变量 | True |
管理员 | |
profile.logentityspawntime |
记录实体在客户端生成所花的时间,使用 'minloggedspawntime' 过滤较短的生成时间 | profile | 变量 | False |
||
profile.logentityspawntime_min |
记录日志所需的最小生成时间(毫秒) | profile | 变量 | 0 |
||
profile.notifyonmainalloccount |
(自动生成)分析器通知的主线程每周期分配次数阈值;0 = 禁用;有助于隔离主线程的 GC 压力 | profile | 变量 | 0 |
管理员 | |
profile.notifyonmainmemkb |
(自动生成)分析器通知的主线程内存使用阈值(KB);0 = 禁用 | profile | 变量 | 0 |
管理员 | |
profile.notifyontotalalloccount |
(自动生成)原生持续分析器触发通知的分配次数阈值(每个分析器周期);适用于检测意外的分配峰值 | profile | 变量 | 16000 |
管理员 | |
profile.notifyontotalmemkb |
(自动生成)托管内存总量超过该阈值(KB)时,原生分析器触发通知;有助于检测服务器长时间运行时的内存泄漏 | profile | 变量 | 12288 |
管理员 | |
profile.notifyonworkeralloccount |
(自动生成)分析器通知的工作线程每周期分配次数阈值;0 = 禁用;有助于检测后台任务的 GC 压力 | profile | 变量 | 0 |
管理员 | |
profile.notifyonworkermemkb |
(自动生成)分析器通知的工作线程内存使用阈值(KB);0 = 禁用 | profile | 变量 | 0 |
管理员 | |
profile.perfsnapshot |
profile.perfsnapshot [delay=15, int] [name='Profile', str, 无扩展名, 最多 32 个字符] [frames=10, int, 最大 10] [debug=false, 同时转储二进制快照] 将生成 <frames> 帧的 JSON 性能快照,可在 Perfetto 或类似工具中查看 | profile | 服务器 | 管理员 | ||
profile.perfsnapshot_stream |
profile.perfsnapshot_stream [name='Profile', str, 无扩展名, 最多 32 个字符] [MainCap=32, int, 最大 256, 主线程缓冲区大小(MB)] [WorkerCap=8, int, 最大 256, 每个工作线程缓冲区大小(MB)] [debug=false, 同时转储二进制快照] 将流式传输 <mainCap>MB 的数据并生成可在 Perfetto 或类似工具中查看的 JSON 快照 | profile | 服务器 | 管理员 | ||
profile.profiling_entities |
0 = 关闭,1 = 生成/杀死,2 = 按实体统计生成/杀死,3 = 每 '5 min' 计数一次 | profile | 变量 | 0 |
管理员 | |
profile.profiling_entity_count_interval |
统计整个服务器所有实体的频率 | profile | 变量 | 300 |
管理员 |
这是一份可搜索的 Rust 控制台和管理员命令参考,既包含所有玩家都能使用的命令,也包含仅限管理员/服务器所有者使用的命令。
常见问题
在游戏中按 F1 打开控制台,然后输入命令并按回车键。