Support for Fog and Snow MachinesSuggestion
This thread is stale. Please consider creating a new thread before replying to this one.
Irishsun530
Hey,

I'm trying to get this to work with the fog and snow machines. Not having any luck though. Below is what I've been adding in but I always get a plugin load error, which I'll add as well. 
{
  "Entities that ignore fuel consumption": {
    "Campfire": false,
    "CandleHat": true,
    "CeilingLight": true,
    "Firepit": false,
    "Fireplace": false,
    "Furnace": false,
    "Lanterns": true,
    "LargeFurnace": false,
    "MinersHat": true,
    "OilRefinery": false,
    "Quarry": false,
    "TunaLight": true,
    "Searchlight": true,
    "Fogmachine": true,
    "Snowmachine": true
  },
  "Require permission to ignore fuel consumption": false,
  "Version": {
    "Major": 1,
    "Minor": 3,
    "Patch": 6
  }
}​

 

ExType: JsonSerializationException
Could not initialize plugin 'NoFuelRequirements v1.3.6' (ArgumentException: Requested value 'Fogmachine' was not found.)
  at System.Enum+EnumResult.SetFailure (System.Enum+ParseFailureKind failure, System.String failureMessageID, System.Object failureMessageFormatArgument) [0x00023] in <ac823e2bb42b41bda67924a45a0173c3>:0 
  at System.Enum.TryParseEnum (System.Type enumType, System.String value, System.Boolean ignoreCase, System.Enum+EnumResult& parseResult) [0x0017a] in <ac823e2bb42b41bda67924a45a0173c3>:0 
  at System.Enum.Parse (System.Type enumType, System.String value, System.Boolean ignoreCase) [0x00010] in <ac823e2bb42b41bda67924a45a0173c3>:0 
  at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.EnsureType (Newtonsoft.Json.JsonReader reader, System.Object value, System.Globalization.CultureInfo culture, Newtonsoft.Json.Serialization.JsonContract contract, System.Type targetType) [0x00051] in <8fe7f8665ff548909c2f26d557e5093a>:0 


Merged post

I'm guessing since this was put to "Suggestion" that it is not something that is possible currently?
Wulf
uMod Admin
The plugin would have to add support for it, you can't just add it to the config.
k1lly0u
Plugin Developer
Added locally
Irishsun530
Original Poster
Hey @k1lly0u I removed the old version and added in the new. I can see where you added in fogmachine and snowmachine (Thanks!). I did not make any changes to the config, so it should not require permissions. However, I've noticed that fog and snow still require fuel. I tried setting one fuel in to see if that would jump start it, but no luck. 

Am I doing something wrong?

Merged post

Looks like it was conflicting with a previous version. I just uninstalled again. Confirmed all json files were deleted. Redownloaded. Edited the config the way I wanted it, added in one fuel and it's been running for a while. Brilliant! :D

Merged post

Ok, I have another update. I did a server restart. On restart none of the items are working. I have to go through each one and put one fuel in each and reactivate/turn on. Is there a way to get this to not force this each time a server is restarted?