SlipInfo
Local HTTP server to get game state info!
模組介紹 作者原文
SlipInfo
Local API mod for Slipstream: Rogue Space. Hosts a local HTTP server you can query for information about the current game state.
Requirements
- Slipstream: Rogue Space (on Steam)
- r2modman
(Quick) Setup Video
(video soon!)
Installation
- Launch Slipstream at least once.
- Download and setup r2modman from here (Click "Manual Download" and run the setup exe)
- Select "Slipstream: Rogue Space" from the list of games in r2modman and create a profile.
- In the "Online" tab look for SlipInfo and click it. Then click "Download"
- Launch Slipstream using the "Start modded" button to generate the config file.
- (Optional) Modify the config file using the "Config editor" tab. (see the config file for more details)
Configuration Options
port
The port the API will listen on. Default is 8001.
prefix
The prefix for the API. Default is /slipinfo. (Ex
If you run into any issues getting this set up, please reach out! Best way is via Discord or GitHub Issues!
API Endpoints
GET /version
Gets the version information _for the mod_. Useful for testing without having to join a ship or sign in, since this works from the title screen.
Example Response
{ "version": "1.0.0.0" }
GET /getCrew
Returns a list of all crew members on the ship.
Example Response
{
"crewList":[
{
"name":"MoSadie",
"archetype":"hamster",
"skin":"HamsterWildWest",
"level":15,
"xp":87661,
"currentHealth":40.0,
"maxHealth":40.0,
"currentShields":0.0,
"maxShields":40.0,
"isCaptain":true,
"isLocalPlayer":true
},...
]
}
GET /getCrewByUsername
Returns a crew member by their username.
Query Parameters
- username (string): The username of the crew member.
Example Response
{
"crewmate":{
"name":"MoSadie",
"archetype":"hamster",
"skin":"HamsterWildWest",
"level":15,
"xp":87661,
"currentHealth":40.0,
"maxHealth":40.0,
"currentShields":0.0,
"maxShields":40.0,
"isCaptain":false,
"isLocalPlayer":true
}
}
GET /getSelf
Returns information about the player character. Same information as /getCrewByUsername, but automatically selects the player character.
Example Response
{
"crewmate":{
"name":"MoSadie",
"archetype":"turtle",
"skin":"TurtleWildWest",
"level":3,
"xp":1678,
"currentHealth":50.0,
"maxHealth":50.0,
"currentShields":0.0,
"maxShields":80.0,
"isCaptain":false,
"isLocalPlayer":true
}
}
GET /getShipInfo
Returns information about the ship including type, name, ship health, and fuel tanks.
Example Response
{
"maxHealth": 5400.0,
"minHealth": 0.0,
"currentHealth": 5400.0,
"maxFuel": 10,
"currentFuel": 0, // Note this may not be accurate if you are not the captain or first mate.
"currentSalvage": 0, // Note this may not be accurate if you are not the captain or first mate.
"currentGems": 0,
"shipTech": [
{
"Name": "Scan Booster",
"ShortDescription": "Improves scan success rate",
"LongDescription": "Improves scan success rate when exploring.",
"Level": 1,
"MaxLevel": 5,
"IsActive": true,
"Color": "#40c5c7",
"Unit": "VALUE",
"Levels": [
{
"Level": 1,
"Value": 30.0,
"Cost": 0
},
{
"Level": 2,
"Value": 50.0,
"Cost": 5
},
{
"Level": 3,
"Value": 70.0,
"Cost": 15
},
{
"Level": 4,
"Value": 90.0,
"Cost": 25
},
{
"Level": 5,
"Value": 99.0,
"Cost": 50
}
]
},
{
"Name": "Fuel Compressor",
"ShortDescription": "Increases max fuel cell capacity",
"LongDescription": "Increases max fuel cell capacity using alien compression technology.",
"Level": 1,
"MaxLevel": 5,
"IsActive": true,
"Color": "#ca2dca",
"UnitType": 0,
"Levels": [
{
"Level": 1,
"Value": 10.0,
"Cost": 0
},
{
"Level": 2,
"Value": 12.0,
"Cost": 10
},
{
"Level": 3,
"Value": 14.0,
"Cost": 25
},
{
"Level": 4,
"Value": 16.0,
"Cost": 50
},
{
"Level": 5,
"Value": 20.0,
"Cost": 75
}
]
}
]
}
GET /getEnemyShipInfo
Returns information about the enemy ship, if there is one.
Example Response
{
"enemyShip":{
"maxHealth":10868.0,
"minHealth":0.0,
"current
安裝與使用 安裝:按包內說明操作
- 解壓本站下載的壓縮包,先讀包內的 readme / 說明檔案。
- 多數模組依賴遊戲的模組載入器:常見做法是用社群模組管理器(如 r2modman)選中本遊戲安裝,由管理器自動處理載入器與依賴。
- 手動安裝時,把模組檔案放進遊戲目錄下對應的 Mod / plugins 資料夾。
- 啟動遊戲確認載入成功;帶「前置依賴」的模組需要把依賴一併安裝。
不同模組的安裝位置差異較大,包內說明是最可靠的依據。
下面這些內容需要先安裝,否則該模組不會生效: