Fuel Enhancements
-
@frostion I like your version too, more informative. Btw there is a resources folder in the tripleA assests folder, not sure if that's what your looking for.
-
@prastle I threw another one in for ya pras : )
-
Wow, I put a few images on the screen and get like 10 replies in 5 minutes

@Frostion Taking my thunder but yes adding resource income is the next step. And yes if you look at Civil War it already has a "resources" folder with icons that I'm using. There are also a few defaults including in the engine.
-
@beelee thanks bee
-
@redrum Can't reand antdk type t thahaghs fas....
cherf...
-
I don't think anyone is interested in this.

-
@hepps smart ass
-
@prastle lol
-
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.
-
Initial PR for the enhancements: https://github.com/triplea-game/triplea/pull/3013
-
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.
-
@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...
-
@hepps gigglez
-
@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.
-
-
@wc_sumpton Hehe Gigglez!
-
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.
-
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:

Union:

@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

-
@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

-
@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.
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
