Thread Tools Display Modes
04/14/14, 12:18 AM   #1
Sharlikran
 
Sharlikran's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 644
Help finding list of SI_GAMECAMERAACTIONTYPE

Where can one find a list of the SI_GAMECAMERAACTIONTYPE numbers. Esohead does not record Pure Water, which gives you water for alchemy when you loot it.
  Reply With Quote
04/14/14, 01:15 AM   #2
Xrystal
caritas omnia vincit
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 369
It should be the same as harvesting in general. I don't use the camera action type value to test with so not 100% sure it's the same value. But from memory the value is derived from a string generated from sigameaction and a number denoting which action you were doing.
  Reply With Quote
04/14/14, 04:20 AM   #3
Sharlikran
 
Sharlikran's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 644
Since I could not find a list, then I just told the program to display the string associated with the Action Type. I didn't go past 20.

Search: SI_GAMECAMERAACTIONTYPE1
Talk: SI_GAMECAMERAACTIONTYPE2
Harvest: SI_GAMECAMERAACTIONTYPE3
Disarm: SI_GAMECAMERAACTIONTYPE4
Use: SI_GAMECAMERAACTIONTYPE5
Read: SI_GAMECAMERAACTIONTYPE6
Take: SI_GAMECAMERAACTIONTYPE7
Destroy: SI_GAMECAMERAACTIONTYPE8
Repair: SI_GAMECAMERAACTIONTYPE9
Inspect: SI_GAMECAMERAACTIONTYPE10
Repair: SI_GAMECAMERAACTIONTYPE11
Unlock: SI_GAMECAMERAACTIONTYPE12
Open: SI_GAMECAMERAACTIONTYPE13
Undefined: SI_GAMECAMERAACTIONTYPE14
Examine: SI_GAMECAMERAACTIONTYPE15
Fish: SI_GAMECAMERAACTIONTYPE16
Real In: SI_GAMECAMERAACTIONTYPE17
Pack Up: SI_GAMECAMERAACTIONTYPE18
Undefined: SI_GAMECAMERAACTIONTYPE19
Undefined: SI_GAMECAMERAACTIONTYPE20

Cut probably exists but no idea which number it is.

Last edited by Sharlikran : 04/14/14 at 11:05 AM.
  Reply With Quote
04/14/14, 01:47 PM   #4
Xrystal
caritas omnia vincit
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 369
Collect Cut Gather comes under harvest as an action for the harvest interaction. Occasionally I get search use and a few others crop up as a harvest action when using something totally different.

But thanks for the list. It looks like I may be able to limit the chances of a wrong interact if I throw that test in as well.
  Reply With Quote
04/14/14, 03:47 PM   #5
Sharlikran
 
Sharlikran's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 644
Do you know how to concat two stings, especially when one is an integer? I'm still a little weak with some of the lua syntax.

Code:
for i = 1, 50 do
  d( GetString("SI_GAMECAMERAACTIONTYPE" .. tostring(i)) )
end
Wouldn't that make it such that as i increases it would use 'SI_GAMECAMERAACTIONTYPE1', 'SI_GAMECAMERAACTIONTYPE2', and so on so I could automate making a better list of those constants?
  Reply With Quote
04/14/14, 04:04 PM   #6
Xrystal
caritas omnia vincit
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 369
Yes that is pretty much it .. let's look up how I did it for the item type one I use ..

Ah here we go, I use the following to get the string for Item Type.

local itemTypeString = GetString(_G["SI_ITEMTYPE"..itemType])

So for the action types you could do ..
actionString = GetString(_G["SI_GAMECAMERAACTIONTYPE"..i])

Looking at the Raw Global dump there doesn't seem to be a no 14 and no number higher than 18.
  Reply With Quote
04/14/14, 04:15 PM   #7
Sharlikran
 
Sharlikran's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 644
Originally Posted by Xrystal View Post
Yes that is pretty much it .. let's look up how I did it for the item type one I use ..

Ah here we go, I use the following to get the string for Item Type.

local itemTypeString = GetString(_G["SI_ITEMTYPE"..itemType])

So for the action types you could do ..
actionString = GetString(_G["SI_GAMECAMERAACTIONTYPE"..i])

Looking at the Raw Global dump there doesn't seem to be a no 14 and no number higher than 18.
Since you already did that, which is awesome, how high did you set your loop?
  Reply With Quote
04/14/14, 05:02 PM   #8
Xrystal
caritas omnia vincit
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 369
I didn't. I just needed to use it to extract the localized word for the item type for my addon.

Hard to say what the loop should say. I would suggest, assuming the constants in the global page on the wiki are accurate and the gamecameraaction constant only goes up to 18, that you stop at 20.
  Reply With Quote
04/14/14, 09:14 PM   #9
Seerah
Fishing Trainer
 
Seerah's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Feb 2014
Posts: 648
To add to the above, the reason why Xrystal did not do tostring(i) is because Lua automatically converts a number to a string when doing concatenation.
  Reply With Quote

ESOUI » Developer Discussions » Lua/XML Help » Help finding list of SI_GAMECAMERAACTIONTYPE


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