Working with the codeĬonsole Commands' codebase is mainly Java, with a few core components written in Kotlin. Note that the very first time you run the Gradle wrapper it will download several hundred megabytes of required libraries, but subsequent builds will be much faster. As stated above, the generated mod folder will be placed in build/mod by default. gradlew (on Linux/Mac) in a command prompt or terminal and Gradle will do all of the work of compiling and assembling the mod for you. If you don't use an IDE, simply run gradlew.bat (on Windows) or. The generated mod folder will be placed in build/mod (this can be changed in local.properties if you wish for it to use your actual mod folder). The Gradle task to build the mod is, oddly enough, named 'buildMod'. That's it, you should be set and ready to compile! Provided you have a Gradle plugin installed, your IDE should be capable of opening the file adle as a project. These properties are used by Gradle to find the libraries needed to build the mod. Open this file and set the first property to point at your JDK's root folder, and the next two properties to point at your Starsector install folder (or starsector-core on Windows) and LazyLib jar respectively. Make a copy of in your downloaded repository and name it local.properties.Be aware that this will make it far more difficult to submit patches and keep your repository up to date, so it's highly recommended to use Git if you intend to contribute. Alternatively, if you don't wish to use Git you can download the repository manually using this link.If you prefer to use the command line, you can also clone the repository by opening a command prompt or terminal, navigating to your chosen folder, and running git clone.If your IDE does not support importing from GitHub and you are using a Git GUI, most allow you to simply right-click an empty folder and clone a repository there using the context menu.Most IDEs allow you to import a project directly from an online repository. Gradle should be able to compile the mod without a plugin, but you might not have editor support for Kotlin syntax. The Kotlin plugin is only required if you intend to work on one of these files. If you are using Eclipse or Netbeans, you may also want to search for and install the Kotlin plugin (IntelliJ includes native Kotlin support). Open your IDE of choice and ensure that a plugin enabling Gradle support is installed.Make sure you grab the JDK and not the JRE! Any JDK >= 7 should work. Download and install the Java Development Kit (JDK), found here.To download and build the mod, follow these steps: On Linux the command line version is almost universally included in the base OS package, so no additional download is necessary. You will need to manually set a few properties, but that will be covered later.įor Git, many programs are available for those who prefer a GUI, but often developers prefer to use the command line version. The following instructions should be enough to get you started with both.Ī Gradle wrapper is included in this repository that will handle downloading and installing Gradle for you. Setting up your development environmentĬonsole Commands uses Git for source control and Gradle for building and packaging the mod. The remainder of this readme is for those who wish to contribute to this mod's development. Documentation for this mod can be found here. You can find the official forum thread for this mod, including installation instructions, here. I'm running Ubuntu 18.04 LTS with the latest(430.40) NVIDIA drivers.This is the repository for the Console Commands mod, an unofficial developer's console for Fractal Softworks' indie space combat game Starsector. I have included the console output of the dev version. jre_linux/bin/java -server -XX:CompilerThreadPriority=1 -XX:+CompilerThreadHintNoPreempt =./native/linux -Xms1536m -Xmx1536m -Xss1024k -classpath janino.jar:commons-compiler.jar:commons-compiler-jdk.jar::starfarer_obf.jar:jogg-0.0.7.jar:jorbis-0.0.15.jar:json.jar:lwjgl.jar:jinput.jar:log4j-1.2.9.jar:lwjgl_util.jar:fs.sound_obf.jar:fs.common_obf.jar:xstream-1.4.10.jar -Dcom.fs.=./saves -Dcom.fs.=./screenshots -Dcom.fs.=./mods -Dcom.fs.=. Starsector.sh: line 1: 3291 Aborted (core dumped). # See problematic frame for where to report the bug. # The crash happened outside the Java Virtual Machine in native code. # If you would like to submit a bug report, please visit: # /home/mage/starsector/starsector/hs_err_pid3291.log # An error report file with more information is saved as: To enable core dumping, try "ulimit -c unlimited" before starting Java again # Java VM: Java HotSpot(TM) 64-Bit Server VM (24.79-b02 mixed mode linux-amd64 compressed oops) # A fatal error has been detected by the Java Runtime Environment:
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |