FawkesGaming Posted April 12, 2014 Share Posted April 12, 2014 First off, I'm unsure about whether this is the right subforum to post this in. That said, onto the suggestion!So, I briefly looked into Lua whilst looking at job prospects, before moving onto other programming languages. Now, I've not looked at the game code because I would't know where to start. But having encountered the bug where fridges stay switched on after the power has run out, a thought occurred to me which could serve as a temporary fix until generators are implemented. The basis of the idea, is a global variable I will call globalPower. This could either be true or false. When globalPower is true, another variable called fridgePower will also be true. When this is true, items placed inside a fridge will be cooled down and refridgerated. However, when both variables are set to false, that buff is lost. The same would apply for cookers, but I've not encountered one of those which still works. Hopefully this helps, although I'm personally unsure at how the fridge would know the variable is being applied, as I don't know if it classes as an entity or not. Link to comment Share on other sites More sharing options...
FawkesGaming Posted April 14, 2014 Author Share Posted April 14, 2014 Unsure whether a moderator has seen this, so I'll bump just in case! Also, if anyone sees flaws in my logic please point them out! Link to comment Share on other sites More sharing options...
uberevan Posted April 15, 2014 Share Posted April 15, 2014 I'm not very skilled with programming, so I wouldn't know what to tell you but do we know what the current problem with the programming we have is? Link to comment Share on other sites More sharing options...
FawkesGaming Posted April 15, 2014 Author Share Posted April 15, 2014 I've not personally taken a look at the code, but as some fridges still appear to refridgerate after the power has turned off, I would hazard a guess that they somehow haven't been told by the code to turn off. Link to comment 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