Subcategories

  • Is it possible to run a trigger for each unit found via unitPresence?

    11
    0 Votes
    11 Posts
    2k Views
    M
    I looked at the engine code around createsUnitsList and it doesn't look like it will work. The relevant code is in EndTurnDelegate.java. } else if (!uaToCreate.getIsSea() && !uaToCreate.getIsAir() && t.isWater()) { toAddLand.addAll(ut.create(createsUnitsMap.getInt(ut), player)); ... if (!toAddLand.isEmpty()) { final Predicate<Territory> myTerrs = Matches.isTerritoryOwnedBy(player).and(Matches.territoryIsLand()); final Collection<Territory> landNeighbors = data.getMap().getNeighbors(t, myTerrs); if (!landNeighbors.isEmpty()) { final Territory location = getRandomTerritory(data, landNeighbors, bridge); createUnits(location, toAddLand, change, endTurnReport); } } So basically, for any land units that would be created at sea, we instead find a random neighboring land territory owned by the player and create the units there. No considerations for transports are given. I suppose engine changes could be done to support different semantics, but given this whole line of thinking is already trying to workaround a different engine limitation - perhaps that one could be addressed directly, i.e. making unitPresence support each (either as a multiplication on top of each on directPresenceTerritories if both are used, or not allowing multiple each values on different options).
  • Any better way to capture the value of the a die roll?

    4
    0 Votes
    4 Posts
    872 Views
    RogerCooperR
    @myrd If you are trying to exactly replicate the boardgame, it is going to be complicated and I don't have anything better for you.
  • How to make allies only give back original territories?

    3
    0 Votes
    3 Posts
    743 Views
    Jason Green-LoweJ
    @wc_sumpton Thank you, that's exactly what I needed! You solved my problem.
  • Folder Structure in the Repository

    10
    0 Votes
    10 Posts
    2k Views
    TheDogT
    @lafayette Is the Pre-Release link below correct ? https://prerelease.triplea-game.org If so then it does not work. FeignException$InternalServerError: [500 Internal Server Error] during [GET] to [https://prerelease.triplea-game.org/maps/listing] [MapsFeignClient#fetchMapListing(Map)]: [{"code":500,"message":"There was an error processing your request. It has been logged (ID d97cbd373f49b787)."}] I tried to add the above, but I don't think I'm authorised, but I think its already covered by; https://github.com/triplea-game/triplea/projects/25#card-74205079
  • File Name Changing with Download

    1
    0 Votes
    1 Posts
    369 Views
    No one has replied
  • Production Limits & Production Value

    9
    0 Votes
    9 Posts
    1k Views
    RogerCooperR
    @wc_sumpton Works perfectly. I plan to have 10% upkeep cost scenarios for all the boardgame conversions.
  • Polygon Grabber refusing to work

    3
    1 Votes
    3 Posts
    642 Views
    Trig MabreyT
    @panther Interesting! I'll check that.
  • 0 Votes
    3 Posts
    674 Views
    U
    @thedog said in What for isAA is better suitable: artillery barrage or another attack / defense type?: You can also use <option name="isFirstStrike" value="true"/> for land battles So the order is AA First Strike Basic Atk / Def So maybe you can do what you want like this AA = AA & Indirect Fire First Strike = Direct Fire Anti Tank & direct HE Basic = Infantry fire & close range fire Dear @TheDog, as I have already mentioned, I use the option «isFirstStrike» and moreover I combine this option with «canNotTarget», «canNotBeTargetedBy», «canEvade», «canAirBattle» and «canScramble» for land units. But still there is a problem that «isFirstStrike» can represent the range difference (or the mobile warfare or the sudden strike etc.) but not another attack / defense type like the option «isAA» with its sub-option «targetsAA». It would be great to have such a sub-option like «targetsFirstStrike» but as we currently don’t have such an option you cannot use by your tank unit «isFirstStrike» to attack anti-tank gun and then basic attack against infantry.
  • Table changes not showing in game notes

    1
    0 Votes
    1 Posts
    421 Views
    No one has replied
  • How to make a Specific Unit not Move to Certain Territories ?

    3
    0 Votes
    3 Posts
    639 Views
    B
    @thedog Thank You
  • How do you Change the Color of a Font ?

    2
    0 Votes
    2 Posts
    540 Views
    TheDogT
    As a notification you can call a png and have complete control of everything. See ebbe's Oil and Snow game, 2nd post is an in game notification https://forums.triplea-game.org/topic/2700/ww2-oil-and-snow-1st-ed-new-map-release?page=1
  • 2 factories in 1 Territory

    10
    0 Votes
    10 Posts
    2k Views
    B
    @thedog actually i can't remember lol. i don't think so
  • Tutorials

    3
    0 Votes
    3 Posts
    1k Views
    RogerCooperR
    @stohrm Try making some small changes and see if they work. If you have trouble achieving the desired effect, post here.
  • Loiter and Taunt

    2
    1 Votes
    2 Posts
    546 Views
    PantherP
    @beelee Really? It's quite old - but really nice. I noticed it in sea battles years ago and wondered about it until I realized that it was a somehow funny description about what friendly units "do" when not attacking together with the currently active player.
  • COMBINED ALLIANCE ATTACK...feedback wanted

    11
    0 Votes
    11 Posts
    2k Views
    T
    @stohrm splitting the two theaters was a reality, how ever you are in essence creating two new 'countries' by combing the units. I think this would best be served by keeping alliance armies whole and allowing each country to add to it with their separate productions. This way allowing them to also run their own combats apart from the combined army.
  • Transfer of Unit Ownership

    3
    0 Votes
    3 Posts
    1k Views
    StohrmS
    @beelee said in Transfer of Unit Ownership: <option name="changeUnitOwners" value="Chinese"/> Thanks, I had everything but the changeUnitOwners value right. It's working now.
  • How to transfer resources from minor to major?

    4
    0 Votes
    4 Posts
    1k Views
    RogerCooperR
    @stohrm Why use a transfer of resources at all? You could get the same effect through a national objective or triggered event.
  • Incorrect Terms: Cargo

    12
    0 Votes
    12 Posts
    2k Views
    StohrmS
    @lafayette I'm just waiting around for a reply to a query I posted late last night (early this AM); but I have to say that I agree with you (and what follows are my 2 cents). An RC-135 is a Cargo Plane and the Air Force does use it to transport service members and their family members. It's damn cold, but it gets them from point A to B to C, etc. Just saying. PS. I don't recall them ever refitting a B-52 to hull troops and do believe there should be a distinction between bombers and Cargo Planes. On the other hand, Cargo planes have been used to hull Paratroopers...
  • Victory Cities not appearing on Players tab

    2
    1 Votes
    2 Posts
    507 Views
    TheDogT
    @rogercooper your line <option name="victoryCity" value="1"/> is outside of the required attachment , it should be inside. <attachment name="territoryAttachment" attachTo="Berlin" javaClass="games.strategy.triplea.attachments.TerritoryAttachment" type="territory"> <option name="production" value="12"/> <option name="capital" value="Germans"/> </attachment> <option name="victoryCity" value="1"/>
  • Movement Restrictions

    4
    0 Votes
    4 Posts
    725 Views
    TheDogT
    @beelee Not sure this will help but... Make the unit unique, say Infantry_us then use territoryEffect to aid, block, hinder the movement? https://forums.triplea-game.org/topic/2892/how-i-am-using-movementcostmodifier

