Space Engineers

Space Engineers

26 个评价
Atoms Gas Station Script
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
279.775 KB
10 月 22 日 上午 10:40
1 项改动说明 ( 查看 )

订阅以下载
Atoms Gas Station Script

描述
Hydrogen Fueling Station - Automated Gas Station Script

If you're interested in your own mod or custom block contact me here for a quote!
https://www.discord.gg/ZTybnMnrrr

ATLAS TICKET TOOL (Discord Bot)
✨💠 𝘼𝙩𝙡𝙖𝙨 𝙏𝙞𝙘𝙠𝙚𝙩 𝙏𝙤𝙤𝙡 💠✨[atlastickettool.com]


✦━━━━━━━━━━━ ✦ ━━━━━━━━━━━✦✦━━━━━━━━━━━ ✦ ━━━━━━━━━━━✦✦━━━━━━━━━━━ ✦ ━━━━━━━━━━━✦

📋 Overview

This script creates a professional, automated hydrogen fueling station with a sleek smart-home inspired interface. Customers connect, insert payment, and receive fuel automatically with real-time progress tracking, transaction receipts, and intelligent safety features.

Key Features:
  • 💳 Automatic payment processing with change refund
  • 🎨 Modern card-based UI with smooth animations
  • 📊 Real-time fuel dispensing progress tracking
  • 🧾 Transaction history with receipts (last 5 per grid)
  • 🛡️ Multiple safety systems (overshoot prevention, ship-full detection)
  • 👤 Personalized welcome messages for connected pilots
  • ⚡ Dynamic color-coded status indicators
  • 🔄 Automatic buffer tank refilling system




🔧 Setup Requirements

Required Blocks:
  • 1x LCD Panel - Name: "Gas Station LCD"
  • 1x Programmable Block - Load this script
  • 1x Cargo Container - Name: "Payment Container" (customer inserts credits here)
  • 1x Cargo Container - Name: "Earnings Container" (your profits)
  • 1x Gas Tank (Hydrogen) - Name: "Buffer Tank"
  • 1x Connector - Name: "Pump Connector" (customer connects here)
  • 2+ Connectors - Group: "Main Line Connectors" (your supply line - locked during idle)
  • 2+ Connectors - Group: "Secondary Line Connectors" (customer side - unlocked during idle)

Currency Configuration:
The script is configured for Constellation Credits by default. To change currency, edit this line:
const string CURRENCY_ID = "PhysicalObject/ConstellationCredit";




⚙️ Configuration

Pricing Settings:
const double PRICE_PER_KL = 1.0; // Price per kiloliter (default: 1 credit) const double MIN_FUEL_KL = 100.0; // Minimum purchase (default: 100 kL) const double MIN_PAYMENT = 100.0; // Minimum payment required (100 credits)

Safety Settings:
const double FUEL_STOP_THRESHOLD = 0.95; // Stop at 95% to prevent overshoot const double FUEL_HARD_LIMIT = 1.0; // Emergency stop at 100% const int NO_CHANGE_TIMEOUT = 300; // Ship full detection (5 seconds)

Display Settings:
const float UI_SCALE = 0.92f; // Global UI size (0.92 = 8% smaller) const float SAFE_MARGIN = 16f; // Edge padding const float GAP = 12f; // Spacing between elements




🎮 How to Use

For Station Owners:
  1. Build station with all required blocks
  2. Name blocks exactly as specified above
  3. Load script into programmable block
  4. Configure pricing in the script constants
  5. Fill buffer tank with hydrogen from your supply
  6. Station is ready! (shows "ONLINE" status when operational)

For Customers:
  1. Connect ship to "Pump Connector"
  2. Insert currency into "Payment Container"
  3. Press green button on timer/button block (run script with "start" argument)
  4. Watch real-time fueling progress on LCD
  5. Disconnect when complete - any unused credits are automatically refunded
  6. Run "receipts" command to view your last 5 transactions
4 条留言
ΔŦØΜ  [作者] 12 月 6 日 下午 6:42 
Glad the devs watch the workshop for community mods! big thanks to them for the shoutout! :steamhappy:
JohnJ44 12 月 6 日 上午 6:39 
I actually found this via the spotlight page. Looks cool
ΔŦØΜ  [作者] 12 月 5 日 下午 1:28 
Thanks for everyone's continued support! :steamhappy:
Mojo 12 月 5 日 上午 9:55 
Nice!

Even made it to Keen's spotlight page, so keep up the good work.