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

    Custom Technology NullPointerException

    Scheduled Pinned Locked Moved Map Making
    4 Posts 2 Posters 820 Views 2 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.
    • wc_sumptonW Offline
      wc_sumpton
      last edited by

      @stalinpasha I am creating a topic here for you problem found here because I am having trouble finding/recreating this error.

      The scripts that you have listed seem to be okay. So I have tried changing other parts that might affect this to recreate this error.

      I have to assume that the unit in question is not called 'caterpillar_combat_vehicle'. Because when I tried that I received the error:
      Attribute value "caterpillar_combat_vehicle" of type ID must be unique within the document.

      It does look like the "TechActivation" is causing this error by the message you posted.

      Maybe a saved game with the error could help. But I am at a loss.

      Maybe others can help.

      Cheers...

      stalinpashaS 1 Reply Last reply Reply Quote 1
      • stalinpashaS Offline
        stalinpasha @wc_sumpton
        last edited by

        @wc_sumpton I use axis allies 1914 module that I downloaded in this forum as templete. (I can't share the link because I'm on mobile now) I added many new territories, units, historical events, objectives etc. It didn't have any tech rule. I just need to know how to add custom techs to tech exclude map. You can try it on axis allies 1914 map or any other map that doesn't include tech. Pre-ww1 tank designs called as caterpillar tractor, therefore tech name is caterpillar_combat_vehicle which activates tank unit. You can change the names according to your own map, important thing here is unlocking the unit.

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

          @stalinpasha

          Ok I have something for you. Your scripts did not include a 'techAttachment'. This is needed for technology. So to fix this you can add:

          <attachment name="techAttachment" attachTo="AustroHungarians" javaClass="games.strategy.triplea.attachments.TechAttachment" type="player">
              <option name="techCost" value="5"/>
          </attachment>
          

          And that should do the trick.

          Cheers...

          stalinpashaS 1 Reply Last reply Reply Quote 1
          • stalinpashaS Offline
            stalinpasha @wc_sumpton
            last edited by

            @wc_sumpton What a hero, fixed!! 3EFH.gif

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