Confirm with your password

Body2Lua

Converts creature body plans to lua and back.

Client-only
Version history

· Website

Stars
0
Downloads
8
Version
1.0.1
Updated
Author
u0068
Virus scan
✓ Scan successful
Runs on
Client-only

Compatibility

Required 1

Install these too — Gale pulls them in for you.

Description

Body2Lua

Adds console/api commands to convert creature bodies to lua tables and back.
Intended for making modding body-plan changing creatures easy.
Probably doesn't work well with combos, I'll fix that eventually.
Not to be confused with bod2lua by Gunno, which converts .bod files to lines of lua code

Documentation

  • body2lua(string filename = "temp.lua", int body_id = player_body_id)

    • Saves the living cells of the specified body to the specified file. Uses the player body and temp.lua if not specified.
  • lua2body(string filename = "temp.lua", int body_id = player_body_id)

    • Places the cells from specified file onto the specified body. Uses the player body and temp.lua if not specified.

Examples

  • body2lua()
    • Saves the player's body to temp.lua
  • lua2body()
    • Loads the cells from temp.lua into the player's body
  • body2lua("funky_fish.lua")
    • Saves the player's body to funky_fish.lua
  • lua2body("funky_fish.lua")
    • Loads funky_fish.lua to the player's body
  • body2lua("funky_fish.lua", 1234)
    • Saves the body with id 1234 to funky_fish.lua
  • lua2body("funky_fish.lua", 1234)
    • Loads funky_fish.lua to the body with id 1234

Files

5 files · 104 KB download

Loading files…

Manual download
Just this mod One .zip — Body2Lua 1.0.1
Files you'll get 2

Your browser may ask permission to download several files at once. How to install these manually

Manual installation instructions
1

Install Nucleus

Nucleus is required to run mods in Primordialis.

Download Nucleus 1.0.5 · View mod page

Check out the mod page for detailed installation instructions.

2

Install Body2Lua

This mod only needs to be installed on the client.

Download Body2Lua 1.0.1

Extract the ZIP and place the file(s) into the BepInEx/plugins/ folder inside your Primordialis game folder.