An open API service indexing awesome lists of open source software.

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.

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).

![image](https://user-images.githubusercontent.com/18729296/174457396-e5eda854-f91f-4985-9db7-63f958f51d28.png)

## 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,
},
})
```