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

    A new option for factories

    Scheduled Pinned Locked Moved Map Making
    55 Posts 8 Posters 17.1k Views 8 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.
    • SchulzS Offline
      Schulz
      last edited by

      Looks way too complex for me. Anyway I find another way. Making every units separate for countries like germanInfantry or britishInfantry than setting up placement rules.

      HeppsH 1 Reply Last reply Reply Quote 0
      • HeppsH Offline
        Hepps Lobby Moderators @Schulz
        last edited by

        @Schulz That actually WAYYYYY more work. But whatever floats your boat.

        "A joyous heart sours with the burden of expectation"
        Hepster

        1 Reply Last reply Reply Quote 1
        • SchulzS Offline
          Schulz
          last edited by

          Or could it work something like this: Making destroyable factory cost 0 with construction rules. Player can rebuild it after retaking territories.

          HeppsH 1 Reply Last reply Reply Quote 0
          • HeppsH Offline
            Hepps Lobby Moderators @Schulz
            last edited by

            @Schulz So is a captured factory supposed to build nothing at all?

            "A joyous heart sours with the burden of expectation"
            Hepster

            prastleP 1 Reply Last reply Reply Quote 0
            • prastleP Offline
              prastle Lobby Moderators Admin @Hepps
              last edited by

              @Hepps Cor. He wants Slash and Burn but amazingly rebuilt if recaptured?

              If we open a quarrel between past and present, we shall find that we have lost the future! Sir Winston Churchill

              1 Reply Last reply Reply Quote 0
              • SchulzS Offline
                Schulz
                last edited by

                My aim is just at least partly representing of logisics and increasing other strategies by decreasing stacking around factories. Capturing enemy factory is huge deal and impossible to recapture them in current engine.

                Yes definitely you should unable to purchase any unit from captured factories.

                HeppsH 1 Reply Last reply Reply Quote 0
                • HeppsH Offline
                  Hepps Lobby Moderators @Schulz
                  last edited by

                  @Schulz Well differences in views aside. The mechanic would be pretty easy to make.

                  Then you could have something like this to distinguish the 2

                  Function vs not.png

                  "A joyous heart sours with the burden of expectation"
                  Hepster

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

                    @Schulz
                    I can give you yet an example of the whenCapturedChangesInto feature that @Hepps has presented. Maybe you will find it useful.

                    In my new WoW map I use buildings that change type depending on who owns/captures them. One of them is an “Alliance-Stronghold”. Basically it is a city with Alliance supporters that only the Alliance players that can make good use of by getting free units every turn.

                    If enemy players capture the building called “Alliance-Stronghold” it turns into a “Suppressed-Alliance-Stronghold”, another unit type with different properties. If the building is again liberated, it turns back into the useful Alliance building again.

                    The unit(s) can look like this:

                        <attachment name="unitAttachment" attachTo="Alliance-Stronghold" javaClass="games.strategy.triplea.attachments.UnitAttachment" type="unitType">
                            <option name="isInfrastructure" value="true"/>
                            <option name="createsUnitsList" value="1:Alliance-Footmen"/>
                            <option name="whenCapturedChangesInto" value="any:Orcs:false:Suppressed-Alliance-Stronghold:1"/>
                            <option name="whenCapturedChangesInto" value="any:Tauren:false:Suppressed-Alliance-Stronghold:1"/>
                            <option name="whenCapturedChangesInto" value="any:Trolls:false:Suppressed-Alliance-Stronghold:1"/>
                            <option name="whenCapturedChangesInto" value="any:Undead:false:Suppressed-Alliance-Stronghold:1"/>
                        </attachment>
                    
                    
                        <attachment name="unitAttachment" attachTo="Suppressed-Alliance-Stronghold" javaClass="games.strategy.triplea.attachments.UnitAttachment" type="unitType">
                            <option name="isInfrastructure" value="true"/>
                            <option name="createsResourcesList" value="3:PUs"/>
                            <option name="whenCapturedChangesInto" value="any:Dwarves:false:Alliance-Stronghold:1"/>
                            <option name="whenCapturedChangesInto" value="any:Gnomes:false:Alliance-Stronghold:1"/>
                            <option name="whenCapturedChangesInto" value="any:Humans:false:Alliance-Stronghold:1"/>
                            <option name="whenCapturedChangesInto" value="any:Night-Elves:false:Alliance-Stronghold:1"/>
                        </attachment>
                    

                    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

                    HeppsH 1 Reply Last reply Reply Quote 5
                    • HeppsH Offline
                      Hepps Lobby Moderators @Frostion
                      last edited by

                      @Frostion A better example could nary be found!

                      "A joyous heart sours with the burden of expectation"
                      Hepster

                      1 Reply Last reply Reply Quote 0
                      • SchulzS Offline
                        Schulz
                        last edited by

                        Lets assume using v341 map its default factory:

                        <attachment name="unitAttachment" attachTo="factory" javaClass="games.strategy.triplea.attachments.UnitAttachment" type="unitType">
                        <option name="isFactory" value="true"/>
                        </attachment>

                        Should I create 2 separate type factories for both axis and allies or need separate factories for each nations?

                        Axis Factory example;

                        <attachment name="unitAttachment" attachTo="axisfactory" javaClass="games.strategy.triplea.attachments.UnitAttachment" type="unitType">
                        <option name="isFactory" value="true"/>
                        <option name="isInfrastructure" value="true"/>
                        <option name="whenCapturedChangesInto" value="any:infantry:false:supressedaxisfactory:1"/>
                        <option name="whenCapturedChangesInto" value="any:artillery:false:supressedaxisfactory:1"/>
                        <option name="whenCapturedChangesInto" value="any:armour:false:supressedaxisfactory:1"/>
                        </attachment>

                        <attachment name="unitAttachment" attachTo="supressedaxisfactory" javaClass="games.strategy.triplea.attachments.UnitAttachment" type="unitType">
                        <option name="isInfrastructure" value="true"/>
                        <option name="createsResourcesList" value="3:PUs"/>
                        <option name="whenCapturedChangesInto" value="any:infantry:false:axisfactory:1"/>
                        <option name="whenCapturedChangesInto" value="any:artillery:false:axisfactory:1"/>
                        <option name="whenCapturedChangesInto" value="any:armour:false:axisfactory:1"/>
                        </attachment>

                        also need any property (boolean)?

                        Thanks for good explanation.

                        HeppsH 1 Reply Last reply Reply Quote 0
                        • HeppsH Offline
                          Hepps Lobby Moderators @Schulz
                          last edited by Hepps

                          @Schulz I think for your purposes each nation would simply need a Factory and a Suppressed_Factory. I don't think you need to create the extra details since nothing in V3 is that complex.

                          The other thing is you should only need...

                          <option name="whenCapturedChangesInto" value="any:any:false:suppressed_factory:1"/>

                          and for the other...

                          <option name="whenCapturedChangesInto" value="any:any:false:factory :1"/>

                          The second qualifying component (which you have defined as different units) is not a unit type that is capturing the territory, but rather a faction or nation... so unless you want a factory which is captured by say... Russia to have some other result other than creating a
                          suppressed_factory... then the above will work perfectly.

                          "A joyous heart sours with the burden of expectation"
                          Hepster

                          1 Reply Last reply Reply Quote 0
                          • SchulzS Offline
                            Schulz
                            last edited by

                            In v3 map every nation have the same units but I need to customize them for apply this feature. I've copied NML's purchase model but it didn't work.

                            Any way to implement this feature by just one factory? Ex: One factory and one supressed factory?

                            1 Reply Last reply Reply Quote 0
                            • SchulzS Offline
                              Schulz
                              last edited by

                              It gives this error when I tried to set up factories:

                              Unexpected Exception while setting values for attachmentUnitAttachment attached to:UnitType{name=factory} with name:unitAttachment

                              Probably need additional property.

                              HeppsH 1 Reply Last reply Reply Quote 0
                              • HeppsH Offline
                                Hepps Lobby Moderators @Schulz
                                last edited by

                                @Schulz If you send me the map package... knowing what you want... I can most likely get you to the finish line.

                                "A joyous heart sours with the burden of expectation"
                                Hepster

                                1 Reply Last reply Reply Quote 0
                                • SchulzS Offline
                                  Schulz
                                  last edited by

                                  https://www.sendspace.com/file/6w0okc

                                  HeppsH redrumR RogerCooperR 3 Replies Last reply Reply Quote 1
                                  • HeppsH Offline
                                    Hepps Lobby Moderators @Schulz
                                    last edited by

                                    @Schulz Will look at it at the first opportunity.

                                    "A joyous heart sours with the burden of expectation"
                                    Hepster

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

                                      @Schulz Here is a working map zip that adds "suppressed_factory" when factories are captured by enemies so that they then can't produce: https://www.sendspace.com/file/34rky2

                                      Here is the XML change:

                                          <attachment name="unitAttachment" attachTo="factory" javaClass="games.strategy.triplea.attachments.UnitAttachment" type="unitType">
                                            <option name="isFactory" value="true"/>
                                            <option name="whenCapturedChangesInto" value="any:any:true:suppressed_factory:1"/>
                                          </attachment>
                                          <attachment name="unitAttachment" attachTo="suppressed_factory" javaClass="games.strategy.triplea.attachments.UnitAttachment" type="unitType">
                                            <option name="isInfrastructure" value="true"/>
                                            <option name="canBeDamaged" value="true"/>
                                            <option name="whenCapturedChangesInto" value="any:any:true:factory:1"/>
                                          </attachment>
                                      

                                      I also added it to the unitlist in the XML and copied the factory images so it has an image.

                                      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
                                      • SchulzS Offline
                                        Schulz
                                        last edited by Schulz

                                        Thank you so much I am going to looking immiadetaly.

                                        I have an another question. Air battles do exist as I want but after air battles, land battles occur. Is there any way to set up air battles even in non factory zones also avoiding land fight?

                                        For example Germany has 2 fighters n Libya and wats to shot down British fighter in Egypt. they shot down it but then Germany lost their fighters against British ground forces.

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

                                          @Schulz said in A new option for factories:

                                          Air battles do exist as I want but after air battles, land battles occur. Is there any way to set up air battles even in non factory zones also avoiding land fight?

                                          I considered this several times, especially relatively to the American air offensive on Germany directed at destroying the Luftwaffe, or the recurring American air attacks, often from carriers, on many Japanese possessions, to destroy the land based air forces, especially on islands. On the other side, maybe the most famous case is the attack on the Pear Harbour airfields. Anyways, currently TripleA doesn't support ending the attack immediately after the air attack (meaning you will have to do that round of combat).

                                          A way to do something like that, currently, is to make air units into possible bombing targets, but I feel that very clumsy, especially in the moment of selecting targets with considerable stacks.

                                          The other side of the coin is that air only can normally attack land only, that doesn't make sense, as for real you cannot destroy infantry (and such) armies with aeroplanes only, no matter how many (in the traditional games, this is tempered by the fact that air tends to cost a lot more than land, so you rarely want to do it).

                                          Anyways, if you open a feature request, I'll probably upvote.

                                          HeppsH SchulzS 2 Replies Last reply Reply Quote 0
                                          • HeppsH Offline
                                            Hepps Lobby Moderators @Cernel
                                            last edited by

                                            @Cernel and @Schulz This feature already exists in the engine. You can do air battles independently already.

                                            "A joyous heart sours with the burden of expectation"
                                            Hepster

                                            redrumR 1 Reply Last reply Reply Quote 0

                                            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
                                            • 3
                                            • 1 / 3
                                            • First post
                                              Last post
                                            Powered by NodeBB Forums