Adjusting campfires?

Discussion in 'Rust Development' started by Rush, Mar 9, 2016.

  1. Is there a plug in that will let me adjust a campfire in anyway?
    Looking to keep them lit for a period of time then turn off like epic lanterns
    Thanks in advance
     
  2. Im sure you can edit the code of epic lanterns to do this, but there would need to be wood inside of them.
     
  3. Not even sure I would know how to go about starting that
     
  4. Thanks Kill! Yes, I have this now uploaded on my server. Issue still at hand. Lanterns turn on but campfires do not.
    Config is set at this.
    {
    "Settings": {
    "AutoTurnLanterns": true,
    "includeCampfires": true,
    "sunriseHour": "6",
    "sunsetHour": "20"
    }
    }
     
  5. Do they have fuel?
     
  6. All of them. I even tested a few out as some of my lanterns did not have fuel yet still worked. I took a few fires and kept the wood in them and a few I took out. Still no go. Again, lanterns are fine,just no campfires
     
  7. Im not sure...Is the server creating any errors?
     
  8. Thanks for the reply Bart. I am seeing nothing along the lines of any errors
     
  9. @Rush Try reporting to the developer of the plugin
     
  10. Will do Bart, Thanks for your help
     
  11. I thought Night Lantern already did this aswell?
    Code:
                       || ( (oven.LookupShortPrefabName() == "campfire.prefab") && includeCampfires)
                       )
                    {
                        oven.SetFlag(BaseEntity.Flags.On, status);//AndincludeCampfires = Convert.ToBoolean(GetConfig("Settings", "includeCampfires", false));
    [DOUBLEPOST=1457646287][/DOUBLEPOST]You can of course set "false" to "true" in the config file.
     

  12. Thanks for the reply Dylan,as stated, it was a mistake on my part. It is however set to true.
    Now then, shear novice with this. The code you posted, where exactly is that or, should I copy/paste that in the config.
     
  13. Oh, there should just be a section you can edit in the config directly.
     
  14. In the configuration file? or .cs file.
    I have looked over the .cs file and saw a section that is just like the code you posted but instead was for lanterns.
    Now, if it IS the .cs file I am having to change,where exactly do I insert that between?
     
  15. Um, it should be a json file in config.
    [DOUBLEPOST=1457658362][/DOUBLEPOST]You should see this in the json :
    Code:
    {
      "Settings": {
        "AutoTurnLanterns": true,
        "includeCampfires": false,
        "includeJackOLanterns": true,
        "sunriseHour": "7",
        "sunsetHour": "18"
      }
    }
     

  16. Not the Json config the code you posted :

    || ( (oven.LookupShortPrefabName() == "campfire.prefab") && includeCampfires)
    )
    {
    oven.SetFlag(BaseEntity.Flags.On, status);

    //And

    includeCampfires = Convert.ToBoolean(GetConfig("Settings", "includeCampfires", false));
     
  17. Oh thats inside the CS itself, but if you want campfires to turn on at night then just enable it via config as I posted above(It is in your config folder.)
     

  18. Ok..lol I think we crossed messages somehow. I have the config already. The code is correct. However, it is non functioning. Looking at the .cs file, I have noticed that the code you put up (not the config code) is not in my .cs. So, at least Im on the right track. What it looks like I need is the .cs file containing the code (as I do not know how or what line to insert this code) to allow campfires which is this:



    || ( (oven.LookupShortPrefabName() == "campfire.prefab") && includeCampfires)
    )
    {
    oven.SetFlag(BaseEntity.Flags.On, status);

    //And

    includeCampfires = Convert.ToBoolean(GetConfig("Settings", "includeCampfires", false));
     
  19. Wait, do you have the most recent version of NightLantern for Rust | Oxide
    [DOUBLEPOST=1457660999][/DOUBLEPOST]If so go ahead and delete the config file if you have one, and reload the plugin.