Posts by McFistyBuns

    Ok, I think I worked out SMP. I had a problem on my test server where it was trying to load the EnergyCoupler mod before IC2 and throwing an error. I think it's because it was going in filename alphabetical order. If you get an error saying that it can't find ic2/common/BlockElectric class, add a z in front of the EnergyCoupler mod filename and it should work. At least that's what I did. Anyway, if anyone is interested, please test it out and let me know if it works. This is my first foray into server stuff, so this is completely uncharted territory for me.

    His mod goes both ways as well, he just uses a different block for it. The oil production is a very expensive procedure, a bucket of oil costs about 60k EU. Think matter gen.
    While I like the possibility of having IC diamonds in BC recipes, his SMP version sold it for me. :S


    Here's my thinking on the Oil Mass Fabricator with some back of the envelope calculations. Fuel has a burn time of 50,000 and an output of 5 BC energy per burn. That's 250,000 BC Energy for one bucket of fuel in an iron engine. Convert that to EUs at 2.5:1 and thats about 625,000 EUs. Put that in the Oil Mass Fabricator block and you have roughly 10 buckets of oil from one bucket of fuel. Powering a refinery with renewable energy is pretty trivial. I think a block of 32 Solar Generators should be able to power a refinery without having to use any non-renewable resources. Refine that into more fuel, rinse and repeat.

    This mod is now redundant. Power Crystals wrote a Power Converters mod that does everything this mod does and more and it works in SMP.


    I suggest you decompile his mod and learn from what he's done. His mod isn't perfect, but it is pretty far ahead of this one. http://www.minecraftforum.net/…th-bcic-power-converters/


    Neat. I'll have to take a look at it.


    I don't know if I would say redundant, but more like orthogonal. His mod has SMP and a block that generates oil. My blocks go both ways and my mod allows you to use industrial diamonds in BuildCraft recipes.


    Personally, I think an oil generating block defeats the purpose. Oil is supposed to be a non-renewable resource, which is why it outputs so much energy. With so many renewable ways to generate EUs in IC2, having a way to spontaneously create oil is a little unbalancing in my opinion. But hey, if that's something you are interested in, that's cool. And if people want to use his mod over mine it's no skin off my nose. This was just an exercise in learning how to program in java and try to do something someone else hadn't already done before.

    Turns out power crystal's Engine Generator does the same thing. (IC 2.3, BC 2.2.3, not tested on previous versions)
    BC api thing I guess.



    It's because of the way BC Engines work. BC Engines only output power when the piston is fully extended. So when you have an engine connected directly to an LV Coupler like in the picture above, you will get a sudden 32EU burst for one tick when the piston is fully extended, and 0EUs for everything else. Because the meter reads the average over a certain amount of ticks, the avg will be skewed. Wooden Power pipes work differently. They take the full amount from the engine, but spread the output over time to make the pipe appear to be transfering energy while the engine piston is moving back for another output. You can see the effect by watching your batbox. When the engine is directly connected, you'll get 32EU bursts, but when connected to pipes the EUs will steadily trickle in.

    Works for me (at the moment).


    Attention: LV coupler works. HV (and probably MV too) turns into a LV coupler upon placing, costing you a diamond!


    This probably has to do with it being the same block ID. Does anyone know how to fix this?


    Did you break the block or wrench it? I think I found a bug while porting to IC2 1.23 that will drop an LV Coupler no matter what you had when breaking. But you should be able to wrench it and get the correct block. I will hopefully have it corrected in the next update.


    Edit: Ooops, i misread the comment. That'll teach be to multi-task. I don't know the reason why it's not placing the correct block in SMP.

    Sorry I was unregistered then and I can't edit that post.


    Here it is with spoiler tags:



    It may be be because you are trying to use it with BuildCraft 2.2.3 and IC2 1.22.

    Ok, I've added the ability to convert BC Energy into EUs when redstone is applied to the coupler. During my testing, I stumbled upon something strange though and I can't tell if it's the coupler or the BuildCraft Wooden power pipes. When you hook a stone engine directly to a coupler, you get almost as much EUs out of coal as you would in a standard IC2 generator, with loss for rounding. But when you move the stone engine away 2 tiles and add a wood and gold power pipe connection to the coupler, you lose something like 42% of the energy generated by the stone engine. Which, to me is a crazy amount of loss. I think it's from the BuildCraft wooden power pipes, but I've included the source so that a fresh set of eyes can check it out.


    Ok, I misread my previous calculations. It turns out that the ~42% was not loss, but energy gained. I was only getting 42% of the BC Energy a stone engine produces. Which means it's even worse than I thought. I think I may have found the bug in the BuildCraft PowerTransport system though. After patching that temporarily, I was able to get about 91% of the energy a stone engine produces. I still don't know where that loss is coming from though. It seems strange to me that there would be that much loss with only a wooden and stone power pipe between the engine and the coupler. I may try to do some more digging this weekend if I have the time.

    Everytime I place down one of those Blocks my Minecraft crashes saying Saving Chunks. The Error Message either disappears too fast or doesnt occur at all, thats why i cant post an error log... :cursing:
    List of Mods: BC, IC, EE, Inventory Tweaks, Minefactory, RecipeBook, Technic bridge, Treecapitator, The additional Pipes, The Advanced Mahines, Advanced Solarpanel, The Mobile Pump,


    Are you using BuildCraft 2.2.2? All the other posts here that have had that problem have been using BuildCraft 2.2.1. You should check that first.

    Ok, I've added the ability to convert BC Energy into EUs when redstone is applied to the coupler. During my testing, I stumbled upon something strange though and I can't tell if it's the coupler or the BuildCraft Wooden power pipes. When you hook a stone engine directly to a coupler, you get almost as much EUs out of coal as you would in a standard IC2 generator, with loss for rounding. But when you move the stone engine away 2 tiles and add a wood and gold power pipe connection to the coupler, you lose something like 42% of the energy generated by the stone engine. Which, to me is a crazy amount of loss. I think it's from the BuildCraft wooden power pipes, but I've included the source so that a fresh set of eyes can check it out.

    Awesome mod man!
    Just to let you know though, my friend has a server, and he isn't sure about the 2.5:1 energy ratio.
    Is there any chance you could eventually add in a config file that allows us to change the ratio to what we like? Cuz each server is a bit different.
    Maybe worry about this after SMP gets going, but I greatly appreciate it if we could get a config file.


    Ok, i've added a config file variable to allow changing of the ratio. Keep in mind that since everything has to eventually be converted to an integer, there is going to be some rounding loss. I've gone with rounding halves down to make it a bit more fair. So on a ratio of 1.5 on a LV coupler you will be converting 32EUs to 21 BC Energy, losing a third of a BC Energy Unit (32/1.5 = 21.33333)


    Ok, I've updated it to use a 2.5EU to 1 BC Energy Unit. The problem, however, is there's going to be some loss somewhere because everything works in Integers. So the compromise I've made is that I've gone with a half rounded down. So now a LV coupler would take 32 EUs and convert it to 13 BC Energy Units (32/2.5 = 12.8 rounded up to 13). I think that may be the closest we can get, unless someone has another suggestion.


    Also, as per Player's suggestion, I've wrapped everything in updateEntity in Platform.isSimulating(). I'm not quite sure I understand it, but from what I can gather that means SMP compatibility?


    It may be because you are using BuildCraft 2.2.1. I've compiled the mod against BuildCraft 2.2.2. Try upgrading your BuildCraft


    It looks like a Block ID clash. Modify the config file of either Energy Coupler or the Portal Gun mod to be something other than 210 and you should be ok.

    From the OP:


    When I first sat down and thought this out, I had originally planned to make it go both ways. The problem I stumbled upon though when I thought it through a bit more was that incoming energy could far exceed what could be converted into EUs, even at HV. I didn't want to just drop the excess energy in the conversion and I didn't want to have to build a gui to buffer and display stored energy waiting to be converted. It was outside the scope of what I wanted to do. That's why I figured that to restore some balance between the mods I would make a Petrol Generator. I guess I could make an Energy BatBox like block for storing energy too, but the problem is I don't think BuildCraft engines stop making energy once something doesn't need it anymore like IC2 does. That would result in people wasting fuel making energy that couldn't go anywhere. But hey, that was just my reasoning. I've made the source available, so feel free to take it and run with it if you think I'm wrong. :)

    Ok, so here's my first stab at creating a small bridge between BuildCraft and IC2. Introducing the Energy Coupler, 3 Tiers of couplers that allow you to convert electricity from IC2 into BuildCraft energy.


    PLEASE NOTE: BACK UP YOUR SAVE GAMES!
    This is a work in progress, so it's very possible that something could get screwed up. If you don't want to lose your game, back it up!


    Requirements for v0.20 or earlier:
    IndustrialCraft2 v1.23 or later
    BuildCraft 2.2.3 (all parts) or later


    Requirements for v0.21.1:
    IndustrialCraft2 v1.23 or later
    BuildCraft 2.2.5 (all parts) or later



    NOTE: v0.20 has changed functionality! Please Read!
    A redstone signal now turns off output. Because of the change, I've added a GUI to the coupler which allows you to change which direction you want the conversion to go. I'm not sure how upgrading will affect any currently placed couplers. Theoretically, they should default to converting EUs to BC Energy, meaning you will have to go and change the coupler to convert to BC Energy and then remove the redstone signal in order for it to work the other direction. As always, back up your previous save before upgrading.


    NOTE ON SMP: On my system, the server was trying to load the EnergyCoupler mod before IC2 and would throw an error. I think it's because it was loading the mods in alphabetical order. If you experience this problem, just add a z to the beginning of the EnergyCoupler mod filename and it should hopefully work. At least that's what I did.



    The Energy Couplers act like their transformer counterparts except that there is only one input and output side. The 3 dot side is for the BuildCraft Wooden Power Pipe connection and the 1 dot side is for the cable connection. You can change the input side by wrenching. Each Tier will take up to their maximum EUs (32 for LV, 128 for MV, 512 for HV) and convert it into BuildCraft Energy on a 2.5:1 basis. Currently, they will not explode if you connect a lower tier coupler to a higher voltage line. They will (hopefully) convert only up to the maximum EUs for their tier.


    New in v0.21: Energy Regulator Pipes!
    No more worrying about how much EUs you are wasting when converting to BuildCraft Energy! Regulator Pipes will now automatically calculate and regulate the flow of EUs and energy! Using them is simple. Attach a wooden regulator pipe to your energy coupler output, attach either a stone or gold regulator pipe to a buildcraft machine or another energy coupler and then connect with normal energy pipes. It's that easy!


    Here is a very basic example:


    Please note though, because of the way BuildCraft passes energy requests along pipes, you may notice an energy "wave" if you make your pipe path too long. Short pipe connections are recommended for optimal usage.


    This is a work in progress and a learning experience, so any comments and suggestions are appreciated.


    Also, as an incentive to test it out, I've thrown back in my Industrial Diamond BuildCraft recipes so you can use industrial diamonds to craft Diamond Item Pipes and Diamond Gears.


    I know that this diminishes the need for BuildCraft Engines and Oil somewhat (ok, a lot), so I think my next goal is to create a Petrol Generator for converting refined oil into EUs


    Changelog:
    v0.15:
    - Modified the conversion ratio to ~2.5 EUs : 1 BC Energy Unit
    - Possibly added SMP compatibility, will need someone to test since I don't do SMP
    v0.16:
    - Added user configurable conversion ratio in configuration file
    v0.17:
    - Added ability to convert BC Energy to EUs when redstone is applied to a coupler
    v0.18:
    - Updated to IC2 1.23 and BC 2.2.3
    - Fixed a bug where breaking the block would return an LV coupler no matter which coupler you broke
    v0.19:
    - I think I finally worked out SMP
    v0.20:
    - Redstone signal now turns off output
    - Added GUI for selecting the direction of the conversion
    - Fixed a bug where buildcraft wooden power pipes were being overloaded at higher voltages resulting in major loss when converting into BC Energy [thanks to d1red for pointing it out]
    v0.21:
    - Added 3 new pipes to regulate energy usage when converting EUs to BuildCraft energy
    v0.21.1:
    - Updated and re-compiled against BuildCraft 2.2.5 to fix the crash while placing stone or gold regulator pipes