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

    Renaming a tech - Resolved -

    Scheduled Pinned Locked Moved XML Options Browser
    5 Posts 4 Posters 1.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.
    • MahksM Offline
      Mahks
      last edited by Mahks

      destroyersCanBombard is an example in POS2 of a renamed tech (destroyerBombard).

      It is unclear why you would rename a tech.

      Is it just for display to the player in game?
      or is there some other thing I don't yet understand?

      If just for display why is the example not formatted as "Destroyers Can Bombard "?

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

        @mahks

        I don't think this would be commonly used if at all. It does not appear to be display related though.

        Only reason I can think of using this would be to bypass some hardcoded feature of that particular tech. But that's just a guess.

        1 Reply Last reply Reply Quote 0
        • wc_sumptonW Offline
          wc_sumpton
          last edited by

          @Mahks
          I believe this is just for display in the 'Stats' panel. I have used it to rename 'paratroopers' to 'AirTransportation' and 'mechanizedInfantry' to 'GroundTransportation'. But if you put a space in the rename then the XML errors out.

          Cheers...

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

            @wc_sumpton

            In this case we are referring to the specific example below from POS2.

             <!-- (destroyerBombard allows isDestroyer to bombard) this is an example of renaming a technology. the first part is the new name, the second is the old name (the hardcoded tech's name) -->
             <techname name="destroyersCanBombard" tech="destroyerBombard"/>
            

            The issue is it does not change it in the game display.

            EDIT: Ooops, never mind misread it, the first part is the new name. Seems a bit strange in formatting though. You are correct.

            1 Reply Last reply Reply Quote 0
            • redrumR Offline
              redrum Admin
              last edited by

              Yeah, my understanding is this is just for display purposes and only relevant to hard coded techs.

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

              1 Reply Last reply Reply Quote 0

              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 / 1
              • First post
                Last post
              Powered by NodeBB Forums