TripleA Logo TripleA Forum
    • TripleA Website
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Tags
    • Register
    • Login

    Iron War - Official Thread

    Scheduled Pinned Locked Moved Maps & Mods
    662 Posts 26 Posters 1.3m Views 23 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • redrumR Offline
      redrum Admin @Cernel
      last edited by

      @cernel Given that many maps don't have actual win conditions that probably wouldn't work well.

      So there are a 2 different types of 'neutrals':

      1. Passive (Iron War & Feudal Japan) - neutrals have no combat move phase so treat like 'neutral' and don't worry about defending against them as they can't attack anyone
      2. Active (Caribbean Trade War) - neutrals (Pirates/Indians) have all normal phases but have defaultType="AI" isHidden="true". Need to defend against them since they can attack but shouldn't really be attacking them for TUV trades. Think maps that use 'active' neutrals for barbs, wildlife, pirates, etc.

      My thought is if defaultType="AI" or "DoesNothing" AND isHidden="true" then treat them as active neutrals. If they have no combat move phase then treat them as passive neutrals (this obviously overrides active neutrals). Might even just really need to check if isHidden="true" since I can't really think of any cases you'd use isHidden for a player that was a real player.

      TripleA Developer with a Passion for AI: https://forums.triplea-game.org/topic/105/ai-development-discussion-and-feedback

      C 1 Reply Last reply Reply Quote 1
      • theredbaronT Offline
        theredbaron
        last edited by

        @redrum There is one use case, and that is for maps like TWW where there are minor powers that give their units to a major power. I've actually considered using "isHidden" to take the minor powers off of the player selection screen and defaulting them to Human (as the map doesn't support AI anyways for now). Down the road, though, I think it would be beneficial–especially because we have the other maps in development just like TWW in this regard, to somehow allow the selection of AI or Human for, say, the Germans to be applied throughout their minor powers, who are not shown on the selection screen for simplicity's sake. But all I want to say here is that there is a potential use case for an isHidden player to be a real player.

        redrumR 1 Reply Last reply Reply Quote 0
        • redrumR Offline
          redrum Admin @theredbaron
          last edited by

          @theredbaron Ah, good point as I hadn't thought of that. So I think for active neutrals they must have all the following:

          • defaultType="AI" or "DoesNothing"
          • isHidden="true"
          • All players that are part of said alliance must be 'neutrals' as well

          That way if you have any non-neutral player on an alliance then its considered an actual enemy. That way you could do something crazy like have AI control minor nations as part of an alliance that are hidden but that you'd want to consider real enemies.

          TripleA Developer with a Passion for AI: https://forums.triplea-game.org/topic/105/ai-development-discussion-and-feedback

          Captain CrunchC 1 Reply Last reply Reply Quote 1
          • theredbaronT Offline
            theredbaron
            last edited by theredbaron

            @redrum That sounds phenomenal, fun, and flexible. I heartily endorse this proposal 👍

            1 Reply Last reply Reply Quote 0
            • Captain CrunchC Offline
              Captain Crunch Banned @redrum
              last edited by

              @redrum hey did you do a tactical update to the AI then, or just for the Iron War map? I just want to be sure thanks

              redrumR 1 Reply Last reply Reply Quote 0
              • redrumR Offline
                redrum Admin @Captain Crunch
                last edited by

                @captain-crunch I did make a few small tactical changes overall but most of them were for Iron War and other complex maps so that the AI handles them better.

                TripleA Developer with a Passion for AI: https://forums.triplea-game.org/topic/105/ai-development-discussion-and-feedback

                Captain CrunchC 1 Reply Last reply Reply Quote 2
                • Captain CrunchC Offline
                  Captain Crunch Banned @redrum
                  last edited by

                  @redrum good enough for me! Sounds like some tweaking so that's cool and I will enjoy my battles on the WWIIClassic map battling the AI and hopefully it doesn't take too long. We'll see ... it's been getting harder and harder!

                  1 Reply Last reply Reply Quote 0
                  • C Offline
                    Cernel Moderators @redrum
                    last edited by Cernel

                    @redrum I think only the passive (no combat move) should be equated to the null player. Active can be skipped, as it really would need the ability for the AI to determine how much that player is a problem for you, thus discounting TUV destruction, basically the same that would be needed in a FFA. So, I think that when you have active "neutral" (attacking you, thus not even "neutral" by any meaning of it) that would fall into just looking at the game as a FFA, about the same way as FFA without AI (or think about Feudal Japan, in which you take some players, and the rest are practically acting like active neutrals, tho they can be different each game, depending what you pick).
                    But active neutral really is a wrong definition; we should not call them neutral at all, if they can even offensively attack.

                    Your last proposal would probably cover most but, for example, you can have a straight play-with-the-AI 1v1 game in which the mapmaker decides to have the AI player hidden just to get it straight. That way, the game would basically be damaged on its basis. So, I still think better not relying on those things, except of course "Does Nothing" played players, as well as unused ones, should be like the null player.

                    I know that many maps have no win conditions but, in my opinion, that is a map's fault (there should always be a win condition). Of course, in case of absence of a win condition, the win condition to be assumed would be to conquer the entire map except "null" ownerships.

                    C 1 Reply Last reply Reply Quote 0
                    • Black_ElkB Offline
                      Black_Elk
                      last edited by Black_Elk

                      Agreed on both counts.

                      Purchasing more AAguns should help the minor powers, who don't have much cash, and may help to bring the bombing thing more into line (even against the AI).

                      I also noticed the neutral thing, where the AI would expend a lot of energy to take even low value neutral territories. My only worry for this map is the whole Danish strait thing, if the AI starts ignoring neutrals that aren't on an obvious attack path. But I still think there are other solutions to that problem. Like leaving it completely empty of units for a walk-in, or just putting Scandinavia under German control. I still think the later makes more sense for a timeline that has Paris falling on the opening turn. The Bosporus Turkish strait is in a similar situation, since the controlling territory is also neutral. Though thematically it's less central to the history than the Danish straits were, since Turkey was neutral for the duration of the war. I don't know, I guess we'll see how it plays.

                      I still think it would be cool to adapt the game more to the behavior of the Hard AI, at least for the opening round, so that the machine will adopt a more historical play pattern when possible. I think that this map has a lot of appeal for the single player vs the AI, its more interesting I think than Global or the smaller scale A&A maps, just because it has more going on to keep the single player engaged with it. I've probably played close to a hundred games against the machine, so clearly there is something here that keeps drawing me in. Otherwise it'd just be a time sink lol. Not to say that AI stuff should outweigh PvP considerations, but I honestly don't know if I'd even have clocked a handful of games if I had to go PvP exclusive. I think it's important that TripleA has a solid WWII themed standalone SP game (outside the A&A franchise) and Iron War seems like the ideal candidate. That's part of the reason I took such an interest in it. There are few things I still wish it had, like Canada as player nation, or minor stuff like the island of the Malta in the med. But on the whole, it's pretty damn solid. I'm kind of blown away that it works as well as it does under AI control. Testament to how far TripleA has come from when I first started messing around here like 15 years ago. Back then there was really nothing for the single player, even the old hasbro cd was defunct by then. So I'm sure the more timid among new players would probably just play Revised as a solitaire or something, or maybe bounce altogether if they couldn't find a way to link up in the lobby or for PBEM. Now we've got some options to keep them engaged with TripleA even if nobody else is around, which is great.

                      Oh also, I noticed a marked improvement in how my laptop was handling itself under the latest pre-release. I was able to go 3 rounds with no lag or flickering, and still didn't noticed anything going awry until AI Germany just fucking wrecked me in Belo. Swarming in with hella Tanks! Though that had nothing to do with the computer, just my lack of attention lol.

                      0_1524199665756_Elk vs Hard AI Axis 125 bonus Russia round 3.tsvg

                      So far so good. Nice work man! I'll download the new one with the AAgun/Neutral tweaks and try again tomorrow

                      1 Reply Last reply Reply Quote 1
                      • C Offline
                        Cernel Moderators @Cernel
                        last edited by

                        @cernel To be clear, a player being assigned to the AI is not necessarily one to be discounted (also, theorically, the AI can play better than humans). Requiring both AI and hidden at the same time is kind of a best guess.
                        If any of those has to be, my suggestion is rather to be only "isHidden", and, then, document this AI behaviour, telling the mapmakers to never use the "isHidden" option for players in any ways competitive. So, the case that @theredbaron is pointing out would be avoided by simply the mapmakers being informed to avoid it.

                        1 Reply Last reply Reply Quote 0
                        • redrumR Offline
                          redrum Admin
                          last edited by

                          Here is latest pre-release which has the AA adjustments: https://github.com/triplea-game/triplea/releases/tag/1.9.0.0.10153

                          Still working on the neutral changes but hopefully get those done today. Gonna move forward with the following:

                          1. Passive Neutrals
                            -- No combat move phase
                          2. Active Neutrals
                            -- Has combat move phase
                            -- defaultType="AI" or "DoesNothing"
                            -- isHidden="true"
                            -- All players that are part of said alliance must be 'Neutrals' as well

                          AI will initially look to use these player classifications in the following ways:

                          1. Don't trade TUV for Passive and Active neutrals (only attack if territory worth capturing)
                          2. Don't calculate defenses against Passive neutrals

                          TripleA Developer with a Passion for AI: https://forums.triplea-game.org/topic/105/ai-development-discussion-and-feedback

                          C General_ZodG 2 Replies Last reply Reply Quote 1
                          • C Offline
                            Cernel Moderators @redrum
                            last edited by

                            @redrum I know I already said it, but I really think the "Active Neutral" should have TUV destruction valued less, but surely not nothing. At least 50%. If I would choose between 0% and 100%, I'll rather let them at 100%. If you have a discount for FFA, maybe apply that all the same for "Active Neutral" under "AI".
                            Actually, for "Active Neutral", if it has to be fixed, I say 0~20% if "DoesNothing" and 50~80% if "AI".

                            I'm really excited to see how this will play out in Feudal Japan FFA, and I'll try to fire up one.

                            General_ZodG redrumR 2 Replies Last reply Reply Quote 0
                            • General_ZodG Offline
                              General_Zod Moderators @redrum
                              last edited by General_Zod

                              @redrum What constitutes if a territory worth capturing for an AI? PU value, vc and capital?

                              1 Reply Last reply Reply Quote 0
                              • General_ZodG Offline
                                General_Zod Moderators @Cernel
                                last edited by General_Zod

                                @cernel Yeah FJ really could benefit from this. It a cool game just the AI's were notorious for messing the game up.

                                Although it's diplomacy is terrible too, but that can be player enforced a bit.

                                1 Reply Last reply Reply Quote 0
                                • redrumR Offline
                                  redrum Admin @Cernel
                                  last edited by redrum

                                  @cernel So "active neutrals" generally are like pirates/barbs/animals/etc and attacking them has very little value as every unit you lose is a unit you don't have to fight the real enemy. I'd rather start with an implementation where they are only attacked if its worth taking "X" territory to start and see how various maps that have active neutrals play (this is also mostly a minority of maps as most have passive neutrals). Adjusting the 'thresholds' tends to be must easier after we at least have players classified properly.

                                  @General_Zod There are a bunch of things but the most important right now are PU value, has factory, and capitals (primarily because on simple maps like revised those are the main factors). There needs more consideration for things like VC, NOs, other non-PU resources, canals, etc. There is also a sense of strategic value so that AI will attack territories that are on the path to other objectives even if they have no value.

                                  TripleA Developer with a Passion for AI: https://forums.triplea-game.org/topic/105/ai-development-discussion-and-feedback

                                  C 1 Reply Last reply Reply Quote 2
                                  • C Offline
                                    Cernel Moderators @redrum
                                    last edited by

                                    @redrum said in Iron War - Official Thread:

                                    @cernel So "active neutrals" generally are like pirates/barbs/animals/etc and attacking them has very little value as every unit you lose is a unit you don't have to fight the real enemy.

                                    Personally, if I would make such maps, I would not hide any "active neutral", but just the passive ones; so that, then, would be pointless. I'm thinking it is good to leave the player the possibility of selecting the AI they want, or whatever.
                                    As I said, I'm positive on the "passive neutral" thing related simply to not having combat move, but, on the other hand, the "active neutral" package feels too complex to track and not very reliable, especially for mapmakers that don't know about it (hiding or not is really merely preferential).
                                    This is probably something that should rather stay in an "AI.properties" configuration for the map, where a mapmaker could define what are the "non competitive" players, maybe defaulting to all players starting with "Neutral" or part of an alliance starting with "Neutral", if not set.

                                    1 Reply Last reply Reply Quote 0
                                    • redrumR Offline
                                      redrum Admin
                                      last edited by

                                      Improving neutral categorization discussion moved here: https://forums.triplea-game.org/topic/776/ai-improve-neutral-categorization

                                      TripleA Developer with a Passion for AI: https://forums.triplea-game.org/topic/105/ai-development-discussion-and-feedback

                                      1 Reply Last reply Reply Quote 0
                                      • FrostionF Offline
                                        Frostion Admin
                                        last edited by Frostion

                                        @Black_Elk said:

                                        enjoying the HardAI. The only downside compared with FastAI is that my laptop gets kinda fried if I let it go for too long. Like I'll get a map flickering and delay on actions if I go much longer than a full round.

                                        Yes, this is my experience also. I hope that the hard AI can be developed in a direction that speeds up the calculations, so that also large maps can make use of the better Hard AI and not mostly rely on the Fast AI. And I am sure redrum is working hard on this 🙂

                                        @Black_Elk said:

                                        I think that this map has a lot of appeal for the single player vs the AI, its more interesting I think than Global or the smaller scale A&A maps, just because it has more going on to keep the single player engaged with it. I've probably played close to a hundred games against the machine, so clearly there is something here that keeps drawing me in.

                                        Thx. It is also the idea that Iron War should be single player and AI friendly. I also like to play single player and coop TripleA, so this also has an effect on my map designs. But surely Iron War would not be developed to what it is now without your intense interest and testing!

                                        @redrum said:

                                        the AI attacks neutrals like crazy! This is because it sees them as another enemy player rather than neutrals.

                                        The ”neutrals” in Iron War, as you see, are all passive and have no CM step. They are also not using their PUs. It is intentional that neutrals can be attacked, and the map would not really work if it was not possible for humans and AI to attack the neutral powers. Territories like Greenland, Iceland, Denmark, Congo, Tibet, Morocco etc. are practically meant to be invaded during play. Some of the territories are 5 PU territories, which means that a factory can be placed there.

                                        I have also noticed that the AI does attack the neutrals even when there is no logical reason to do so, probably because of the TUV destruction that the AI prioritizes. It seems that the AI really likes to attack Ireland, Spain, Turkey etc., even though there are few PUs gained compared to the potential PU cost. The worst example in Iron War is Brazil who, instead of sending forces to Africa/Europe, uses most units in an effort to win all of south America.

                                        In some places, like Ireland and Spain, I have placed un-proportionally large forces just to discourage the AI from attacking, but the AI seems to attacks anyway when it has enough forces. I would like to remove some of those units if the AI got smarter in this aspect.

                                        It would be good for Iron War if the AI would only attack passive neutral territories very lightly defended, very PU productive/valuable, controlling a canal or stuff, even though the territories and units were not a threat. It should not attack just to kill if the enemy did not represent a threat, but it should also not NEVER attack as this would be a little dull. Redrum, maybe you could implement a very small probability of the AI doing unexpected stuff / going for low value territories. It would be nice if the AI could occasionally surprise players, of course only when the AI has the strength and does not compromise itself 😉

                                        PS: I think the AA gun cost will be increased from an 8 PU to a 9 PU cost. Also I will probably add a few barrels more to a few nations and territories.
                                        PPS: I am currently mostly working on converting and balancing Iron War Europe to the new fuel system, so this takes some of my time.

                                        Map maker of: Star Wars: Galactic War + Star Wars: Tatooine War + Caribbean Trade War + Dragon War + Age of Tribes + Star Trek: Dilithium War + Iron War + Iron War: Europe + Warcraft: War Heroes

                                        1 Reply Last reply Reply Quote 2
                                        • redrumR Offline
                                          redrum Admin
                                          last edited by

                                          Neutral changes are merged as well as a few other tweaks and here is the latest pre-release: https://github.com/triplea-game/triplea/releases/tag/1.9.0.0.10182. The AI has some pretty drastic changes to Iron War with those changes. Tends to attack neutrals much less frequently and generally have better attack priorities.

                                          @Frostion Yeah, the AI will still attack neutrals mostly just to grab their territory value but will generally prioritize them lower than capturing enemy territories. A good example is Baltic States which the German AI seemed to almost always attack round 1 where it should really prioritize Bylo or Western Ukraine and now pretty consistently does. You should be able to decrease mass neutral stacks now and the AI should only attack when it makes sense to gain territory production. I'd doubt you see the German AI attack Spain much even with half the units it has now. And yeah AA guns being 9 PU is at least getting close to them being balanced as at 7 PU they were crazy OP and 8 PU they are still fairly decent to mass.

                                          TripleA Developer with a Passion for AI: https://forums.triplea-game.org/topic/105/ai-development-discussion-and-feedback

                                          1 Reply Last reply Reply Quote 3
                                          • redrumR Offline
                                            redrum Admin
                                            last edited by

                                            Here is a 17 round all Hard AI game where the Axis appear to finally have it in the bag: 0_1524373939603_IW_HardAI_Axis.tsvg

                                            TripleA Developer with a Passion for AI: https://forums.triplea-game.org/topic/105/ai-development-discussion-and-feedback

                                            1 Reply Last reply Reply Quote 1

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better 💗

                                            Register Login
                                            • 1
                                            • 2
                                            • 8
                                            • 9
                                            • 10
                                            • 11
                                            • 12
                                            • 33
                                            • 34
                                            • 10 / 34
                                            • First post
                                              Last post
                                            Copyright © 2016-2018 TripleA-Devs | Powered by NodeBB Forums