When trying to place a combatant at the start of combat, nothing happens and the battle menu just disappears

https://imgur.com/a/JZX79zt
  • Hm, my first guess would be that there is no combatant in the player group - or maybe no alive combatant ...

    Try adding Unity Console nodes to your Player Grid Placement node to see if it results in Success or Failed.
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
  • https://imgur.com/krqwzub
    The log says the placement failed
  • And I assume this happens immediatley, so there's no player input?

    That sounds like there are no deployment cells available in the grid.

    Or there's no grid registered with the battle system, though you set that at the start. Is this battle starting in the same scene or e.g. after a scene load? If after loading into the scene, try adding a Wait node at the start (before setting the grid).
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
  • edited September 29
    The menu to select combatants for placement appears, and the grid placement failure happens when the player clicks on one of the combatant buttons.

    Here is what deployment cell settings look like:
    https://imgur.com/a/WSLoFZu

    Edit: I changed the settings on the Set Battle Grid node to "Defined Grid" instead of "Nearest Grid," and now it works
    Post edited by Namey on
  • edited September 29
    Hang on, now as soon as the battle starts, all the player combatants are automatically placed on the enemy side, the placement is considered to be failed, and all the combatants are instantly upgraded to maximum level
    Post edited by Namey on
  • If they're instanstly max level, that hints at a not correctly set up status development, e.g. not having an exp curve.

    As for the player placed on enemy deployment cells - better check (or show me) the deployment setup for those cells.
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
  • Here is the deployment setup:
    https://imgur.com/a/WSLoFZu
  • Setup seems correct.
    The only way this causes the player to be placed on the enemy deployment cells is if the player is an enemy of the player ... I assume you don't do any faction or group changes before the battle starts that could cause something like this?

    I think I'll need a Unity test project to investigate.
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
  • I sent it over
Sign In or Register to comment.