Server sending data regarding discoverd items.

Thoughts on the further development of Haven & Hearth? Feel free to opine!

Server sending data regarding discoverd items.

Postby Xcom » Sat Jun 29, 2013 1:59 pm

Can we have a way to retrieve discovered items from the server.

With a bit of UI tinkering someone could make a map of whats been discovered. You can make it so you can see whats needed before you can craft specific items and whatnot. Making the map could be a community thing and a good programmer could combine the map with some code to match up with the data retrieved from the server to make them display in a fancy manner.

All that would be needed would be the server sending the client a list of all items that specific character have discovered.
User avatar
Xcom
 
Posts: 1105
Joined: Wed Dec 14, 2011 1:43 pm

Re: Server sending data regarding discoverd items.

Postby SuperNoob » Sat Jun 29, 2013 2:46 pm

I can see how this could be a good thing...especially when trying to keep track of alts :)
SuperNoob
 
Posts: 521
Joined: Sat May 11, 2013 1:41 am

Re: Server sending data regarding discoverd items.

Postby sabinati » Sat Jun 29, 2013 3:08 pm

uh, the server does send this to the client. how do you think the client knows what you can craft?
User avatar
sabinati
 
Posts: 15513
Joined: Mon Jul 13, 2009 4:25 am
Location: View active topics

Re: Server sending data regarding discoverd items.

Postby Xcom » Sat Jun 29, 2013 5:41 pm

If a nice map was made similar to this one. http://i.imgur.com/QKTgU.png but a bit more fancy with highlights and other things. You could simply check either each item discovery you have made and create a simple if statement for each one to unlock specific crafteble items. It would be a semi complicated if check but not to hard to implement map. Each discovery would simply indicate that you have unlocked enough items to craft a specific item or show what is not discovered and is required before it is possible to craft the item.

Here is an example of a crude map:
Image

The discovered items would simply be an array of booleans that would be checked by showing up on the arraylist of items sent from the server. If its found in that list they turn true. The list of boolean would simply be checked by an list of if statments making green or gray backgrounds for each item discoverd and not discovered. If the item is discovered it can also make other craftable gray background turn green.

Here on this map string and leather shows up on that arraylist sent from the server and turns leather and string true. This means those background colors are turned green instead of gray indicating whats been discovered. When both wax and leather is discovered the hard leather can be seen on the craftable menu. A different colored background could indicate this but to keep it simple to start of with it would stay gray until the item is discovered.
User avatar
Xcom
 
Posts: 1105
Joined: Wed Dec 14, 2011 1:43 pm

Re: Server sending data regarding discoverd items.

Postby Xcom » Sun Jun 30, 2013 6:23 am

sabinati wrote:uh, the server does send this to the client. how do you think the client knows what you can craft?


Wait it really does that? I looked through the code and didn't find any info other then what the character can craft.
User avatar
Xcom
 
Posts: 1105
Joined: Wed Dec 14, 2011 1:43 pm

Re: Server sending data regarding discoverd items.

Postby sabinati » Sun Jun 30, 2013 6:30 am

i mean, i don't know what it sends exactly but it has to send something for it to tell you what you can craft. maybe i'm not paying close enough attention to what you're saying?
User avatar
sabinati
 
Posts: 15513
Joined: Mon Jul 13, 2009 4:25 am
Location: View active topics

Re: Server sending data regarding discoverd items.

Postby SuperNoob » Sun Jun 30, 2013 3:03 pm

sabinati wrote:i mean, i don't know what it sends exactly but it has to send something for it to tell you what you can craft. maybe i'm not paying close enough attention to what you're saying?

he wants an addition of exactly what has been discovered added to what the server sends, not just a list of what you can craft. this way someone designing a custom client can add a craft tree so you can see what you're missing when trying to craft an item.

you know how we're always seeing questions in "how do I" about crafting something and its usually a missing discovery? this would be very helpful in those situations.
SuperNoob
 
Posts: 521
Joined: Sat May 11, 2013 1:41 am

Re: Server sending data regarding discoverd items.

Postby olgeigracexD » Sun Jun 30, 2013 7:37 pm

I found a bit hacky solution. After receiving RMSG_SFX message to play "Fanfare" sound, you can wait for ResId in WidgetFactory of the "Item" class.
Works fine even when inventory is full or when shift-clicking to discover linen shirt.

Problems:
a) Inventory window need always to be open to get message about new item (e.g. move it off-screen on "close")
b) It doesn't work for detecting discovery after making blocks/boards from a tree log
c) If it's UDP, you can get packets in a different order
Last edited by olgeigracexD on Sun Jun 30, 2013 10:40 pm, edited 2 times in total.
User avatar
olgeigracexD
 
Posts: 76
Joined: Wed Sep 08, 2010 7:40 pm

Re: Server sending data regarding discoverd items.

Postby Xcom » Sun Jun 30, 2013 10:23 pm

SuperNoob wrote:
sabinati wrote:i mean, i don't know what it sends exactly but it has to send something for it to tell you what you can craft. maybe i'm not paying close enough attention to what you're saying?

he wants an addition of exactly what has been discovered added to what the server sends, not just a list of what you can craft. this way someone designing a custom client can add a craft tree so you can see what you're missing when trying to craft an item.

you know how we're always seeing questions in "how do I" about crafting something and its usually a missing discovery? this would be very helpful in those situations.


Words taken right out of my mouth. Thanks for clarifying. :)

I don't know how hard it would be to implement but it would be a fun side project to work on if it was made possible by loft adding this. To start of with a simple picture diagram of all items would be displayed, later with a bit of help someone could make a nice tree to place all discovery items into there respective fitting category's and make it look nice and fancy.

Here is another neat but not so very good looking tree from minecraft: http://i.imgur.com/G3UMb.png
and a more fancy looking one: http://images3.wikia.nocookie.net/__cb20110726162236/theaetherminecraft/images/6/64/Achievements.png
User avatar
Xcom
 
Posts: 1105
Joined: Wed Dec 14, 2011 1:43 pm


Return to Critique & Ideas

Who is online

Users browsing this forum: No registered users and 25 guests