this isn't SMP compatible... is it?
[IC2 Exp][1.2.5 to 1.12.2] Armour and Tool Status HUD
-
-
this isn't SMP compatible... is it?
It's purely client-side, so compatibility isn't an issue.
-
Yep, that fixed it, thanks.
(you still on 1.2.5, Dukat863?)
Who isn't?
//I keep reporting posts to moderator, someone move that button outta there
-
And here's a version for Minecraft r1.4.6 and IC2 beta 1.112. Haven't tested it with actual IC2, but there are no substantial changes (some classes got moved, but I think I've dealt with that) to the IC2 integration code from the MC r1.4.2 release and so it ought to work fine. Lemme know if you encounter any bugs.
I would have added in some code which allows modders to customise the Armour HUD display (allowing any headgear to define itself as a HUD provider, custom prefixes, postfixes, name and value, along with some other tweaks), but Java has a crappy inheritance system and so you'd either have to manually fill in a return value for each and every piece of information I need (there are about 28 of them) which would be incredibly tiresome; or I'd have to use icky, slow reflection to do the job instead. So it's the same old functionality again.
EDIT: fixed a retarded bug in the packaged version, re-download it.
Changelog:
v2.4a = Ported to MC r1.4.6 (required changes: a whole lot of includes due to Minecraft's classes being split into a whole bunch of subpackages, item name function has now changed from ItemStack.getItemName() to ItemStack.getDisplayName()) and moved the mod into its own package. If you use FruitDisplayLib for anything, it's now in fruitmods.fruitlibs.
-
oh interesting mod.... but...
trying this on IC² v1.112 for MC 1.4.6 gives me this crash report when I launch MC (the 62 other mods worked fine before I added the HUD, incl. GraviSuit)
Code
Display More---- Minecraft Crash Report ---- // You're mean. Time: 08.01.13 10:25 Description: Failed to start game cpw.mods.fml.common.LoaderException: java.lang.ClassNotFoundException: fruitmods.armourhud.mod_ArmourHUD at cpw.mods.fml.common.LoadController.transition(LoadController.java:117) at cpw.mods.fml.common.Loader.loadMods(Loader.java:484) at cpw.mods.fml.client.FMLClientHandler.beginMinecraftLoading(FMLClientHandler.java:161) at net.minecraft.client.Minecraft.a(Minecraft.java:410) at asq.a(SourceFile:56) at net.minecraft.client.Minecraft.run(Minecraft.java:744) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.ClassNotFoundException: fruitmods.armourhud.mod_ArmourHUD at cpw.mods.fml.relauncher.RelaunchClassLoader.findClass(RelaunchClassLoader.java:179) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at cpw.mods.fml.common.ModClassLoader.loadClass(ModClassLoader.java:57) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at cpw.mods.fml.common.ModClassLoader.loadBaseModClass(ModClassLoader.java:87) at cpw.mods.fml.common.modloader.ModLoaderModContainer.constructMod(ModLoaderModContainer.java:489) 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:69) at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300) at com.google.common.eventbus.EventBus.post(EventBus.java:268) at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:140) 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:69) at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45) at com.google.common.eventbus.EventBus.dispatch(EventBus.java:317) at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:300) at com.google.common.eventbus.EventBus.post(EventBus.java:268) at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:83) at cpw.mods.fml.common.Loader.loadMods(Loader.java:478) ... 5 more Caused by: java.lang.NullPointerException A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- System Details -- Details: Minecraft Version: 1.4.6 Operating System: Windows 7 (amd64) version 6.1 Java Version: 1.7.0_03, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 168558144 bytes (160 MB) / 259522560 bytes (247 MB) up to 3151495168 bytes (3005 MB) JVM Flags: 5 total; -Xms256M -Xmx3072M -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:+AggressiveOpts 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 v7.25 FML v4.6.17.515 Minecraft Forge 6.5.0.489 Feed The Beast Mod Pack 63 mods loaded, 63 mods active mcp [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed FML [Forge Mod Loader] (coremods) Unloaded->Constructed Forge [Minecraft Forge] (coremods) Unloaded->Constructed mod_CodeChickenCore [CodeChicken Core] (coremods) Unloaded->Constructed mod_NotEnoughItems [Not Enough Items] (coremods) Unloaded->Constructed mod_ReiMinimap [mod_ReiMinimap] ([1.4.6]ReiMinimap_v3.2_06.zip) Unloaded->Constructed IC2 [IndustrialCraft 2] (industrialcraft-2_1.112.170-lf.jar) Unloaded->Constructed AdvancedMachines [IC2 Advanced Machines Addon] (AdvancedMachines_1.4.6.zip) Unloaded->Constructed mod_ArmourHUD [mod_ArmourHUD] (Armour_HUD_v2.4a.zip) Unloaded->Errored mod_FruitLibs [mod_FruitLibs] (Armour_HUD_v2.4a.zip) Unloaded->Errored BuildCraft|Core [BuildCraft] (buildcraft-A-3.3.0.jar) Unloaded->Constructed BuildCraft|Builders [BC Builders] (buildcraft-A-3.3.0.jar) Unloaded->Constructed BuildCraft|Energy [BC Energy] (buildcraft-A-3.3.0.jar) Unloaded->Constructed BuildCraft|Factory [BC Factory] (buildcraft-A-3.3.0.jar) Unloaded->Constructed BuildCraft|Transport [BC Transport] (buildcraft-A-3.3.0.jar) Unloaded->Constructed BuildCraft|Silicon [BC Silicon] (buildcraft-A-3.3.0.jar) Unloaded->Constructed ChargePads [Charge Pads] (chargepads-universal-2.3.0.58.zip) Unloaded->Constructed ChickenChunks [ChickenChunks] (ChickenChunks 1.2.1.1.jar) Unloaded->Constructed CompactSolars [Compact Solar Arrays] (compactsolars-universal-1.4.6-3.2.0.21.zip) Unloaded->Constructed ComputerCraft [ComputerCraft] (ComputerCraft1.481.zip) Unloaded->Constructed CCTurtle [ComputerCraft Turtles] (ComputerCraft1.481.zip) Unloaded->Constructed EE3 [Equivalent Exchange 3] (ee3-universal-pre1f.jar) Unloaded->Constructed EnderStorage [EnderStorage] (EnderStorage 1.3.1.1.jar) Unloaded->Constructed ExtrabiomesXL [ExtrabiomesXL] (ExtrabiomesXL-universal-1.4.7-3.8.0.jar) Unloaded->Constructed factorization [Factorization] (Factorization-0.7.10.jar) Unloaded->Constructed Forestry [Forestry for Minecraft] (forestry-A-1.7.0.1.jar) Unloaded->Constructed GraviGun [GraviGun] (GravityGun1.4.6v1.zip) Unloaded->Constructed Railcraft [Railcraft] (Railcraft_1.4.6-6.13.1.0.zip) Unloaded->Constructed RedPowerCore [RedPower] (RedPowerCore-2.0pr6.zip) Unloaded->Constructed RedPowerBase [RP Base] (RedPowerCore-2.0pr6.zip) Unloaded->Constructed RedPowerMachine [RP Machine] (RedPowerMechanical-2.0pr6.zip) Unloaded->Constructed RedPowerCompat [RP Compat] (RedPowerCompat-2.0pr6.zip) Unloaded->Constructed RedPowerWiring [RP Wiring] (RedPowerDigital-2.0pr6.zip) Unloaded->Constructed RedPowerLogic [RP Logic] (RedPowerDigital-2.0pr6.zip) Unloaded->Constructed RedPowerLighting [RP Lighting] (RedPowerDigital-2.0pr6.zip) Unloaded->Constructed RedPowerWorld [RP World] (RedPowerMechanical-2.0pr6.zip) Unloaded->Constructed RedPowerControl [RP Control] (RedPowerMechanical-2.0pr6.zip) Unloaded->Constructed ThermalExpansion [Thermal Expansion] (ThermalExpansion-2.1.6.zip) Unloaded->Constructed ThermalExpansion|Factory [Factory] (ThermalExpansion-2.1.6.zip) Unloaded->Constructed ThermalExpansion|Energy [Energy] (ThermalExpansion-2.1.6.zip) Unloaded->Constructed ThermalExpansion|Transport [Transport] (ThermalExpansion-2.1.6.zip) Unloaded->Constructed XyCraft [XyCraft] (xycraft-universal-1.4.6-0.9.44.zip) Unloaded->Constructed GregTech_Addon [GregTech-Addon] (gregtechmod.zip) Unloaded->Constructed IC2NuclearControl [Nuclear Control] (IC2NuclearControl-1.4.5.zip) Unloaded->Constructed mod_InvTweaks [Inventory Tweaks] (InventoryTweaks_v1.49_(1.4.6).zip) Unloaded->Constructed IronChest [Iron Chest] (ironchest-universal-1.4.7-4.5.2.213.zip) Unloaded->Constructed LogisticsPipes|Main [Logistics Pipes] (LogisticsPipes-MC1.4.6-0.6.9.33.jar) Unloaded->Constructed MiscPeripherals [MiscPeripherals] (miscperipherals-2.3.zip) Unloaded->Constructed GraviSuite [Gravitation Suite] (mod_zGraviSuite_1_6.zip) Unloaded->Constructed ModularForceFieldSystem [Modular ForceField System V2] (ModularForceFieldSystemV2.2.8.2.14.zip) Unloaded->Constructed Mystcraft [Mystcraft] (mystcraft-uni-1.4.6-0.9.5.00.zip) Unloaded->Constructed NEIPlugins [NEI Plugins] (NEIPlugins-1.0.4.1.jar) Unloaded->Constructed ObsidiPlates [Obsidian Pressure Plates] (obsidiplates-universal-1.2.0.3.zip) Unloaded->Constructed OmniTools [OmniTools] (OmniTools-2.2.5.zip) Unloaded->Constructed PortalGun [Portal Gun] (PortalGun1.4.7v2.zip) Unloaded->Constructed SoulShards [SoulShards] (SoulShards-v1.26-universal.zip) Unloaded->Constructed StevesCarts [Steve's Carts] (StevesCarts2.0.0.a42.zip) Unloaded->Constructed pitman-87_TF2_Teleporter [TF2 Teleporter] (TF2_Teleporter_1.4.6a.zip) Unloaded->Constructed Thaumcraft [Thaumcraft] (Thaumcraft3.0.1c.zip) Unloaded->Constructed ThermalExpansion|NEI [NEI] (ThermalExpansion-NEI-2.1.6.zip) Unloaded->Constructed WR-CBE|Core [WR-CBE Core] (WR-CBE Core 1.3.2.4.jar) Unloaded->Constructed WR-CBE|Addons [WR-CBE Addons] (WR-CBE Addons 1.3.2.4.jar) Unloaded->Constructed WR-CBE|RedPower [WR-CBE RedPower] (WR-CBE RedPower 1.3.2.4.jar) Unloaded->Constructed LWJGL: 2.4.2 OpenGL: GeForce GT 555M/PCIe/SSE2 GL version 4.2.0, NVIDIA Corporation Is Modded: Definitely; Client brand changed to 'forge,fml' Type: Client (map_client.txt) Texture Pack: Default Profiler Position: N/A (disabled) Vec3 Pool Size: ~~ERROR~~ NullPointerException: null
am I doing something wrong here??
edit: I'm using the Armour_HUD_v2.4a OC ..
-
Well, I have no idea what happened there. The mod works fine in MCP, but the zip file doesn't load when fed to an actual Minecraft setup. I honestly do not know what went wrong here - this is going to take a little digging.
-
And I found the bug. Damn, I'm stupid.
Grab the re-uploaded version from 3 posts above.
-
thanks for the quick fix
now I can start minecraft again yay
but it took me some time to activate the display... had to look in the controles to find the HUD key since it is deactivated by default somehow....
but now everything is fine -
Here's an update that works on MC r1.5.1 using the latest API available from the IC2 build site. There are two versions - one if you're using an IC2 beta and one if you don't have it installed (this contains a compiled IC2 API and shouldn't be used if you're running IC2 properly - I haven't yet figured out how to make it not depend so hard on IC2's API). If you don't have IC2 installed, then you get the full quantum suit-level HUD with exact precision. If you've got it, you need to tech up as normal.
Changelog:
v2.5 = Ported to MC r1.5.1 (required changes: some stuff about isDebugInfoEnabled, alterations to the IElectricItem in IC2's API), added the beginnings of being able to run this mod without IC2 or its API installed.
-
It's very important, so I'm not necro-posting.
I'm in 1.5.2 and...
All I want to say is that the 2.5 is in the true 2.4 ( at least in the log ). So the game... crashes:
2013-08-29 15:24:51 [INFO] [STDOUT] Armour HUD Status v2.4 [MC r1.3.2] loaded.
2013-08-29 15:24:51 [INFO] [STDERR] Exception in thread "Minecraft main thread" java.lang.NoSuchFieldError: p
2013-08-29 15:24:51 [INFO] [STDERR] at fruitmods.fruitlibs.FruitDisplayLib.init(FruitDisplayLib.java:634)
2013-08-29 15:24:51 [INFO] [STDERR] at fruitmods.fruitlibs.mod_FruitLibs.load(mod_FruitLibs.java:22)
2013-08-29 15:24:51 [INFO] [STDERR] at cpw.mods.fml.common.modloader.ModLoaderModContainer.init(ModLoaderModContainer.java:538)
2013-08-29 15:24:51 [INFO] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2013-08-29 15:24:51 [INFO] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
2013-08-29 15:24:51 [INFO] [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2013-08-29 15:24:51 [INFO] [STDERR] at java.lang.reflect.Method.invoke(Method.java:491)
2013-08-29 15:24:51 [INFO] [STDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
2013-08-29 15:24:51 [INFO] [STDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
2013-08-29 15:24:51 [INFO] [STDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
2013-08-29 15:24:51 [INFO] [STDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
2013-08-29 15:24:51 [INFO] [STDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:267)
2013-08-29 15:24:51 [INFO] [STDERR] at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:192)
2013-08-29 15:24:51 [INFO] [STDERR] at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:172)
2013-08-29 15:24:51 [INFO] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2013-08-29 15:24:51 [INFO] [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
2013-08-29 15:24:51 [INFO] [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2013-08-29 15:24:51 [INFO] [STDERR] at java.lang.reflect.Method.invoke(Method.java:491)
2013-08-29 15:24:51 [INFO] [STDERR] at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
2013-08-29 15:24:51 [INFO] [STDERR] at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
2013-08-29 15:24:51 [INFO] [STDERR] at com.google.common.eventbus.EventBus.dispatch(EventBus.java:314)
2013-08-29 15:24:51 [INFO] [STDERR] at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
2013-08-29 15:24:51 [INFO] [STDERR] at com.google.common.eventbus.EventBus.post(EventBus.java:267)
2013-08-29 15:24:51 [INFO] [STDERR] at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:103)
2013-08-29 15:24:51 [INFO] [STDERR] at cpw.mods.fml.common.Loader.initializeMods(Loader.java:691)
2013-08-29 15:24:51 [INFO] [STDERR] at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:213)
2013-08-29 15:24:51 [INFO] [STDERR] at net.minecraft.client.Minecraft.func_71384_a(Minecraft.java:448)
2013-08-29 15:24:51 [INFO] [STDERR] at net.minecraft.client.MinecraftAppletImpl.func_71384_a(SourceFile:56)
2013-08-29 15:24:51 [INFO] [STDERR] at net.minecraft.client.Minecraft.run(Minecraft.java:733)
2013-08-29 15:24:51 [INFO] [STDERR] at java.lang.Thread.run(Thread.java:724)With magic launcher ( only for logs, I tested before without it )
-
ARISE, THREAD! ARISE TO SERVE YOUR MASTER ONCE MORE!
So I'm finally moving to a newer version of Minecraft (r1.6.4) and consequently had to update the armour HUD mod. It got a *massive* re-working under the hood and some new features - enough to warrant me bumping the version number up to 3.0. Features include:
-Thermal Expansion and Universal Electricity integration (not fully tested)
-More explicit integration with IC2 (now shows the status of your nanosabre and electric jetpack), Gravisuite (shows status of the advanced/nanosuit jetpacks) and Simply Jetpacks addon for Thermal Expansion (again, hover status display)
-UNICODE! (look at the description for the diamond, unicode names aren't saved in the config file)
All text is now in Unicode - so if it looks a little funny compared to the old version, blame Notch's fonts.
There is also now an API which mod developers can use to display their own custom strings instead of my autogenerated ones. Usage should be fairly self-explanatory once you get used to the quirks of how I render text.
Downloads are at the bottom of the post, lemme know if you find any bugs.
A final note: I don't know if I'm going to update this past 1.6.4. I only managed to get this far because Forge 9.11.1.965 (after replacing the MD5 values in a few scripts to make it work again) doesn't use this strange Gradle crap and actually lets me recompile my mod. And none of the instructions were any use - they all tell me to use Eclipse, which I am not doing (screw IDEs, text editor, file manager and command line FTW).
EDIT (2014-08-04): I've made a very small change to the code that adds a bit more spacing between letters - the default unicode font is too squished up. If you got the mod before now, you can re-download it to get the change.
-
NO. NO. BAD BOY! Use 1.7, nobody is coding in 1.6.
Welcome back though.
Glad to see an addon creator who's active again.
-
Minor update here where I tried to make it compatible with Tinkers' Construct tools. It still doesn't recognise them (internally, they're not even damageable and my little compatibility hax failed), but formatting codes are now stripped from item names - no longer do you have to see those funny S-things.
-
And here's an update for Minecraft r1.7.10. Yes, that's about 9 months between having a usable version of Forge and this mod's release. The only change from the previous version is that UE compatibility has been removed - since the UE website now seems to be owned by some kind of domain parker, I'm assuming that it's a dead mod. The API, if anyone ever used it, remains the same.
-
Hurrah for addons still updating!
-
Gonna test compatibility with IC2 classic
It's not dead, I don't remember if it was Calclavia.com or another site, but you can still find it, in the form of resonant engine ( which has realistic DC wires now ).
-
People actually use UE? I thought it was just one of those nice idea mods that people kinda ignored after the Voltz and Ampz modpacks.
-
I use it, I know some obscure community modpacks have it, MysteryDump also use it iirc and yeah, here is the new exiting addition :
-
If you downloaded Armour HUD v3.1 before this post came up, get it again. The old version was broken due to directory structure issues.
-
3 years later, I now want to play Sevtech Ages - this means that I need to update all of my mods to the current version.
Here's Armour HUD v3.2 for Minecraft 1.12.2. It's tested and working with vanilla durability and IC2 equipment, mainly because I have them in my build environment. RF-powered items should still work unless they broke something massively behind the scenes (beside a small classpath change for the API which I've already noticed), likewise for Tinkers' Construct items (though I can't remember how well they worked before). I can't test these because I haven't got something that'll work in a deobfuscated dev environment.
New is support for Forge Energy-powered items, which should also work fine (it's basically RF), but I likewise haven't tested that out.
Known bugs: whenever the annoying little achievement thingy pops up in the top right hand of the screen telling you "you've picked up cobble, congrats, there are new recipes", the text display spazzes out and shows blocks instead of letters. I have no idea how to even start to diagnose this - sorry
I have yet to feed this to an actual modded setup that isn't a dev environment (haven't begun that Sevtech playthrough yet, waiting on the other players to arrange a time), so I can't say much about how well this .jar will work in real gameplay. Tell me if you use it and something goes horribly wrong.