mekanism / Mekanism

A mod for Minecraft
MIT License
1.38k stars 522 forks source link

mekanism generators high output #276

Closed Krutonius closed 11 years ago

Krutonius commented 11 years ago

All the UE mods have been working great for me and I recently decided to add mods such as BC, forestry, factorization, constructs, etc. Idk if adding those mods created this issue but since I added them most generators are charging things way too fast. A lowly heat Gen can charge a battery box in under 5 minutes. Now I don't mind the increase in power, but it also discourages me from using any other means of power! Any thoughts or advice would be much appreciated.

Krutonius commented 11 years ago

Just got home for work to start testing out what might be wrong. I installed only the UE mods and all the generators built energy at appropriate speeds. I then added buildcraft. Went back and tested and the heat gen, solar gen, and windmill all charged energy at about the same rate, and also very inconsistantly. The advanced solar generator fully charge a battery box in mere seconds. So it must be buildcrafts something or other that is causing this problem. Can i disable something in BCs config to prevent this?

unpairedbracket commented 11 years ago

Does it seem to be by a factor of about 40? If so it's probably the buildcraft conversion ratios in Mekanism and UE's config files. The default values are different, and for some reason things get converted to MJ and back again. It's a problem I've experienced myself, solved by making the UE and Mekanism conversion ratios the same. Keep in mind though, Mekanism's are in Joules and UE's are in kJ.

Krutonius commented 11 years ago

Hmm ill have to take a look into changes the conversion ratios the same and see if that fixes it. Its hard to tell exactly how much faster it is outputting power because the battery box won't live update its current charge with BC installed. I have to back in and out of the GUI to maybe see a change. Frustrating.

Krutonius commented 11 years ago

So this is what it says in the Mekanism config

D:EUToJoules=0.1 I:JoulesToEU=10 I:JoulesToMJ=25 D:MJToJoules=0.04

And heres the UE config

D:"BuildCraft Conversion Ratio"=1.0 D:"IndustrialCraft Conversion Ratio"=0.03999999910593033

So what do I need to change to balance it out?

And now that I think about it. Why do the ratios for BC and IC affect the generators and power output of machinery and storage in Mekanism?

unpairedbracket commented 11 years ago

I think that changing to D:"BuildCraft Conversion Ratio"=0.025 D:"IndustrialCraft Conversion Ratio"=0.001 (dividing both numbers by 40) should do it. You could also multiply the mekanism values marked I by 40 and divide the Ds by 40, depending on how you want to balance BC/IC2

And it's a weird quirk of the way power system interact, and basically the order of "if/else-if/else" clauses. Each element that isn't from the same mod as the last converts it's power, so if the ratios aren't the same it causes problems.

For example if you're using Mek generators, RI wire and UE battery boxes, the generator will go to output electricity, see that BC is loaded and use that (as RI wire is BC compatible). Let's say it's outputting 1000 (mekanism) joules. It converts its energy to buildcraft MJ: 1000Joule * 0.04 MJ/Joule = 40MJ and passes 40MJ to the wire. The wire converts that back into (UniversalElectricity) kJ: 40MJ * 1.0kJ/MJ = 40kJ so now the wire is carrying 40x what it was meant to be.

Krutonius commented 11 years ago

Woo it worked! I'm so happy lol. I was so excited to use the quarry in Buildcraft and then I thought I wouldn't get to use it. Thank you so much! It is greatly appreciated. That's crazy how so much math and code happens so quickly converting between the 3 power sources. It seems to be running pretty smoothly, battery charges smoothly with only little hiccups, I'm assuming because its converting between Buildcraft again. Thanks a ton!

unpairedbracket commented 11 years ago

That's great, It's a problem I'd suffered from myself (In the opposite direction) trying to run an atomic science fusion reactor with universal cables and energy cubes. All the power coming out of the turbines was being reduced by a factor of 40 and it took me about 3 days to work out why. I thought I'd give a proper explanation of why it's happening in case any other people were having problems.

Krutonius commented 11 years ago

Well myself and everyone else will be thankful for that :)

Krutonius commented 11 years ago

I have another mod question, would there be a better place for me to ask you?

unpairedbracket commented 11 years ago

I think here's fine, what did you want to ask?

Krutonius commented 11 years ago

Ok, didn't want to muck up this page with more stuff but here goes. Now I'm using Mekanism, BC, and IC at the same time and all the tin, copper, and bronze items are all universal for the most part. But now if I craft bronze equipment it crafts the IC2 stuff instead of mekanism. Not too big of a deal but Mekanism's equipment is way better, Is there anyway to give Mekanism's items precedent?

unpairedbracket commented 11 years ago

I don't think there is at the moment (someone needs to make a modded crafting table that deals with this kind of stuff), but I'm working on a big update at the moment (mostly trying to add multipart support like I have been in resonant induction) and I might add enrichment chamber recipes to "enrich" ic2 bronze gear into ours or something.

Krutonius commented 11 years ago

Ok cool. At least I know there's nothing i can do at the moment but glad to know something may happen in the future! For now I'll just NEI the mekanism stuff in whenever I craft it. Thanks for the answers and quick responses! Keep up the hard work. Love all you guys do!