Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nexerelin Compatibility #41

Merged
merged 3 commits into from
Apr 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
SOURCES = source.txt

STARSECTOR_LOCATION = ../../

all: compile executable

compile:
find -name "*.java" > $(SOURCES)
javac --release 7 @$(SOURCES) -classpath "$(STARSECTOR_LOCATION)*"

executable:
jar cf jars/ibo-faction.jar data/scripts

3 changes: 3 additions & 0 deletions data/config/exerelin/corvus_spawnpoints.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
faction,system,entityID
#machine name,#human name,#machine name
,,
179 changes: 179 additions & 0 deletions data/config/exerelinFactionConfig/gjallarhorn.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,179 @@
{
# General tags
"corvusCompatible": false,
"playableFaction": true,
"rebelFleetSuffix": "Exile",

# Diplomacy tags
"startRelationships": {
"player": -0.25,
"tritachyon": -1,
"hegemony": 0.5,
"persean": 0.5
},
"minRelationships": {
"hegemony": -0.3,
"persean": -0.3
},
"maxRelationships": {
"tritachyon": -0.1,
},
"diplomacyPositiveChance": {},
"diplomacyNegativeChance": {},
"morality": "amoral",
"alignments": {
"technocratic": 0.2,
"hierarchical": -0.1,
"militarist": 1,
"diplomatic": 0.4,
"ideological": -0.6,
},
"diplomacyTraits": [
"pacifist",
"helps_allies",
"stalwart",
"hates_ai",
"neutralist",
"law_and_order",
],

# Market
"freeMarket": true,
"tariffMult": 1.1,
"marketSpawnWeight": 1.1,
"bonusSeeds": [
{
"id": "nanoforge_corrupted",
"count": 2
},
{
"id": "synchrotron",
"count": 1
},
],
"industrySeeds": [
{
"id": "orbitalworks",
"mult": 0.2
},
],

# Defense Station
"defenceStations": [
{
"ids": [
"battlestation",
"starfortress"
],
"weight": 0.8
},
{
"ids": [
"battlestation_mid",
"starfortress_mid"
],
"weight": 1.2
},
],

# Colonies
"colonyExpeditionChance": 0.1,
"noHomeworld": false,

# Miscellaneous
"customStations": [
"station_gja"
],
"groundBattleSettings": {
"moraleDamageTakenMult": 0.8,
},
"startSpecialItems": [
[
[
"low_tech_package",
""
],
[
"midline_package",
""
]
],
[
[
"pirate_package",
""
]
],
],

# Start Ships
"startShipsSolo": [
[
"lasher_Starting"
]
],
"startShipsCombatSmall": [
[
"enforcer_Balanced",
"swp_brawler_hegemony_ass",
"lasher_CS"
],
[
"enforcer_Balanced",
"lasher_CS",
"wolf_hegemony_CS"
]
],
"startShipsTradeSmall": [
[
"mule_Starting",
"hound_hegemony_Standard",
"kite_hegemony_Interceptor"
]
],
"startShipsCombatLarge": [
[
"swp_punisher_cs",
"swp_vanguard_sta",
"wolf_hegemony_CS"
],
[
"dominator_Assault",
"enforcer_Escort",
"kite_hegemony_Interceptor"
]
],
"startShipsTradeLarge": [
[
"colossus_Standard",
"mule_Standard",
"kite_Starting"
]
],
"startShipsExplorerLarge": [
[
"venture_Balanced",
"buffalo_hegemony_Standard",
"shepherd_Frontier"
]
],
"startShipsCarrierSmall": [
[
"condor_Attack",
"lasher_Standard",
"hound_hegemony_Standard"
]
],
"startShipsCarrierLarge": [
[
"mora_Assault",
"enforcer_Escort",
"lasher_Strike"
]
],
"startShipsGrandFleet": [
[
"onslaught_xiv_Elite"
]
],
}
3 changes: 3 additions & 0 deletions data/config/exerelinFactionConfig/mod_factions.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
faction
gjallarhorn
teiwaz
7 changes: 7 additions & 0 deletions data/config/exerelinFactionConfig/teiwaz.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"playableFaction": false,
"corvusCompatible": true,
"startRelationships": {},
"morality": "amoral",
"spawnAsFactionId": "independent"
}
19 changes: 17 additions & 2 deletions data/scripts/IBOFPlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,27 @@

public class IBOFPlugin extends BaseModPlugin {

private static void initIBOF() {
private void initIBOF() {
new IBOFGen().generate(Global.getSector());
}

private void initExerelinIBO() {
if (false) { // This is to change for not random mode
new IBOFGen().generate(Global.getSector());
}
}

@Override
public void onNewGame() {
initIBOF();
boolean haveNexerelin = Global
.getSettings()
.getModManager()
.isModEnabled("nexerelin");

if (haveNexerelin) {
initExerelinIBO();
} else {
initIBOF();
}
}
}
1 change: 1 addition & 0 deletions data/world/factions/teiwaz.faction
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"logo": "graphics/factions/teiwaz.png",
"crest": "graphics/factions/crest_teiwaz.png",
"shipNamePrefix": "JEE",
"showInIntelTab": false,
"shipNameSources": {
"JAPANESE": 2,
"BRITISH_NAVY": 1,
Expand Down
Binary file modified jars/ibo-faction.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion mod_info.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"id": "IBO Faction",
"name": "IBO - Faction",
"author": "Laroustine, Buttery & Diable Avionics",
"version": "v2.2.0",
"version": "v2.2.1",
"description": "Adds various elements from Iron-Blooded Orphans",
"gameVersion": "0.95.1a-RC6",
"modPlugin": "data.scripts.IBOFPlugin",
Expand Down