Starbound

Starbound

Avali Drone Pet Patch
Showing 1-4 of 4 entries
Update: 14 May, 2020 @ 6:07pm

v1.2
This update fixes the issue of avali drones using regular pethouses to sleep

Changes:

petBehaviorAvali.lua
-Now placed in /pets instead of /pets/avalidronepet
(I've moved this back to where Wolf had it, as I want my version to overwrite theirs.)
-now properly has the drone ignore regular pethouses
(The code inside was good except fro one small issue- it was testing a variable before the variable got defined, so the code never actually ignored pethouses. I fixed that by defining the variable earlier in the function)

Update: 3 May, 2020 @ 1:42am

v1.15

Removed two lines of debug logInfo from AvaliDrone_sleepAction.lua.

Updated description in metadata.

Update: 2 May, 2020 @ 9:53pm

v1.1
This update adds some files to give the drone visibility when using the avaldronepethouse for the sleepAction

Includes:

The script AvaliDrone_sleepAction.lua
-This script is a modified version of the vanilla sleepAction.lua that allows the pet to properly retain visibility when using the avalidronepethouse as a sleep target, while still going invisible when using the vanilla pethouse as a sleep target.

An updated patch to the avalidronepet.monstertype
-This adds two tests for ...sleepAction.lua. One at position 11 and the other at 12 in the scripts list. If a test returns positive, it rewrites that position to ...AvaliDrone_sleepAction.lua
(There are two tests here b/c Wolf inserts their petBehaviorAvali.lua in the middle of the list, changing the position of sleepAction.lua)

Updated avalidronepet spritesheets
-Added a new frame to be used when the pet is docking at the avalidronepethouse
(The new frame uses the sleep frame as a base, but raises the drone and gets rid of the legs)

A patch for the default.frames file
-Adds two values for the last two squares in the spritesheets; 'dock' and 'invisible'
(This lets the animator see the new sprite and not put an error in the log when trying to make the pet invisible)

A patch for the avalidronepet.animation file
-Adds the lines to let the animator recognize 'dock' as a animation state/frame
(This lets the animator properly use the 'dock' sprite when called by AvaliDrone_sleepAction.lua)

I removed some files from the mod
-Namely the .monsterpart files and optional folder in /monsters/pets/avalidronepet/parts
(They were unnecessary for a patch mod, as the .monsterparts were not changed and the optional folder is not used)

Update: 27 Apr, 2020 @ 6:23am

v1.0
Initial version of mod.

Includes:

A patch to the avalidronepet.monstertype that:
-Changes the action parameters of the 'follow' and 'inspect' actions to vanilla values.
(Pretty sure this was what was causing the pet to follow the player indefinitely)
-Removes an empty 'follow' parameter from 'baseParameters'
(I have no clue why it was there. Literally just "follow" : {} )
-Changes the collisionPoly parameter to vanilla values
(The values in the original mods were causing the pet to not rise up singular blocks. Seeing as pathing assumed the
pet could rise singular blocks, the pet would never jump, thus becoming stuck)
-Changes the airForce parameter to vanilla values
(No hard reason behind this)
-Tests position 14 in the scripts list for .../starvingAction.lua and removes entry if test returns positive
(The call to this script is what was breaking Leinglo's original mods. The script got removed from vanilla at some
point, and calling a non-existent script prevents the pet from being spawned in)
-Tests position 8 in the scripts list for .../petBehaviorAvali.lua and adds entry to list if test returns negative
(This script is from Wolf's versions of the mod. It is what causes the pet to use the avalidronepethouse object as a
pethouse. This check lets me add that funcionality to all other versions of the mod without causing a duplicate call for their standalone version)

Alternate versions of the drone's sprite sheets.
-Modified by me to lower the drone to the ground some and introduce some bobbing to the movement.
(It bugged me that the only part of the drone that actually moved were the ears)

The petBehaviorAvali.lua from Wolf's standalone version of the mod.
-This is the script that adds the usage of the dock. I have it inside the avalidronepet folder because it looks cleaner to me.