by loftar » Sun Nov 14, 2010 10:51 pm
Well... it's not that it couldn't be done, but the whole tooltip would have to be transfered as text for each item, so transferring a whole cupboard full of food items with FEP-tips would require quite a bit of bandwidth.
I'm not sure just how I want to solve it. One way would be to compress that part of the protocol (it's part of a message stream that can be compressed meaningfully), but I'm not too sure how gzip syncing would handle the message boundaries; I'd have to examine that empirically. Otherwise, I'm considering doing some kind of "tooltip template" as a resource, which the server could simply specify and populate with numerical values. That alone would make the whole thing a lot better, bandwidth-wise (and it might be better for client modders as well, seeing how the information is represented in the abstract and could be used for other things than tooltip generation).
I'd like to do the same thing for a large range of other things as well, including for instance armor and weapons.
"Object-oriented design is the roman numerals of computing." -- Rob Pike