Recent Posts

  • @black_elk

    you are the only one. Help us BlackElk

    😁

    read more

  • @Ramon No problem! I ran into the same problem when making changes to my North Africa map. Black_Elk made very cool reliefTiles for our map, but I didn't know how he made them. So when changing some territory borders, the reliefTiles didn't update along with them. I tried several things and what I described above ended up working the best. You can still see that the map is slightly darker at the places where the change happened, but I still tried my best to conceal it.

    image.jpeg

    The best thing actually to do is trying to contact the map maker! However, the map maker for NML is Black_Elk, and when I contacted him for North Africa, he didn't reply. But maybe you have more success!

    read more

  • @VictoryFirst

    Hi Victory thank you for your reply!

    Its very unfortunate that i dont have the original overlay that the map used.
    I will see what i can do!

    Cheers!

    read more

  • @ramon Changing the reliefTiles is difficult when you do not have the overlay that the game used. You can actually modify individual tiles, but it is not recommended if the change is across multiple tiles. Assuming that this is the case, you'd need to use the baseline image, change the borders there, and then break it using the tile image breaker. Then, you'd need to open the reliefmap by combining it using the tile image reconstructor. Also open the modified baseline map so that you can see what borders you removed and where the new borders are. To remove borders from the reliefmap, you can do the following. In the images you sent, you can see that the color of the territories isn't empty, it has a black-ish (or white/gray-ish in the other) color with a very low opacity. Try selecting this as color and remove the borders using this color. If you use GIMP, you can select the color using CTRL+click when having the pencil tool selected. Do not make it transparent as you did, that will make the territory shade go away completely. You should not be using the eraser at all, only the pencil tool. To draw new borders, you can select the white border color and use it to draw the new borders. If you lower the opacity of the baseline map and put it above the reliefmap, you can see the new borders and you can trace them. Then you can use the heal tool to make the borders and territory colors look more like the rest of the reliefmap, with different shades of colors. This doesn't necessarily make it look nice though. Even if you do your best, you will still probably have spots with a different shade than the rest of the map, but it's better than nothing.

    One small tip is to past the reliefmap not once several times in GIMP, so that you have like 10 identical layers. This will increase the opacity of the reliefmap. If you then combine all these layers, you essentially have increased the opacity. This allows you to actually see everything properly. You'd still need the heal tool to make the colors blend into each other better. Then you can lower the opacity of the layer so that it is around the same as the original reliefmap.

    Last option is to create your own relief tiles using your own overlay. This might be a lot of work but it would ensure that the map looks nice.

    read more