Announcement

Collapse
No announcement yet.

[SUPPORT] Advanced Turn Based Tile Toolkit

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #46
    Thanks Monokkel, I'll check it later when I get off work.

    We have talked in emails about making hover markers more aligned to the surface.
    I've been thinking, maybe instead of static meshes use something that align by default?
    Maybe tile could lit up a little instead of generating static mesh on top of it?

    https://www.youtube.com/watch?v=8IUB35OjLGI

    I'll try this tonight, seems like a legit idea for my novice brain ;-)
    What do you think?

    Comment


      #47
      @Oskarek: Thanks for the link and the suggestion. Please let me know how it works out. I have at the moment thought out three different solutions to the slanted tile problem:

      1) Instead of just having a vector array for the tile grid also include rotation information. This should work well in many cases, but it would require the user to rotate tiles placed on the map to appropriately match the underlying terrain in cases where the user does not want the entire map to be made up of visible tiles.

      2) Use render targets instead of instanced static meshes. This is a bit similar to what you are suggesting, and projects a texture down on any underlying geometry. I do like this solution, but I'm uncertain how well it would work performance-wise. I suspect placing individual render targets for each tile in range would be bad for performance, and that I would have to find a way to limit the amount of render targets. I'll have to test this out a lot more more before deciding.

      3) Do not display every walkable tile, but instead show the edge of the walkability grid as a frame, similiar to how it's done in XCOM and Massive Chalice ( http://www.maclife.com/files/imageca...com_0792_0.png ). I could possibly use beam emitters to create such a frame, though there might be better ways.
      The Advanced Turn Based Tile Toolkit (Marketplace page - Feedback thread)

      Comment


        #48
        I like option number 3 but only as an option.
        I believe some people (me ) would still want whole tiles to be marked.
        Render target sounds good, I believe that there won't be too many markers to use. Range that is set in example map is very high.
        I guess you could just test it out with matinee example scene or whatever example project.

        You could also use beam emitter for square mark.
        Last edited by Oskarek15; 03-06-2015, 09:23 AM.

        Comment


          #49
          Hi Monokkel,

          During implementation of my game logic, I've easily (thanks to the comments!) implemented a damage randomically chosen from a min damage to a max damage instead of applying directly a fixed damage.
          It was really easy, but I had to modify your blueprint directly, this means that I will lose this change when I will apply your next update.
          Some posts before you explained to me how to do a custom control on a custom blueprint, but how can I implement a logic like this in a separate blueprint?

          Can I access to the damage pawn block outside your blueprint in some way?
          Fantasy Turn-Based Tactical Game
          STEAM: https://store.steampowered.com/app/9...Arcane_Legacy/
          IG: https://www.instagram.com/arcanelegacyofficial/
          FB: https://www.facebook.com/ArcaneLegacy/
          WEB: http://www.arcanelegacy.com

          Comment


            #50
            @Oskarek15: Yeah, I would keep the old method as an option, of course. You say that range is set very high in the example, but that's not necessarily true. For games similar to advance wars, Fire Emblem and the like, render targets can be safely used even if they are inefficient, since range is so small. For games like XCOM, however, range is much longer, and I want my toolkit to work for all kinds of turn based games. Scalability and efficiency is important for me.

            @Wisdom_HELLy: Good to hear that you find modifying the blueprint easy, as that was always my intention. Updates overriding modifications is a problem I'm trying to find the best way to tackle. I'm currently working on making more and more parts of the blueprint into functions, so that they can be easily called from ouside the blueprint. For a future update I will probably be moving the combat, movement and AI logic to from the Grid Manager blueprint to separate blueprints (possibly the level blueprint or to individual pawns). For the time being you can for the most part call functions from the level blueprint and create much the same functionality as can be found in the grid manager. However, this will take a bit more work with the damage system as it is at the moment. To call it from outside you could create a custom event that you plug into the "damage pawn" macro and call it from another blueprint. That custom event would disappear on an update, but adding it back would be very quick and simple.
            Last edited by Monokkel; 03-06-2015, 03:11 PM.
            The Advanced Turn Based Tile Toolkit (Marketplace page - Feedback thread)

            Comment


              #51
              Originally posted by Monokkel View Post
              So I've sent a new version with quite a few bug fixes and some new features to Epic. It will hopefully be on the marketplace soon. I've made the following changes:

              - Added an option for changing between player pawns when clicking on them. Only works for pawns that have not acted yet this turn.
              - Added some more variables that are useful for adding gameplay features. These include an "has acted this turn" variable for pawns and a turn counter in the grid manager.
              - Fixed a bug where tiles in move range would always be transparent blue, regardless of the mesh used.
              - Simplified the pathfinding by removing checking for edges and instead populating the edge nodes with unwalkable nodes at grid generation. This is easier to read, speeds up the pathfinding slightly and fixes a bug that created suboptimal paths to tiles on edges for hex grids.
              - Fixed a bug that caused auto generation of walkability based on height to fail if the grid manager was not placed at0 on the Z-axis.
              - Various minor fixes.
              Hi Monokkel,

              Are above changes currently online at marketplace?

              I want also to thank you for your kindness and your fast as lightning replies
              Fantasy Turn-Based Tactical Game
              STEAM: https://store.steampowered.com/app/9...Arcane_Legacy/
              IG: https://www.instagram.com/arcanelegacyofficial/
              FB: https://www.facebook.com/ArcaneLegacy/
              WEB: http://www.arcanelegacy.com

              Comment


                #52
                @Wisdom-HELLy: Hey, don't mention it. It is important for me to know that everything is intuitive and in working order, so all questions and comments are valuable. I just tried adding the toolkit to a new project, and the updates do not seem to be implemented yet. Epic has been busy with GDC, so that's probably why it's taking so long. They are supposed to set up some new lines of communications with priority for marketplace contributers to deal with this sort of thing. Hopefully the update will be added this week.
                The Advanced Turn Based Tile Toolkit (Marketplace page - Feedback thread)

                Comment


                  #53
                  Been having a blast setting up my levels and combat arenas. Have you had any luck in finding an easier way to use meshes without the default Unreal Skeleton?

                  Comment


                    #54
                    @Gugenheimer: Great to hear it's fun to work with! Finding a simple way to use custom skeletons has been in the back of my mind since you asked it. However, I've focused my attention on fixing bugs and adding seamless mobile and tablet support, which has taken me longer than I expected. Animation is not what I am best at, so there is probably a way to change skeletons easily that I have not figured out yet. If you are not able to wait some more (and I'm sorry you've had to wait for a while already), you can do it the way I currently do it myself. Make a brand new anim BP with your custom skeleton. Copy all the blueprint and animation code manually over from Anim_BP_parent, making sure to add the appropriate notifies to attack animations. Then replace the Anim_BP_parent references in the Grid Manager with references to your new Anim_BP_parent. These are cast-to nodes found within the movement and attack parts of the Grid Manager.
                    The Advanced Turn Based Tile Toolkit (Marketplace page - Feedback thread)

                    Comment


                      #55
                      Progress! I got the movement working, but now stuck on the attacking part. When it comes time to attack nothing happens.

                      Is this the cast to that needs to be changed to my new Anim_BP? I am not able to get mines in here like this.

                      Click image for larger version

