Change Villager's name - Printable Version +- Cuberite Forum (https://forum.cuberite.org) +-- Forum: Cuberite (https://forum.cuberite.org/forum-4.html) +--- Forum: Development (https://forum.cuberite.org/forum-13.html) +--- Thread: Change Villager's name (/thread-3192.html) Pages:
1
2
|
RE: Change Villager's name - NiLSPACE - 08-02-2018 What Minecraft version are you using? Could you try an older version? Perhaps it's a problem in the protocol code of Cuberite. RE: Change Villager's name - MGlolenstine - 08-02-2018 (08-02-2018, 04:20 PM)NiLSPACE Wrote: What Minecraft version are you using? Could you try an older version? Perhaps it's a problem in the protocol code of Cuberite. I'm using Minecraft 1.12.2,haven't tried with lower version. EDIT: Found the problem. In my text editor's font `v` and `V` look the same and I've tried to get VilName's value from vilName. I'm sorry for being bad at asking, but I thank you for wasting your time with me. RE: Change Villager's name - NiLSPACE - 08-02-2018 That still sounds like a bug. If it's a typo then the variable 'VilName' is probably nil which should've been reported in the console. RE: Change Villager's name - MGlolenstine - 08-02-2018 (08-02-2018, 09:47 PM)NiLSPACE Wrote: That still sounds like a bug. If it's a typo then the variable 'VilName' is probably nil which should've been reported in the console. Hmmm... It wasn't reported, otherwise I'd probably notice the problem sooner. Also, I'm having another problem rn, I'm setting Villager's name to "§l§6Villager", but it shows up as a "Villager " with trailing spaces in the background box at the end. RE: Change Villager's name - xoft - 08-02-2018 Probably some UTF-8 failure, check in another editor if your source code is properly encoded in UTF-8. RE: Change Villager's name - NiLSPACE - 08-03-2018 Could you try the cChatColor properties or the more advanced cCompositeChat class? RE: Change Villager's name - MGlolenstine - 08-03-2018 (08-03-2018, 01:22 AM)NiLSPACE Wrote: Could you try the cChatColor properties or the more advanced cCompositeChat class? I tried both of them, but neither worked as expected. @xoft my UTF-8 encoding is fine, nothing seems out of order. RE: Change Villager's name - xoft - 08-07-2018 Try starting the server with "--log-comm" parameter, it will create a detailed log of everything sent and received over the network (one file per client connection, in the CommLogs subfolder), then connect with the client and try to replicate the issue. Post the resulting log file here; you can inspect it for yourself, it should contain the string you're setting as the name. |