Lord-Xanthor Posted January 15, 2020 Share Posted January 15, 2020 I sadly got involved with this game and the dedicated server long after the huge fandom slowed down, and many of the good mods I find on Steam and here are outdated, and no longer work. The last updated one that says it stops food spoilage, was last updated June of 2018, so gave it a try because a few comments saying it works was dated December 2019. Sadly, this is not the case as it appeared when I tried using it, at all the food readings went from green to nothing, which I can see might be interpreted as working, but a few minutes later, all food rotted. Tried testing a few others with the same result. This was more annoying than just the normal spoilage, so like other games I run servers for, figured I try the same thing I did there which was to change a line of code that made the food get better as time went by, but so far have been unable to do this because the only file I have found that references food spoilage which I found in the prefabs folder only references fish inside the file, which tells me this is not the file (Droids) I'm looking for. Anyone by any chance know what file controls food spoilage is, or even better have a working updated mod that stops spoilage? Thanks. Link to comment https://forums.kleientertainment.com/forums/topic/114996-what-file-controls-the-food-spoilage-system/ Share on other sites More sharing options...
Ultroman Posted January 16, 2020 Share Posted January 16, 2020 (edited) Mainly perishable.lua, in combination with edible.lua and a little bit eater.lua Edited January 16, 2020 by Ultroman Link to comment https://forums.kleientertainment.com/forums/topic/114996-what-file-controls-the-food-spoilage-system/#findComment-1299282 Share on other sites More sharing options...
Lord-Xanthor Posted January 16, 2020 Author Share Posted January 16, 2020 Thanks so much!!!!!! This is going to help me greatly!!!! Speaking of food, looking at your avatar suddenly has ME craving Tacos lol. I just saw the new movie recently, and at first thought/hoped/ prayed that it was being brought back. Got my hopes up to find out it was just one movie, to clean up loose ends due to the shows original cancelation years back. I loved the movie, but still hope Taco Eating Gir, will come back one day on a weekly basis. My favorite episode of the series is where he meets Tac, who makes his life miserable. 1 Link to comment https://forums.kleientertainment.com/forums/topic/114996-what-file-controls-the-food-spoilage-system/#findComment-1299332 Share on other sites More sharing options...
Ultroman Posted January 16, 2020 Share Posted January 16, 2020 Yeah, Invader Zim is an awesome show <3 I liked the movie, too. If you want more, the comic is supposedly pretty good (though I haven't picked it up myself). And you're welcome, of course Link to comment https://forums.kleientertainment.com/forums/topic/114996-what-file-controls-the-food-spoilage-system/#findComment-1299372 Share on other sites More sharing options...
Lord-Xanthor Posted January 20, 2020 Author Share Posted January 20, 2020 (edited) By any chance, know the file that controls the camp and niterite fires? I want to modify a few values so better fuels burn much longer.. Two shows I wish came back are Invader Zim and Gravity falls. On a side note, your information helped me greatly btw! I reversed food decay for several hours before server crashed. Crash had nothing to do with the modification. Another user I gave admin to in attempts to remove what looks like a banana guard I placed accidentally over an entrance to the caves, would not remove and since it was not part of the normal game, crashed the server when we tried removing it so in the end, we just reset the world and started over. Reason the modification stopped working was due to the batch file I use sometimes to check for updates before starting the server up. What I didn't know was it also did an integrity check and re-downloaded the files I edited, so for now on Im backing up that data section prior to update check so I can put the files back, should they get overwritten again. Edit: Made a new batch file to copy back my edit after the update check. Wasn't easy. All food is now fully fresh, though I have a feeling I might need to put the line change elsewhere. Because Im new to the game, not sure if my edit is interfering with the clock. I'm on day 190, and clock doesn't seem to change like it normally has in past. Since I have never made it to day 190, not sure if each day is supposed to be heatwave like where all the plants are shriveling up. It's like an apocalypse taking place. I'm looking to find a way to get the clock to reset to day 1, without actually resetting the entire server. This way I can tell if what Im seeing is normal, or if I need to fix a routine somewhere. Edited January 20, 2020 by Lord-Xanthor Link to comment https://forums.kleientertainment.com/forums/topic/114996-what-file-controls-the-food-spoilage-system/#findComment-1300185 Share on other sites More sharing options...
Ultroman Posted January 20, 2020 Share Posted January 20, 2020 11 hours ago, Lord-Xanthor said: Made a new batch file to copy back my edit after the update check. Wasn't easy. All food is now fully fresh, though I have a feeling I might need to put the line change elsewhere. Because Im new to the game, not sure if my edit is interfering with the clock. I'm on day 190, and clock doesn't seem to change like it normally has in past. Since I have never made it to day 190, not sure if each day is supposed to be heatwave like where all the plants are shriveling up. It's like an apocalypse taking place. I'm looking to find a way to get the clock to reset to day 1, without actually resetting the entire server. This way I can tell if what Im seeing is normal, or if I need to fix a routine somewhere. You should not try to set the number of days to 1. Too many things depend on it (seasons, weather, boss spawns, etc.). I highly doubt you've made changes that will result in the weather being malicious, but I can't know without seeing your entire mod. TBH, your description sounds like a nasty summer, to me. 11 hours ago, Lord-Xanthor said: By any chance, know the file that controls the camp and niterite fires? I want to modify a few values so better fuels burn much longer. Well, the fueled and fuel components are what you want to look at. The fueled component just does what it's told. Check out the firepit prefabs to see how they set their fuel-type on their fueled component. Also, each item that has a fuel component (e.g., log, cutgrass, etc.) has a certain fuel-value that it applies when used as fuel. For your use-case, you'll probably want to edit each prefab separately using AddPrefabPostInit(s). Link to comment https://forums.kleientertainment.com/forums/topic/114996-what-file-controls-the-food-spoilage-system/#findComment-1300298 Share on other sites More sharing options...
Lord-Xanthor Posted January 21, 2020 Author Share Posted January 21, 2020 (edited) Edit: (Forgot to mention, my server is set to endless. If setting server back to day 1 only makes it so players have to wait to certain dates to do things, or get things unlocked again, thats ok with me, as none of them were on when those days went by to begin with. On the plus side, got the firepit to last longer, though no effect on the edothermal firepit. Come to think of it, don't remember seeing any reference to them in the scripts folder. Makes me wonder if it's a mod item that snuck past me.) Reason I want to set the server to day 1, too many people are getting harsh days because I was afk while server not actually online, so to bring things back into balance, without making people start over, wanted to clock set to day 1, while not resetting the map. I checked the code again, and actually see no reference to the clock, so you could be right about just having a bad summer. Each day that passes now, looked the same where as in past, some nights were longer than others. The date is to far advanced to the players who were not on to benefit for those days. Im looking into the prefabs now too. Be nice to have those fire-pits last longer with higher fuels. Dumping 10 nitrate is same as dumping 3. They still burn out that short of time. Edited January 21, 2020 by Lord-Xanthor Forgot important info Link to comment https://forums.kleientertainment.com/forums/topic/114996-what-file-controls-the-food-spoilage-system/#findComment-1300369 Share on other sites More sharing options...
Lord-Xanthor Posted January 21, 2020 Author Share Posted January 21, 2020 Looks like Im going to be resetting my server entirely. I backed up my mods that tested out with no errors. I checked the mod section so dumbfounded on where the endothermal firepit is listed under. Reason for full reset is finally found out what the hacker actually did on my server a few days back, and why Im having issues that aren't related to my modifications. The only thing I can think of on how they gained the ability to do the damage done without being in the admin list, is the creative mode mod that does have a warning saying to be careful who you let access your server using the free build creative mode. Anyway, I went to teleport into the cave locarion I saved, to end up not in the cave at all. Figured Since Im new, there might be similar rules like RunUo, where teleporting between servers can't be done, and one must go to the designated portals to get there, which I teleported to the sinkhole and entered. To my surprise, I ended up on another forest map, and not the caves I ended up at the last time. It was then I checked the caves folder to find it no longer existed, and had a duplicate forest folder instead. Not sure how on earth they did it, just know it most likely happened on Friday when the culprit kept ungoding me while I was afk, and Id die from the local spawn. I should have picked up on it when I died and server wanted to reset on an endless game. They did try to delete the server log and failed. Going to be interesting on how to fix this. Link to comment https://forums.kleientertainment.com/forums/topic/114996-what-file-controls-the-food-spoilage-system/#findComment-1300431 Share on other sites More sharing options...
Ultroman Posted January 23, 2020 Share Posted January 23, 2020 "Endothermal Firepit" and "Endothermal Fire" are both in vanilla DST, and their prefabs are named "coldfirepit" and "coldfire", respectively. You can find the prefab names on the wiki (look where the image and data for the objects are, and find the "Code" string). Link to comment https://forums.kleientertainment.com/forums/topic/114996-what-file-controls-the-food-spoilage-system/#findComment-1301309 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now