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

    Mixed Questions

    Scheduled Pinned Locked Moved Map Making
    130 Posts 12 Posters 68.6k Views 10 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.
    • B Online
      beelee @Schulz
      last edited by

      @Schulz

      Idk but would suggest a reread of POS2. redrum has updated it a lot in the last year or so as a lot more things have become possible.

      I reread it all the time and still don't understand it all :grinning_face_with_smiling_eyes:

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

        @Schulz Yes. You can do things like China in Global 40:

            <attachment name="rulesAttachment" attachTo="Chinese" javaClass="games.strategy.triplea.attachments.RulesAttachment" type="player">
              <option name="movementRestrictionTerritories" value="Shantung:Kwangsi:Kiangsi:Kiangsu:Jehol:Manchuria:Shensi:Yunnan:Suiyuyan:Kweichow:Hunan:Kansu:Hopei:Tsinghai:Szechwan:Chahar:Sikang:Anhwe:Kwangtung:Burma"/>
              <option name="movementRestrictionType" value="allowed"/>
              <!--<option name="productionPerXTerritories" value="1"/>-->
              <option name="placementAnyTerritory" value="true"/>
              <option name="placementCapturedTerritory" value="true"/>
              <option name="placementPerTerritory" value="9999999"/>
              <option name="unlimitedProduction" value="true"/>
            </attachment>
        

        Here are the POS2 player options: https://github.com/triplea-maps/the_pact_of_steel/blob/master/map/games/pact_of_steel_2.xml#L3927

        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 0
        • C Offline
          Cernel Moderators @redrum
          last edited by

          @redrum If he is asking about an alternative to placing factory anywhere, that doesn't cover, as the v2 Chinese rules don't allow for limiting placement by territory values, but only by a same number for each territory.

          However now that you can hide units, placing factories everywhere has no real drawbacks (look at Red Sun Over China).

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

            China can place limitless units while I've found another way just adding construction properties to units kinda work.

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

              Can anyone give me examples of this kind of units;

              1. A land unit that perform pre-emptive strike like sub and roll 3 dice (ex: with 4 attack they instantly take on 2 enemy units in ll)

              2. Sucide planes (Like gas but they attack enemy fighters only)

              3. Ships that perfor shore bombard per combat round instead performing once per battle.

              4. Functional sea mine codes if exist

              5. Unit that can gain additional +1 or +2 defense power when used with another units (similar to supporting ability but defensive version)

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

                Moved to Map Making.

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

                  @Schulz said in Mixed Questions:

                  Can anyone give me examples of this kind of units;

                  PoS2 will at least give you information about everything that can be done; so I won't be detailing.

                  1. A land unit that perform pre-emptive strike like sub and roll 3 dice (ex: with 4 attack they instantly take on 2 enemy units in ll)

                  There in a unit option for setting multiple rolls per unit, for attack or defence, and a unit option for first striking. Both can be applied on any kind of units.

                  1. Sucide planes (Like gas but they attack enemy fighters only)

                  Currently attacking only specific units is not supported. You can only specify attacking anything but air units, with a unit option that is presented as making you unable to attack a list of unit (just input whatever list). More information on this incomplete feature at this topic:
                  https://forums.triplea-game.org/topic/328/unit-option-can-submerge-hide-for-land-units-partisan-guerrilla-spy-diplomat-munition

                  1. Ships that perfor shore bombard per combat round instead performing once per battle.

                  Not possible.

                  1. Functional sea mine codes if exist

                  Too vague request. I don't think sea mines can be very well represented, both as a matter as how they fight as well as how they are put in place, but this would need testing, especially regarding the behaviour of sea infrastructures.

                  1. Unit that can gain additional +1 or +2 defense power when used with another units (similar to supporting ability but defensive version)

                  Support attachments can be defined as defensive. There is no such option for the units, but unit support options are deprecated, anyways.

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

                    Thanks for the answers. Is it possible to set up suicide or submarine units preventing enemies to pick their casualties?

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

                      @Schulz No. However, you can hack such a behaviour by having those units suiciding at power 0 while also having an AA attack (defensive or offensive), and setting the relative AA properties so that AA casualties are randomized. However, the exact dynamic of this randomization is currently inconsistent, thus it may be liable to change in future, if any developers fix the problem. More information about this last issue here:
                      https://forums.triplea-game.org/topic/989/open-aa-revised-bug-aa-fire-casualty-selection-issues

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

                        Does anyone help me how to preperly create "Objectives file" and and objectives panel. Seems like there are hidden rules about that for example zip name is world_war_ii_v3 while objectives name is "World_War_II_v3_1941" XML one is "WW2v3-1941"

                        1 Reply Last reply Reply Quote 0
                        • B Online
                          beelee
                          last edited by

                          The spelling needs to be the same as the map name at the top of the xml (not the bottom of xml )except you need to use underscores "_" instead of "spaces".

                          So this "World War II v3 1941" is written like this in objectives.properties "World_War_II_v3_1941".

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

                            Thanks, worked but seems still there is an issue

                            pg.png

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

                              @Schulz Can you post your objectives.properties?

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

                                objectives.properties

                                C 2 Replies Last reply Reply Quote 0
                                • C Offline
                                  Cernel Moderators @Schulz
                                  last edited by

                                  @Schulz The first item of all entries for any national objectives in the objectives.properties file must be the name of the game (as per the "info name" in the game file (xml)) and the objectives.properties file itself must be in the main map folder of the map that game is calling (as per the "mapName" in the game file (xml)). All game name spaces inside the mentioned properties file must be substituted with undescores.

                                  @redrum @LaFayette @RoiEX @ssoloff I wonder what do the developers think about this method of using underscores instead of spaces (I know it comes from the handling of spaces by properties file)? I could have a game called "Pact_of_Steel_2", another game called "Pact of Steel 2", and another one called "Pact of_Steel 2" (and more!), and they would figure as different games, but they would all call the same objective, named "Pact_of_Steel_2". Does this make actual sense? To keep the system univoke, should underscores better be disallowed in the "info name" completely, maybe (also since the game title is really better not to have any underscores anyways, as it is a user displayed element)?

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

                                    @Schulz said in Mixed Questions:

                                    objectives.properties

                                    I see everything in that file is on a single line (no line breaks). You probably lost all those for opening and saving the original with a limited text editor, that is not reading the line breaks of that file (typically this happens if you open with Windows Notepad a text file that has non-Windows line breaks). You need either remaking all line breaks where they are supposed to be or restarting from the original, this time opening it with an editor that sees those line breaks.

                                    Not a developer and not much of a knowledge of properties file, so I'm not sure of what I'm saying (and I haven't tested it).

                                    1 Reply Last reply Reply Quote 1
                                    • RoiEXR Offline
                                      RoiEX Admin @Cernel
                                      last edited by

                                      @Cernel Good Question.
                                      If you ask me I wouldn't substitute anything at all. While it's true that properties files have their limitations, it's certainly possible to have a key with spaces if the spaces are escaped correctly. See https://en.wikipedia.org/wiki/.properties#Format
                                      However because we probably want to stay compatible, this behaviour will probably stay for a while...

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

                                        @RoiEX Can you try that? I tried to escape spaces (substituting underscores with spaces with a backslash beforehand) and the game didn't get it.

                                        RoiEXR 1 Reply Last reply Reply Quote 0
                                        • RoiEXR Offline
                                          RoiEX Admin @Cernel
                                          last edited by

                                          @Cernel it could be the case that we're not implementing it correctly.
                                          Please remind me tomorrow to have a look at this

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

                                            objectives.properties

                                            Adjusted now but still does not work.

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