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.
-
Xcom
- Posts: 1105
- Joined: Wed Dec 14, 2011 1:43 pm
-
SuperNoob
- Posts: 521
- Joined: Sat May 11, 2013 1:41 am
Re: Server sending data regarding discoverd items.
I can see how this could be a good thing...especially when trying to keep track of alts 
-
sabinati
- Posts: 15527
- Joined: Mon Jul 13, 2009 4:25 am
- Location: View active topics
Re: Server sending data regarding discoverd items.
uh, the server does send this to the client. how do you think the client knows what you can craft?
-
Xcom
- Posts: 1105
- Joined: Wed Dec 14, 2011 1:43 pm
Re: Server sending data regarding discoverd items.
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:

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.
Here is an example of a crude map:

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.
-
Xcom
- Posts: 1105
- Joined: Wed Dec 14, 2011 1:43 pm
Re: Server sending data regarding discoverd items.
Wait it really does that? I looked through the code and didn't find any info other then what the character can craft.sabinati wrote:uh, the server does send this to the client. how do you think the client knows what you can craft?
-
sabinati
- Posts: 15527
- Joined: Mon Jul 13, 2009 4:25 am
- Location: View active topics
Re: Server sending data regarding discoverd items.
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?
-
SuperNoob
- Posts: 521
- Joined: Sat May 11, 2013 1:41 am
Re: Server sending data regarding discoverd items.
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.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?
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.
-
olgeigracexD
- Posts: 76
- Joined: Wed Sep 08, 2010 7:40 pm
Re: Server sending data regarding discoverd items.
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
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.
-
Xcom
- Posts: 1105
- Joined: Wed Dec 14, 2011 1:43 pm
Re: Server sending data regarding discoverd items.
Words taken right out of my mouth. Thanks for clarifying.SuperNoob wrote: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.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?
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.
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/__cb2 ... ements.png