Adjusting campfires?
Discussion in 'Rust Development' started by Rush, Mar 9, 2016.
-
Im sure you can edit the code of epic lanterns to do this, but there would need to be wood inside of them.
-
Not even sure I would know how to go about starting that
-
NightLantern already does this.
NightLantern for Rust | Oxide -
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"
}
} -
Do they have fuel?
-
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
-
Im not sure...Is the server creating any errors?
-
Thanks for the reply Bart. I am seeing nothing along the lines of any errors
-
@Rush Try reporting to the developer of the plugin
-
Will do Bart, Thanks for your help
-
I thought Night Lantern already did this aswell?
[DOUBLEPOST=1457646287][/DOUBLEPOST]You can of course set "false" to "true" in the config file.Code:|| ( (oven.LookupShortPrefabName() == "campfire.prefab") && includeCampfires) ) { oven.SetFlag(BaseEntity.Flags.On, status);//AndincludeCampfires = Convert.ToBoolean(GetConfig("Settings", "includeCampfires", false)); -
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. -
Oh, there should just be a section you can edit in the config directly.
-
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? -
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" } } -
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)); -
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.)
-
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)); -
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.
