免费插件

Rust Map API

Rust 地图 API

用于生成 Rust 服务器地图图像的 API

mapimagegenerate

原作者:MJSU · 查看 uMod 官方页面 ↗

插件介绍

用于生成 Rust 服务器地图图像的 API

Allows creating an image of the current map. The map image can be split into multiple sections with varying number of rows and columns. Custom map images can be created by passing in custom render settings. All images are saved to rusts file storage and only need to be generated once per wipe. Map renders will need to created every restart. Overlays can be added to the map images. There is a built in default overlap map called "Icons". This map image contains an icon for each monument and each icon can be changed in the config.

主要用途

主要用于map、image、generate等服务端功能。 本插件由 MJSU 发布,当前目录记录版本为 v1.3.3,uMod 累计下载 24,033 次。

适用场景

  • 希望扩展原版服务器功能的服主

功能分类

mapimagegenerate
查看 uMod 官方英文简介

An API to generate the Rust server map image

指令说明

rma_regenerate - removes the existing maps from file storage and regenerates them.This is useful when you change the overlay in the config. This is an admin only command.

rma_upload - uploads the map image to imgur. Requires ImgurApi plugin loaded and configured

相关依赖

  • Imgur API
  • Discord Wipe
  • Ember
  • Sign Map

配置说明

{ "Map Colors Version": "Current", "Starting Splits (Rows x Columns)": [ "2x2", "3x3", "4x4" ], "IconSettings": { "Harbor": { "Width": 70, "Height": 70, "ImageUrl": "https://i.imgur.com/ND4c70v.png", "Show": true }, "Giant Excavator Pit": { "Width": 70, "Height": 70, "ImageUrl": "https://i.imgur.com/hmUKFwS.png", "Show": true }, "Junkyard": { "Width": 70, "Height": 70, "ImageUrl": "https://i.imgur.com/V8D4ZGc.png", "Show": true }, "Launch Site": { "Width": 70, "Height": 70, "ImageUrl": "https://i.imgur.com/gjdynsc.png", "Show": true }, "Water Treatment Plant": { "Width": 70, "Height": 70, "ImageUrl": "https://i.imgur.com/5L2Gdag.png", "Show": true }, "Military Tunnel": { "Width": 70, "Height": 70, "ImageUrl": "https://i.imgur.com/6RwXvC2.png", "Show": true }, "Airfield": { "Width": 70, "Height": 70, "ImageUrl": "https://i.imgur.com/KhQXhIs.png", "Show": true }, "Power Plant": { "Width": 70, "Height": 70, "ImageUrl": "https://i.imgur.com/ZxqiBc6.png", "Show": true }, "Train Yard": { "Width": 70, "Height": 70, "ImageUrl": "https://i.imgur.com/wVifXqr.png", "Show": true }, "Outpost": { "Width": 70, "Height": 70, "ImageUrl": "https://i.imgur.com/hb7JZ9i.png", "Show": true }, "Bandit Camp": { "Width": 70, "Height": 70, "ImageUrl": "https://i.imgur.com/cIR4YOt.png", "Show": true }, "Sewer Branch": { "Width": 70, "Height": 70, "ImageUrl": "https://i.imgur.com/PbKZQdZ.png", "Show": true }, "HQM Quarry": { "Width": 70, "Height": 70, "ImageUrl": "https://i.imgur.com/bGFogbM.png", "Show": true }, "Satellite Dish": { "Width": 70, "Height": 70, "ImageUrl": "https://i.imgur.com/XwSpCJY.png", "Show": true }, "The Dome": { "Width": 70, "Height": 70, "ImageUrl": "https://i.imgur.com/mPRgBF2.png", "Show": true }, "Sulfur Quarry": { "Width": 70, "Height": 70, "ImageUrl": "https://i.imgur.com/bGFogbM.png", "Show": true }, "Stone Quarry": { "Width": 70, "Height": 70, "ImageUrl": "https://i.imgur.com/bGFogbM.png", "Show": true }, "Power Sub Station": { "Width": 70, "Height": 70, "ImageUrl": "https://i.imgur.com/LQUknms.png", "Show": false }, "Water Well": { "Width": 70, "Height": 70, "ImageUrl": "https://i.imgur.com/TASWRD0.png", "Show": true }, "Abandoned Cabins": { "Width": 70, "Height": 70, "ImageUrl": "https://i.imgur.com/xigwDcW.png", "Show": true }, "Wild Swamp": { "Width": 70, "Height": 70, "ImageUrl": "https://i.imgur.com/2tcTYKA.png", "Show": true }, "Abandoned Supermarket": { "Width": 70, "Height": 70, "ImageUrl": "https://i.imgur.com/ZyP2W9F.png", "Show": true }, "Mining Outpost": { "Width": 70, "Height": 70, "ImageUrl": "https://i.imgur.com/C0acqvj.png", "Show": true }, "Oxum's Gas Station": { "Width": 70, "Height": 70, "ImageUrl": "https://i.imgur.com/oW1bDdF.png", "Show": true }, "Cave": { "Width": 70, "Height": 70, "ImageUrl": "https://i.imgur.com/ByKJj9C.png", "Show": true }, "Lighthouse": { "Width": 70, "Height": 70, "ImageUrl": "https://i.imgur.com/r5vbzhm.png", "Show": true }, "Large Oil Rig": { "Width": 70, "Height": 70, "ImageUrl": "https://i.imgur.com/AAhZO7k.png", "Show": true }, "Oil Rig": { "Width": 70, "Height": 70, "ImageUrl": "https://i.imgur.com/AAhZO7k.png", "Show": true } }, "Custom Icons": [ { "XPos": 0.0, "ZPos": 0.0, "Width": 200, "Height": 200, "ImageUrl": "https://www.google.com/images/branding/googlelogo/1x/googlelogo_color_272x92dp.png", "Show": false } ] }

