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

    How to build from source for dummies?

    Scheduled Pinned Locked Moved Player Help
    7 Posts 4 Posters 2.5k Views 3 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.
    • agbottanA Offline
      agbottan
      last edited by

      I can't use the install4j installer.
      How do I build the game from source?
      Thanks.

      1 Reply Last reply Reply Quote 0
      • RoiEXR Offline
        RoiEX Admin
        last edited by RoiEX

        Even without the installer you should be able to run triplea by using the provided zip downloads for the latest master version or the same asset file for the current stable.
        If you unzip the folder, and have java installed on your system (latest master requires java 11, latest stable java 8 ) you should be able to run it either via command line or by double klicking.
        But if you really insist on building triplea from source you can of course do that as well by checking out repository via git and running ./gradlew :game-headed:run, which should build it from source and execute it right away when you have java 11/8 installed on your system.

        agbottanA 1 Reply Last reply Reply Quote 2
        • agbottanA Offline
          agbottan @RoiEX
          last edited by

          @RoiEX, thanks for the tips.
          I was able to download the game and running it with "java -jar triplea-game-headed-1.9.0.0.13066-all.jar" command.
          (My saved games didn't work with the newest pre-release. I downloaded the 1.9 release)

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

            @agbottan Yeah, the latest pre-release is not save game compatible with 1.9.

            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
            • RoiEXR Offline
              RoiEX Admin
              last edited by

              No problem.
              Yes, 1.10 is incompatible with 1.9 has to do with the way savegames are saved and such

              1 Reply Last reply Reply Quote 1
              • B Offline
                butterw
                last edited by butterw

                • To launch the game without installer (on Windows), from the triplea directory (you can create a shortcut for the command):
                  jre\bin\javaw.exe -jar bin\triplea-game-headed-2.5.22294.jar

                • To compile from source to get the jar file (a java executable containing the compiled packages/classes in zip format), you need to have a Java11 JDK installed and download the source code available from the triplea website.

                • There might be a command to generate only the jar file, but I used:
                  gradlew :game-headed:portableInstaller
                  which downloads the required dependencies and builds the output files including triplea-game-headed.jar (but doesn't create an installer exe).

                • I had to set the version number manually in a product.properties file (otherwise was v2.5.0).

                B 1 Reply Last reply Reply Quote 1
                • B Offline
                  butterw @butterw
                  last edited by

                  the paths have changed in v2.6.

                  from the triplea directory:
                  gradlew :game-app:game-headed:portableInstaller

                  you can list the different tasks available with: gradlew tasks

                  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