Navigation

    TripleA Logo

    TripleA Forum

    • Register
    • Login
    • Search
    • TripleA Website
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Tags

    How to build from source for dummies?

    Player Help
    4
    7
    1394
    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.
    • agbottan
      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
      • RoiEX
        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.

        agbottan 1 Reply Last reply Reply Quote 2
        • agbottan
          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)

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

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

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