https://github.com/sirlich/sapiens-table
A test mod that adds a table into Sapiens.
https://github.com/sirlich/sapiens-table
lua modding sapiens sapiens-mod
Last synced: 3 months ago
JSON representation
A test mod that adds a table into Sapiens.
- Host: GitHub
- URL: https://github.com/sirlich/sapiens-table
- Owner: SirLich
- Created: 2022-05-30T21:40:44.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-08-25T09:00:21.000Z (almost 3 years ago)
- Last Synced: 2025-01-03T12:24:02.306Z (5 months ago)
- Topics: lua, modding, sapiens, sapiens-mod
- Language: Lua
- Homepage: https://discord.gg/WnN8hj2Fyg
- Size: 26.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Sapiens Table mod
This is a test mod, which simply adds a table to the game. The main purpose is to test the viability of adding buildables into Sapiens, and also finding any places where lack of exposure prevents me from doing it as a pure mode (without source code edits).

## Join Us!
Join the discord: https://discord.gg/WnN8hj2Fyg
## Issues- No Build UI preview image
- Model placeholder is showing even though the model is already built
- Materials are totally wrong!
- Model preview isn't setup correctly yet (wrong positions)
- Not tested yet whether sapiens can actually build it
- Currently using thatch building instead of wood building## Source Edit Issues
Two issues. Might be able to
### buildUI.lua
84: ` constructable.types.aspenTable.index,`
### modelPlaceholder.lua
1070:
```lua
addModel("aspenTable", {
{
multiKeyBase = "splitLog",
multiCount = 5,
additionalIndexCount = 1,
defaultModelName = "birchSplitLog075",
resourceTypeIndex = resource.types.splitLog.index,
placeholderModelIndexForObjectTypeFunction = function(placeholderInfo, objectTypeIndex, placeholderContext)
return getModelIndexForStandardRemaps(placeholderInfo, doorFrameSplitLogRemaps[objectTypeIndex], placeholderContext)
end
},
{
multiKeyBase = "log",
multiCount = 2,
defaultModelName = "birchLog",
resourceTypeIndex = resource.types.log.index,
},
{
key = "splitLog_store",
offsetToStorageBoxWalkableHeight = true,
},
{
key = "log_store",
offsetToStorageBoxWalkableHeight = true,
},
})
```