Code Monkey home page Code Monkey logo

smartcursor's People

Contributors

asaskevich avatar guro2 avatar modmuss50 avatar ubunterro avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

smartcursor's Issues

Item Tooltip options.

It would be great if you could make the tooltips for hovering over items disableable.
Most people put it under F3+H and have options to enable/disable them incase multiple mods add tooltips.

NullPointerException PlayerEquipmentModule.java:19 list.add

com.asaskevich.smartcursor.RenderHandler:renderGameOverlay:242: java.lang.NullPointerException
java.lang.NullPointerException
at com.asaskevich.smartcursor.modules.player.PlayerEquipmentModule.process(PlayerEquipmentModule.java:19)
at com.asaskevich.smartcursor.render.RenderPlayer.render(RenderPlayer.java:42)
at com.asaskevich.smartcursor.RenderHandler.renderGameOverlay(RenderHandler.java:153)
at cpw.mods.fml.common.eventhandler.ASMEventHandler_13_RenderHandler_renderGameOverlay_RenderGameOverlayEvent.invoke(.dynamic)
at cpw.mods.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:54)
at cpw.mods.fml.common.eventhandler.EventBus.post(EventBus.java:138)
at net.minecraftforge.client.GuiIngameForge.renderHUDText(GuiIngameForge.java:699)
at net.minecraftforge.client.GuiIngameForge.func_73830_a(GuiIngameForge.java:155)
at net.minecraft.client.renderer.EntityRenderer.func_78480_b(EntityRenderer.java:1038)
at net.minecraft.client.Minecraft.func_71411_J(Minecraft.java:990)
at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:887)
at net.minecraft.client.main.Main.main(SourceFile:148)
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:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
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 magic.launcher.Launcher.main(SourceFile:214)

public void process(List<String> list, EntityPlayer player) {
/*17*/  ItemStack[] items = player.getLastActiveItems();
/*18*/  boolean h = player.getHeldItem() != null;
/*19*/  for (ItemStack item : items)
/*20*/      if (item != null) h = true;
/*21*/  if (h) {
/*22*/      list.add(EnumChatFormatting.GRAY + StatCollector.translateToLocal("smartcursor.player.equipment"));

list is never initialized with something like

list = new ArrayList<String>();

Add ModSide to manifest.

Adding

manifest {
        attributes 'ModSide': 'CLIENT'
    }

to jar in your build.gradle file will mark the mod as client side and will prevent it from loading on server and thus crashing them.

Some blocks' names don't display correctly

In the thing at the top left corner, the names display as tile.[insert block's unlocalized name here].name. Some blocks that I have observed having this issue are:
Sand
Top part of Double Grass
Thermal Expansion Ores

NPE on render.

[20:56:56] [Client thread/INFO] [STDERR]:   [com.asaskevich.smartcursor.RenderHandler:renderGameOverlay:242]: java.lang.NullPointerException
[20:56:56] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]: java.lang.NullPointerException
[20:56:56] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]:     at net.minecraft.item.ItemStack.func_77964_b(ItemStack.java:222)
[20:56:56] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]:     at com.asaskevich.smartcursor.RenderHandler.renderGameOverlay(RenderHandler.java:128)
[20:56:56] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]:     at cpw.mods.fml.common.eventhandler.ASMEventHandler_304_RenderHandler_renderGameOverlay_RenderGameOverlayEvent.invoke(.dynamic)
[20:56:56] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]:     at cpw.mods.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:54)
[20:56:56] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]:     at cpw.mods.fml.common.eventhandler.EventBus.post(EventBus.java:138)
[20:56:56] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]:     at net.minecraftforge.client.GuiIngameForge.renderHUDText(GuiIngameForge.java:699)
[20:56:56] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]:     at net.minecraftforge.client.GuiIngameForge.func_73830_a(GuiIngameForge.java:155)
[20:56:56] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]:     at net.minecraft.client.renderer.EntityRenderer.func_78480_b(EntityRenderer.java:1038)
[20:56:56] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]:     at net.minecraft.client.Minecraft.func_71411_J(Minecraft.java:989)
[20:56:56] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]:     at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:887)
[20:56:56] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]:     at net.minecraft.client.main.Main.main(SourceFile:148)
[20:56:56] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]:     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[20:56:56] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]:     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[20:56:56] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]:     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[20:56:56] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]:     at java.lang.reflect.Method.invoke(Method.java:483)
[20:56:56] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]:     at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
[20:56:56] [Client thread/INFO] [STDERR]: [java.lang.Throwable$WrappedPrintStream:println:748]:     at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

Ideas/issues with certain blocks.

Issues:
Looking at a natura crop throws http://pastebin.com/ALCa2NLC
Farmland shows up as dirt. (Could add if its wet or not)

Ideas:
Redstone information. (Power level, Repeater state, On/Off, Enabled/Disabled ETC)
Crop growth level.
Display block attributes (Shearable, farmable,ETC) the same way as mobs display armor/weapons.
Burnable block attribute. (Like wood)

New option for Health.

  1. I really like the bar you have but having the red bar as health and green as the background is a tad confusing.
    Could you add a new option that inverts this?
  2. Instead of having the bar inside the bar could you make them the same size? That way as health is going down it uncovers the other color.
  3. Damage dealt text. This could be similar to the block breaking % but the amount of damage dealt.

These aren't super important. I also do enjoy how nice everything looks!

Unlocalized Name

I have been trying to figure out how to remove this. Could this please be added to the config or something?

screenshot_25

I am using V1.5 for 1.7.10

[feature request] custom NBT support via json like WailaNBT

The idea is instead of having mod support people can make their own scripts to support visualizing mod contents using NBT data.

See here for ex https://mods.curse.com/mc-mods/minecraft/224417-waila-nbt

The script would be something like that mod does it

When you have the specific item in your inventory "divinationSigil then you can see Current Essence as "Amount" NBT tag value and "Capacity" as "capactity" NBT tag value on any block called containerAltar. EZ

{
    "AWWayofTime:divinationSigil": { 
        "containerAltar": {
            "Amount": "Current Essence",
            "capacity": "Capacity"
        }
    }
}

If you literarily copy /pasta WailaNBT json system then you can use all their scripts which support most of the major mods already.

Not only that but anyone can make advanced stuff like % growth of crops or how much liquid is in a cauldron or light level of a block and so forth. And would work for ANYTHING and best of all you won't have to manually keep updating your mod to stay compatible with other mods.

I don't know how hard that would be to implement but it would save you a lot of trouble in the long run making this mod way more versatile than WAILA since that WailaNBT only works for 1.7.10 version.

In short people can make their own scripts for whatever they need to visualize in the tooltips.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.