SANDBOX — this is a test environment. No servers are actually deployed and no real payments are charged.
Back to NxLabs

NxLabs / Vintage Story

Electrical Progressive: Core

TBy tehtelev

Electrical logic library

Description

<span style="font-size: 2rem;">🔌</span> Electrical Progressive: Core

Core electricity logic library. Performs all necessary calculations. Useless on its own.

ℹ️ What this library offers

🖥️
Server-side calculations
All calculations are performed on the server with multi-threading support. Electricity does not work in unloaded chunks.
Realistic behavior
Different voltages, energy transfer in packets along the shortest path, wire losses, damage on contact with living entities, can react to weather.
🎮
Enhanced gameplay
Electricity complements the game, reduces grind and makes it more enjoyable.
⚙️ Configuration settings (ElectricityConfig.json)

Parameters:

  • SpeedOfElectricity — energy movement speed (default: 4, range: 1-16)
  • TimeBeforeBurnout — time before burnout (default: 30 sec, range: 1-600)
  • MultiThreading — number of calculation threads (default: 4, range: 2-32)
  • CacheTimeoutCleanupMinutes — route cache cleanup interval (default: 2 min, range: 1-60)
  • MaxDistanceForFinding — maximum pathfinding distance (default: 200, range: 8-1000)
  • EnergyLossFactor — wire loss multiplier (default: 1.0, range: 0.0-2.0). 0 - means there are no losses in the wires.
  • EnableLossCompensation — compensate losses (default: false). The current in the wires may increase
  • EnableCameraRotateForGlider — controls the camera rotation effect when flying a glider (default: true).
  • MaxGliderSpeed — sets the maximum flight speed limit for the glider (default: 1.0, range: 0.05-1.0)
  • GliderDurabilityLossAmount — loss of glider durability for a single use of acceleration (default: 15, range: 0-200)

Use the Auto Config Lib mod to adjust settings. Restart the world after applying changes.

🛣️ Development roadmap

Ratings & reviews

No ratings yet

Sign in to leave a rating or comment.