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

    Fuel Enhancements

    Scheduled Pinned Locked Moved Feature Requests & Ideas
    234 Posts 10 Posters 221.4k 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.
    • HeppsH Offline
      Hepps Moderators
      last edited by

      I don't think anyone is interested in this. 😃

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

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

        @hepps smart ass

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

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

          @prastle lol

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

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

            Fuel enhancements are sexy and will make this aspect of Triple A truly incredible. The horizon is bright with the light of a new day.

            My name is Hepster and I approve this message.

            Brought to you by the organization for personal assistants for map makers.

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

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

              Initial PR for the enhancements: https://github.com/triplea-game/triplea/pull/3013

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

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

                This is great and speedy process. I just have couple of questions/concerns.

                In maps that make use of many resources, some of the resources might be player specific, alliance specific or indented to be used “in the background” for technical reasons. Like in Iron War where there are resources like Kamikaze pilots, Commissars, Colonial Troops and so on, not accessible to all players, and if the player somehow obtain the resources anyway, then they are normally removed by triggers, at least before purchase step. A map like Star Trek has a Borg specific resource like Assimilation.

                This has been compatible with the engine, since players are not shown their current 0 amount of every single resource in the purchase window. Like for instance Iron War Germany is shown like “You have 30 PUs, 20 SS, 2 Fuel, 6 Iron left” in the purchase window. They are not shown that they don’t have Kamikaze pilots. And the federation in Star Trek does not see that they dont have “Assimilation”.

                I can see that your preview bars show all resources, also the 0 ones, and I imagine that the bars would also want to show resources soon obtained like “Manpower 0 (+3)”. And this is probably for the best (actually showing even though the player has 0 at the moment) as many maps and players would have important resources used up but still want the important info about some resources on the way.

                So my suggestion would be to have an XML option/setting that could specify who specific resourses are relevant to, meaning who would have them displayed in the bottom of the screen. Maybe like:

                <resourceList>
                    <resource name="PUs"/>
                    <resource name="Iron"/>
                    <resource name="Fuel"/>
                    <resource name="CR" relevantOnlyTo="France:British-Colonies:Italy:British-India:French-Colonies:KNIL"/>
                    <resource name="SS" relevantOnlyTo="Germany"/>
                    <resource name="Pilot" relevantOnlyTo="Japan"/>
                    <resource name="Officials" relevantOnlyTo="USSR"/>
                </resourceList>
                

                I guess it could be like ShownOnlyTo, ShownTo, relevantOnlyTo, notRelevantTo or something like that, maybe even with NoOne and ALL value. The primary idea is just to be to be able to hide the resource from the bar from some/all players. Would it be possible?

                I know it might seem as a pretty map specific request, but the more flexibility and the more uses the engine might offer in regards to resources, I would imagine that we might see other maps also desiring some resources hidden.

                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

                1 Reply Last reply Reply Quote 3
                • wc_sumptonW Offline
                  wc_sumpton @redrum
                  last edited by

                  @redrum Would it be possible to make different directories under resources, like with units, where different players could would be presented with a different icon. In US: A, resources are used to limit the amount of certain unit types. ie... IUs for InfantryUnits... Then the Western Player would see an orange IUs and Southern would see a blue IUs

                  And I like @Frostion idea also!!

                  Cheers...

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

                    @hepps gigglez

                    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 redrum

                      @Frostion Starting to think you're a mind reader... I was thinking pretty much exactly the same thing. Initially was thinking just a boolean parameter but as you pointed out I realized that there are a number of maps where resources are only used by certain nations.

                      My thought was "isDisplayedFor" which either has a list of players or NONE (default is its shown to all).

                      Example:

                      <resourceList>
                          <resource name="PUs"/>
                          <resource name="Iron"/>
                          <resource name="Fuel"/>
                          <resource name="CR" isDisplayedFor="France:British-Colonies:Italy:British-India:French-Colonies:KNIL"/>
                          <resource name="SS" isDisplayedFor="Germany"/>
                          <resource name="Pilot" isDisplayedFor="Japan"/>
                          <resource name="Officials" isDisplayedFor="USSR"/>
                          <resource name="HiddenResource" isDisplayedFor="NONE"/>
                      </resourceList>
                      

                      @wc_sumpton It would be possible (like unit images) though I don't think there are a ton of maps that would use different icons per player for the same resource. Probably low priority for now.

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

                      wc_sumptonW 1 Reply Last reply Reply Quote 3
                      • wc_sumptonW Offline
                        wc_sumpton @redrum
                        last edited by

                        @redrum That quite all right sir. I understand.

                        Hear that @Hepps I'm a low priority...

                        'It's @Hepps season! It's @Hepps season! And I be hunten' som' @redrum !

                        But yes I really do understand... 😉

                        Cheers...

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

                          @wc_sumpton Hehe Gigglez!

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

                            The initial changes to display the resource amounts are now in the pre-release: https://github.com/triplea-game/triplea/releases

                            Testing and feedback welcome.

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

                              PR for adding "isDisplayedFor" XML resource property: https://github.com/triplea-game/triplea/pull/3015

                                <resourceList>
                                  <resource name="techTokens" isDisplayedFor="NONE"/>
                                  <resource name="PUs" isDisplayedFor="Union"/>
                                  <resource name="Manpower" isDisplayedFor="Confederate"/>
                                  <resource name="Supplies" isDisplayedFor="Union:Confederate"/>
                                  <resource name="Industry"/>
                                  <resource name="Leadership"/>
                                </resourceList>
                              

                              Confederate:
                              0_1518901988088_933c993f-c3a9-40e1-b195-a7005d16734c-image.png

                              Union:
                              0_1518902023732_675951a2-ceed-4650-8f7b-0c1581ec4989-image.png

                              @Frostion FYI, I was doing some testing on various maps and noticed the resource icons in dragon war are on the larger size: https://github.com/triplea-maps/dragon_war/tree/master/map/resources. You probably want to scale those down 🙂

                              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
                              • FrostionF Offline
                                Frostion Admin
                                last edited by Frostion

                                @redrum
                                I will have to test this on all my maps, and I will want to make new small resource png's in the appropriate sizes. As the flag picture in the bottom right corner is 32x32, is this the max size of the resource pictures? I guess that the bar has a fixed seize, so that the bar does not expand if the pictures are too big, right?

                                As for Dragon War, the pictures that are named ???_large.png are used in the purchase screen. Are you telling me that they are also used in the bar? I would have thought that the maybe too small 12x12 pictures called Wood.png, Food.png, Metal.png and PUs.png would be used in the bar.

                                I will test this new pre-release when I got time. Dunno when that is. Maybe within a few days.

                                PS: Funny that we both thought about the player specific resources in nearly the same way 😁

                                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

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

                                  @frostion From my testing, there is no limit on the bar height but the right portion of the bar where the flag is doesn't scale with the rest of the bar so looks funny if they are too tall. So right now, I think 32x32 would be the max that looks decent though all the defaults that I tested with are 24x24.

                                  Right now I'm pulling in the *_large resources images as the engine standard is regular are 12x12 and *_large are 24x24. The 12x12 are way too small looking. Not sure about the purchase screen. Are you specifying which images it pulls in or does it choose those ones? If so probably need to consider having 3 standard sizes.

                                  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
                                  • FrostionF Offline
                                    Frostion Admin
                                    last edited by Frostion

                                    @redrum
                                    I have tested and confirmed that the purchase screen pulls the _large.png version. And because of this, the large version should be able to be unit size. I guess the best size for the bottom bar is 24x24 and up to 32x32. The reason why the small resource pictures are tiny in Dragon War is because I really didn't know at the time what those pictures were for, and then I just made them 12x12 as this was the size I saw in another map dir 🙄 (I still don't know what these small pictures are used for. Please enlighten me.)

                                    The only two maps I made that uses resources are Dragon War and Star Trek. Both maps have tiny 10x10/12x12 resource pictures plus larger "_large.png" versions for the purchase screen. I will probably make 24x24 versions of resources for all my maps.

                                    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

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

                                      @frostion Looking at the code, it appears only the *_large version is used and the regular version isn't referenced anywhere.

                                      I think it brings up the question of where should the "resource" images be displayed and what sizes make the most sense. I'd agree that we need at least a unit size version for places where its displayed with units (purchase/place/etc) and some version for the bottom bar.

                                      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
                                      • General_ZodG Offline
                                        General_Zod Moderators
                                        last edited by

                                        I propose a section devoted to images in POS2.

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

                                          "isDisplayedFor" XML property is now available in the latest pre-release. Looking to get resource income added next.

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

                                            Latest PR to add income to resource bar: https://github.com/triplea-game/triplea/pull/3035

                                            0_1519023302963_d0441ec9-3ed3-473c-95c2-cb723e6c0754-image.png

                                            For now, this only takes into account income from territories, units, and NOs. It ignores blockades, war bonds, triggers, relationship upkeep, and bonus income.

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

                                            B General_ZodG 2 Replies Last reply Reply Quote 2

                                            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
                                            • 8
                                            • 9
                                            • 10
                                            • 11
                                            • 12
                                            • 10 / 12
                                            • First post
                                              Last post
                                            Copyright © 2016-2018 TripleA-Devs | Powered by NodeBB Forums