Thread Tools Display Modes
09/16/15, 02:20 PM   #1
dopiate
AddOn Author - Click to view addons
Join Date: Jun 2014
Posts: 142
Help With Item Name Changes

657815212341

Last edited by dopiate : 11/22/20 at 04:45 AM.
  Reply With Quote
09/16/15, 02:37 PM   #2
merlight
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 671
Are those words ingame? I'm asking because "ashs", "beechs", "birchs" seem to be missing an "e". Not sure about flax, but I'd say that one as well.

Edit: I still think "3 lumps of sanded birch" would be better

Last edited by merlight : 09/16/15 at 02:41 PM.
  Reply With Quote
09/16/15, 02:51 PM   #3
Garkin
 
Garkin's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 832
It looks like results from zo_strformat("<<2[1/$d]>> <<tm:1>>", itemLink, count) -this will try to automatically convert item name to plural if count is greater then 1.

From EsoStrings:
"[eng] You bought <<2[1/$d]>> <<tm:1>> for <<3>>.", -- SI_BUY_RECEIPT_MONEY
"[eng] You sold <<2[1/$d]>> <<tm:1>> for <<3>>.", -- SI_SELL_RECEIPT_MONEY

Last edited by Garkin : 09/16/15 at 02:55 PM.
  Reply With Quote
09/16/15, 04:52 PM   #4
merlight
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 671
I think you're misinterpreting it. Characters beyond the caret ^ are attributes of the word/expression for zo_strformat, so that it uses the proper form. Thus "sanded beech^ns" is not "sanded beech^n"s, it's "sanded beech" with attributes 'n' (neuter gender) and 's' (not described in that post, maybe it means "don't append s for plural").

Lua Code:
  1. zo_strformat("<<2[1/$d]>> <<tm:1>>", "sanded beech^ns", 5)
  2. -- 5 Sanded Beech
  Reply With Quote
09/16/15, 05:04 PM   #5
dopiate
AddOn Author - Click to view addons
Join Date: Jun 2014
Posts: 142
Originally Posted by merlight View Post
I think you're misinterpreting it. Characters beyond the caret ^ are attributes of the word/expression for zo_strformat, so that it uses the proper form. Thus "sanded beech^ns" is not "sanded beech^n"s, it's "sanded beech" with attributes 'n' (neuter gender) and 's' (not described in that post, maybe it means "don't append s for plural").

Lua Code:
  1. zo_strformat("<<2[1/$d]>> <<tm:1>>", "sanded beech^ns", 5)
  2. -- 5 Sanded Beech
I am talking strictly for how my addon handles data :-)

I do understand the item link string but I wrote a .Net routine more than a year ago and it handled that string just fine until I started seeing plurals in my offline database.

So I now had to address new incoming data and format it the old way and I used the ^ns as my way of knowing.

Keep in mind I'm parsing saved variables and then putting all of that data into a .NET database and the GUI is the viewer.

What I am saying should not be misinterpreted to be any insight into LUA or any in game code. For me the new format appended s to multiples and I had to deal with existing saved data with that already attached and format incoming data to match.

It's for my code in .NET specifically so when you do a drop down on items you don't see cotton and cottons.

I had to make code changes for consistency and for incoming new data the ^ns is actually a big help.

I appreciate you correcting me but I should have been more specific. This affects users of my program only and I was looking for more items so I could put that out with the release.

I just uploaded it now so to users of GSA it will make sense and fix any data inconsistency.

I can tell you with 100% certainty that ^ns does mean an item is multiples of that item. I have seen it nowhere else and it works for me perfectly. It seems to only apply to raw materials for crafting.

It seems I may have discovered what s is used for by accident but now you have confirmation. It's not on Garkins list but it should be now. After working on this for the last two days I can tell you it means an item is a multiple stack. So far that is everything on this list.

-d

Last edited by dopiate : 09/16/15 at 05:18 PM.
  Reply With Quote
09/16/15, 05:26 PM   #6
merlight
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 671
Originally Posted by dopiate View Post
I am talking strictly for how my addon handles data :-)

I do understand the item link string but I wrote a .Net routine more than a year ago and it handled that string just fine until I started seeing plurals in my offline database.
You're not seeing plurals. You're seeing what's probably the result of wrongly removing "^n" and leaving the trailing "s" in place. Why not just use zo_strformat, you wouldn't even notice they changed something had you used that before saving the strings.

Originally Posted by dopiate View Post
I can tell you with 100% certainty that ^ns does mean an item is multiples of that item. I have seen it nowhere else and it works for me perfectly. It seems to only apply to raw materials for crafting.
I've just split a stack of sanded maple in my bank:
slot 204 ... 21 Sanded Maple ... GetItemLink(2, 204) returns "sanded maple^ns"
slot 236 ... 1 Sanded Maple ... GetItemLink(2, 236) returns "sanded maple^ns"

Item links don't carry information about quantity.


edit: tried it with and without the 's' flag out of curiosity:
Lua Code:
  1. zo_strformat("<<2[1/$d]>> <<tm:1>>", "sanded maple^ns", 5)
  2. -- 5 Sanded Maple
  3.  
  4. zo_strformat("<<2[1/$d]>> <<tm:1>>", "sanded maple^n", 5)
  5. -- 5 Sanded Maples

Last edited by merlight : 09/16/15 at 05:30 PM.
  Reply With Quote
09/16/15, 05:53 PM   #7
dopiate
AddOn Author - Click to view addons
Join Date: Jun 2014
Posts: 142
Originally Posted by merlight View Post
You're not seeing plurals. You're seeing what's probably the result of wrongly removing "^n" and leaving the trailing "s" in place. Why not just use zo_strformat, you wouldn't even notice they changed something had you used that before saving the strings.
I wrote this program a year ago. Its .NET not LUA and I don't even generate the data anymore, I threw all in with Master Merchant.

What good would changing my working code?

Again, I'm not writing 1 line of LUA, just parsing it.

Originally Posted by merlight View Post
Item links don't carry information about quantity.
OK, I was wrong about it's use. As I said this is just for my code and I was just asking other users for items.

You are correct I do use replacement:

Code:
                    line = Replace(line, "^p", "", 1, -1)
                    line = Replace(line, "^ns", "", 1, -1)
                    line = Replace(line, "^n", "", 1, -1)
You are correct the middle line did not exist in the previous version and that's where I got my s from.

here is the only thing I can tell you for sure then, it works for me and my program so the data is consistent.

I said this has no bearing on ANY in game code and I thought maybe I found something (which you proved incorrect).

There is only ^ns on the type of items I showed you, you can draw your own conclusions, I just needed a marker to correct incoming data. For me the ^ns was a gift from the LUA gods.

Lua Code:
  1. ["itemLink"] = "|H0:item:533:30:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|hsanded oak^ns|h"
  2. ["itemLink"] = "|H0:item:794:30:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|hrawhide^ns|h"
  3. ["itemLink"] = "|H0:item:803:30:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|hsanded maple^ns|h"
  4. ["itemLink"] = "|H0:item:818:30:46:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|hrough birch^ns|h"
  5. ["itemLink"] = "|H0:item:46131:30:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0|hKresh Fiber^ns|h"

Feel free to draw your own conclusion - I just pointed out a pattern I saw and it works for me.

All I wanted to do was get a few more items from users of GSA before the update.

My new version works fine, I made the necessary changes and that's all I was looking to do.

Now maybe someone can figure out why only raw crafting items have that ^ns ... maybe it's useful for something. There is no denying there is a pattern.

-d
  Reply With Quote

ESOUI » AddOns » AddOn Help/Support » Help With Item Name Changes


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off