RELEASED [SMAPI 0.40.0+] Dynamic Machines 1.1.1

Allows the user to change recipes and machine outputs for vanilla and mod machines

  1. Igorious

    Igorious Sandwich Man

    @Ryuuze, just initialize random one time during declaring fields:
    Code:
    private Random random = new Random();
     
      Hammurabi likes this.
    • SKKN

      SKKN Big Damn Hero

      There are like 20 lines of error in SMPAI console when I try to put in "igorious" custom machines in the config file. Not sure how to copy the log into here.


      [05:12:18.400 PM] LOADED MOD: Dynamic Machines by Ryuuze - Version StardewModdingAPI.Version | Description: Allows the user to change recipes and
      machine outputs dynamically. (@ C:\Program Files (x86)\Steam\steamapps\common\Stardew Valley\Mods\DynamicMachines\DynamicMachines.dll)
      [05:12:18.470 PM] Invalid JSON (BAConfig): C:\Program Files (x86)\Steam\steamapps\common\Stardew Valley\Mods\DynamicMachines\config.json
      Newtonsoft.Json.JsonReaderException: After parsing a value an unexpected character was encountered: ". Path 'Multipliers['Vinegar Jug'].recipe.76
      6', line 158, position 1.
      at Newtonsoft.Json.JsonTextReader.ParsePostValue()
      at Newtonsoft.Json.JsonTextReader.Read()
      at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateDictionary(IDictionary dictionary, JsonReader reader, JsonDictionaryCont
      ract contract, JsonProperty containerProperty, String id)
      at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProp
      erty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
      at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, J
      sonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
      at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonCon
      tainerContract containerContract, JsonProperty containerProperty, JsonReader reader, Object target)
      at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract,
      JsonProperty member, String id)
      at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProp
      erty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
      at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, J
      sonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
      at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateDictionary(IDictionary dictionary, JsonReader reader, JsonDictionaryCont
      ract contract, JsonProperty containerProperty, String id)
      at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProp
      erty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
      at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, J
      sonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
      at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonCon
      tainerContract containerContract, JsonProperty containerProperty, JsonReader reader, Object target)
      at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract,
      JsonProperty member, String id)
      at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProp
      erty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
      at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, J
      sonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
      at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
      at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
      at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
      at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)
      at StardewModdingAPI.Config.LoadConfig[T]()


      Edit: Actually here it is. All of the stuff in the spoiler are in red. Not sure what to do.

      Edit2: LOL sorry I forgot to put a comma in one of the recipe line. Sorry sorry hehe. Works like a charm both mods stack! :)

      Edit 3: will you be adding bee houses soon?
       
        Last edited: May 10, 2016
      • Ryuuze

        Ryuuze Void-Bound Voyager

        oh wow, i'm an idiot... it's been so long since i worked with randoms that i forgot how it worked, i just remembered that it was dependant on system clock xD
        just gonna do that real quick and then push up 1.1.1 :p

        Anyways, do you per chance have an idea on how to deal with the trapper profession? (simply removing it from the player is possible, but that may or may not mess something up if one isn't already lvl 10 in fishing)
         
        • Ryuuze

          Ryuuze Void-Bound Voyager

          Hammurabi likes this.
        • ChaoticReverie

          ChaoticReverie Void-Bound Voyager

          Hi there,

          Sorry to necro this thread but with the latest SDV and smapi versions, would you give permission to have someone else update this mod so that it will work?
           
            Manart and Snarkypie like this.

          Share This Page