Source-checkedTechnology & automation

Lua for IC10 (Lua → IC10 compiler)

by Sus · for Stationeers

Write your IC10 chips in Lua This mod adds Lua as a language to the [url=https://steamcommunity.com/sharedfiles/filedetails/?id=3592775931]IC10 Editor mod. Your Lua is compiled to normal IC10 when…

77Downloads
5d agoLast updated
Steam WorkshopSource

About Lua for IC10 (Lua → IC10 compiler)

From Steam Workshop

Write your IC10 chips in Lua This mod adds Lua as a language to the [url=https://steamcommunity.com/sharedfiles/filedetails/?id=3592775931]IC10 Editor mod. Your Lua is compiled to normal IC10 when…

Write your IC10 chips in Lua

This mod adds Lua as a language to the IC10 Editor mod. Your Lua is compiled to normal IC10 when you save or export, so chips run plain IC10: other players and servers do not need the mod.

Website: luaic.vercel.app - the same compiler in the browser, with an emulator, examples and the full language reference.

Features

  • Lua highlighting, completion for device properties, slots, prefab names in hash("..."), math.* and batch.*
  • Live IC10 preview next to your Lua, line and register counter, errors on the right line
  • Hover a Lua line to see the IC10 it becomes
  • Your Lua is kept: a chip opens as Lua again (stored on your computer, the chip only gets one "# lua-src" line). "Keep Lua" stores the whole source on the chip instead, for sharing
  • Functions (inlined or real calls), arrays, constants, batch, slots, reagents, device(ReferenceId), several chips with shared variables

How to use

[olist] [*] Install BepInEx and StationeersLaunchPad, subscribe to IC10 Editor and this mod. [*] Open a chip, choose Lua (IC10) in the language box in the top right corner of the editor. [*] Write Lua, then Confirm or Export: the chip gets the compiled IC10. [/olist] Options at the bottom: Inline (inline small functions), Keep Lua (store the Lua on the chip), IC10 (show the preview), chip: (which chip of a multi-chip script).

Example


local sensor = d0 --[[@as StructureGasSensor]]
local vent = d1 --[[@as StructureActiveVent]]
local TARGET = 101

while true do
  local p = sensor.Pressure
  if p < TARGET - 5 then vent.On = 1
  elseif p > TARGET + 5 then vent.On = 0 end
  yield()
end

becomes 8 lines of IC10 using 1 register.

Quick reference

[table] [tr][th]Lua[/th][th]IC10 / meaning[/th][/tr] [tr][td]local pump = d2 --[[@as StructureVolumePump]][/td][td]alias for a pin (no code); the comment enables completion[/td][/tr] [tr][td]x = pump.Setting / pump.On = 1[/td][td]l / s[/td][/tr] [tr][td]d0.slots[0].Occupied[/td][td]ls (slots start at 0)[/td][/tr] [tr][td]d3.exists[/td][td]sdse, or bdse/bdns in an if[/td][/tr] [tr][td]local tank = device(12345)[/td][td]ld / sd by ReferenceId[/td][/tr] [tr][td]local MAX = 5[/td][td]ALL_CAPS constant: folded, 0 registers[/td][/tr] [tr][td]hash("StructureSolarPanel")[/td][td]HASH("...")[/td][/tr] [tr][td]batch.read(h, "Charge", "Sum")[/td][td]lb (Average, Sum, Minimum, Maximum)[/td][/tr] [tr][td]batch.write(h, "On", 1)[/td][td]sb; read_named / write_named = lbn / sbn[/td][/tr] [tr][td]reagent(d0, "Contents", hash("ItemIronOre"))[/td][td]lr[/td][/tr] [tr][td]math.abs floor ceil sqrt sin cos max min clamp lerp round[/td][td]matching instructions[/td][/tr] [tr][td]math.huge / math.nan / math.tau / math.rgas[/td][td]pinf / nan / IC10 constants[/td][/tr] [tr][td]bit.sra / rol / extract / replace ...[/td][td]sra / rol / ext / ins ...[/td][/tr] [tr][td]Color.Red, GasType.Oxygen, str("HELLO")[/td][td]game enums, STR("...")[/td][/tr] [tr][td]batch.read_slot / write_slot, rmap, clear(d0)[/td][td]lbs / sbs, rmap, clr[/td][/tr] [tr][td]local t = {1, 2, 3} / array(10)[/td][td]array in the chip's stack (index from 1)[/td][/tr] [tr][td]local function f(a) return a * 2 end[/td][td]inlined or jal / j ra[/td][/tr] [tr][td]yield() / sleep(2) / hcf()[/td][td]yield / sleep / hcf[/td][/tr] [tr][td]chip("name", { link = d5 }, function() ... end), shared = {...}[/td][td]several chips with shared variables[/td][/tr] [/table] Differences from Lua: 0 is false, everything is a number, tables only as arrays. Full reference: luaic.vercel.app/docs

Other Lua mods

Works next to StationeersLua: that mod runs Lua on its own Lua chip and shows up as Lua in the language box, this one compiles to IC10 and shows up as Lua (IC10). Pick the one you want per chip.

Source and issues: ask in the comments.

Highlights

From source data

Footprint

Rated a light load on a server.

Last update

Its author last shipped an update 5d ago.

Lua for IC10 (Lua → IC10 compiler) on Nxeon

From our catalogue
One-click install
Not available. One-click install isn't available for this game's mods yet. Download it and upload it to your server in Files.
Server load
light
Smallest plan we suggest
Stationeers — 4 GB (4 GB RAM). This follows our own load rating above, not a benchmark.
Latest build
2026-11-26, released 2026-11-26

Game versions by loader

LoaderGame versionsNewest
Workshop

From 2 recorded builds of Lua for IC10 (Lua → IC10 compiler).

Recent builds

BuildReleasedGame versionsLoaders
2026-11-262026-11-26n/aWorkshop
2026-11-152026-11-15n/aWorkshop

Dependencies

Declared by the newest build that lists any. Required ones are installed with it on one-click installs.

Run Lua for IC10 (Lua → IC10 compiler) on a Stationeers server

Deploy a server above, then upload the file in Files.

What kind of mod it is

From the catalog
Listed on Steam Workshop as “Workshop”

Technology & automation

Machines, power, logistics and automation.

Compatibility

Game
Stationeers

Verified at the source

  • ✓Steam WorkshopOfficial listing, checked 2026-12-01Open ↗
  • ✓AuthorSus, as published on Steam Workshop
  • ✓LicenseNot published by the sourceFree

Lua for IC10 (Lua → IC10 compiler), answered

Generated from the mod’s own source data.

Is it free?

Yes. Lua for IC10 (Lua → IC10 compiler) is free to download from Steam Workshop.

How do I add it to my Nxeon server?

One-click install isn't available for this game's mods yet. Download Lua for IC10 (Lua → IC10 compiler) from Steam Workshop and upload it to your Nxeon Stationeers server in Files.

NxLabs

Run Lua for IC10 (Lua → IC10 compiler) on a Stationeers server.

Deploy in about a minute from $8.99 a month, then upload Lua for IC10 (Lua → IC10 compiler) in Files.