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

    Total World War: December 1941 (BETA) 2.8.0.5

    Scheduled Pinned Locked Moved Maps & Mods
    472 Posts 20 Posters 754.1k Views 21 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.
    • General_ZodG Offline
      General_Zod Moderators @Hepps
      last edited by

      @hepps Giggidy 🙂

      1 Reply Last reply Reply Quote 1
      • HeppsH Offline
        Hepps Moderators @spartan
        last edited by

        @spartan Yes. There is a new feature request (much to Reds chagrin) relating to the damage of infrastructure on capture. I didn't add it to the list of new features within the game since it seems a little presumptuous to assume that just because I mentioned it, it will be done. However, that being said, if this feature is developed it will be implemented about 15 minutes after it is added to the engine. 😃

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

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

          @hepps 15 minutes! Can I hold you to that?

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

          HeppsH prastleP 2 Replies Last reply Reply Quote 0
          • HeppsH Offline
            Hepps Moderators @redrum
            last edited by

            @redrum You may. If the feature ends up being worded the way its suggested.... I could go as low as 45 seconds. 😃

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

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

              Well I've got some good news and some bad news...

              The good news is all my changes are operational.

              the bad news is I am out of new features to add to this further. 😉

              0_1518558144663_df584c7d-61c3-4f58-9070-d8aef336b4e3-image.png

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

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

                @redrum hehe

                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
                • HeppsH Offline
                  Hepps Moderators
                  last edited by

                  Sorry ran into a bit of a snag.

                  Would anyone know why this is returning an error?

                  <attachment name="triggerAttachmentgermanAirtraninfra1" attachTo="Germany" javaClass="games.strategy.triplea.attachments.TriggerAttachment" type="player">
                    <option name="trigger" value="conditionAttachmentDummyCondition"/>
                    <option name="unitType" value="germanAirTransport"/>
                    <option name="unitProperty" value="isInfrastructure" count="false"/>
                    <option name="unitProperty" value="attack" count="1"/>
                    <option name="when" value="before:germanyCombatMove"/>
                  </attachment>
                  <attachment name="triggerAttachmentgermanAirtraninfra2" attachTo="Germany" javaClass="games.strategy.triplea.attachments.TriggerAttachment" type="player">
                    <option name="trigger" value="conditionAttachmentDummyCondition"/>
                    <option name="unitType" value="germanAirTransport"/>
                    <option name="unitProperty" value="isInfrastructure" count="true"/>
                    <option name="unitProperty" value="destroyedWhenCapturedFrom" count="Germany"/>
                    <option name="unitProperty" value="attack" count="0"/>
                    <option name="when" value="after:germanyNonCombatMove"/>
                  </attachment>
                  

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

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

                    @hepps What error are you seeing?

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

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

                      @hepps Haha, what about the tech model tests? Maybe it can turn into a companion mod for those whos dislike dumb luck deciding the direction of the game. 😉

                      At worst you will have proven what model would work for GD before mass production. 🙂

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

                        @redrum TripleA engine version 1.9.0.0.8505
                        Loading map: total_world_war, from: C:\Users\Hepster\triplea\downloadedMaps\total_world_war-master.zip
                        Loading resources from the following paths: [C:\Users\Hepster\triplea\downloadedMaps\total_world_war-master.zip, C:\Program Files\TripleA\assets]
                        Loading map: total_world_war, from: C:\Users\Hepster\triplea\downloadedMaps\total_world_war-master.zip
                        Loading resources from the following paths: [C:\Users\Hepster\triplea\downloadedMaps\total_world_war-master.zip, C:\Program Files\TripleA\assets]
                        Error: No such Property Field named: m_destroyedWhenCapturedFrom, or: destroyedWhenCapturedFrom, for Subject: UnitAttachment attached to:UnitType{name=germanAirTransport} with name:unitAttachment
                        java.lang.IllegalStateException: No such Property Field named: m_destroyedWhenCapturedFrom, or: destroyedWhenCapturedFrom, for Subject: UnitAttachment attached to:UnitType{name=germanAirTransport} with name:unitAttachment
                        at games.strategy.util.PropertyUtil.getPropertyFieldObject(PropertyUtil.java:76)
                        at games.strategy.engine.data.DefaultAttachment.getRawPropertyString(DefaultAttachment.java:113)
                        at games.strategy.triplea.attachments.TriggerAttachment.triggerUnitPropertyChange(TriggerAttachment.java:1932)
                        at games.strategy.triplea.attachments.TriggerAttachment.fireTriggers(TriggerAttachment.java:229)
                        at games.strategy.triplea.attachments.TriggerAttachment.collectAndFireTriggers(TriggerAttachment.java:168)
                        at games.strategy.triplea.delegate.BaseTripleADelegate.triggerWhenTriggerAttachments(BaseTripleADelegate.java:90)
                        at games.strategy.triplea.delegate.BaseTripleADelegate.end(BaseTripleADelegate.java:59)
                        at games.strategy.triplea.delegate.AbstractMoveDelegate.end(AbstractMoveDelegate.java:50)
                        at games.strategy.triplea.delegate.MoveDelegate.end(MoveDelegate.java:188)
                        at games.strategy.engine.framework.ServerGame.endStep(ServerGame.java:454)
                        at games.strategy.engine.framework.ServerGame.runStep(ServerGame.java:418)
                        at games.strategy.engine.framework.ServerGame.startGame(ServerGame.java:266)
                        at games.strategy.engine.framework.startup.launcher.LocalLauncher.launchInNewThread(LocalLauncher.java:58)
                        at games.strategy.engine.framework.startup.launcher.AbstractLauncher.lambda$launch$0(AbstractLauncher.java:51)
                        at java.lang.Thread.run(Unknown Source)
                        Caused by: java.lang.IllegalStateException: No such Property Field: destroyedWhenCapturedFrom
                        at games.strategy.util.PropertyUtil.getFieldIncludingFromSuperClasses(PropertyUtil.java:58)
                        at games.strategy.util.PropertyUtil.getFieldIncludingFromSuperClasses(PropertyUtil.java:63)
                        at games.strategy.util.PropertyUtil.getFieldIncludingFromSuperClasses(PropertyUtil.java:63)
                        at games.strategy.util.PropertyUtil.getFieldIncludingFromSuperClasses(PropertyUtil.java:63)
                        at games.strategy.util.PropertyUtil.getFieldIncludingFromSuperClasses(PropertyUtil.java:53)
                        at games.strategy.util.PropertyUtil.getPropertyField(PropertyUtil.java:101)
                        at games.strategy.util.PropertyUtil.getPropertyField(PropertyUtil.java:81)
                        at games.strategy.util.PropertyUtil.getPropertyFieldObject(PropertyUtil.java:69)
                        ... 14 more

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

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

                          @hepps I have a feeling that you can't use destroyedWhenCapturedFrom in a trigger. Can you try using destroyedWhenCapturedBy instead?

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

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

                            @Hepps @redrum
                            Why is the m_ in there?

                            @hepps said in Total World War: December 1941 Trains (BETA) 2.8.0.1:

                            @redrum TripleA engine version 1.9.0.0.8505
                            Loading map: total_world_war, from: C:\Users\Hepster\triplea\downloadedMaps\total_world_war-master.zip
                            Loading resources from the following paths: [C:\Users\Hepster\triplea\downloadedMaps\total_world_war-master.zip, C:\Program Files\TripleA\assets]
                            Loading map: total_world_war, from: C:\Users\Hepster\triplea\downloadedMaps\total_world_war-master.zip
                            Loading resources from the following paths: [C:\Users\Hepster\triplea\downloadedMaps\total_world_war-master.zip, C:\Program Files\TripleA\assets]
                            Error: No such Property Field named: m_destroyedWhenCapturedFrom, or: destroyedWhenCapturedFrom, for Subject: UnitAttachment attached to:UnitType{name=germanAirTransport} with name:unitAttachment
                            java.lang.IllegalStateException: No such Property Field named: m_destroyedWhenCapturedFrom, or: destroyedWhenCapturedFrom, for Subject: UnitAttachment attached to:UnitType{name=germanAirTransport} with name:unitAttachment

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

                              @redrum I'll try.

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

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

                                @general_zod Yes I also wondered that. I searched the entire XML for an instance of either; m_destroyedWhenCapturedFrom, as well as m destroyedWhenCapturedFrom... and yielded no results.

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

                                redrumR 2 Replies Last reply Reply Quote 0
                                • redrumR Offline
                                  redrum Admin @Hepps
                                  last edited by

                                  @hepps This should work:

                                  <attachment name="triggerAttachmentgermanAirtraninfra1" attachTo="Germany" javaClass="games.strategy.triplea.attachments.TriggerAttachment" type="player">
                                    <option name="trigger" value="conditionAttachmentDummyCondition"/>
                                    <option name="unitType" value="germanAirTransport"/>
                                    <option name="unitProperty" value="isInfrastructure" count="false"/>
                                    <option name="unitProperty" value="attack" count="1"/>
                                    <option name="when" value="before:germanyCombatMove"/>
                                  </attachment>
                                  <attachment name="triggerAttachmentgermanAirtraninfra2" attachTo="Germany" javaClass="games.strategy.triplea.attachments.TriggerAttachment" type="player">
                                    <option name="trigger" value="conditionAttachmentDummyCondition"/>
                                    <option name="unitType" value="germanAirTransport"/>
                                    <option name="unitProperty" value="isInfrastructure" count="true"/>
                                    <option name="unitProperty" value="destroyedWhenCapturedBy" count="China:Russia:Germany:Britain:Italy:Japan:Usa:Spain:Sweden:Turkey:Brazil"/>
                                    <option name="unitProperty" value="attack" count="0"/>
                                    <option name="when" value="after:germanyNonCombatMove"/>
                                  </attachment>
                                  

                                  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
                                  • redrumR Offline
                                    redrum Admin @Hepps
                                    last edited by

                                    @hepps This should also work if you want to do the "from":

                                    <attachment name="triggerAttachmentgermanAirtraninfra1" attachTo="Germany" javaClass="games.strategy.triplea.attachments.TriggerAttachment" type="player">
                                      <option name="trigger" value="conditionAttachmentDummyCondition"/>
                                      <option name="unitType" value="germanAirTransport"/>
                                      <option name="unitProperty" value="isInfrastructure" count="false"/>
                                      <option name="unitProperty" value="attack" count="1"/>
                                      <option name="when" value="before:germanyCombatMove"/>
                                    </attachment>
                                    <attachment name="triggerAttachmentgermanAirtraninfra2" attachTo="Germany" javaClass="games.strategy.triplea.attachments.TriggerAttachment" type="player">
                                      <option name="trigger" value="conditionAttachmentDummyCondition"/>
                                      <option name="unitType" value="germanAirTransport"/>
                                      <option name="unitProperty" value="isInfrastructure" count="true"/>
                                      <option name="unitProperty" value="destroyedWhenCapturedBy" count="FROM:Germany"/>
                                      <option name="unitProperty" value="attack" count="0"/>
                                      <option name="when" value="after:germanyNonCombatMove"/>
                                    </attachment>
                                    

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

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

                                      @redrum lol

                                      I did that and was about to save.... then changed it all to what you had just suggested!

                                      😃

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

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

                                        @hepps Yeah either way works. You could technically just set the destroyedWhenCapturedBy option on the unit itself instead of a trigger and just flip the "isInfrastructure" in the trigger.

                                            <attachment name="unitAttachment" attachTo="germanAirTransport" javaClass="games.strategy.triplea.attachments.UnitAttachment" type="unitType">
                                              <option name="isInfrastructure" value="false"/>
                                              <option name="destroyedWhenCapturedBy" value="China:Russia:Germany:Britain:Italy:Japan:Usa:Spain:Sweden:Turkey:Brazil"/>
                                            </attachment>
                                        
                                        <attachment name="triggerAttachmentgermanAirtraninfra1" attachTo="Germany" javaClass="games.strategy.triplea.attachments.TriggerAttachment" type="player">
                                          <option name="trigger" value="conditionAttachmentDummyCondition"/>
                                          <option name="unitType" value="germanAirTransport"/>
                                          <option name="unitProperty" value="isInfrastructure" count="false"/>
                                          <option name="unitProperty" value="attack" count="1"/>
                                          <option name="when" value="before:germanyCombatMove"/>
                                        </attachment>
                                        <attachment name="triggerAttachmentgermanAirtraninfra2" attachTo="Germany" javaClass="games.strategy.triplea.attachments.TriggerAttachment" type="player">
                                          <option name="trigger" value="conditionAttachmentDummyCondition"/>
                                          <option name="unitType" value="germanAirTransport"/>
                                          <option name="unitProperty" value="isInfrastructure" count="true"/>
                                          <option name="unitProperty" value="attack" count="0"/>
                                          <option name="when" value="after:germanyNonCombatMove"/>
                                        </attachment>
                                        

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

                                        HeppsH 1 Reply Last reply Reply Quote 1
                                        • HeppsH Offline
                                          Hepps Moderators @redrum
                                          last edited by

                                          @redrum Worked... this is a good example of an opportunity for better notations in POS.

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

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

                                            @redrum Both ways work.

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

                                            redrumR 2 Replies 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
                                            • 4
                                            • 5
                                            • 23
                                            • 24
                                            • 2 / 24
                                            • First post
                                              Last post
                                            Copyright © 2016-2018 TripleA-Devs | Powered by NodeBB Forums