Jump to content

[MODS] Trevice's Mods Lair


Recommended Posts

Quote

[= INFO =] Path to mods is: C:\Program Files (x86)\Steam\steamapps\common\OxygenNotIncluded\Mods
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.DirectoryNotFoundException: Directory 'C:\Program Files (x86)\Steam\steamapps\common\OxygenNotIncluded\Mods' not found.

 

Its not in the right folder The mod folder does not exist where its supposed to be

Mods updated to Q1-299745.

Tested shallowly. At least they compile and don't crash a new game. They will need tunning for sure.

Some major changes:

  • Compatibility fixes for Q1 by Blindfold.
  • Added exclusions/inclusions for buildings in MaterialColor by Fistak
  • Added option in CameraController to allow pan beyond edges by Fistak
  • Rework of FluidWarp by Blindfold

Also three mods have been retired due their inclusion in the vanilla game.

  • AlternateOrders
  • DisplayDraggedBoxSize
  • SculptureReloaded

Thanks to all the contributors. I hope I didn't break anything merging.

 

22 hours ago, trevice said:

Mods updated to Q1-299745.

Tested shallowly. At least they compile and don't crash a new game. They will need tunning for sure.

Some major changes:

  • Compatibility fixes for Q1 by Blindfold.
  • Added exclusions/inclusions for buildings in MaterialColor by Fistak
  • Added option in CameraController to allow pan beyond edges by Fistak
  • Rework of FluidWarp by Blindfold

Also three mods have been retired due their inclusion in the vanilla game.

  • AlternateOrders
  • DisplayDraggedBoxSize
  • SculptureReloaded

Thanks to all the contributors. I hope I didn't break anything merging.

 

I think food storage not working (Refrigerator and Ration Box)

23 hours ago, harmonium said:

We realy need a big mod compilation because i Don't find mod i was using before.

The Sweeper mod by Rainbow with big area and through tiles, can't find it anymore.

No stamina for duplicant, made by linainverse if i remember well.

Hei yes i did not reup them. But please be aware that through tiles is and extreme performance hog thats why i seperate them again.

 

edit i reuploaded autosweeper.

On 12/14/2018 at 8:47 PM, djn16 said:

I think food storage not working (Refrigerator and Ration Box)

What mod?

3 hours ago, Gaons said:

Hi @trevice, in allbuildingsdestroyable you can only construct on top of but not actually destruct the object? I'm trying to destroy a selling machine without sucess

Actually, that's the mod description:

Allows to construct on top of Gravitas furniture.

The mod name is misleading. I'll change it.

On 12/16/2018 at 7:37 AM, trevice said:

What mod?

 

BuildingModifier,,, StorageCapacity for Refrigerator and Ration Box

        "RationBox": {
            "Storage": {
                "capacityKg": 1000.0 
            }
        },

        "Refrigerator": {
            "Storage": {
                "capacityKg": 1000.0
            }
        },

 

21 hours ago, djn16 said:

BuildingModifier,,, StorageCapacity for Refrigerator and Ration Box

That's not the complete config file. I inserted your config and it works. Check the log file for errors.

{
  "Enabled": true,
  "Debug": false,

  "Modifiers": {
	"RationBox": {
		"Storage": {
			"capacityKg": 2000.0 
		}
	},
	"Refrigerator": {
		"Storage": {
			"capacityKg": 2000.0
		}
	},
  }
}

 

2 hours ago, trevice said:

 

That's not the complete config file. I inserted your config and it works. Check the log file for errors.


{
  "Enabled": true,
  "Debug": false,

  "Modifiers": {
	"RationBox": {
		"Storage": {
			"capacityKg": 2000.0 
		}
	},
	"Refrigerator": {
		"Storage": {
			"capacityKg": 2000.0
		}
	},
  }
}

 

it's work, thank you

The new way to split the json files does work.

 

How would i target the last line in with the building modifier:

 

public class BriskBottlerConfig : IBuildingConfig
{
    public const string ID = "BRISKBOTTLER";

    public override BuildingDef CreateBuildingDef()
    {
        string id = "BRISKBOTTLER";
        int width = 2;
        int height = 3;
        string anim = "wash_sink_kanim";
        int hitpoints = 30;
        float construction_time = 30f;
        float[] tieR4 = TUNING.BUILDINGS.CONSTRUCTION_MASS_KG.TIER4;
        string[] rawMetals = MATERIALS.RAW_METALS;
        float melting_point = 1600f;
        BuildLocationRule build_location_rule = BuildLocationRule.OnFloor;
        EffectorValues tieR0 = NOISE_POLLUTION.NOISY.TIER0;
        BuildingDef buildingDef = BuildingTemplates.CreateBuildingDef(id, width, height, anim, hitpoints, construction_time, tieR4, rawMetals, melting_point, build_location_rule, TUNING.BUILDINGS.DECOR.BONUS.TIER1, tieR0, 0.2f);
        buildingDef.InputConduitType = ConduitType.Liquid;
        buildingDef.ViewMode = SimViewMode.LiquidVentMap;
        buildingDef.AudioCategory = "Metal";
        buildingDef.UtilityInputOffset = new CellOffset(0, 0);
        return buildingDef;
    }

    public override void ConfigureBuildingTemplate(GameObject go, Tag prefab_tag)
    {
        Storage defaultStorage = BuildingTemplates.CreateDefaultStorage(go, false);
        defaultStorage.showDescriptor = true;
        defaultStorage.storageFilters = STORAGEFILTERS.LIQUIDS;
defaultStorage.capacityKg = 2500f; 

 

6 hours ago, Rainbowdesign said:

The new way to split the json files does work.

 

How would i target the last line in with the building modifier:

The same as other buildings should work. Something like this:

{
  "Modifiers": {
    "BRISKBOTTLER": {
      "Storage": {
        "capacityKg": 2500
      }
    }
}

Look what type of component BuildingTemplates.CreateDefaultStorage creates. In this case "Storage"

New changes in mods:

  • Rework of MaterialColor by @fistak
  • BuildingModifier now can read all config .json files inside its config folder
  • ImprovedTemperatureOverlay extracted from MaterialColor to its own mod.
  • Refactor of mods to use ModUtil methods
  • Inverse Electrolyzers fusion into one mod
On 12/22/2018 at 11:51 AM, trevice said:

{ "Modifiers": { "BRISKBOTTLER": { "Storage": { "capacityKg": 2500 } } }

I tried that code. I get:

[ INFO  ] [01/05/2019, 14:50:42.5219956] Loading: Mods\BuildingModifier\Config\Modifiers\Bottler.json
Newtonsoft.Json.JsonSerializationException: Unexpected end when deserializing object. Path 'Modifiers', line 8, position 2.
  at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ThrowUnexpectedEndException (Newtonsoft.Json.JsonReader reader, Newtonsoft.Json.Serialization.JsonContract contract, System.Object currentObject, System.String message) [0x00000] in <filename unknown>:0
 
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug.bindings.h Line: 43)

 

Also the game crashes.

 

Could it be more complicated to change something that is added by an other mod? Like the modifier is made before the new code is injected?

 

Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

×
  • Create New...