Name:	Capture.JPG
Views:	1
Size:	61.8 KB
ID:	1067962

                      Comment


                        #56
                        Originally posted by Gugenheimer View Post
                        Progress! I got the movement working, but now stuck on the attacking part. When it comes time to attack nothing happens.

                        Is this the cast to that needs to be changed to my new Anim_BP? I am not able to get mines in here like this.
                        Hello,

                        Yes you'll have to cast to your own Animation Blueprint (at least I do) and setup attack animation event in your animation blueprint (or call whatever other event/function you like).
                        Then you have to setup attack end notify in your anim blueprint and handle it.
                        You can basically copy all code from the anim unit parent blueprint.

                        What I did was copy almost whole event graph and anim unit parent blueprint and set-up it myself.
                        Unfortunately things like attack target are still custom event ( I believe that author is going to migrate them to functions ) so you can't easily override them.

                        Comment


                          #57
                          Thanks Oskarek15, that's what you have to do, Gugenheimer.

                          I am indeed planning on overhauling that part of the toolkit to make it easier to adapt and call from outside the blueprint. For now, however, this is the only way I know of to change it. Good that you've got it working for movement. That porbably means you're almost there. Have you added notify event to your attack animations? Then you need to call it in the event graph of the Anim BP and get it to fire the "Attack hit" event in the Grid Manager, just like I have set it up in Pawn_Anim_BP_Parent. One thing I forgot to say is that you should set the default value of Grid Manager Ref to BP_Grid_Manager if you have not done so.
                          The Advanced Turn Based Tile Toolkit (Marketplace page - Feedback thread)

                          Comment


                            #58
                            Success! I had to make my Cast to Anim_BP into a "pure" cast. After I did that it worked. Does this mean that all pawns have to use the same skeleton? My project is fantasy themed so some of the creatures will have a lot of different bones (wings, tails).

                            My end goal is to make a VR friendly turn based game. I have done some configuring of the grid manager camera, and have it so you switch between the overhead grid camera for planning, and then can switch to a free floating camera ( I made this a Beholder ) to roam the map.

                            Comment


                              #59
                              Congrats @Gugenheimer :-)

                              @Monokkel
                              Do you think you could add markers match to under tile and rotation into core, please?
                              I've done this by doing Line Trace by Channel on Path Trace channel and getting hit actor transform/rotation to apply this to hover/active/move/attack meshes.

                              Unfortunately it seems to much of code copy to include in my child blueprint, so it would be great to see that in core!

                              Thanks!
                              Oskar

                              Comment


                                #60
                                @Gugenheimer: Great that you got it working! I'm reluctant to do a proper tutorial for this yet, as I'm sure I'm going to change how it's handled, but I'll do one as soon as I've found a better solution. As for having multiple sketetons, the way I would do it in the current system is to keep casting until you find the right animation blueprint. So first try to cast to your most common Anim_BP, if it fails, cast to another and so on. It shouldn't be that inefficient, since these things are never called on tick. Looks a bit ugly in the blueprint, but it works. I'll hope to find a better solution for this as well later on.

                                @Oskarek15: That's a creative solution, and I'm glad you got it working. However, though it might work for you, there are much more efficient ways of doing this, which important for mobile and VR. A more efficient way to fix it is to add the rotation of all meshes to a rotation array on startup and get from that aray when placing meshes. That way all the calculations are done before the game starts instead of during runtime. Traces are pretty expensive too, so I'd prefer to get the rotation directly from the tile actor on the appropriate index instead of doing a trace. Fixing mesh rotation is close to the top of my priority list, and will hopefully be in the next update.

                                Edit: In fact, that seemed so simple to add that I just did Now you can be certain it will be in the next update.

                                Click image for larger version

Name:	NOKRtVm.png
Views:	1
Size:	469.6 KB
ID:	1067968
                                Last edited by Monokkel; 03-08-2015, 04:42 PM.
                                The Advanced Turn Based Tile Toolkit (Marketplace page - Feedback thread)

                                Comment

                                Working...
                                X