Thread Tools Display Modes
04/02/14, 01:13 PM   #1
Halja
 
Halja's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 111
GetCVar for game build type?

I know this is probably a loaded question...

Is the global ["SETTING_TYPE_LANGUAGE"] just what language the client is running under? Can I detect the game build language/type? ["_VERSION"] is build number only right?

I'm getting reports for my add-on which make me think there is a build difference between US and EU. I see that the game has GetCVar. I'm at work at the moment and have not poked and/or peek with it yet. I was hoping some already know if the is a CVar for US or EU build in game memory.
--halja
  Reply With Quote
04/04/14, 03:18 AM   #2
Grischu
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 5
/script d(SETTING_TYPE_LANGUAGE)

return values on EU-Megaserver are
german 12
french 12
english 12


For Language is this perhaps a solution

Code:
function GetClientLanguage()
 -- GetErrorString(16) return values
 -- english "Off balance target"
 -- german "Ziel aus dem Gleichgewicht"
-- french "Cible étoudie"

 local language="fr"
 local errorstring == GetErrorString(16)
 if errorstring = "Ziel aus dem Gleichgewicht" then
 language="de"
 elseif errorstring == "Off balance target" then
 language="en"
 end
 return language
 end

Last edited by Grischu : 04/04/14 at 03:24 AM.
  Reply With Quote

ESOUI » Developer Discussions » General Authoring Discussion » GetCVar for game build type?


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