Version1 - The map colors before the 10/2020 updateCurrent - The current map colors

官方配置示例

{
  "Map Colors Version": "Current",
  "Starting Splits (Rows x Columns)": [
    "2x2",
    "3x3",
    "4x4"
  ],
  "IconSettings": {
    "Harbor": {
      "Width": 70,
      "Height": 70,
      "ImageUrl": "https://i.imgur.com/ND4c70v.png",
      "Show": true
    },
    "Giant Excavator Pit": {
      "Width": 70,
      "Height": 70,
      "ImageUrl": "https://i.imgur.com/hmUKFwS.png",
      "Show": true
    },
    "Junkyard": {
      "Width": 70,
      "Height": 70,
      "ImageUrl": "https://i.imgur.com/V8D4ZGc.png",
      "Show": true
    },
    "Launch Site": {
      "Width": 70,
      "Height": 70,
      "ImageUrl": "https://i.imgur.com/gjdynsc.png",
      "Show": true
    },
    "Water Treatment Plant": {
      "Width": 70,
      "Height": 70,
      "ImageUrl": "https://i.imgur.com/5L2Gdag.png",
      "Show": true
    },
    "Military Tunnel": {
      "Width": 70,
      "Height": 70,
      "ImageUrl": "https://i.imgur.com/6RwXvC2.png",
      "Show": true
    },
    "Airfield": {
      "Width": 70,
      "Height": 70,
      "ImageUrl": "https://i.imgur.com/KhQXhIs.png",
      "Show": true
    },
    "Power Plant": {
      "Width": 70,
      "Height": 70,
      "ImageUrl": "https://i.imgur.com/ZxqiBc6.png",
      "Show": true
    },
    "Train Yard": {
      "Width": 70,
      "Height": 70,
      "ImageUrl": "https://i.imgur.com/wVifXqr.png",
      "Show": true
    },
    "Outpost": {
      "Width": 70,
      "Height": 70,
      "ImageUrl": "https://i.imgur.com/hb7JZ9i.png",
      "Show": true
    },
    "Bandit Camp": {
      "Width": 70,
      "Height": 70,
      "ImageUrl": "https://i.imgur.com/cIR4YOt.png",
      "Show": true
    },
    "Sewer Branch": {
      "Width": 70,
      "Height": 70,
      "ImageUrl": "https://i.imgur.com/PbKZQdZ.png",
      "Show": true
    },
    "HQM Quarry": {
      "Width": 70,
      "Height": 70,
      "ImageUrl": "https://i.imgur.com/bGFogbM.png",
      "Show": true
    },
    "Satellite Dish": {
      "Width": 70,
      "Height": 70,
      "ImageUrl": "https://i.imgur.com/XwSpCJY.png",
      "Show": true
    },
    "The Dome": {
      "Width": 70,
      "Height": 70,
      "ImageUrl": "https://i.imgur.com/mPRgBF2.png",
      "Show": true
    },
    "Sulfur Quarry": {
      "Width": 70,
      "Height": 70,
      "ImageUrl": "https://i.imgur.com/bGFogbM.png",
      "Show": true
    },
    "Stone Quarry": {
      "Width": 70,
      "Height": 70,
      "ImageUrl": "https://i.imgur.com/bGFogbM.png",
      "Show": true
    },
    "Power Sub Station": {
      "Width": 70,
      "Height": 70,
      "ImageUrl": "https://i.imgur.com/LQUknms.png",
      "Show": false
    },
    "Water Well": {
      "Width": 70,
      "Height": 70,
      "ImageUrl": "https://i.imgur.com/TASWRD0.png",
      "Show": true
    },
    "Abandoned Cabins": {
      "Width": 70,
      "Height": 70,
      "ImageUrl": "https://i.imgur.com/xigwDcW.png",
      "Show": true
    },
    "Wild Swamp": {
      "Width": 70,
      "Height": 70,
      "ImageUrl": "https://i.imgur.com/2tcTYKA.png",
      "Show": true
    },
    "Abandoned Supermarket": {
      "Width": 70,
      "Height": 70,
      "ImageUrl": "https://i.imgur.com/ZyP2W9F.png",
      "Show": true
    },
    "Mining Outpost": {
      "Width": 70,
      "Height": 70,
      "ImageUrl": "https://i.imgur.com/C0acqvj.png",
      "Show": true
    },
    "Oxum's Gas Station": {
      "Width": 70,
      "Height": 70,
      "ImageUrl": "https://i.imgur.com/oW1bDdF.png",
      "Show": true
    },
    "Cave": {
      "Width": 70,
      "Height": 70,
      "ImageUrl": "https://i.imgur.com/ByKJj9C.png",
      "Show": true
    },
    "Lighthouse": {
      "Width": 70,
      "Height": 70,
      "ImageUrl": "https://i.imgur.com/r5vbzhm.png",
      "Show": true
    },
    "Large Oil Rig": {
      "Width": 70,
      "Height": 70,
      "ImageUrl": "https://i.imgur.com/AAhZO7k.png",
      "Show": true
    },
    "Oil Rig": {
      "Width": 70,
      "Height": 70,
      "ImageUrl": "https://i.imgur.com/AAhZO7k.png",
      "Show": true
    }
  },
  "Custom Icons": [
    {
      "XPos": 0.0,
      "ZPos": 0.0,
      "Width": 200,
      "Height": 200,
      "ImageUrl": "https://www.google.com/images/branding/googlelogo/1x/googlelogo_color_272x92dp.png",
      "Show": false
    }
  ]
}
private bool IsReady()

更新日志

最新版本: v1.3.3
最后版本发布: 2025-10-02
最后更新(条目): 2026-07-18

本站记录 uMod 官方插件信息。完整的历史更新日志请参阅 uMod 官方页面

安装方法

  1. 确认服务器已安装 Oxide / uMod 或兼容的 Carbon 框架。
  2. 登录本站后点击"下载",由 uMod 官方地址获取作者发布的文件。
  3. 将 .cs 文件放入服务器的 oxide/plugins 目录。
  4. 观察服务端控制台,确认插件编译并成功加载。
  5. 具体配置、权限、指令和依赖请查看原作者的 uMod 页面。

使用前注意

  • Rust 更新后,请先确认插件是否仍兼容当前服务端版本。
  • 修改配置前建议备份原配置文件,并在测试服验证后再部署到正式服。
  • 若插件依赖其他扩展或库,以 uMod 原作者页面的最新说明为准。
  • 本站中文内容用于辅助理解,遇到版本差异时以官方英文文档和源码为准。
来源说明

中文介绍由 uMod 官方简介翻译整理。插件著作权、许可证、完整文档和最新发布状态均以原作者及 uMod 官方页面为准。