Thread Tools Display Modes
09/03/15, 04:17 AM   #1
JohnnyKing94
 
JohnnyKing94's Avatar
Join Date: Mar 2015
Posts: 45
An implementation to do for Zos developers

Why anyone in Zos Team created an api for the game which returns IDs for the races... we have GetUnitRace which returns the string of the race according to the loaded language (fr, eng, de) and this is terrible... but we have no GetUnitRaceID... the GetUnitRaceID would be awesome... please developers add this feature

Thx
  Reply With Quote
09/03/15, 04:38 AM   #2
Ayantir
 
Ayantir's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 1,019
Write it yourself ? shouldn't be hard

1 for Breton
2 for Orc
3 for Redguard
4 for Hight Elf (Altmer)
5 for Wood Elf (Bosmer)
6 for Khajiit
7 for Argonian
8 for Dark Elf (Dunmer)
9 for Nord
10 for Imperial

etc..
  Reply With Quote
09/03/15, 04:43 AM   #3
JohnnyKing94
 
JohnnyKing94's Avatar
Join Date: Mar 2015
Posts: 45
Originally Posted by Ayantir View Post
Write it yourself ? shouldn't be hard

1 for Breton
2 for Orc
3 for Redguard
4 for Hight Elf (Altmer)
5 for Wood Elf (Bosmer)
6 for Khajiit
7 for Argonian
8 for Dark Elf (Dunmer)
9 for Nord
10 for Imperial

etc..
It's not that simple, cause if i load a Frenh language, i will have
ID - French (Female | Male)
1 - Brétonne | Bréton
2 - Rougegarde | Rougegarde
3 - Orque | Orque
4 - Elfe Noire | Elfe Noir
5 - Nordique | Nordique
6 - Argonienne | Argonien
7 - Haute-Elfe | Haut-Elfe
8 - Elfe des bois | Elfe des bois
9 - Khajiit | Khajiit
10 - Impériale | Impérial

it's a mess and this is only french (there is also german), only if you load the english language u have no female and male cases, but if you use other languages and these people use your addon... it's a total mess.. it would be simplier to implement a local feature that could be done only by ZOS devs...

Since they did the similar thing with alliances and classes, why not here?

Last edited by JohnnyKing94 : 09/03/15 at 04:49 AM.
  Reply With Quote
09/03/15, 04:55 AM   #4
Garkin
 
Garkin's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 832
Create a lookup table, something like this:
http://www.esoui.com/forums/showthre...0807#post10807
  Reply With Quote
09/03/15, 05:00 AM   #5
JohnnyKing94
 
JohnnyKing94's Avatar
Join Date: Mar 2015
Posts: 45
Originally Posted by Garkin View Post
Create a lookup table, something like this:
http://www.esoui.com/forums/showthre...0807#post10807
Yes I know, that would be my last chance... the meaning of opening this thread is to wait an aswer from someone in the ZOS dev team... i never lose hope
  Reply With Quote
09/03/15, 05:07 AM   #6
Ayantir
 
Ayantir's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2014
Posts: 1,019
ZOS don't add functions except at API bump, so you'll need to do this or wait orsinium, and they'll MAYBE do it.


Lua Code:
  1. local raceTable = {
  2.    ["Breton"] = 1,
  3.    ["Bretone"] = 1, --de, male
  4.    ["Bretonin"] = 1, --de, female
  5.    ["Bréton"] = 1, --fr, male
  6.    ["Brétonne"] = 1, --fr, female
  7.    ["Orc"] = 2,
  8.    ["Ork"] = 2, --de, male/female
  9.    ["Orque"] = 2, --fr, male/female
  10.    ["Redguard"] = 3,
  11.    ["Rothwardone"] = 3, --de, male
  12.    ["Rothwardonin"] = 3, --de, female
  13.    ["Rougegarde"] = 3, --fr, male/female
  14.    ["High Elf"] = 4,
  15.    ["Hochelf"] = 4, --de, male
  16.    ["Hochelfin"] = 4, --de, female
  17.    ["Haut-Elfe"] = 4, --fr, male
  18.    ["Haute-Elfe"] = 4, --fr, female
  19.    ["Wood Elf"] = 5,
  20.    ["Waldelf"] = 5, --de, male
  21.    ["Waldelfin"] = 5, --de, female
  22.    ["Elfe des bois"] = 5, --fr, male/female
  23.    ["Khajiit"] = 6,
  24.    ["Argonian"] = 7,
  25.    ["Argonier"] = 7, --de, male
  26.    ["Argonierin"] = 7, --de, female
  27.    ["Argonien"] = 7, --fr, male
  28.    ["Argonienne"] = 7, --fr, female
  29.    ["Dark Elf"] = 8,
  30.    ["Dunkelelf"] = 8, --de, male
  31.    ["Dunkelelfin"] = 8, --de, female
  32.    ["Elfe Noir"] = 8, --fr, male
  33.    ["Elfe Noire"] = 8, --fr, female
  34.    ["Nord"] = 9,
  35.    ["Nordique"] = 9, --fr, male/female
  36.    ["Imperial"] = 10,
  37.    ["Kaiserlicher"] = 10, --de, male
  38.    ["Kaiserliche"] = 10, --de, female
  39.    ["Impérial"] = 10, --fr, male
  40.    ["Impériale"] = 10, --fr, female
  41. }
  42.  
  43. function GetUnitRaceId(unitTag)
  44.     if unitTag then return raceTable[zo_strformat(SI_RACE_NAME, GetUnitName(unitTag))] end
  45.     return nil
  46. end
  Reply With Quote
09/03/15, 05:13 AM   #7
JohnnyKing94
 
JohnnyKing94's Avatar
Join Date: Mar 2015
Posts: 45
Originally Posted by Ayantir View Post
ZOS don't add functions except at API bump, so you'll need to do this or wait orsinium, and they'll MAYBE do it.


[...]
It's not an optimal solution, have you ever thought about unofficial languages like (spanish etc)... i can't do a table for everything... it's more easier as i wrote in the topic title that ZOS implement this in the API... since there is already an IDs (index) races list in the lang file... they need just to implement this in the APIs, nothing more... sometimes some devs visit this forum and i hope for that

Thank you
  Reply With Quote
09/03/15, 07:57 AM   #8
ZOS_ChipHilseberg
ZOS Staff!
Premium Member
Yes this person is from ZeniMax!
Join Date: Oct 2014
Posts: 551
Adding GetUnitRaceId to the API won't be a problem for the next big update.
  Reply With Quote
09/03/15, 09:11 AM   #9
JohnnyKing94
 
JohnnyKing94's Avatar
Join Date: Mar 2015
Posts: 45
Originally Posted by ZOS_ChipHilseberg View Post
Adding GetUnitRaceId to the API won't be a problem for the next big update.
So basically at the Update 8? or to the next "big" patch?

Last edited by JohnnyKing94 : 09/03/15 at 09:17 AM.
  Reply With Quote
09/03/15, 10:01 AM   #10
QuadroTony
Banned
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 828
Originally Posted by JohnnyKing94 View Post
So basically at the Update 8? or to the next "big" patch?
Orsinium, mate
Orsinium

between DLCs now will be only small updates with fixes
  Reply With Quote
09/03/15, 10:48 AM   #11
JohnnyKing94
 
JohnnyKing94's Avatar
Join Date: Mar 2015
Posts: 45
Originally Posted by QuadroTony View Post
Orsinium, mate
Orsinium

between DLCs now will be only small updates with fixes
Ok thank you... i'll be waiting
  Reply With Quote

ESOUI » AddOns » AddOn Search/Requests » An implementation to do for Zos developers


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