You are not logged in.

IC2 Experimental builds: v2.0/2.1/2.2 (For Minecraft 1.6.4/1.7.2/1.7.10 → jenkins)
IndustrialCraft² recent version: v1.117! (For Minecraft 1.5.2 → topic)

Dear visitor, welcome to IC² Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Wednesday, October 19th 2011, 2:48pm

[AddOn v1.23] Energy Coupler v0.21.1 - Convert EUs <-> BuildCraft Energy

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.

Recipes:


LV Energy Coupler


MV Energy Coupler


HV Energy Coupler


Wooden Regulator Pipe


Gold Regulator Pipe


Stone Regulator Pipe



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:

Spoiler Spoiler





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
McFistyBuns has attached the following files:

corjaantje

Tree Cutter

  • "corjaantje" is male
  • Netherlands

Posts: 39

Location: The Netherlands

  • Send private message

2

Wednesday, October 19th 2011, 2:52pm

Mmm could be cool :D cuz buildcraft and ic² are my favorite mods :)
youtube.com/corjaantje
:MFS-Unit::Glass Fibre::Glass Fibre::Glass Fibre::Glass Fibre::Tesla Coil: MinecraftCow MinecraftCreeper MinecraftPig MinecraftZombieman MinecraftSkeleton MinecraftSpider
:Geothermal Generator:

Amanlu17

Mining Lazor fan.

  • "Amanlu17" is male

Posts: 24

Location: Chrzanów

  • Send private message

3

Wednesday, October 19th 2011, 2:59pm

I was waiting for this! Thanks, i will test it now. ( My lovely quarry will get power from solar panels and reactor :) )

4

Wednesday, October 19th 2011, 3:01pm

You beat me to it.. I was about 50% done writing this myself.

Any chance of SMP support?

and great job!

sirbrandino

Industrial Engineer

  • "sirbrandino" is male
  • United States

Posts: 350

Location: USA

  • Send private message

5

Wednesday, October 19th 2011, 3:19pm

How about vice versa? BC > IC2 power?
I5 2500K | 4GB Cosair Vengence | Radeon 6850 | Rosewill 600w PSU | GigaByte Z68MA | CM Elite 311 | Dell 19" 720p (upgrading soon!)| Hitachi 500 GB 7200 HDD | LG 24X |Windows 7 (Genuine!)
Alblaka in a Lightning Rod suggestion thread...[/size]

Spoiler Spoiler

Quoted

It's time...
*grabs sunglasses*
FOR TOASTING THAT GODDAMN LIGHTNINGROD SUGGESTING HUNTING ME SINCE INTRODUCTION OF WEATHER TO MC!
*grabs shotgun*
BAM. DIE, STALKER!
...
Nothing to see here, please proceed.

6

Wednesday, October 19th 2011, 3:19pm

You beat me to it.. I was about 50% done writing this myself.

Any chance of SMP support?

and great job!


Being a complete Java novice, I wouldn't know the first thing about where to start making it SMP compatible. I've attached the source to the main post if someone would like to go over it and see what needs to be done if they'd like.

7

Wednesday, October 19th 2011, 3:52pm

How about vice versa? BC > IC2 power?


From the OP:

Quoted

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

8

Wednesday, October 19th 2011, 4:23pm

How about vice versa? BC > IC2 power?


From the OP:

Quoted

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


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. :)

9

Wednesday, October 19th 2011, 4:36pm

I love you, so much right now. You should see the stupid setup I have to have for my 4 quarries....cooling all those iron engines is a BITCH, had 2 arrays go up on me already....they make *ahem* small* holes.

Noert

Always a smartass

  • "Noert" is male
  • Russian Federation

Posts: 171

Location: Saint Petersburg

  • Send private message

10

Wednesday, October 19th 2011, 5:07pm

neat! waiting for SMP and that petrol generator.. hope my oil wont turn into asphalt by then :D
Ever notice when forums have a suggestion board, there's a small group of idiots who just hang around that little forum section? Yeah, I'm one of those guys. (c) by That one guy

TehFtw

Charcoal eater, panel collector

  • "TehFtw" is male
  • Poland

Posts: 14

Location: My room

  • Send private message

11

Wednesday, October 19th 2011, 5:08pm

Are you planning electric engine?

Either way, it's epic work ;) But hope you'll upload SMP version!

12

Wednesday, October 19th 2011, 5:28pm

