Mods / Wilderlands Lunarbound

Tags:
Author: Thalius
Side: Server
Created: Oct 9th at 1:13 AM
Last modified: Oct 19th at 8:42 PM
Downloads: 2533
Follow Unfollow 48

Latest release (for Vintage Story 1.21.0 and 1.21.4, potentially outdated):
Wilderlands Lunarbound_1.0.0.zip  1-click install


Wilderlands Lunarbound is a mod that adds a very simple behavior that can be added to an entity's server side behaviors in their JSON asset which basically defines whether the entity is allowed to exist during the game's current phase of the lunar cycle. If not, the entity despawns.

To use, add this to the entity's behaviors on the server side of the JSON file:

"server": {
   "behaviors": [
       {
        "code": "lunarspawn",
        "lunarSpawnPhases": [ 1, 2, 3, 4, 5, 6, 7, 8 ]
       },

There are 8 phases to the lunar cycle. 1 being the new moon (moon is not illuminated at all), and 4 being the full moon. At 30 day months, each phase lasts a bit over 3 days (I think). I did not code the phases of the lunar cycle, they already exist in the game. This mod simply provides a way to tap into them to use lunar phases as behavior that moderates spawn ability. If you want further details about how the lunar cycle actually works, you'll have to dig into the code and puzzle it out. I'm still learning myself.

Mod is in early phase. I've tested it without issues to the best of my ability, and could use some other eyes on it and some feedback. If I don't hear word of any issues, I'll move it out of dev phase in it's current state.

Other features are being considered, but I'm not ready to share details at this time.

Mod Version Mod IdentifierFor Game version Downloads Released Changelog Download 1-click mod install*
1.0.0 wlunarbound 2463 Oct 19th at 8:42 PM Wilderlands Lunarbound_1.0.0.zip 1-click install

Out of dev release. Also added client side requirement due to some issues using on servers as a dependancy for other mods.

1.0.0-pre.1 wlunarbound 70 Oct 9th at 1:17 AM Empty Wilderlands Lunarbound_1.0.0-pre1.zip 1-click install

11 Comments (oldest first | newest first)

💬 Thalius , Nov 20th at 1:27 PM

Kadook Instructions and example on how to do that are posted in the mod description already. Please read the description page to understand how the mod works, and how to use it. You'll have to learn how the entity JSON is laid out, and then follow the instructions posted.

💬 Kadook, Nov 20th at 5:30 AM

New to modding servers, which JSONs do i need to add the entity behaviors for the wilderlands rustbound mod?

💬 Thalius , Nov 17th at 3:11 AM

ProphetOfMercy Just to be clear, those logs are not errors. They are simply a record that an entity spawned that is not allowed to exist during that phase of the lunar cycle, and is being removed (with additional logs saying the entity has spawned and is allowed to exist, if they spawned within their proper cycle). It's not a bug, it's just the mod doing it's thing (with some debugging/logging code left in that I probably should go ahead and remove).

💬 ProphetOfMercy, Nov 17th at 2:57 AM

@Thalius
Could be wrong, but it seemed that the moment those logs occured mentioned the lunar spawns/despawns, someone on the server would disconnect. Ill try reinstalling it for further testing.

💬 BraniyaKz, Nov 15th at 9:09 AM (modified Nov 16th at 1:55 PM)

Thalius - I'm unsure how the moon phases are coded in-game (ore where to find them, but wouldn't a full moon fall on 5 and not 4? Given the following cycle:

1 = New Moon | 2 = waxing crescent | 3 = first quarter | 4 = waxing gibbous | 5 = full moon | 6 = waning gibbous | 7 = third quarter | 8 = waning crescent
💬 Thalius , Nov 15th at 7:37 AM

ProphetOfMercy  That is not a crash report. Says you lost connection, not crashed. Not sure what the cause could have been. You are the first to report anything like it in connection to this mod.

May have something to do with the logging of entities being removed from the server because they are not allowed, and maybe your server memory is filling up? Though I've not heard of that. Our server has been running with this mod since it was released, and we've not seen any issues at all.

I should probably remove the constant logging though. Not really a need for it. I'll have a release out for that in the next few days. Until then, regular once or twice a day server maintenance restarts are a good habit to be in, depending on your server hosting quality. They help keep things running smooth.

💬 ProphetOfMercy, Nov 15th at 5:45 AM

This mod in particular has been causing me and my server players an ungodly amount of back to back crashes, typically once or twice a day.

Spoiler
15.11.2025 00:40:08 [Server Notification] [WilderlandsLunarbound] LunarSpawn initialized on wrustbound:caretaker-ramhorned. AllowedInternalPhases=0,1,2,4,5,6,7
15.11.2025 00:40:09 [Server Notification] [WilderlandsLunarbound] LunarSpawn tick for wrustbound:caretaker-ramhorned: currentInternalPhase=7
15.11.2025 00:40:09 [Server Notification] [WilderlandsLunarbound] LunarSpawn: wrustbound:caretaker-ramhorned allowed to remain this phase (phase 8)
15.11.2025 00:41:27 [Server Notification] [WilderlandsLunarbound] LunarSpawn initialized on wrustbound:caretaker-deerhorned. AllowedInternalPhases=0,1,2,4,5,6,7
15.11.2025 00:41:27 [Server Notification] [WilderlandsLunarbound] LunarSpawn initialized on wrustbound:caretaker-deerhorned. AllowedInternalPhases=0,1,2,4,5,6,7
15.11.2025 00:41:27 [Server Notification] [WilderlandsLunarbound] LunarSpawn tick for wrustbound:caretaker-deerhorned: currentInternalPhase=7
15.11.2025 00:41:27 [Server Notification] [WilderlandsLunarbound] LunarSpawn: wrustbound:caretaker-deerhorned allowed to remain this phase (phase 8)
15.11.2025 00:41:27 [Server Notification] [WilderlandsLunarbound] LunarSpawn tick for wrustbound:caretaker-deerhorned: currentInternalPhase=7
15.11.2025 00:41:27 [Server Notification] [WilderlandsLunarbound] LunarSpawn: wrustbound:caretaker-deerhorned allowed to remain this phase (phase 8)
15.11.2025 00:41:37 [Server Notification] Client 8 disconnected:
15.11.2025 00:41:37 [Server Notification] UDP: client disconnected ProphetOfMercy
15.11.2025 00:41:37 [Server Event] Player ProphetOfMercy got removed. Reason: Lost connection/disconnected
15.11.2025 00:41:37 [Server Event] Client 8 disconnected.
15.11.2025 00:41:46 [Server Notification] Server ticking has been suspended
15.11.2025 00:41:46 [Server Notification] Autosaving game world. Notifying mods, then systems of save...
15.11.2025 00:41:46 [Server Event] [rustboundmagic] Gateway network saved!
15.11.2025 00:41:46 [Server Notification] Defragmented listener lists
💬 TheSinisterRat, Oct 20th at 1:47 AM

Just wanted to throw some more change into the 'this is a spectacular idea' hat!

 

Definitely looking forward to trying it out, but right now I'm struggling with memory leaks and my friends would murder me if I add more mods. Keep up the phenomenal work! 

💬 Ket, Oct 9th at 4:50 PM

I really dislike that spawning is tied to light levels, makes it feel like every build needs to be las vegas. This is a much more interesting concept! 

💬 Hydromancerx, Oct 9th at 5:44 AM (modified Oct 9th at 5:44 AM)

Too bad this was not released on the full moon a few days ago!

💬 Mobius, Oct 9th at 3:43 AM

Woah that's quite a cool concept right there, I like it

 (edit comment delete)
Основной веб-сайт | Почтовый сервер | FTP сервер | Административная панель | API интерфейс | Content Delivery Network | Статические файлы | Ресурсы сайта | Изображения | Файловое хранилище | Блог | Интернет-магазин | Техническая поддержка | Справочная система | Документация | Форум | Новости | Загрузки | Демонстрация | Тестовая среда | Приложение | Медиа контент | Разработка | Промежуточная среда | Бета версия | Безопасная зона | Вход в систему | Панель управления | Портал | Система управления контентом