1.9 is up, get it
here. This release is backwards-compatible with saves using 1.8b, so you'll still have all your old stuff. Remember to delete your old mod folder before upgrading!
This update mostly just changes how the factory saves its settings. Instead of them being loaded once and stored in the savefile, the factory instead remembers the path to the settings JSON and reloads them every session. This means you can change the factory's settings without starting a new game or resorting to savefile editing.
To those modders who include the Omnifactory in their own mods: if you were customizing the settings of your factory through code, be aware that those methods no longer exist (aside from adding and removing restricted weapons/ships). Instead you can have multiple settings files, then use the Omnifactory's setSettingsFile() to swap between them. This makes it easy to add a tiered upgrade system, for example.
There's one other big change that I'm sure users will be glad to see: the factory removes weapons from ships before consuming them. That means no more lost weapon blueprints because you forgot to strip your ship before dropping it into the factory.
Future plans: I'm pushing the full rewrite back a bit. 2.0 will just add a campaign dialog that lets you browse and remove blueprints as well as set individual limits on goods. This was intended for this release but I haven't had much free time this week.
I'll be out of town this weekend visiting family. If there's a problem with this release you can find the previous version
here until I can fix it.
Full changelog:
Version 1.9 (May 9, 2014)
===========================
Many changes to the mod's code, but it should be backwards-compatible with 1.8b
New methods in OmniFac:
- New constructor: OmniFac(SectorEntityToken station, String settingsFile)
- OmniFacSettings getSettings()
- String getSettingsFile()
- setSettingsFile(String settingsFile)
New class OmniFacSettings:
- boolean shouldShowAddedCargo()
- boolean shouldShowAnalysisComplete()
- boolean shouldShowLimitReached()
- boolean shouldRemoveBrokenGoods()
- float getShipAnalysisTimeMod()
- float getWeaponAnalysisTimeMod()
- float getShipProductionTimeMod()
- float getWeaponProductionTimeMod()
- int getRequiredCrew()
- float getRequiredSuppliesPerDay()
- float getRequiredFuelPerDay()
- int getMaxHullsPerFighter()
- int getMaxHullsPerFrigate()
- int getMaxHullsPerDestroyer()
- int getMaxHullsPerCruiser()
- int getMaxHullsPerCapital()
- float getMaxStacksPerWeapon()
Settings are reloaded from JSON every session instead of stored in the savefile
(this also means individual settings cannot be changed through code anymore,
and must be set as a whole using setSettingsFile() and another settings JSON)
Removed all other settings-related methods in OmniFac, with the exception of
adding/removing restricted ships and weapons
The Omnifactory now removes weapons from ships before it consumes them
Fixed the Omnifactory and fighter wing names being displayed incorrectly