1. Please be advised of a few specific rules and guidelines for this section.

RELEASED Avali (Triage) 1.11.0

Return of the most adorable predators this side of the universe rift

  1. leinglo

    leinglo Phantasmal Quasar

    Alright, I think I’m gonna need a bit of peer review on this. The pet add-on is pretty much done. The drone spawns normally as a ship pet. The Drone Dock is in-game as a craftable piece of furniture from the nanolathe. The problem I’m running into is getting the drone to recognize and use the dock as a pet house. I thought I was being clever by having the monstertype file set to use a separate petBehavior.lua, which was in turn set to use the drone dock as a pet house, but all that did was make the pet glitch out. It just sat there and flickered (but worked just fine when I removed the modified .lua).

    That’s got to be the key, though, in some way. It’s the petBehavior.lua that tells the pet what object to use as a house, but apparently I can’t figure out how to make it work. Any suggestions?
     

    Attached Files:

  2. Scival

    Scival Oxygen Tank

    Yeah, I have a suggestion. The drone doesn't HAVE to be unable to use the regular pet house and the cats don't HAVE to be unable to enter a drone docking station. Just assume people will use common sense and simply make the drone dock a re-sprited carbon copy of the pet house.
     
  3. leinglo

    leinglo Phantasmal Quasar

    That's exactly what I'm trying to do. It already is a resprited copy, and making the drone and dock mutually exclusive was never the intention. That would be making it work as a pet house in the first place, and guess what? The .object file does not do that (And that's coming straight from the unpacked assets, FYI). That is handled, as I said, by the petBehavior.lua. That is what makes the ship pet recognize and use an otherwise ordinary decorative object (which is what the dock is right now, and what the regular pet house object would be without it) as a pet house, and that code only recognizes one file as a pet house, the regular one. Hence the problem. What I'm trying to do is find a way to make the game recognize a second object as a pet house, plain and simple, don't matter to me what specific pets use it, and so far the two ways I can think of to do that: making an edited copy of the petBehavior.lua file, or adding a second pet house line in the code, don't work. Though for all I know, I just don't know how to do that latter part right.

    No other mods have ever managed to actually do this, either. That I know of. They have to get around the issue by changing how pet houses work entirely, usually by making them spawners.
     
    Last edited: Aug 4, 2016
  4. Scival

    Scival Oxygen Tank

    Well, your .png for the avali drone dock has more than one color. Maybe just patch the vanilla pet house to have more colors. More colors that are actually just drone docks. Why solve the problem if you can just completely avoid it?

    P.S. Lua files are minions of hell. Don't touch them.
    P.P.S. I really hope your drone dock is the same size as the pet house or you're gonna have to resize it.
     
  5. leinglo

    leinglo Phantasmal Quasar

    The colors aren't the problem. The .frames file treats each frame as just a variant of the same object, but the dimensions of the object itself for functional purposes is still 24x24. Same as the vanilla pet house.
    Patching the vanilla pet house to have framed variants, might work, and that's a big might, if I knew how to choose between object variants in-game. Honestly, the only reason I added variation was to match all the other avali furniture pngs, which all have the same color variation.
     
  6. Scival

    Scival Oxygen Tank

    Well the tent pieces can be recolored just by adding a parameter "color":"blue" so you would just have to set up a special crafting thing where you just craft the pet house but with an extra parameter.
     
  7. Nefer007

    Nefer007 Phantasmal Quasar

    I just can't help but notice that the Avali basically has multiple setups that look like the characters of Journey. I really can't help it.

    Also, I've noticed a fatal bug whenever I try to collect rent on an Avali tenant.
     
  8. Marxon

    Marxon Supernova

    LOGS OR WE CAN'T FIX IT!
    C:
     
  9. Nefer007

    Nefer007 Phantasmal Quasar

    Okay. I'll see if I can do that.

    Also, have I stated that about half of the FanFiction.net stories on Starbound have Avali in them?



    EDIT: Huh, just two days ago I had the same problem with collecting rent on a Viera. I guess the game craps out if it's a non-vanilla tenant. Today, though, there was nothing wrong except the guy blinked out when I hit the panel.
     
    Last edited: Aug 4, 2016
  10. Marxon

    Marxon Supernova

    >. >

    I don't even wanna know. I'll take the log though.
     
  11. Dragon_Tom005

    Dragon_Tom005 Existential Complex

  12. Ser-matticus

    Ser-matticus Big Damn Hero

    I feel like it would make sense if the Avali specific crops didn't decay, especially since one of them is bark, and the others are already mold
     
  13. Ser-matticus

    Ser-matticus Big Damn Hero

    i only found one avali fic
     
  14. Fevix

    Fevix Heliosphere

    The base crops have been changed and are no longer food, just ingredients.
     
  15. Ser-matticus

    Ser-matticus Big Damn Hero

    oh thanks, didn't notice.
    Also i saw that we'll be getting drone pets soon :D
     
  16. leinglo

    leinglo Phantasmal Quasar

    I think I'll just upload the pet itself and figure out the house later. Speaking of which, Fevix, you have any input on that issue? I'm kinda hoping you're more knowledgeable about .lua files than I am.
     
  17. Ser-matticus

    Ser-matticus Big Damn Hero

    they could be drones with animal AI, like the proxies from warframe which are machine but animalistic as such they don't need a specialized drone bay, and can consume food to fuel a bio reactor like the glitch
     
  18. leinglo

    leinglo Phantasmal Quasar

    Actually, that's exactly how they work, though the behavior is attributed to more of an AI glitch. And even if the pet doesn't strictly need it, I'd still like to find a way to make the dock/house work. I put quite a bit of work into it.

    Mod's up here, by the by.
     
  19. Dragon_Tom005

    Dragon_Tom005 Existential Complex

  20. Ser-matticus

    Ser-matticus Big Damn Hero

    does it work cause all i still get are cats granted im using workshop version but the two should work right?
     
    Last edited: Aug 4, 2016

Share This Page