Well with the current setup of the network anchor i could see running a cable over the train line to simulate electric rails. Everything would be chunk loaded and the Power use would grow based on the size of the rail network.
[Addon 2.0] NetworkAnchor 0.10.3e
-
-
Electric rails which have chunkloading capability (when receiving energy and a minecart is above it) ?
No, I think frequent chunk forcing/unforcing is bad practice. I not sure for real what it was cause but theoretically it will make MC chunk loader jump from side to side and swap chunks from/to disk. However I currently don't know on what is difference between chunk loading for block and entities, maybe it is ok.
Well with the current setup of the network anchor i could see running a cable over the train line to simulate electric rails. Everything would be chunk loaded and the Power use would grow based on the size of the rail network.
You hit the point, it is like powered red stone/golden rails but consuming EU to boost cart + conduct power by itself like normal cables, so you have choice to use rails alone or stripe normal rails and electric so you can power them with more lossless cable + electrocute livings that walking on them, e.g. it like a subway rails, with one thing - there probably should be some kind of uhm... electric locomotive instead of directly boosting carts.
As they are will work as ElectricTile it will be automatically compatible with NetworkAnchor. It is probablye not as effecient as chunk loading cart but if you correctly organize tunnel you can put there also pipes and other transport stuff so you get pretty nice arterial... sometimes I recall that minecraft is also a building game. )) -
Electric rails would be pretty awesome.
Or they could be setup like the electrified rails here in AUS, where the trains get power from rails over the top of the train. Would keep things compatible with railcraft
-
Any chance this thingy gets updated to 1.6 and experimental IC2?
-
hoho, real life takes me away, sorry. Currently I don't have time to play games, not even sure I will come back, so I wouldn't mind if anyone else will port it to new version, fork it, or maybe even reuse code in their own addon to make similar thing, however if I come back I will continue developing this "original" version.
I have some further ideas that can be done for this addon. Leave it for consideration, if someone interested:
- add redstone processing, so NetworkAnchor may be turned on and off with redstone (basically lever). Visually will have display turned on/off. Physically - if turned off device will not do anything, but charge internal accumulator.
- scan terminator - do what it tells, network scan will not go beyond this block. Block itself work as cable. Can be done as additional block or as additional passive functionality for original NetworkAnchor block. Max voltage can match HV iron cable in first case, or depends on amount of installed transformer upgrades in second case.
- wave-based scan algorithm - should heavily reduce memory usage during scan. I already make some trials with that, but don't know how to make it work well yet.
-
Before all: this version contains some internal changes that is not compatible with previous versions, partially because of new IC2, so I recommend to remove all of NetworkAnchor blocks from world and wipe config file before installing this version. (I guess you already do it, because of delay)
Changelog:
- build under Minecraft 1.6.2, Forge 9.10.1.871, IC2 2.0.282
- removed LangHelper (because of minecraft resource pack, beware of UTF-8 BOM)
- TileEntity synchronization moved back to Container* class
- added own Connection/PacketHandler
- added ability to reflect config from server to client (except "BlockID" field)
- added config option to hardly limit maximum scan rate (for server admins)
- added logging of started anchors on world load
- added scan terminator block (as described in previous post)
- added option to optimize chunk structure due network scan (look for "O" button in GUI, "E" is old "Enabled|Disabled" button)
- added support for Railcraft Lapotronic Upgrade
- retextured to match new IC2 styleScanTerminator crafted with the same "easy" recipe as NetworkAnchor, just use Insulated Iron Cable instead of copper.
Optimization of chunk structure achieved by selecting only chunks that have at least one electric block that is not cable. In other words - if you have energy source connected to some consumer via 1000 blocks of cable, you may skip cables and force only chunks with source and consumer instead of whole line, it will be approximately 2-4 chunks instead of ~64. I found that it works according on how IC2 models it's energy network.
Known bug (feature?): may eat whole MFSU in several seconds, from what I found it's because current IC2 EnergyNet not returning leftover from device to energy storage, I recommend simply disable energy consumption or feed anchor with accumulators or energy crystals.
-
Yay, thanks for the update! I will do a 32x Top part for you if you want ;p
-
SirusKing, that would be nice. )
-
Known bug (feature?): may eat whole MFSU in several seconds, from what I found it's because current IC2 EnergyNet not returning leftover from device to energy storage, I recommend simply disable energy consumption or feed anchor with accumulators or energy crystals. -
Ok, then there will be workaround.
-
Ok, then there will be workaround.
Yes, just return the right value in demandedEnergyUnits(). That is currently the only workaround. -
Yes, just return the right value in demandedEnergyUnits(). That is currently the only workaround.
Yes. If look from other side, e.g. from zero, it is possible to demand energy only when buffer is empty, so it will work like GregTech machines, but there is still should be some buffered energy, so I think keeping half of buffer is enough + some 3-colored charge bar will look nice. -
Hello I am getting the following stacktrace when I try including your mod (the 0.10.e version):
013-11-08 10:32:00 [SEVERE] [Minecraft-Server] Encountered an unexpected exception NoClassDefFoundError
java.lang.NoClassDefFoundError: Lmods/NetworkAnchor/TheRecipe;
at java.lang.Class.getDeclaredFields0(Native Method)
at java.lang.Class.privateGetDeclaredFields(Unknown Source)
at java.lang.Class.getDeclaredField(Unknown Source)
at cpw.mods.fml.common.FMLModContainer.parseSimpleFieldAnnotation(FMLModContainer.java:426)
at cpw.mods.fml.common.FMLModContainer.processFieldAnnotations(FMLModContainer.java:382)
at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:525)
at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
at com.google.common.eventbus.EventBus.post(EventBus.java:267)
at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:201)
at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:181)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)I can provide more logs if you want, the other mods that I use are listed here: Gregtech hardmode server
-
invultri, thanks for report, I didn't test it with 1.6.4 yet, however I made some changes into recipe code, you may try version 0.10.1e that I just uploaded.
-
I get the following error when I try to add 0.10.1e.
Code
Display More---- Minecraft Crash Report ---- // Don't be sad. I'll do better next time, I promise! Time: 11/13/13 9:44 PM Description: Initializing game java.lang.VerifyError: Instruction type does not match stack map Exception Details: Location: mods/NetworkAnchor/NetworkAnchor.postInit(Lcpw/mods/fml/common/event/FMLPostInitializationEvent;)V @207: ldc_w Reason: Type 'net/minecraftforge/oredict/ShapedOreRecipe' (current frame, locals[2]) is not assignable to 'net/minecraft/item/crafting/RecipeSorter' (stack map, locals[2]) Current Frame: bci: @207 flags: { } locals: { 'mods/NetworkAnchor/NetworkAnchor', 'cpw/mods/fml/common/event/FMLPostInitializationEvent', 'net/minecraftforge/oredict/ShapedOreRecipe', null, 'net/minecraft/item/EnumToolMaterial', 'net/minecraft/item/EnumToolMaterial', 'net/minecraft/item/EnumToolMaterial' } stack: { } Stackmap Frame: bci: @207 flags: { } locals: { 'mods/NetworkAnchor/NetworkAnchor', 'cpw/mods/fml/common/event/FMLPostInitializationEvent', 'net/minecraft/item/crafting/RecipeSorter', 'net/minecraft/item/crafting/RecipeSorter' } stack: { } Bytecode: 0000000: 2bb6 0137 b600 e899 019a 014d 014e b801 0000010: 3a99 00be 0604 07b8 013e 3a04 102b 0403 0000020: b801 3e3a 0503 0410 0ab8 0141 3a06 1904 0000030: c600 9f19 05c6 009a 1906 c600 95bb 0143 0000040: 59bb 00f2 592a b400 abb7 0146 100d bd00 0000050: 0459 0306 bd01 4859 0313 014a 5359 0413 0000060: 014c 5359 0513 014e 5353 5904 1049 b801 0000070: 5453 5905 1301 56b8 00f0 5359 0610 44b8 0000080: 0154 5359 0719 0453 5908 104d b801 5453 0000090: 5910 0619 0653 5910 0710 4fb8 0154 5359 00000a0: 1008 1905 5359 1009 1054 b801 5453 5910 00000b0: 0a13 0158 b800 f053 5910 0b10 46b8 0154 00000c0: 5359 100c 1301 5ab8 00f0 53b7 015d 4d13 00000d0: 0161 b800 f03a 0412 eab8 00f0 3a05 bb01 00000e0: 4359 bb00 f259 2ab4 00ab b701 4610 07bd 00000f0: 0004 5903 06bd 0148 5903 1301 6353 5904 0000100: 1301 6553 5905 1301 6753 5359 0410 41b8 0000110: 0154 5359 0519 0453 5906 1042 b801 5453 0000120: 5907 1905 5359 0810 43b8 0154 5359 1006 0000130: 1301 69b8 00f0 53b7 015d 4ebb 016b 592d 0000140: 2cb7 016e b801 72b2 0178 bb00 f259 2ab4 0000150: 00ab 0404 b701 7b10 09bd 0004 5903 1301 0000160: 7d53 5904 1301 7f53 5905 1301 8153 5906 0000170: 1041 b801 5453 5907 1904 5359 0810 42b8 0000180: 0154 5359 1006 1905 5359 1007 1043 b801 0000190: 5453 5910 0813 0183 b800 f053 b901 8703 00001a0: 0013 0189 b800 f013 018b 0404 b801 9113 00001b0: 0193 b800 f013 0195 0404 b801 9113 0197 00001c0: b800 f013 0199 1127 1004 b801 91b8 013a 00001d0: 9900 5606 0410 0cb8 013e 1301 9913 019a 00001e0: 05b8 0191 0604 100d b801 3e13 0199 1301 00001f0: 9b06 b801 9106 0410 0eb8 013e 1301 9913 0000200: 019c 07b8 0191 0604 101a b801 3e13 0199 0000210: 1301 9d04 b801 9106 0410 1bb8 013e 1301 0000220: 9506 04b8 0191 1301 9fb8 01a2 1301 9913 0000230: 019a 05b8 0191 1301 a4b8 01a2 1301 9913 0000240: 019b 06b8 0191 1301 a613 01a8 04b8 01ac 0000250: 1301 9913 019b 06b8 0191 b1 Stackmap Table: append_frame(@207,Object[#351],Object[#351]) chop_frame(@417,2) same_frame_extended(@550) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:462) at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) at com.google.common.eventbus.SynchronizedEventHandler.handleEvent (SynchronizedEventHandler.java:45) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) at com.google.common.eventbus.EventBus.post(EventBus.java:267) at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:201) at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:181) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) at com.google.common.eventbus.SynchronizedEventHandler.handleEvent (SynchronizedEventHandler.java:45) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) at com.google.common.eventbus.EventBus.post(EventBus.java:267) at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:112) at cpw.mods.fml.common.Loader.loadMods(Loader.java:511) at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading (FMLClientHandler.java:183) at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:473) at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:808) at net.minecraft.client.main.Main.main(SourceFile:101) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraft.launchwrapper.Launch.launch(Launch.java:131) at net.minecraft.launchwrapper.Launch.main(Launch.java:27) A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- Head -- Stacktrace: at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at cpw.mods.fml.common.FMLModContainer.constructMod(FMLModContainer.java:462) at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) at com.google.common.eventbus.SynchronizedEventHandler.handleEvent (SynchronizedEventHandler.java:45) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) at com.google.common.eventbus.EventBus.post(EventBus.java:267) at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:201) at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:181) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74) at com.google.common.eventbus.SynchronizedEventHandler.handleEvent (SynchronizedEventHandler.java:45) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296) at com.google.common.eventbus.EventBus.post(EventBus.java:267) at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:112) at cpw.mods.fml.common.Loader.loadMods(Loader.java:511) at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading (FMLClientHandler.java:183) at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:473) -- Initialization -- Details: Stacktrace: at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:808) at net.minecraft.client.main.Main.main(SourceFile:101) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at net.minecraft.launchwrapper.Launch.launch(Launch.java:131) at net.minecraft.launchwrapper.Launch.main(Launch.java:27) -- System Details -- Details: Minecraft Version: 1.6.4 Operating System: Windows 7 (amd64) version 6.1 Java Version: 1.7.0_45, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 947405176 bytes (903 MB) / 1364721664 bytes (1301 MB) up to 1364721664 bytes (1301 MB) JVM Flags: 5 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xms1408M -Xmx1408M -XX:PermSize=512m -XX:MaxPermSize=512m AABB Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used Suspicious classes: FML and Forge are installed IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: MCP v8.11 FML v6.4.39.943 Minecraft Forge 9.11.1.943 277 mods loaded, 277 mods active mcp{8.09} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed FML{6.4.39.943} [Forge Mod Loader] (minecraftforge-9.11.1.943.jar) Unloaded->Constructed Forge{9.11.1.943} [Minecraft Forge] (minecraftforge-9.11.1.943.jar) Unloaded->Constructed IC2{2.0.301-experimental} [IndustrialCraft 2] (industrialcraft-2_2.0.301-experimental.jar) Unloaded->Constructed
-
Prometheius, thanks, should be fixed now.
-
yeah so I have no crafting recipes? :X is it just me? (I'm using greg recipes)
-
yeah so I have no crafting recipes? :X is it just me? (I'm using greg recipes)
It doesn't shown in NEI but it exists, side effect of mmm... anti-cheating(?) system that I added. It basically transfers config file from server when you connection to it and applies it until you disconnect, I currently don't see the way to explicitly switch recipe other way, maybe will write plugin for NEI. Currently you gonna use first post as a hint.
-
Ah okay thanks
-
The recipe for the Network Anchor is neither displaying nor working for me. According to my NEI, I don't have "Insulated" Copper Cable, just regular Copper Cable and Uninsulated Copper Cable.
EDIT: Turned B:HardGregTechRecipe to false, can craft Anchor now.