Sevtech-ages: Villager Name Discrepancies

Created on 1 Sep 2017  路  7Comments  路  Source: DarkPacks/SevTech-Ages

Some of the villagers show one name/job when hovering over them, but a different one when activating a trade. Here are the ones I've found:

  • Leatherworker displays as butcher
  • Fletcher displays as farmer, shepherd, or fisherman
  • Cartographer displays as librarian
  • Fisherman displays as fletcher
  • Farmer displays as fletcher

2017-08-31_21 08 13
2017-08-31_21 38 22
2017-08-31_21 39 54
2017-08-31_21 41 39
2017-08-31_21 41 55
2017-08-31_21 58 06
2017-08-31_21 59 00

"Interesting" Reported To Mod Bug

All 7 comments

Definitely a bug, but I'm not too sure on how to fix it yet. I'll dig into more later on. Thanks!

This is an issue with the Neat mod and has been open with no comment or tag since Aug 5, 2016.

https://github.com/Vazkii/Neat/issues/18

So I traced around in the code a bit and it looks like the issue is caused because the client doesn't have the proper villager career ID. The server sends a packet to tell the client to open the GUI and provides the client with the correct villager name at that time.

My understanding is that entities use the DataManager to sync data with the client. The villager profession is contained in the DataManager and therefore gets synced, however, since the villager career ID is not contained in the DataManager, it doesn't get synced with the client.

This could very well be a vanilla or Forge issue.

Charset 0.5.0's latest build works around it, but the module has to be enabled manually.

It synchronizes careerId from server to client and sets careerLevel to 1 if it's equal to 0 (aka not set), as otherwise populateBuyingList() (which is called by getDisplayName() for some reason I don't understand) will reset careerId to a random one. Synchronizing careerLevel is unnecessary so I left it be - not too much spoiling for the user...

Apparently, the correct solution is to run getDisplayName() on the server. Welp.

Yep, so this is going to be fixed by Vazkii to just give villagers the "Villager" name instead of their jobs. It's the best fix that can be done and should work just fine :D

I would suggest that if the villager names are not changed (as they are not as of Beta4) to add in both name types into any quest descriptions. For example: On the quest Lost but Now Found: Saying to "Trade for a map from a Cartographer villager" could be changed to "Trade for a map from a Cartographer or Librarian villager" which would allow for either the bug to be fixed or not in the future.

Was this page helpful?
0 / 5 - 0 ratings