Subcategories

  • java error

    Moved
    6
    0 Votes
    6 Posts
    2k Views
    D
    A StackOverflowError is simply signals that there is no more memory available. It is to the stack what an OutOfMemoryError is to the heap: it simply signals that there is no more memory available. JVM has a given memory allocated for each stack of each thread, and if an attempt to call a method happens to fill this memory, JVM throws an error. Just like it would do if you were trying to write at index N of an array of length N. No memory corruption can happen. The stack can not write into the heap. The common cause for a stackoverflow is a bad recursive call. Typically, this is caused when your recursive functions doesn't have the correct termination condition, so it ends up calling itself forever. Or when the termination condition is fine, it can be caused by requiring too many recursive calls before fulfilling it. Here's an example: public class Overflow { public static final void main(String[] args) { main(args); } } That function calls itself repeatedly with no termination condition. Consequently, the stack fills up because each call has to push a return address on the stack, but the return addresses are never popped off the stack because the function never returns, it just keeps calling itself. If the stack is full you can't push, if you do you'll get stack overflow error. StackOverflowError is avoidable if recursive calls are bounded to prevent the aggregate total of incomplete in-memory calls (in bytes) from exceeding the stack size (in bytes).
  • Measuring Allies & Enemies

    3
    1 Votes
    3 Posts
    659 Views
    RogerCooperR
    @Frostion I am actually close to getting something working. <attachment name="conditionAttachmentJapaneseEnemyUnitPresent" attachTo="Japanese" javaClass="games.strategy.triplea.attachments.RulesAttachment" type="player"> <option name="enemyPresenceTerritories" value="all" count="each"/> </attachment> <attachment name="triggerAttachmentJapaneseEnemyUnitCount" attachTo="Japanese" javaClass="games.strategy.triplea.attachments.TriggerAttachment" type="player"> <option name="conditions" value="conditionAttachmentJapaneseEnemyUnitPresent"/> <option name="resource" value="PUs"/> <option name="resourceCount" value="1"/> <option name="when" value="after:BBidplace"/> </attachment> The trigger is not firing, but I am getting close to having a way of counting all enemy units and all friendly units. I can then use the difference for some rough handicapping. In many scenarios, there is no obvious historical (or hypothetical) conflict. This way I can just assign random sides and balance them, rather than having a free-for-all, which I find makes for uninteresting play.
  • Map error help

    25
    0 Votes
    25 Posts
    8k Views
    G
    Ok thanks, that worked!
  • Conditional Landbridge. . .

    5
    0 Votes
    5 Posts
    1k Views
    Joe GJ
    thanks guys!
  • Maximum Unit Size?

    7
    0 Votes
    7 Posts
    1k Views
    Michael HooverM
    @Frostion Yes it does, thank you for the additional information.
  • Can't Get Politics Phase to Work on Map

    4
    0 Votes
    4 Posts
    721 Views
    Joe GJ
    Hey Cernel, thanks for your guidance here. I figured out the problem. Did not have a relationshipinitialize section Did not have any true neutral territories on the board so it interfered with stuff. It works now! Thanks for all your help.
  • Error When Taking Other Faction's Capital

    2
    0 Votes
    2 Posts
    506 Views
    Joe GJ
    @Joe-G FIgured this out. A list of playerattachments at the end was missing from my XML.
  • Defense Bonus for Tank Support

    4
    0 Votes
    4 Posts
    769 Views
    C
    @Joe-G No problem. TripleA is fairly evenly split between British and American English. It can be easily confusing. I would personally prefer if TripleA would follow British English fully.
  • 0 Votes
    7 Posts
    1k Views
    Joe GJ
    @Frostion thanks. you guys rock. I got it working
  • Changing Territory Owner with a User Action

    11
    0 Votes
    11 Posts
    2k Views
    FrostionF
    @Cernel @stalinpasha I just use drag and drop when I want to upload an image to forum.
  • Zombie Spawning

    3
    0 Votes
    3 Posts
    824 Views
    C
    @Cernel Mind you that, this way, removed attacking units will turn into zombies owned by the attacking player, if you retreat, or owned by the defending player, if you lose the battle without retreating. For the losing battle without retreating part, you can have a trigger conquering the territory in favour of the "Zombies" player before the infrastructure unit repairs and, immediately thereafter, another trigger re-establishing ownership without conquering the territory (just check that a battle has happened for the attacker but the territory is owned by an enemy of the attacker, if you have a basic 2 sides scenario). For the retreat part, you can hack it by having the intermediate infrastructure unit being a movement 0 air unit (so it won't retreat with the rest and will never move out of it), but I personally strongly disagree on the current behaviour that attacking air infrastructures are conquered (since they are hovering the territory, they should not be influenced by any ownership changes, until after they landed on it, which they never can) (I believe a @Frostion map uses this behaviour for Nuke, if I recall correctly, but I consider this being a case of exploiting a wrong engine behaviour (bug)).
  • What Map Category?

    6
    0 Votes
    6 Posts
    3k Views
    Michael HooverM
    @Frostion thanks for the info I wasn't sure. Yeah in the yaml its version 1 so I'll pull it now and update it. I've already updated the repository on github (getting used to that as I am a noob there too :face_with_raised_eyebrow: ).
  • List of possible sounds in sounds.properties

    25
    1 Votes
    25 Posts
    8k Views
    Michael HooverM
    @Frostion - thank you for all the advice on sounds. I finally have everything lined out thanks to your tips and tricks! I'll be updating Twelve Clans later with music and sounds. :beaming_face_with_smiling_eyes:
  • Trigger createsUnitsList count from 1 to 0 ?

    5
    0 Votes
    5 Posts
    1k Views
    Michael HooverM
    Me too - this has some intriguing applications...
  • "Unit Help" Showing units that don't exist as option for nation

    3
    0 Votes
    3 Posts
    828 Views
    S
    Ah yes.. I see the problem. I have a local copy of the xml and "unit" folder for development purposes and I have simply been adding my new units to the existing folder in the actual game. I see the original author of this game did have these two units in the folder. If I move them out.. the problem is solved! Thanks. Also, I agree it would be better to look at production frontier, but minor problem. Thanks for the help. I think my new version is ready to release to the public.
  • How to use Variables

    variable variablelist
    6
    0 Votes
    6 Posts
    3k Views
    RogerCooperR
    I am now using variables successfully..
  • Hard or Does Nothing AI for unactive players

    34
    0 Votes
    34 Posts
    9k Views
    C
    @LaFayette Yeah, that's why DNAI needs to be figured out and documented (and fixed to work with no capitals without crashing, possibly), as it is now going one way in the moment you can use it for attacking with its own phases and another way in the moment it substantially skips the collect phase, plus the strange behaviour of a first purchase then nevermore, that it is a complete surprise to everyone. Substantially, Veqryn made this AI probably based on something he was planning, but that never happened and, as far as I know, nothing was documented about all this more or less artificial and likely sigle-game tailored construct, that has been since available to all users and map makers. I would personally prefer it being just 100% like assigning the player to somebody that just keeps skipping everything it can skip and clicks randomly on anything it must do (but this would require fixing the placement phase itself as being a must do, preferably with a property to allow having the current free-not-to-place behaviour for custom maps).
  • "Could not find territory. name: " error

    3
    0 Votes
    3 Posts
    1k Views
    Z
    @Hepps Yeah thats what it looks like and what I initially thought but I double-triple checked and didnt find anything. But you did just give me the idea of searching for "" in the file and I found a unit placed with no territory. I probably wouldnt have thought of searching for that if I didnt read your comment tho, so thank you alot.
  • Can a Unit do 2 damage on one hit? (Make enemy select 2 casualties)

    6
    0 Votes
    6 Posts
    863 Views
    C
    @gabegolfer said in Can a Unit do 2 damage on one hit? (Make enemy select 2 casualties): How would I assign the number of dice rolls per round? <option name="attackRolls" value="*"/> <option name="defenseRolls" value="*"/> *natural number Would that be in the “unitAttachment” section? Yes. Is more than one dice roll per round even possible? Yes, since Classic.
  • Step Name

    step
    1
    0 Votes
    1 Posts
    322 Views
    No one has replied

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