https://github.com/sirlich/sapiens-sheep
A test mod for adding mobs into Sapiens.
https://github.com/sirlich/sapiens-sheep
lua modding sapiens sapiens-mod
Last synced: 3 months ago
JSON representation
A test mod for adding mobs into Sapiens.
- Host: GitHub
- URL: https://github.com/sirlich/sapiens-sheep
- Owner: SirLich
- Created: 2022-05-18T20:57:33.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2022-06-25T21:52:50.000Z (almost 3 years ago)
- Last Synced: 2025-01-03T12:24:05.301Z (5 months ago)
- Topics: lua, modding, sapiens, sapiens-mod
- Language: Lua
- Homepage: https://discord.gg/WnN8hj2Fyg
- Size: 193 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Sapiens Sheep Mod
This is a test mod, which simply adds a sheep to the game. The main purpose is to test the viability of adding entities into Sapiens, and also finding any places where lack of exposure prevents me from doing it as a pure mode (without source code edits).
[
](https://discord.gg/WnN8hj2Fyg)
## Issues
This section will simply list the places where I became blocked, and resorted to source code edits.
### modManager.lua
Server side loading for mods appears to be broken. I fixed this by directly editing `modManager.lua` to allow my server mods to load.
259: `if (enabledAppMods and enabledAppMods[modDirName]) or modDirName == "sheep" or modDirName == "hammerstone-framework" then`
### Model Loading
From what I can tell, placing a `glb` file into my mods model folder did not work. At all. It required me to move it into the actual game files. Needs more investigation on my side.
### planHelper.lua
I haven't done a full investigation here. It's likely I can fix this some other way. But for now, I quickly added my code into the Plan Helper:
1163: `[gameObject.types.sheep.index] = basicHuntingInfo`
### mob.lua
This is another point where I'm pretty sure I can get it working. My initial attempts though were crashing Sapiens with no logging, and a blackscreen-freeze. I'm not sure what's wrong here.
61: `mobSheep:load(mob, gameObject)`
### clientMob.lua
I think this is almost definitely not something I can handle without src code edits.
56: `[mob.types.sheep.index] = clientSheep`