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

      @RoiEX Also, on this matter (territory names), a name that has spaces in the game's file (xml) is referenced with underscores, instead of spaces, in the called territoryNames image files (as I said), but it is still going with spaces in the name_place names, so here you have a double criss-crossed instance of underscores-to-spaces method, and actually, differently from our case, one in which a name with underscores inside the name_place file will fail to be assigned to an image file name within territoryNames that is being called for display (as an additional side note, this is actually a mapmaking issue, as when you make those territories with the mapmaking utilities (using the Run the Map Creator/Step 2: Map Utilities/Run the Decoration Placer) those underscores you get from the image files names are not changes to spaces, by this utility generating the text file having the coordinates for them, so the "name_place" file you get will just not work for all territories with spaces in the game's file (xml) and underscores in the territoryNames image file names, nothing telling you that, either, if veqryn or something is not sitting next to you), and I assume at least the image files names part is advisable, as you don't want to have spaces in any of them (I recall you changed all spaces to underscores in the maps' folders names, for example, beside also having them full lower case). So, I'm just saying the example I made is not only for games names, but also for what written inside the name_place txt file, that in this case is not a properties one (so, of course, you are not escaping those spaces).

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

        @Cernel Actually, now that I think about it, I vaguely maybe remember that years ago this thing caused, for some time, images for territory names, with underscores in the images files names and spaces in the entries in the game file (xml), to fail to display, but I'm not sure I recall correctly, and it was eventually fixed.

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

          @Cernel The problem with an 'underscore to space method' is that eventually someone would like to get some special char into the title, so that john_smiths_map turns into John Smith's Map and the apostrophe in the 'technical name' will be forbidden, this really leads down a rabbit hole of visual preferences.
          It would be far better if there were 2 keys, one with the display name that is being used everywhere for displaying and another key that is purely being used by other references without any special chars.

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

            @RoiEX I wonder if the apostrophe is ok to have in file names (I suppose not)? For example, "New York" in the xml has to be "New_York" in the file name of the image (right?). Can, instead, "Bishop's Stortford" remain as "Bishop's_Stortford" in the image file name?

            Anyways, I see your point: there may be more undesirable characters than just the space, that you may have in names inside the game file (xml), and, differently from the underscore, that is clearly representing a space, they may be not so obvious to convert for visualization.

            Though, I think TripleA could be fine simply disallowing all of them in names. I think the space is the only one you don't want to pass, even though, of course, you could still write "New York" as "NewYork" (not a fan).

            By the way, are you aware that this system of disallowing spaces in names entirely is already partially in place? For example, you cannot have units (and other things) with spaces in them.

            So, @RoiEX or any developers, can you explain me why, as a potential mapmaker, I am allowed to have a territory called "New York" in the name, calling its image file name as "New_York", while I'm forbidden having a unit called "AA Gun", and I, instead, have to call it "AAGun" or "AA_Gun", or whatever, and exactly the same as its image file name, instead?

            TripleA has already a few different methods. Substantially, what I would prefer is that it goes with only one of them in all cases, preferably one that allows a better look to the final user (I think we can all agree that "New York" and "Horse Artillery" look better than "New_York" and "Horse_Artillery" or "NewYork" and "HorseArtillery", right?). Wouldn't this be at least better? But I know I'm talking mostly theorically, as I realize there would be huge compatibility issues.

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

              I get this error message though map still works.

              line: 3097, column: 26, error: The content of element type "attachmentList" must match "(attachment)+".

              Line 3097 is just </attachmentList> as usual

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

                @Schulz If you post a copy of the lines around line 3097. It should be pretty easy to identify the issue.

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

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

                  @Schulz you most likely either have no attachments defined in the attachment list or you have something invalid defined in there.

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

                    attachment.png

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

                      @Hepps Actually, the problem can be anywhere from the start to the end of the "attachmentlist".

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

                        Is there any way to set up two combat phrases for one round for a nation like;

                        <step name="germanyCombatMove" delegate="move" player="Germany"/>
                        <step name="germanyBattle" delegate="battle" player="Germany"/>
                        <step name="germanyCombatMove" delegate="move" player="Germany"/>
                        <step name="germanyBattle" delegate="battle" player="Germany"/>
                        <step name="germanyPurchase" delegate="purchase" player="Germany"/>

                        Also what would you guys think about it?

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

                          @Schulz Have you tried it yet?

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

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

                            @Schulz Yes, I believe you should be able to have 2 combat phases in the same turn.

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

                            B 1 Reply Last reply Reply Quote 2
                            • B Online
                              beelee @redrum
                              last edited by

                              @redrum said in Mixed Questions:

                              @Schulz Yes, I believe you should be able to have 2 combat phases in the same turn.

                              🙂

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

                                I've tried but didn't work.

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

                                  <step name="germany0CombatMove" delegate="move" player="Germany"/>
                                  <step name="germanyBattle" delegate="battle" player="Germany"/>
                                  <step name="germanyCombatMove" delegate="move" player="Germany"/>
                                  <step name="germany2Battle" delegate="battle" player="Germany"/>
                                  <step name="germanyPurchase" delegate="purchase" player="Germany"/>
                                  <step name="germanyNonCombatMove" delegate="move" player="Germany" display="Non Combat Move"/>
                                  <step name="germanyPlace" delegate="place" player="Germany"/>
                                  <step name="germanyEndTurn" delegate="endTurn" player="Germany"/>

                                  These setups work without error message but units don't fight in the second combat if they already fought in the first combat.

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

                                    @Schulz My guess is units are being marked as already in combat for the round. You could try adding another EndTurn phase after the first battle phase.

                                    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

                                      It says "not all units have enough movement" for units that engaged battle. Somethings still prevent them engaging second time.

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

                                        @Schulz
                                        idk if it matters but did u try the second combat phase being named as the first ? without the 2 ?

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

                                          Yes, didn't work either.

                                          B redrumR 2 Replies Last reply Reply Quote 0
                                          • B Online
                                            beelee @Schulz
                                            last edited by

                                            @Schulz
                                            yea seems the stepName probably can be w/e and the "delegate" is what matters.

                                            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
                                            • 1 / 7
                                            • First post
                                              Last post
                                            Copyright © 2016-2018 TripleA-Devs | Powered by NodeBB Forums