Coder Social home page Coder Social logo

twelveiterationmods / chatemotes Goto Github PK

View Code? Open in Web Editor NEW
11.0 11.0 14.0 1.18 MB

Adds emoticons to Minecraft chat. Supports Twitch and custom emotes. Compatible with EiraIRC.

Home Page: https://mods.twelveiterations.com/mc/chatemotes/

License: MIT License

Java 100.00%
forge-mod minecraft-mod

chatemotes's People

Contributors

blaytheninth avatar stapleton avatar thenasbit avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

chatemotes's Issues

Crash during initialization

In the Project Ozone 2 Reloaded mod-pack, your mod crashed during initialization.

java.lang.NullPointerException: Initializing game
at net.blay09.mods.eiramoticons.addon.pack.TwitchTurboPack.(TwitchTurboPack.java:54)
at net.blay09.mods.eiramoticons.ClientProxy.reloadEmoticons(ClientProxy.java:98)
at cpw.mods.fml.common.eventhandler.ASMEventHandler_948_ClientProxy_reloadEmoticons_ReloadEmoticons.invoke(.dynamic)
at cpw.mods.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:54)
at cpw.mods.fml.common.eventhandler.EventBus.post(EventBus.java:140)
. . .

Full crash report here: http://pastebin.com/pB2BaQqc

Weird linebreak on main screenshot

there's a weird linebreak on the main screenshot that needs fixing. Probably some width function in the fontrenderer I forgot to override.

Better emoticon scaling

Emoticons following the 28x28 rule should get a common scaling factor so that proportions will be correct. All others should go fuck themselves and just be scaled down to 14x16

TwitchEmotes API V3?

Since TwitchEmotes deprecated API V2 (which EiraMoticons is using right now) and doesn't contain new emotes from Twitch, can you update the code to use V3?
(and please don't tell me to use ChatTweaks, i want emotes only)

Crash on modpack loadup

http://pastebin.com/v6PAG1Rr

Using the Project Ozone modpack.

Also, just before this happened, I was able to play Project Ozone, but then my power went out. I have a UPS power supply, so the PC stayed on, but the router did not. Reinstalling the pack did not help, either.

Crash at startup in development environment

I am using Forge 10.13.3.1408 and receiving this error at startup

 [17:51:33] [Client thread/ERROR] [FML]: 
    mcp{9.05} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized
    FML{7.10.99.99} [Forge Mod Loader] (forgeSrc-1.7.10-10.13.3.1408-1.7.10.jar) Unloaded->Constructed->Pre-initialized->Initialized
    Forge{10.13.3.1408} [Minecraft Forge] (forgeSrc-1.7.10-10.13.3.1408-1.7.10.jar) Unloaded->Constructed->Pre-initialized->Initialized
    smchat{1.0} [SkyMine Chat] (bin) Unloaded->Constructed->Pre-initialized->Initialized
    eiramoticons{1.0.74} [EiraMoticons] (eiramoticons-mc1.7.10-1.0.74-dev.jar) Unloaded->Constructed->Pre-initialized->Errored
    smcore{0.1.1} [SkyMine Core ] (SkyMine-Core-deobf.jar) Unloaded->Constructed->Pre-initialized->Initialized
    smvault{1.0} [smvault] (SkyMineVault-0.0.3.jar) Unloaded->Constructed->Pre-initialized->Initialized
[17:51:33] [Client thread/ERROR] [FML]: The following problems were captured during this phase
[17:51:33] [Client thread/ERROR] [FML]: Caught exception from eiramoticons
java.lang.NoSuchMethodError: net.minecraft.client.Minecraft.isUnicode()Z
    at net.blay09.mods.eiramoticons.ClientProxy.init(ClientProxy.java:45) ~[eiramoticons-mc1.7.10-1.0.74-dev.jar:?]
    at net.blay09.mods.eiramoticons.EiraMoticons.init(EiraMoticons.java:31) ~[eiramoticons-mc1.7.10-1.0.74-dev.jar:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_45]
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_45]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_45]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_45]
    at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:532) ~[forgeSrc-1.7.10-10.13.3.1408-1.7.10.jar:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_45]
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_45]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_45]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_45]
    at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?]
    at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?]
    at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?]
    at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?]
    at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?]
    at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:212) ~[forgeSrc-1.7.10-10.13.3.1408-1.7.10.jar:?]
    at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:190) ~[forgeSrc-1.7.10-10.13.3.1408-1.7.10.jar:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_45]
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_45]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_45]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_45]
    at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?]
    at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?]
    at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) ~[guava-17.0.jar:?]
    at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) ~[guava-17.0.jar:?]
    at com.google.common.eventbus.EventBus.post(EventBus.java:275) ~[guava-17.0.jar:?]
    at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:119) [LoadController.class:?]
    at cpw.mods.fml.common.Loader.initializeMods(Loader.java:713) [Loader.class:?]
    at cpw.mods.fml.client.FMLClientHandler.finishMinecraftLoading(FMLClientHandler.java:310) [FMLClientHandler.class:?]
    at net.minecraft.client.Minecraft.startGame(Minecraft.java:597) [Minecraft.class:?]
    at net.minecraft.client.Minecraft.run(Minecraft.java:942) [Minecraft.class:?]
    at net.minecraft.client.main.Main.main(Main.java:164) [Main.class:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_45]
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_45]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_45]
    at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_45]
    at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.11.jar:?]
    at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.11.jar:?]
    at net.minecraftforge.gradle.GradleStartCommon.launch(Unknown Source) [start/:?]
    at GradleStart.main(Unknown Source) [start/:?]

