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

    Loading Unzipped Map From In-Game Download

    Scheduled Pinned Locked Moved Feature Requests & Ideas
    42 Posts 7 Posters 20.4k Views 6 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 @Panther
      last edited by

      @panther I wonder if a developer can confirm this is intended (needing the "-master", at end name, when zipped and needing not having it unzipped, instead) or not? My guess is that this might be an unintended issue due to the fact that, upon seeing the "-" symbol, the engine might think it's looking at a mapskin; but I'm just guessing (only a developer can know what is the case here).

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

        @prastle As long as the zip was made per norm, to manual install it one just needs to past it inside the downloadedMaps folder (no need to zip it); nothing else.

        This would be more like a guide about how to unzip and run unzipped maps you downloaded from the repository, in case somebody want to modify them.

        I think my post should fully cover it:

        If you want to unzip, and run unzipped, a map downloaded from the repository, having the following folder path:
        elemental_forces-master/map/games...

        you can go these 2 ways:

        1. Keep the folder as per zipped, but removing the "-master":

        for example:
        elemental_forces/map/games...

        1. Turn it unzipped going the old way. What I normally do is to cut-paste out the "map" folder (that is inside the "master" folder); then rename the "map" folder with the name of the map (the part of the main folder name before "-master"); then, delete the, now empty, original "master" folder (not necessary).

        for example:
        elemental_forces/games...

        The second one is the old way, that works and always worked either zipped or unzipped, with the same path names.

        When you upload a map in GitHub, on the other hand, it has to be just:
        map/games...

        since the main "master" folder is created by GitHub itself, with the name you choose for your repository (that is the map name).

        Change "elemental_forces" with whatever map name.

        prastleP 1 Reply Last reply Reply Quote 0
        • PantherP Online
          Panther Admin Moderators @prastle
          last edited by

          @Cernel I weakly remember that the "-master" addition is needed for the automated procedures at GitHub. However the issue we are discussing here is a side effect and yes, it would be a good idea to hear a developer's comment. After we know more about the background, I will be happy to add a 'how to guide' as you suggested, @prastle .

          Don't always trust TripleA when it comes to rules questions. Know the rules before you start … and better check what TripleA has done.

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

            @cernel cor but you have left out two things they also need to know. For example Iron war with fuel download from the forum here and Installing a new pre-release engine. In order to run the new maps that use the new features that will not run on current stable they also need to install a pre-release. this should all be covered in one stickied topic in help was my thought to benefit the entire community.

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

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

              @panther Correct, that is just the name of the repository in GitHub, with "-master" added at the end. This is just what GitHub does when you choose to download an entire repository; so the new way was taylored around it.

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

                @prastle yes the downloader pulls from the master thus why it is needed. As do the bots when updating.

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

                  @prastle I see those 2 as different matters / topics.

                  A topic for:

                  "Where and how to download and install the latest prerelease"
                  (to test it or play maps using unreleased features)

                  and another one for:

                  "How to unzip, and run unzipped, a map downloaded from the official TripleA repository"
                  (to possibly modify or anyways work on it unzipped)

                  I actually suggest having the first one in "Help & Questions" and the second one in "Mapmaking".

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

                    @cernel good point but one spot probably best up to you guys. Either way this would allow all to acess easily for example @RogerCooper 's site as well.

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

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

                      @prastle I'd just wait what a developer have to say, as I can't believe this thing of needing different paths zipped vs unzipped may be intended; at most accepted (the fact that you need not having the "-master" in the name when unzipped).
                      Probably here we need @LaFayette , if he will read this post, since the new "master" thing was his creation.

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

                        This didn't change when "-master" was added. It happened somewhere afterwards for no apparent reason. Because I recall not requiring to zip files even with that suffix.

                        Another point to add is that it used to always read and loaded the unzipped version before the zipped version if both were present. However this only applied to the xml itself, the rest of the files still had to be zipped.

                        It would be best if it read/loaded all the files (not just xml) from a unzipped folder always. This would save a lot of time when mapmaking and testing small changes. ( in 1.8 days it might have done so, don't recall)

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

                          So I think this is probably a side effect of all the map rework. Probably would be best to allow unzipped maps to have *-master so its easier to unzip downloaded map and tweak them.

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

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

                            @redrum said in Open unzipped map:

                            So I think this is probably a side effect of all the map rework. Probably would be best to allow unzipped maps to have *-master so its easier to unzip downloaded map and tweak them.

                            Definitely. This thing of having different names zipped and unzipped doesn't make sense at all.

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

                              @redrum it occurs for the pulls from the downloader and the bots
                              they both pull from the master only. You can have 20 versions of a map in the repo. The updater only pulls the master. I know this from updating the bots.

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

                                @redrum I always wondered if this "-master" addition would create any conflicts with the fact that "-" also identifies mapskins. So maybe keep an eye open on that (might be not relevant, idk).

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

                                  @redrum yes if all had master would be easier just make sure all unzipped have master added now 😉 If ya want to go that route every map would have to be rewritten. it is much easier to remove the master. Since it is only needed for maps to be updated to the downloader or bots not every map we have ever created.

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

                                    PR: https://github.com/triplea-game/triplea/pull/3339

                                    Map name is always found from the XML property
                                    <property name="mapName" value="total_world_war" editable="false">
                                    <string/>
                                    </property>

                                    Unzipped Map Directory Examples (in downloadedMaps)

                                    1. total_world_war
                                    2. total_world_war/map
                                    3. total_world_war-master
                                    4. total_world_war-master/map

                                    Zipped Map Examples

                                    1. total_world_war.zip
                                    2. total_world_war-master.zip

                                    ** If for some reason the XML mapName isn't in the format of using underscores, then the checks that use "-master" will convert it to have underscores while the other checks will use the mapName as is. So for example if the mapName was TotalWorldWar the following are valid:

                                    1. TotalWorldWar
                                    2. TotalWorldWar/map
                                    3. total_world_war-master
                                    4. total_world_war-master/map
                                    5. TotalWorldWar.zip
                                    6. total_world_war.zip
                                    7. total_world_war-master.zip

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

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

                                      @redrum For the unzipped, I suggest keeping only

                                      total_world_war
                                      total_world_war-master/map

                                      and making not working:

                                      total_world_war/map
                                      total_world_war-master

                                      This way we keep only 2 standards, the basic / old and the GitHub one, instead of 4 different ways.

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

                                        @cernel I don't think having support for those other 2 hurts anything. We can always just advertise in the map making guides the 2 which are most commonly used.

                                        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 Ok. It sounds a bit contradictory just mostly the "total_world_war/map" case, since the map is "total_world_war"; so having inside something called "map" makes sense if the other is the master of the map.

                                          Also, I think that conversion thing is just confusing, and I suggest getting over it, by now. Meaning, not supporting conversion of "TotalWorldWar" to "total_world_war", but just going with it having to be exactly what is written in mapName (so, only "TotalWorldWar", for the master too, if that is the mapName). That looks just like 1 more thing to remember that is not necessary.

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

                                            @cernel Also, if possible, make the game never work if the mapName has any spaces, since you are supposed not having thoses, and it has been an issue, at times. Something like a crash with something telling "you must have no spaces in the mapName: use underscores, instead". Tho I'm not sure if this might be an issue for @RogerCooper ?

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