Skip to content

Commit

Permalink
Update 1.0.4
Browse files Browse the repository at this point in the history
1. Fixed NullPointerException in mission refit screens where mousing over forge hullmods caused crash.

2. Civilian grade check now allows Archean Order Civilian-grade hullmod.

3. Added a setting to disable civilian-grade requirement.

4. Corrected hullmod descriptions with regards to "available" carge space requirement, 
   while in code it was base cargo space stat derived from ShipHullSpecAPI.

   (Changing code to check for modified cargo space is unfeasible due to the nature of refit screen, 
   which clones ship instances, therefore leading to hard-to-fix wonky behaviour.)

5. Added a setting to disable cargo space requirement.

   (Adding a setting for disabling hullsize requirement requires extensive rewrite, not something I'm willing to do.)

6. Enabled Fuel Centrifuge installation on Prometheus-class hulls.

7. Moved campaign burn abilities incompatibility from tags to code and added a setting to disable it. 
   Move slowly restriction and sensor profile penalty settings are split and toggled off separately.

8. Added status lines in ability tooltip that tell whether conversion is working or halted due to insufficient inputs.
  • Loading branch information
Ontheheavens authored Nov 22, 2022
1 parent f89b5d0 commit 41dd3f5
Show file tree
Hide file tree
Showing 42 changed files with 3,181 additions and 28 deletions.
27 changes: 27 additions & 0 deletions 1.0.4 Changelog.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
1. Fixed NullPointerException in mission refit screens where mousing over forge hullmods caused crash.

2. Civilian grade check now allows Archean Order Civilian-grade hullmod.

3. Added a setting to disable civilian-grade requirement.

4. Corrected hullmod descriptions with regards to "available" carge space requirement,
while in code it was base cargo space stat derived from ShipHullSpecAPI.

(Changing code to check for modified cargo space is unfeasible due to the nature of refit screen,
which clones ship instances, therefore leading to hard-to-fix wonky behaviour.)

5. Added a setting to disable cargo space requirement.

(Adding a setting for disabling hullsize requirement requires extensive rewrite, not something I'm willing to do.)

6. Enabled Fuel Centrifuge installation on Prometheus-class hulls.

7. Moved campaign burn abilities incompatibility from tags to code and added a setting to disable it.
Move slowly restriction and sensor profile penalty settings are split and toggled off separately.

8. Added status lines in ability tooltip that tell whether conversion is working or halted due to insufficient inputs.

***

Important: I do NOT guarantee that your save will be compatible with this update or that there will be no crashes.
It is working fine on my end, but no promises.
4 changes: 2 additions & 2 deletions data/campaign/abilities.csv
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
name,id,type,tags,activationDays,activationCooldown,durationDays,deactivationDays,deactivationCooldown,unlockedAtStart,defaultForAIFleet,musicSuppression,uiOn,uiOff,uiLoop,worldOn,worldOff,worldLoop,icon,plugin,ai,desc,sortOrder
"Forge Production",forge_production,TOGGLE,"burn-, stealth-,sensors+",0.5,,,0.25,1,TRUE,,,ui_neutrino_detector_on,ui_neutrino_detector_off,,system_temporalshell_off,,system_temporalshell_loop,graphics/icons/abilities/forge_production.png,data.forge.abilities.ForgeProduction,,"Control forge production of your fleet.",868
name,id,type,tags,activationDays,activationCooldown,durationDays,deactivationDays,deactivationCooldown,unlockedAtStart,defaultForAIFleet,musicSuppression,uiOn,uiOff,uiLoop,worldOn,worldOff,worldLoop,icon,plugin,ai,desc,sortOrder
"Forge Production",forge_production,TOGGLE,,0.5,,,0.25,1,TRUE,,,ui_neutrino_detector_on,ui_neutrino_detector_off,,system_temporalshell_off,,system_temporalshell_loop,graphics/icons/abilities/forge_production.png,data.forge.abilities.ForgeProduction,,"Control forge production of your fleet.",868
27 changes: 27 additions & 0 deletions data/config/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"designTypeColors": {

"Forge":[161, 152, 146, 255]

},

"graphics": {

"intel": {

"forge_production_report": "graphics/icons/intel/forge_production_report.png",

},

"hullmods": {

"ore_refinery_module": "graphics/hullmods/ore_refinery_module.png",
"fuel_centrifuge_module": "graphics/hullmods/fuel_centrifuge_module.png",
"supply_manufacture_module": "graphics/hullmods/supply_manufacture_module.png",
"machinery_assembly_module": "graphics/hullmods/machinery_assembly_module.png",

}

}

}
18 changes: 5 additions & 13 deletions data/hullmods/hull_mods.csv
Original file line number Diff line number Diff line change
@@ -1,17 +1,9 @@
name,id,tier,rarity,tech/manufacturer,tags,uiTags,"base value",unlocked,hidden,hiddenEverywhere,cost_frigate,cost_dest,cost_cruiser,cost_capital,script,desc,short,sprite
name,id,tier,rarity,tech/manufacturer,tags,uiTags,"base value",unlocked,hidden,hiddenEverywhere,cost_frigate,cost_dest,cost_cruiser,cost_capital,script,desc,short,sprite
"Ore Refinery",forge_refinery_module,2,"0.8
",Forge,"req_spaceport, special","Special, Requires Dock",120000,FALSE,FALSE,FALSE,25,25,25,30,data.forge.hullmods.ForgeRefineryModule,"Refits %s/%s available cargo space, depending on hull size, into ore refinery, allowing for production of metal and transplutonics from their raw ores. It requires additional %s/%s crew and %s/%s supplies per month, depending on hull size.

Installable only on cruisers or capital ships with civilian-grade hull.","Allows refining of ore.",graphics/hullmods/ore_refinery_module.png
",Forge,"req_spaceport, special","Special, Requires Dock",120000,FALSE,FALSE,FALSE,25,25,25,30,data.forge.hullmods.ForgeRefineryModule,"Refits %s/%s base cargo space, depending on hull size, into ore refinery, allowing for production of metal and transplutonics from their raw ores. It requires additional %s/%s crew and %s/%s supplies per month, depending on hull size.","Allows refining of ore.",graphics/hullmods/ore_refinery_module.png
"Fuel Centrifuge",forge_centrifuge_module,2,"0.6
",Forge,"req_spaceport, special","Special, Requires Dock",140000,FALSE,FALSE,FALSE,25,25,25,30,data.forge.hullmods.ForgeCentrifugeModule,"Refits %s/%s available cargo space, depending on hull size, into fuel centrifuge, allowing for production of fuel from volatiles. It requires additional %s/%s crew and %s/%s supplies per month, depending on hull size.

Installable only on cruisers or capital ships with civilian-grade hull.","Allows centrifuging of volatiles.",graphics/hullmods/fuel_centrifuge_module.png
",Forge,"req_spaceport, special","Special, Requires Dock",140000,FALSE,FALSE,FALSE,25,25,25,30,data.forge.hullmods.ForgeCentrifugeModule,"Refits %s/%s base cargo space, depending on hull size, into fuel centrifuge, allowing for production of fuel from volatiles. It requires additional %s/%s crew and %s/%s supplies per month, depending on hull size.","Allows centrifuging of volatiles.",graphics/hullmods/fuel_centrifuge_module.png
"Supply Manufacture",forge_manufacture_module,3,"0.4
",Forge,"req_spaceport, special","Special, Requires Dock",160000,FALSE,FALSE,FALSE,25,25,25,30,data.forge.hullmods.ForgeManufactureModule,"Refits %s/%s available cargo space, depending on hull size, into supply manufacture, allowing for production of supplies from metal and transplutonics. It requires additional %s/%s crew and %s/%s supplies per month, depending on hull size.

Installable only on cruisers or capital ships with civilian-grade hull.","Allows manufacturing of supplies",graphics/hullmods/supply_manufacture_module.png
",Forge,"req_spaceport, special","Special, Requires Dock",160000,FALSE,FALSE,FALSE,25,25,25,30,data.forge.hullmods.ForgeManufactureModule,"Refits %s/%s base cargo space, depending on hull size, into supply manufacture, allowing for production of supplies from metal and transplutonics. It requires additional %s/%s crew and %s/%s supplies per month, depending on hull size.","Allows manufacturing of supplies",graphics/hullmods/supply_manufacture_module.png
"Machinery Assembly",forge_assembly_module,3,"0.2
",Forge,"req_spaceport, special","Special, Requires Dock",180000,FALSE,FALSE,FALSE,25,25,25,30,data.forge.hullmods.ForgeAssemblyModule,"Refits %s/%s available cargo space, depending on hull size, into machinery assembly, allowing for production of heavy machinery from metal and transplutonics. It requires additional %s/%s crew and %s/%s supplies per month, depending on hull size.

Installable only on cruisers or capital ships with civilian-grade hull.","Allows assembling of heavy machinery",graphics/hullmods/machinery_assembly_module.png
",Forge,"req_spaceport, special","Special, Requires Dock",180000,FALSE,FALSE,FALSE,25,25,25,30,data.forge.hullmods.ForgeAssemblyModule,"Refits %s/%s base cargo space, depending on hull size, into machinery assembly, allowing for production of heavy machinery from metal and transplutonics. It requires additional %s/%s crew and %s/%s supplies per month, depending on hull size.","Allows assembling of heavy machinery",graphics/hullmods/machinery_assembly_module.png
10 changes: 10 additions & 0 deletions data/world/factions/hegemony.faction
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"knownHullMods":{
"hullMods":[
"forge_refinery_module",
"forge_centrifuge_module",
"forge_manufacture_module",
"forge_assembly_module"
],
},
},
10 changes: 10 additions & 0 deletions data/world/factions/independent.faction
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"knownHullMods":{
"hullMods":[
"forge_refinery_module",
"forge_centrifuge_module",
"forge_manufacture_module",
"forge_assembly_module"
],
},
},
10 changes: 10 additions & 0 deletions data/world/factions/persean_league.faction
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"knownHullMods":{
"hullMods":[
"forge_refinery_module",
"forge_centrifuge_module",
"forge_manufacture_module",
"forge_assembly_module"
],
},
},
10 changes: 10 additions & 0 deletions data/world/factions/pirates.faction
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"knownHullMods":{
"hullMods":[
"forge_refinery_module",
"forge_centrifuge_module",
"forge_manufacture_module",
"forge_assembly_module"
],
},
},
10 changes: 10 additions & 0 deletions data/world/factions/sindrian_diktat.faction
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"knownHullMods":{
"hullMods":[
"forge_refinery_module",
"forge_centrifuge_module",
"forge_manufacture_module",
"forge_assembly_module"
],
},
},
10 changes: 10 additions & 0 deletions data/world/factions/tritachyon.faction
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"knownHullMods":{
"hullMods":[
"forge_refinery_module",
"forge_centrifuge_module",
"forge_manufacture_module",
"forge_assembly_module"
],
},
},
24 changes: 20 additions & 4 deletions forge_production_settings.ini
Original file line number Diff line number Diff line change
@@ -1,12 +1,23 @@
{

# Exercise caution when modifying settings variables: balance is fragile.
####### Installation Settings #######

"forge_enable_cargo_requirement": true,
"forge_enable_civgrade_requirement": true,

####### Miscellaneous Settings #######

# Slow-moving and detected-at-range penalties when forge production is on.
# Slow-moving penalty when forge production is on.

"forge_enable_slow_move_penalty": true,

# Detected-at-range penalty when forge production is on.

"forge_enable_sensor_penalty": true,

"forge_enable_ability_penalties": true,
# Burn abilities are Sustained Burn and Emergency Burn.

"forge_enable_burn_abilities_incompatibility": true,

# Percentage.

Expand All @@ -21,11 +32,16 @@
"forge_play_sound_notification": true,
"forge_show_notification": true,

# Determines style of production report.
# True is inverted grid, while false is basic grid. Default is false.

"forge_inverted_grid_notification": false,

# In days. Production is still calculated daily.
# Results are gathered and cleared when intel is created.
# Recommended to set only to values >= 1, default = 3.

"forge_notification_interval": 1, # (Integer)
"forge_notification_interval": 3, # (Integer)

####### Ship Capacity Settings #######

Expand Down
Binary file added graphics/hullmods/fuel_centrifuge_module.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added graphics/hullmods/machinery_assembly_module.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added graphics/hullmods/ore_refinery_module.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added graphics/hullmods/supply_manufacture_module.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added graphics/icons/abilities/forge_production.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added graphics/icons/intel/forge_production_report.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added jars/forge_production.jar
Binary file not shown.
20 changes: 11 additions & 9 deletions mod_info.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
{
"id":"forge_production",
"name":"Forge Production",
"author":"Ontheheavens",
"version":"1.0.1",
"description":"Hullmods that allow ships to produce commodities with ability toggle.",
"gameVersion":"0.95a-RC15",
"jars":["jars/forge_production.jar"],
"modPlugin":"data.forge.plugins.ForgeModPlugin",
{
"id":"forge_production",
"name":"Forge Production",
"author":"Ontheheavens",
"version":"1.0.4",
"description":"Hullmods that allow ships to produce commodities with ability toggle.",
"gameVersion": "0.95.1a-RC6",
"jars":["jars/forge_production.jar"],
"modPlugin":"data.forge.plugins.ForgeModPlugin",
"totalConversion": "false",
"utility": "false",
}
Loading

0 comments on commit 41dd3f5

Please sign in to comment.