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

  • @VictoryFirst

    It might be playable, I'm not sure. The names and the placements were being constantly changed wiping out all my work everytime, so I quit working on it.

    read more

  • @rogercooper I noticed "Mega New Elk" was uploaded as a map. Is it ready to be approved?

    read more

  • @rogercooper

    Just in case you don't know, the approval page is up, again
    https://prod.triplea-game.org/support/maps/status

    read more

  • @Ramon I believe by default tech dice use the dice sides specified on the top of the XML (by default 6). So if you want to give tech a dice of 4, you'd be changing the dice sides that regular combat units use as well.

    If you want tech to be rolled with 4 dice sides and the other rolls with 6 dice sides, I think theoretically it would possible, but would it would be insanely complicated and require the use of a user action phase with a lot of nested triggers/conditions.

    Also, some of the stuff you want to implement that is currently not possible can be made possible by making changes to the engine. So if you'd like to see this happen, feel free to post a feature request here: https://github.com/triplea-game/triplea/issues
    (click on "New Issue" and select the top option "Feature Request")

    read more