![]() This fix applies to all NPCs universally. #FIX SHIP STARBOUND MOD#My mod fixes this by using this technique consistently. There is a technique that can be used to limit the time path-finding before aborting the action, but Starbound's authors apparently used it in only like 2 of about 20 locations that can call moveToPosition. If an NPC invokes moveToPosition, but cannot path-find a route to the specified position, the NPC will freeze in place indefinitely until a route becomes available (which may never happen) or until a higher-priority event breaks their deadlock (e.g., the player talks to them). There is also a major bug with the Starbound path-finding Lua function moveToPosition. This system is roughly similar to that used by an existing mod, Smarter Crew, but I believe mine is implemented far more efficiently. Each NPC moves their home location periodically, so that the NPCs are constantly moving around the ship in a pseudo-realistic fashion. ![]() I have fixed this by building a system in which NPCs periodically move their "home" location to near a random object that is related to their job (e.g., a soldier might select a weapon chest, whereas a medic may select the medical crafting table). Onboard a ship, they simply won't interact often with objects that are far from the teleporter. My mod also fixes this bug universally for all nocturnal NPCs.įinally, there are limitations to how far NPCs will wander from their spawn point before turning back. #FIX SHIP STARBOUND CODE#Having fixed the bed and chair searching limitations, I discovered that there is a bug in the code in which nocturnal NPCs will be unable to sleep - they will go to sleep, wake up instantly, go back to sleep, wake up instantly, and so forth until the end of the day. In my mod, I raise the limits for shipboard NPCs' search for beds and chairs, such that they may find them across the whole ship. Due to the limits in the code, NPCs may only search for chairs up to 80 blocks from the spawn point, so chairs on the far edges of your ship will be unused. Similarly, during certain hours of the day, NPCs want to sit in a chair. So if you put the beds on your ship more than 50 blocks away from the teleporter, then NPCs will never use them. However, due to a limitation in the code, NPCs are only allowed to search for a bed within 50 blocks of their spawn locations. Hence, shipboard NPCs tend to swarm around the teleporter most frequently.ĭuring certain hours of the day, NPCs want to sleep. In the case of crewmembers, this is the teleporter. After completing most actions, NPCs return to their spawn location. The reason for clumpy shipboard NPC behavior is that Starbound's NPC behavior AI is very simplistic. ![]() I am actually in the final stages of developing a mod to fix NPC behavior on ships, and was writing a forum post to describe my findings. ![]() #FIX SHIP STARBOUND PATCH#News Images Livestream Patch Notes Build Let's Play Question Fan Art Modding Discussion Video Nightly Spoilers High quality posts have a chance of being featured in the Starbound Dev Blog! If you wish to make text into a spoiler, you may do that like so: (/spoiler)Įach week /r/Starbound hosts a Build of the Week thread (BotW) with the build topic changing weekly. Follow reddit's self-promotion guidelines ( additional note).You’ll embark on a quest to survive, discover, explore and fight your way across an infinite universe! Latest stable update: August 7th, 2019 Take on the role of a character who’s just fled their home planet, only to crash-land on another. Starbound is a 2D extraterrestrial sandbox adventure game developed by Chucklefish, a London-based independent game studio! ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |