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

    Ideas: General Discusion

    Scheduled Pinned Locked Moved XML Options Browser
    28 Posts 5 Posters 15.9k Views 4 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.
    • General_ZodG Offline
      General_Zod Moderators @Mahks
      last edited by

      @mahks Can you provide already functional examples from current XOB?

      1 Reply Last reply Reply Quote 0
      • MahksM Offline
        Mahks
        last edited by

        Did you see the template above?

        General_ZodG 1 Reply Last reply Reply Quote 0
        • General_ZodG Offline
          General_Zod Moderators @Mahks
          last edited by

          @mahks Yes I see it, but it doesn't seem helpful as a learning tool without the corresponding examples. Unless I'm missing something.

          1 Reply Last reply Reply Quote 0
          • MahksM Offline
            Mahks
            last edited by Mahks

            Ah, sorry about that.
            Below is a completed record for a techAbilityAttachment.

            ,"unitAbilitiesGained":{
            	 "parent":"techAbilityAttachment"
            	,"type":"option"
            	,"desc":"Tech ability option"
            	,"params":{"value":"A colon delimited list, beginning with a unit name then a list of abilities"}
            	,"info":[
            		 "Unit gains abilities in the list."
            		,"Currently allows only canBlitz and canBombard."
            		,"Effects from multiple techs are added together."
            		,"This option may be cleared/reset by triggers if you want by prefixing with '-reset-'."
            		]
            	,"example":[
            		 "<attachment name='techAbilityAttachment' attachTo='destroyerBombard' javaClass='TechAbilityAttachment' type='technology'>"
            		,"\n\t<option name='unitAbilitiesGained' value='destroyer:canBombard'/>"
            		,"\n\t..."
            		,"\n</attachment>"
            		]
            	,"links":[
            		 "-reset-"
            		,"canBlitz"
            		,"canBombard"
            		,"destroyerBombard"
            		]
            	}
            
            1 Reply Last reply Reply Quote 0
            • MahksM Offline
              Mahks
              last edited by Mahks

              What I do is have both POS2 and my editor open side by side.
              I copy & paste the template (to save the template intact) in the editor.

              There are 5 areas that need to be dealt with:

              1. Trigger_Option_Name : Copy the option name in POS2 and paste into the 2 XXX_Trigger_Option_Name_XXX locations in the template.
              2. params : This is a definition of value (not an explanation of what it does) You need to select one of the boilerplate options or re-write one and delete all the others.
              3. info : This is the explanation of what it does. I take the comment from POS2 and usually chop it up into several lines. (look at the POS2 comment for unitAbilitiesGained, and the page for it in XOB to see the result) Extra lines may be added, empty ones deleted.
              4. example : The attachment name "XXX_example_XXX" needs to be edited as well as the XXX_value_example_XXX. The XXX_Trigger_Option_Name_XXX should have been pasted in step 1.
              5. links : Links can be added, they are case sensitive and may refer to anything in the XOB menu.
              1 Reply Last reply Reply Quote 0
              • MahksM Offline
                Mahks
                last edited by Mahks

                POS2 to XOB conversion is complete.

                XOB Update (has option to set favorites)

                I am sure there are lots of spelling, grammar and interpretation errors in it.
                Please report any found here and I will fix when I return to civilization (ETA September)

                redrumR 1 Reply Last reply Reply Quote 3
                • redrumR Offline
                  redrum Admin @Mahks
                  last edited by

                  @mahks Looks pretty good. But September!?!? Going to Antarctica?

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

                  MahksM 1 Reply Last reply Reply Quote 0
                  • MahksM Offline
                    Mahks @redrum
                    last edited by

                    @redrum backwoods of British Columbia

                    1 Reply Last reply Reply Quote 1

                    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
                    • 2 / 2
                    • First post
                      Last post
                    Copyright © 2016-2018 TripleA-Devs | Powered by NodeBB Forums