1. Welcome to the Starbound support forums. Please check the support FAQs before posting: http://playstarbound.com/support

Closed Capture Pods are not working Properly

Discussion in 'Starbound Support' started by WingedSpear, May 11, 2015.

Thread Status:
Not open for further replies.
  1. WingedSpear

    WingedSpear Big Damn Hero

    So i found a nice monster, wanted to have it as a ''pet'', but every time i catch one of those, and release them, some random monster appear inside the capture pod, and not the one i wanted, does the developers know this?

    [Details: The monster was brown, he was a little one also have the head of a teddy bear]

    EDIT: Here is the picture

    [​IMG]

    Also i will post more information later, i am not in home right now
     
    Last edited: May 14, 2015
  2. Jerln

    Jerln Oxygen Tank

    Well that's strange. Are you catching it in Multiplayer and then releasing it in Singleplayer, or vice-versa? Also, do you have any mods installed?
     
  3. WingedSpear

    WingedSpear Big Damn Hero

    No mods, i am playing in the last update and i release them in the same place where i catch them, and ya this kinda bother me because i havent see another monster that look like a teddy bear.
     
  4. Jerln

    Jerln Oxygen Tank

    Could you please recreate the situation and take screenshots?
     
  5. WingedSpear

    WingedSpear Big Damn Hero

    ill be posting the pictures today as soon i reach home, right now i am at work so i cant do it, but i took enough pictures in order to proove it.
     
  6. WingedSpear

    WingedSpear Big Damn Hero

    Here, i think the picture is self explanatory...

    [​IMG]
     
    The | Suit likes this.
  7. Boufman

    Boufman Black Hole Surfer

    Strange indeed. Must be a bug. Devs! Spear has found bug!
     
  8. nimmerland

    nimmerland Existential Complex

    Basic Troubleshooting and Support Thread Guidelines: http://community.playstarbound.com/...-guidelines-read-first-stable-unstable.83266/

    @WingedSpear
    Please provide game and system information (os and bit version) as mentioned in the above thread.
    You may also provide the coordinates and name of the planet.
    Does it happen after todays update? (if there was an update.. currently the launcher says stable Pleased Giraffe hit on May 8th, but game is still Spiritied Giraffe U5 after fresh install..) This glitch got fixed.

    Edit: Could not reproduce so far on fresh installed Vanilla Spirited Giraffe Update 5 (win7 x64) on tropical planet with two different mob types.
     
    Last edited: May 14, 2015
  9. lvl1337n00b

    lvl1337n00b Void-Bound Voyager

    This happened to me too, actually. Got rid of the critter instead of screencapping though, so I'm no help.
     
  10. WingedSpear

    WingedSpear Big Damn Hero

    i will post the coords and everything else required once i am in home, i cant right now
     
  11. The | Suit

    The | Suit Agent S. Forum Moderator

    You should place the picture and all relevant information in the OP - so its easier to just look at one post later on.
    ==
    Can some one else confirm this issue?
     
    WingedSpear likes this.
  12. WingedSpear

    WingedSpear Big Damn Hero

    Done, i am going to try this in another planet and see what happen...
     
  13. lvl1337n00b

    lvl1337n00b Void-Bound Voyager

    I've got some more pods made already, I'll see if it happens again and upload screenies if it does.
     
    The | Suit likes this.
  14. mrmcmo

    mrmcmo Pangalactic Porcupine

    probably because it's a randomly generated monster
     
  15. Kayuko

    Kayuko Oxygen Tank


    -- Helper functions for entities that can be captured by a capturepod
    capturepod = {}

    --------------------------------------------------------------------------------
    function capturepod.onInit()
    if storage.ownerUuid == nil then
    local ownerUuid = entity.configParameter("ownerUuid", nil)
    if ownerUuid ~= nil then
    storage.ownerUuid = ownerUuid
    end
    end

    if storage.killCount == nil then
    local killCount = entity.configParameter("killCount", nil)
    if killCount ~= nil then
    storage.killCount = killCount
    end
    end
    end

    --------------------------------------------------------------------------------
    function capturepod.onMonsterKilled()
    if capturepod.isCaptive() then
    if storage.killCount == nil then storage.killCount = 0 end
    storage.killCount = storage.killCount + 1

    if storage.killCount > entity.configParameter("killsPerLevel", 10) then
    local levelUpParticles = entity.configParameter("levelUpParticles", nil)
    if levelUpParticles ~= nil then
    entity.setDeathParticleBurst(levelUpParticles)
    end

    storage.killCount = 0
    self.levelUp = true
    status.setResourcePercentage("health", 0)
    end
    end
    end

    --------------------------------------------------------------------------------
    function capturepod.onDamage(args)
    if args.sourceKind ~= "capture" then return false end

    local captured = false

    if capturepod.isCaptive() then
    if world.entityUuid(args.sourceId) == storage.ownerUuid then
    captured = true
    end
    else
    local captureHealthFraction = entity.configParameter("captureHealthFraction", nil)
    if captureHealthFraction ~= nil then
    local healthFraction = entity.health() / entity.maxHealth()
    if healthFraction <= captureHealthFraction then
    storage.ownerUuid = world.entityUuid(args.sourceId)
    captured = true
    end
    end
    end

    if captured then
    local captureParticles = entity.configParameter("captureParticles", nil)
    if captureParticles ~= nil then
    entity.setDeathParticleBurst(captureParticles)
    end

    status.setResourcePercentage("health", 0)
    end

    return captured
    end

    --------------------------------------------------------------------------------
    function capturepod.onDie()
    if not capturepod.isCaptive() then return false end

    local parameters = entity.uniqueParameters()
    parameters.aggressive = true
    parameters.persistent = true

    parameters.damageTeamType = "friendly"
    parameters.damageTeam = 0

    parameters.ownerUuid = storage.ownerUuid
    parameters.killCount = storage.killCount

    parameters.seed = entity.seed()
    parameters.level = entity.level()
    parameters.familyIndex = entity.familyIndex()

    if self.levelUp then
    parameters.level = parameters.level + 1
    world.spawnMonster(entity.type(), mcontroller.position(), parameters)
    else
    -- Spawn a filled capture pod that will re-create this monster
    world.spawnItem("filledcapturepod", entity.toAbsolutePosition({ 0, 4 }), 1, {
    projectileConfig = {
    speed = 40,
    level = 7,
    actionOnReap = {
    {
    action = "spawnmonster",
    offset = { 0, 2 },
    type = entity.type(),
    arguments = parameters,
    level = parameters.level
    }
    }
    }
    })
    end

    entity.setDropPool(nil)

    return true
    end

    --------------------------------------------------------------------------------
    function capturepod.isCaptive()
    return storage.ownerUuid ~= nil
    end

    --------------------------------------------------------------------------------
    function capturepod.updateOwnerEntityId()
    if self.ownerEntityId ~= nil then
    if not world.entityExists(self.ownerEntityId) then
    self.ownerEntityId = nil
    end
    end

    if self.ownerEntityId == nil then
    local playerIds = world.entityQuery(mcontroller.position(), 50, {includedTypes={"player"}})
    for _, playerId in pairs(playerIds) do
    if world.entityUuid(playerId) == storage.ownerUuid then
    self.ownerEntityId = playerId
    break
    end
    end
    end

    return self.ownerEntityId ~= nil
    end


    Nope, shouldn't matter, marked the part where it should store the targets seed (body, head, legs, stuff).
    It should output exactly the same monster that's captured.

    At least I think that's the part, not that fond of lua, but it does store it somewhere.
     
  16. mrmcmo

    mrmcmo Pangalactic Porcupine

    alright, didn't know that.

    ...

    i don't know how to fix this. i guess you just have to deal with it
     
  17. livmuramoto

    livmuramoto Phantasmal Quasar

    i notice that when you're playing at multiplayer and one of your party members throw your capture pod, it shows a different pet, but when playing in single player, it's the same pet you've captured first...
     
  18. Owl_Stalker

    Owl_Stalker Guest

    If the server is on a different operating system than your computer's, then monsters captured on that server will appear different on singleplayer.
     
Thread Status:
Not open for further replies.

Share This Page