ebonjaeger / repowerreborn Goto Github PK
View Code? Open in Web Editor NEWRebalance power consumption based on when an object is in use.
License: Apache License 2.0
Rebalance power consumption based on when an object is in use.
License: Apache License 2.0
Hello! Thank you for continuing this mod, I have tried to enable repower for two in game items, and am not getting the expected results. I haven't dug through the game code to even see if this is possible, perhaps you have some ideas?
I have a Efficent utilities so the sunlamp when active costs 500w in my game. I attempted to mirror that with the following defs.
<RePower.RePowerDef>
<!-- Hydroponics Basin to support low power mode when not active -->
<defName>RePowerHydroponicsBasin</defName>
<targetDef>HydroponicsBasin</targetDef>
<lowPower>-10</lowPower>
<highPower>-75</highPower>
<poweredWorkbench>false</poweredWorkbench>
<poweredReservable>true</poweredReservable>
</RePower.RePowerDef>
<RePower.RePowerDef>
<!-- Sunlamp to support low power mode when not active-->
<defName>RePowerSunLamp</defName>
<targetDef>SunLamp</targetDef>
<lowPower>-10</lowPower>
<highPower>-500</highPower>
<poweredWorkbench>false</poweredWorkbench>
<poweredReservable>true</poweredReservable>
</RePower.RePowerDef>
However, regardless of the time of day, the above additions to the RePowerVanillaBuildings.xml only work to limit the power consumption to 10w. When the sunlamp turns on, it does not increase the consumption to 500w as intended.
Open for suggestions, I tried setting both of them to
<poweredWorkbench>true</poweredWorkbench>
<poweredReservable>false</poweredReservable>
but same results.
Perhaps adding a check for "scheduled on/off"
As the core sunlamp def has this little bit in it,
<li Class="CompProperties_Schedule">
<!-- Match plant growing times -->
<startTime>0.25</startTime>
<endTime>0.8</endTime>
<offMessage>Off for plant resting period</offMessage>
</li>
Maybe adding an option such as:
<poweredWorkbench>false</poweredWorkbench>
<poweredReservable>false</poweredReservable>
<poweredScheduled>true</poweredScheduled> <!-- Only used for powered items with a schedule!-->
Thanks for your thoughts!
Can you please update for 1.3?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.