Not all emotes appear even when enabled in cfg....

While I've set all the options to true in the config the following emotes either don't show or just show their typed text in chat.

These appear as their typed words

M&Mjc
:'(
She'llBeRight
O.o
:-O
:-P
:-/
:-Z
:-(
:-)
:-D
:D
;-P
;-)
B-)
R-) (Broken on twitch)

The following simply show a empty space like it's invisible but are still there

:D
CoolCat (Broken on twitch)
KAPOW (Broken on twitch)
PicoMause (Broken on twitch but shows in emote list)
TinyFace (Broken on twitch)
TooSpicy (Broken on twitch)

Crash

java.lang.StringIndexOutOfBoundsException: String index out of range: -73
at java.lang.String.substring(Unknown Source)
at net.blay09.mods.eiramoticons.render.FontRendererExt.extractEmotesToBuffer(FontRendererExt.java:68)
at net.blay09.mods.eiramoticons.render.FontRendererExt.func_85187_a(FontRendererExt.java:31)
at net.minecraft.client.gui.FontRenderer.func_78261_a(FontRenderer.java:253)
at net.minecraft.client.gui.GuiNewChat.func_146230_a(GuiNewChat.java:104)
at net.minecraftforge.client.GuiIngameForge.renderChat(GuiIngameForge.java:755)
at

Twitch emotes being funky

Hi!

While trying out your mod for the first time as part of Project Ozone, I saw an issue where Twitch emotes weren't displaying.

After some debugging, I think I have identified the issue. It appears that Twitch Emotes now returns a full https url in their API, like so:

https:\/\/static-cdn.jtvnw.net\/emoticons\/v1\/{image_id}\/1.0

(Excuse the mangling, copied straight from a file).

https://github.com/blay09/EiraMoticons/blob/mc1710/src/main/java/net/blay09/mods/eiramoticons/addon/pack/TwitchGlobalPack.java#L52

On this line, "http:" is added before the returned URL in order to create a "template". This obviously results in an invalid URL.

Changing it not to add "http:" before should fix the issue. If you would like me to do a pull request using GitHub's editor, please let me know and I will happily do so.

Thanks!

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.