Everything posted by Lucavon
-
Paragraph signs messed up?
That worked, thanks!
-
Paragraph signs messed up?
Hi! Whenever I compile or debug my mod (Forge 1.8.9 11.15.1.1902), the § signs are replaced with a weird � character. Here's an example: §11 §22 §33 §44 §55 §66 §77 §88 §99 §00 §aa §bb §cc §dd §ee §ff is displayed as �11 �22 �33 �44 �55 �66 �77 �88 �99 �00 �aa �bb �cc �dd �ee �ff in chat. If I decompile the class in the compiled mod, the § are replaced with �; however, the .java files I'm using Eclipse to compile, it worked just fine a couple days ago. Do you have any idea what this is caused by and how I can fix it? Thanks!
-
[Solved / Impossible] [1.8.9] Unregister a KeyBinding?
That's exactly what I am doing at the moment. Hmm, I can't do what I'm trying to do this way then... thanks anyway!
-
[Solved / Impossible] [1.8.9] Unregister a KeyBinding?
Hi! I'm registering a KeyBinding using this code: [embed=425,349] public static KeyBinding debugKey = new KeyBinding("Debug Key", Keyboard.KEY_H, "Debug"); ClientRegistry.registerKeyBinding(debugKey); [/embed] Now my question is, since there is nothing like ClientRegistry.unregisterKeyBinding() , if there is a way to unregister a KeyBinding again? What I'm trying to do is to only add the KeyBinding when, for example, the user has a certain item in the inventory. If they don't have it in their inventory, the keybinding simply does not exist. I know there are different ways to do that, but what I need to do is exactly that - unregistering (and registering) KeyBindings on runtime. Is this possible? Thanks, -Lucavon
-
[1.8] Changing the player name plate results in the nameplate not being centered
But what does NameFormat have to do with a String rendered on the for example scoreboard? Is there a way to "modify" the FontRenderer with Forge to change a text COMPLETELY without typing like 100 lines? What I am doing is a little experiement, therefore I do not want to really work that hard on it.... by modifying the base files I just had to type one line and everything that contained "Lucavon" for example was changed to "Test", the only issue being the background of the player name tag. I don't know how to use the NameFormat thingy like at all, I do not even know where I would insert that...
-
[1.8] Changing the player name plate results in the nameplate not being centered
Alright, I have just installed forge and eclipse and all that, now my question is: Is there a simple way to replace a string, no matter where it appears, may it be in in chat, in a book, in the tab list, on the score board etc with another string? Thanks, -Lucavon
-
[1.8] Changing the player name plate results in the nameplate not being centered
Hey everyone! I'm Lucavon (I'm new here), and I joined the forums to seek help for one problem I have: I editen the FontRenderer class to replace a player's name with something else using this code: p_180455_1_ = p_180455_1_.replaceAll("Lucavon" , "test"); . The problem is: The name plate of my test player is not centered above their head like it usually is, it goes to the right by far more than it is supposed to (if I make the new name longer than the old one). How do I re-calculate the plate position for the new, longer name? I am currently only modifying default MC classes generated by the MCP, however I will use forge for the rest of my project, but for this thing I'd like to stay "forge-undependent". Thanks for your help! -Lucavon
IPS spam blocked by CleanTalk.