Rust 控制台命令
give 物品列表 →用于 F1 菜单或 RCON 的控制台命令。来源:社区维护的 Rust 自身生成的命令元数据导出——请将其视为有用的参考,而非详尽无遗的清单。
命令数:3,848
| 命令 | 描述 | 分类 | 类型 | 默认 | 权限 | |
|---|---|---|---|---|---|---|
profile.profiling_fixed_invokes |
0 = 关闭,1 = 每帧统计,2 = 按方法统计 | profile | 变量 | 0 |
管理员 | |
profile.profiling_invokes |
0 = 关闭,1 = 每帧统计,2 = 按方法统计 | profile | 变量 | 0 |
管理员 | |
profile.profiling_lagspikes |
记录导致卡顿峰值的传入 RPC 和控制台命令 | profile | 变量 | False |
管理员 | |
profile.profiling_packets |
记录每帧传入/传出数据包的类型 | profile | 变量 | False |
管理员 | |
profile.profiling_ping |
Raknet 统计信息,0 = 关闭,2 = 按连接 | profile | 变量 | 0 |
管理员 | |
profile.profiling_ping_interval |
每秒刷新 raknet 统计信息的频率 | profile | 变量 | 1 |
管理员 | |
profile.profiling_ping_per_frame |
profile | 变量 | 30 |
管理员 | ||
profile.profiling_rcon |
0 = 关闭,1 = 每帧计数,2 = 连接尝试,3 = 消息 | profile | 变量 | 0 |
管理员 | |
profile.profiling_rcon_message_length |
限制记录的 RCON 消息长度,防止分析器被大消息淹没 | profile | 变量 | 512 |
管理员 | |
profile.profiling_work_queue |
记录每帧 ObjectWorkQueues 的执行时间 | profile | 变量 | False |
管理员 | |
profile.quiet |
控制 perfsnapshot 命令是否发出聊天消息 | profile | 变量 | False |
管理员 | |
profile.rcon_lagspike_threshold |
profile | 变量 | 40 |
管理员 | ||
profile.resetexportinterval |
(自动生成)重置分析器导出间隔计时器,使下一次导出在距现在完整的 ExportIntervalS 之后进行 | profile | 服务器 | 管理员 | ||
profile.rpc_lagspike_threshold |
profile | 变量 | 40 |
管理员 | ||
profile.runtime_profiling |
0 = 关闭,1 = 基础,2 = 全部。这会重置所有分析相关的 convar,但之后仍可修改 | profile | 变量 | 0 |
管理员 | |
profile.runtime_profiling_interval |
profile | 变量 | 60 |
管理员 | ||
profile.runtime_profiling_persist |
启用以允许运行时分析在重启后保持 | profile | 变量 | False |
管理员 | |
profile.runtime_profiling_pool_flush_interval |
刷新池统计信息的频率(秒) | profile | 变量 | 300 |
管理员 | |
profile.runtime_profiling_pooling |
0 = 关闭,1 = 每 5 分钟刷新一次 | profile | 变量 | 0 |
管理员 | |
profile.runtime_profiling_uploader_pooling |
分析数据批量上传器是否应使用池 | profile | 变量 | False |
管理员 | |
profile.start |
(自动生成)开始将 Unity Profiler 二进制日志录制到 profile/ 文件夹中带时间戳的文件;需要 ENABLE_PROFILER 构建标志 | profile | 客户端 | |||
profile.stop |
(自动生成)停止当前的 Unity Profiler 二进制日志录制并完成文件 | profile | 客户端 | |||
profile.stopwatchingallocs |
停止追踪内存分配 | profile | 服务器 | 管理员 | ||
profile.watchallocs |
参数:[Name = 'Allocs'] [maxStackDepth = 16]。开始追踪内存分配,条件满足后转储 [Name].json.gz 记录 | profile | 服务器 | 管理员 | ||
projectile.preventcameraclip |
投射物模型是否应尝试防止被相机裁剪? | projectile | 变量 | True |
||
projectile.preventcameraclipbufferseconds |
重新开启投射物模型前的缓冲秒数。 | projectile | 变量 | 0.01 |
||
projectile.serverprojectilecameraclipdistance |
重新开启服务器生成的投射物模型前的距离。 | projectile | 变量 | 0.3 |
||
projectile.usebatched |
(自动生成)启用后,投射物移动使用 TransformAccessArray 以批量作业方式更新,以获得更好的 CPU 并行性 | projectile | 变量 | True |
||
ptboatturret.ai_burst_length |
NPC 炮手每次连发持续开火的秒数 | ptboatturret | 服务器 | 管理员 | ||
ptboatturret.ai_fire_rate |
NPC 炮手两次射击之间的最短秒数 | ptboatturret | 服务器 | 管理员 | ||
ptboatturret.ai_time_between_bursts |
NPC 炮手两次连发之间等待的秒数 | ptboatturret | 服务器 | 管理员 | ||
quit |
关闭游戏回到桌面。可加前缀 "sv" 以保存并关闭服务器 | General | 无 | 关闭服务器需要管理员权限 | ||
rabbit.population |
服务器上活跃的数量,每平方公里 | rabbit | 服务器 | 管理员 | ||
radiation.materialtoradsratio |
(自动生成)将辐射材质值转换为有效辐射伤害速率的倍率;数值越低,全局辐射强度越低 | radiation | 变量 | 0.0044 |
管理员 | |
radiation.water_inventory_damage |
(自动生成)启用后,身处辐射区域的玩家,其物品栏中的物品会随时间被受辐射污染的水损坏 | radiation | 变量 | True |
管理员 | |
radiation.water_loot_damage |
(自动生成)启用后,受辐射污染的水在受到足够辐射时会随时间损坏战利品容器 | radiation | 变量 | True |
管理员 | |
rcon.banduration |
对超过最大密码失败次数的 IP 封禁多久(秒)(默认:300 秒) | rcon | 变量 | 300 |
管理员 | |
rcon.ban_ip |
从 RCON 封禁一个 IP 地址,阻止其连接并踢出该 IP 的所有客户端,此封禁是永久且持久的 | rcon | 服务器 | 管理员 | ||
rcon.clear_rcon_failed_logins |
清除所有失败的登录尝试 | rcon | 服务器 | 管理员 | ||
rcon.clear_subscribers |
清除服务器上的所有订阅者。 | rcon | 服务器 | 管理员 | ||
rcon.connectioncooldown |
在允许同一地址再次建立 RCON 连接之前等待多久(秒)(默认:1 秒) | rcon | 变量 | 1 |
管理员 | |
rcon.enablesubscriptions |
为 true 时,允许 RCON 连接订阅服务器事件。这可能会影响性能,仅在需要时才使用。 | rcon | 变量 | False |
管理员 | |
rcon.ip |
监听 RCON 连接的 IP 地址 | rcon | 变量 | 管理员 | ||
rcon.logfailedattempts |
记录失败的尝试和来自被封禁 IP 地址的尝试(默认:true) | rcon | 变量 | True |
管理员 | |
rcon.maxconnections |
允许连接到 RCON 服务器的总数。-1 表示禁用该行为。更改后需要重启服务器 | rcon | 变量 | 500 |
管理员 | |
rcon.maxconnectionsperip |
单个 IP 允许连接到 RCON 服务器的总数。-1 表示禁用该行为。更改后需要重启服务器 | rcon | 变量 | 5 |
管理员 | |
rcon.maxpasswordfailures |
密码失败多少次后封禁 RCON 客户端的 IP(默认:5) | rcon | 变量 | 5 |
管理员 | |
rcon.permanentbanfailedips |
永久封禁触发过多失败尝试的 IP(默认:false) | rcon | 变量 | False |
管理员 | |
rcon.port |
监听 RCON 连接的端口 | rcon | 变量 | 28016 |
管理员 | |
rcon.print |
为 true 时,RCON 命令会在控制台中输出 | rcon | 变量 | False |
管理员 |
这是一份可搜索的 Rust 控制台和管理员命令参考,既包含所有玩家都能使用的命令,也包含仅限管理员/服务器所有者使用的命令。
常见问题
在游戏中按 F1 打开控制台,然后输入命令并按回车键。