Doesnt work for me;(

Here is the crashlog

Spoiler Spoiler

Mods loaded: 14
ModLoader Beta 1.8.1
mod_IC2_AdvMachine v2.00
mod_BuildCraftCore 2.2.2
mod_BuildCraftBuilders 2.2.2
mod_BuildCraftEnergy 2.2.2
mod_BuildCraftFactory 2.2.2
mod_BuildCraftTransport 2.2.2
mod_EnergyCoupler 0.1
mod_EE 1.8.1
mod_IC2 v1.15
mod_AdvancedSolarPanel 1.15.1.2
mod_IC2MobilePump v1.15
mod_IC2Thermometer v1.15
mod_IC2_WallForceFieldGenerator 0.9.6

Minecraft has crashed!
----------------------

Minecraft has stopped running because it encountered a problem.

If you wish to report this, please copy this entire text and email it to support@mojang.com.
Please include a description of what you did when the error occured.



--- BEGIN ERROR REPORT 5f7c6689 --------
Generated 19.10.2011 19:56

Minecraft: Minecraft Beta 1.8.1
OS: Windows 7 (x86) version 6.1
Java: 1.7.0, Oracle Corporation
VM: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation
LWJGL: 2.4.2
OpenGL: ATI Radeon HD 5700 Series version 4.1.11158 Compatibility Profile Context, ATI Technologies Inc.

java.lang.ExceptionInInitializerError
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at ModLoader.addMod(ModLoader.java:275)
at ModLoader.readFromModFolder(ModLoader.java:1179)
at ModLoader.init(ModLoader.java:824)
at ModLoader.AddAllRenderers(ModLoader.java:186)
at aam.<init>(aam.java:61)
at aam.<clinit>(aam.java:10)
at net.minecraft.client.Minecraft.a(SourceFile:259)
at net.minecraft.client.Minecraft.run(SourceFile:629)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.IllegalArgumentException: Slot 210 is already occupied by BlockEnergyCoupler@13823d1 when adding Portal_BlockPortalSpawner@b78aa9
at lr.<init>(Block.java:51)
at lr.<init>(Block.java:78 )
at zt.<init>(BlockContainer.java:22)
at Portal_BlockPortalSpawner.<init>(Portal_BlockPortalSpawner.java:13)
at mod_PortalGun.initIDs(mod_PortalGun.java:392)
at mod_PortalGun.<clinit>(mod_PortalGun.java:4090)
... 15 more
GENERATION 27: The first time you see this, copy it into your sig on any forum and add 1 to the
generation. Social experiment.

Amanlu17

Mining Lazor fan.

  • "Amanlu17" is male

Posts: 24

Location: Chrzanów

  • Send private message

13

Wednesday, October 19th 2011, 5:41pm


I noticed bug, sometimes this "engine" got lag, and stops sending power trough pipes, you need to break, and replace wooden pipe closest to it.
Anyways, it works GREAT. If You can, may you make able sending power to wooden pipes to extract items from them? It will be cool if you do. If wooden pipe can extract something from "something" it will request energy from engine. @Up try to break wooden pipe and place it again, if it don't work, try to check if you have electric current on cable, maybe it decayed over distance. If this don't help... What is wrong? You doesn't have these blocks in your game, or blocks won't work?

14

Wednesday, October 19th 2011, 6:47pm

Doesnt work for me;(

Caused by: java.lang.IllegalArgumentException: Slot 210 is already occupied by BlockEnergyCoupler@13823d1 when adding Portal_BlockPortalSpawner@b78aa9
at lr.<init>(Block.java:51)
at lr.<init>(Block.java:78 )
at zt.<init>(BlockContainer.java:22)
at Portal_BlockPortalSpawner.<init>(Portal_BlockPortalSpawner.java:13)
at mod_PortalGun.initIDs(mod_PortalGun.java:392)
at mod_PortalGun.<clinit>(mod_PortalGun.java:4090)
... 15 more


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.

15

Wednesday, October 19th 2011, 7:10pm

Doesnt work for me;(

Caused by: java.lang.IllegalArgumentException: Slot 210 is already occupied by BlockEnergyCoupler@13823d1 when adding Portal_BlockPortalSpawner@b78aa9
at lr.<init>(Block.java:51)
at lr.<init>(Block.java:78 )
at zt.<init>(BlockContainer.java:22)
at Portal_BlockPortalSpawner.<init>(Portal_BlockPortalSpawner.java:13)
at mod_PortalGun.initIDs(mod_PortalGun.java:392)
at mod_PortalGun.<clinit>(mod_PortalGun.java:4090)
... 15 more


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.




Thanks now it works :D
GENERATION 27: The first time you see this, copy it into your sig on any forum and add 1 to the
generation. Social experiment.

16

Wednesday, October 19th 2011, 7:22pm

I've just noticed that I included the wrong file in the source zip I uploaded. I've included the correct file and re-uploaded it in the main post. If you've already downloaded it, get rid of ItemBlockEnergryCoupler which should have nothing in it and replace it with the attached file, ItemEnergyCoupler.java.
McFistyBuns has attached the following file:

17

Wednesday, October 19th 2011, 7:42pm

Good job keep working on it :thumbsup: :thumbsup: :thumbsup:

18

Wednesday, October 19th 2011, 8:56pm

This is extremely useful. Combine this with Jorgan's BTW mechanical energy to electricity dynamo and you can have water wheels providing energy for the equivalent of a steam BC engine.

19

Wednesday, October 19th 2011, 9:03pm

Awesome addOn thank you ..... :Industrial Diamond: :Industrial Diamond: :Industrial Diamond: :Industrial Diamond: :Industrial Diamond:

20

Wednesday, October 19th 2011, 9:48pm

You rule me friend :)

Counter:

Hits today: 941 | Hits yesterday: 21,863 | Hits record: 111,506 | Hits total: 36,444,364