The Nexerelin 4x mod for Starsector.
Nexerelin is a mod for the game Starsector. It implements 4X-style gameplay with faction wars, diplomacy and planetary conquest.
Current repo version: v0.12.0b
Check out the repo to Starsector/mods/Nexerelin (or some other folder name) and it can be played immediately.
If you want to build Nexerelin locally, follow the steps below.
Intellij and Eclipse forks are currently the most popular Java IDE out there.
The following contains instructions on how to set this project up on Intellij. (Eclipse should be similar but you will need to figure out where those dialogs and settings are on your own.)
First of all, Nexerelin also requires several other external libs for compiling. The whole list can be found at the end of this document. Download and unzip them somewhere on your computer, you can download them to the starsector mod folder but you don’t have to load them in the launcher.
This is just so the jar files contained in those mods can be loaded by nexerelin java classes.
You will also need to use jdk1.7 to compile the jar; starsector is currently using jdk1.7.0.79 but anything newer than that would work as well. i.e. 1.7.0.80 and not java 8, 9, etc.
Depending on your IDE, you may not actually need to download or install JDK 1.7 except for profiling purposes. Simply use a newer JDK and set your project in your IDE to use Java 7.
If you need JDK 7: Since it’s past end of life, Oracle requires users to create an account before dling it.
There is a link to the bugmenot website in this Reddit post if you are too lazy to create a new Oracle account:
https://www.reddit.com/r/java/comments/6ag6qk/oracle_not_allowing_jdk_downloads_without_an/
Download Intellij community edition (which is free unless you somehow want to spend money on the pro edition), just google search it.
All the folder paths mentioned below should be full folder path.
Intellij has built-in git support so i would just clone Nexerelin via Intellij.
Source Control:
Project Settings:
Compiler output folder should go to Starsector\mods\Nexerelin\jars\build (this folder should be under .gitignore so the build is not checked into source control)
Go to the either Global Libraries or Libraries on the dialog (Global lib is shared between all of your intellij proj, lib is only for your current project)
You will also need to select Starsector\starsector-core for the starsector api
Go to Artifacts on the dialog. This will set up the jar artifact to be created after building.
Build Configurations + Debug:
Under Before Launch, click green plus and select Build if it is not there already.
To Debug Starsector, create a new configuration and select Remote. Copy that -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005
While you are there, you might as well edit those memory settings if you have a good computer. Just google search java xms xmx etc.
Now when you run the batch it should build your project and start starsector. The starsector log should also show up in Intellij.
That should be everything that is needed to set up this project. Post a message on the forums if I’ve missed out anything or if I should upload pictures.
You can use this similar setup for other starsector mods as well.
Kazi also has a nice post on intellij setup as well http://fractalsoftworks.com/forum/index.php?topic=10057.0
Have fun helping us debug the code :)
These are all the external libraries and referenced mods required to locally build Nexerelin:
The Prism Freeport code and art assets are taken or adapted from the Scy Nation mod by Tartiflette and licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International license.
All other code is licensed under the MIT License (Expat License version) except where otherwise specified.
All other assets are released as CC0 1.0 Universal unless otherwise specified.