Announcement

Collapse
No announcement yet.

[SUPPORT] Advanced Turn Based Tile Toolkit

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

    Originally posted by QueSeraDilla View Post
    Monokkel Yes, that's perfect! Thanks for that.

    EDIT: I found the appropriate function. Awesome stuff, thanks! Looking forward to the multiplayer update.
    Happy to help!

    In other news I'm considering temporarily excluding the 2D game example in the next update. I'm no longer happy with a lot of the code in that example, so I want to rework quite a lot of it. That would take a few days, however, and I want to get the update done soon. So I think I'll skip it for now and add it back, new and improved, in the update following this one. If someone has any strong objections to this, let me know. You will all still be able to access the 2D game example from earlier versions of the toolkit in the launcher.
    The Advanced Turn Based Tile Toolkit (Marketplace page - Feedback thread)

    Comment


      Trying to create a builder class character, and i cant seem to get him to spawn new actors (buildings) onto the grid. I tried to set up a funtion in the Unit_player class saying destroy actor and then spawn building. The button is in the hud but it does not seem to wanna work is there something i have to do with the grid its self

      Comment


        I would love to get the multiplayer integrated asap. I've considered reaching out to you just to get a nightly build of yours even as I am ready to start implementing server side validation of movement and skills so I can make my game ready for release without cheaters.

        Comment


          Originally posted by Paddysonn View Post
          Trying to create a builder class character, and i cant seem to get him to spawn new actors (buildings) onto the grid. I tried to set up a funtion in the Unit_player class saying destroy actor and then spawn building. The button is in the hud but it does not seem to wanna work is there something i have to do with the grid its self
          In what way is it not working? Is the unit not being destroyed at all, or is something else wrong? Start by printing a sting when you click the button to see if it recieves input at all and take it one step at a time from there. If you cannot find the issue, please describe the issue in more detail and I will try to help.

          Originally posted by Curiosichi View Post
          I would love to get the multiplayer integrated asap. I've considered reaching out to you just to get a nightly build of yours even as I am ready to start implementing server side validation of movement and skills so I can make my game ready for release without cheaters.
          I've had a very productive weekend, so hopefully everyone should have a copy of the update fairly soon. Have patience and I'll get it to you as soon as I'm able
          The Advanced Turn Based Tile Toolkit (Marketplace page - Feedback thread)

          Comment


            Originally posted by Monokkel View Post
            I've had a very productive weekend, so hopefully everyone should have a copy of the update fairly soon. Have patience and I'll get it to you as soon as I'm able
            Awesome! Thanks for keeping us posted. Looking forward to it.

            Comment


              Hey,

              Additional question, and I can't find it anywhere in the thread really. We're spawning tiles on runtime, not construction, and they have tile costs, however I can't seem to find the functions i need to call so that this would work when they're spawned in runtime, after the grid is setup. Would I resetup the entire graph after I spawned all additional tiles or is there one specific function(s) I'd need to call to let this happen without messing up the way the grid works?

              Generally spawning tiles blockages based on a few factors but these are done during runtime, not construction script/level editor.

              Marketplace Asset - Economy Kit; Marketplace Asset - Notification Kit; Marketplace Asset - Achievepedia; Marketplace Asset - Player Stats Kit; Marketplace Asset - Photomode;
              Marketplace Asset - Interaction Kit; Marketplace Asset - Turret Kit; Marketplace Asset - Character Stats Kit; Marketplace Asset - Smooth Camera Kit; Plugin - Toggl Plugin;
              Hire us here; Panda Studios, Game development company.; Official Unreal Engine Game Jam Sponsor

              Comment


                Originally posted by Panda Studios View Post
                Hey,

                Additional question, and I can't find it anywhere in the thread really. We're spawning tiles on runtime, not construction, and they have tile costs, however I can't seem to find the functions i need to call so that this would work when they're spawned in runtime, after the grid is setup. Would I resetup the entire graph after I spawned all additional tiles or is there one specific function(s) I'd need to call to let this happen without messing up the way the grid works?

                Generally spawning tiles blockages based on a few factors but these are done during runtime, not construction script/level editor.
                There is a Spawn Tile function in BP_GridManager for this purpose. There are also a few functions for manipulating tile edges directly under the utility tag in BP_GridManager's functions, but I would first check if the Spawn Tile function does what you need it to.
                The Advanced Turn Based Tile Toolkit (Marketplace page - Feedback thread)

                Comment


                  Originally posted by Monokkel View Post

                  There is a Spawn Tile function in BP_GridManager for this purpose. There are also a few functions for manipulating tile edges directly under the utility tag in BP_GridManager's functions, but I would first check if the Spawn Tile function does what you need it to.
                  Ah thanks for that one, also noticed just now the tile cost has to be 1, not 0 or -1 if you don't want it to affect anything. Doing that fixed it Thanks!
                  Marketplace Asset - Economy Kit; Marketplace Asset - Notification Kit; Marketplace Asset - Achievepedia; Marketplace Asset - Player Stats Kit; Marketplace Asset - Photomode;
                  Marketplace Asset - Interaction Kit; Marketplace Asset - Turret Kit; Marketplace Asset - Character Stats Kit; Marketplace Asset - Smooth Camera Kit; Plugin - Toggl Plugin;
                  Hire us here; Panda Studios, Game development company.; Official Unreal Engine Game Jam Sponsor

                  Comment


                    Originally posted by Panda Studios View Post

                    Ah thanks for that one, also noticed just now the tile cost has to be 1, not 0 or -1 if you don't want it to affect anything. Doing that fixed it Thanks!
                    Glad it worked Yeah, a cost of 0 removes the edge (makes it impassable), while a cost of -1 for corner tiles also removes the edges of tiles crossing that corner. Not exactly intuitive. I'll put edge array manipulation as the topic of a future tutorial.
                    The Advanced Turn Based Tile Toolkit (Marketplace page - Feedback thread)

                    Comment


                      Hey, does anyone know how to make the HUD change for different classes of units, tried creating a binding on the visibility function on the widget editor but nothing seems to be working any ideas I can try would be awesome

                      Comment


                        An small update on the progress on the next version of ATBTT: I've found a new and better version to implement networked multiplayer than what I originally did. This means I will be delayed a few more weeks as I implement this new solution. Apologies to everyone who have been waiting for networked multiplayer for so long already, but I believe it is best to give you the best solution for networking right away instead of first giving you all something that is not ideal, which you will later have to heavily adapt when a new update comes.

                        Basically, what I originally did was to implement multiplayer as you would in a real time game (which the documentation and tutorials on networking are targeted towards). I would for example instantly replicate the movement and actions of all units from server to clients. As long as the clients have a stable, low latency connection this is no problem, but if this is not the case you get all the issues one is used to for real time networked games, with visible lag, actions happening out of sync etc.

                        Since there is much less need to be certain that all actions happen at the exact same time for all clients in turn based games, many of these issues can be avoided. What I am now doing is first simulating all actions and movement on the server, and then storing an array of actions in the game state of each client. Then each client runs through the array one at a time and displays/animates each action to the client. Since all these actions happen client side, there will be no visual hiccups in animation etc. due to network issues.

                        So again, sorry for the delay, but I hope it will all be worth the wait. The clearer distinction between calculating and animating actions will also have many potential benefits for single player games as well, and the game state animation array might be a useful tool for making in-game cinematics and the like as well.
                        Last edited by Monokkel; 10-21-2017, 07:34 PM.
                        The Advanced Turn Based Tile Toolkit (Marketplace page - Feedback thread)

                        Comment


                          That seems like a much better approach. One of the advantages of turn based game like this is not needing to worry about real time networking, which was one of the reasons we chose this game type for our next mobile game.

                          I look forward to your next update.

                          Comment


                            Originally posted by Monokkel View Post
                            @QueSeraDilla: Hi there. The easiest way to achieve this effect is to increase the movement cost of everything by a factor of 10. That way, straight movement can cost 10 while diagonal costs 14. To do this, go to the GenerateGameplayGrids function in BP_GridManager and change the values as follows:



                            This will result in the following pathfinding (after increasing the move, max move and search range variables of the unit ten times):



                            I hope that is the result you're after
                            Is there a similar solution for round vision? I haven't gotten through the forum yet, so this may be addressed, but is there a way to have a "spotter" or shared vision included?

                            Thanks!

                            Comment


                              Originally posted by wade the hutt View Post

                              Is there a similar solution for round vision? I haven't gotten through the forum yet, so this may be addressed, but is there a way to have a "spotter" or shared vision included?

                              Thanks!
                              I'm using a different algorithm for vision than for pathfinding for performance reasons, so the same solution will not work there. If you look in the GetTilesInRange function you'll find the three different algorithms I use for making square, diamond shaped and hexagonal grids. The same can be done for round grids, but there is an easier, albeit slightly less performant, way to do this as well. Start with GetTilesInRange for square grids, then loop through the output array and remove any array elements for which index when inputted into the Vector Field Array is longer than a certain distance from the origin point. If you use Range * TikeSizeX as the cutoff you should get a round visibility pattern.
                              The Advanced Turn Based Tile Toolkit (Marketplace page - Feedback thread)

                              Comment


                                So I'm sorry this is the second time iv posted this but no one has given me an answer and i am a massive noob in unreal with only a small amount of experience but I'm really struggling to get custom huds for each class of unit after a good week of trying to do it myself I can't seem to figure it out. Iv done some screenshot which I'm hoping might help people answer my question. Thank you in advance
                                Attached Files

                                Comment

                                Working...
                                X