Перейти к содержанию

Дайджесты за январь-февраль

Обновления гайдов и аддонов

Январь Февраль

Мониторинг серверов и редактор аддонов

Представляем вам две легенды. То, о чем можно было только мечтать, стало реальностью.

Мониторинг серверов Редактор аддонов

Подсказки из игры на вашем сайте

Теперь вы можете отображать сведения о внутриигровых элементах простым наведением курсора мыши.

Подробнее

Апдейтер аддонов

Представляем вам программу для автообновления аддонов и делимся подробностями.

Подробнее Скачать

GetGameLocalization BROKEN ON EU CLIENT SINCE TODAY's PATCH


Гость Carnifex

Рекомендуемые сообщения

fuck, it is more complicated: GetGameLocalization is broken in gipat, because if you are in gipat, the zone, which was on 4th place is then on 5th place -.- (because in our gameversion gipat is add on 0th place and not on last place)

BTW: Gipat is the lvl41 and lvl 42 zone, maybe we can fix it so: (if no letter came twice)

Code:
function GetGameLocalization()

return ({ ["\255"] ="rus", ["\108"] ="eng", ["\112"] ="ger", ["\105"] ="ger", ["\114"] ="fra"})

 [string.sub(userMods.FromWString(cartographer.GetMapBlockInfo(

cartographer.GetMapBlocks()[4] ).name),3,3)] or "eng"

end

french and english eu server should have the same problem

Explination:

Maplist in another zone than Gipat:

Code:
ZONE0

ZONE1

ZONE2

ZONE3

ZONE4<- get localisation from this

ZONE5

Maplist in Gipat:

Code:
Gipat

ZONE0

ZONE1

ZONE2

ZONE3<- get localisation from this -> wrong localisation -> if addon use ClassDetection: error

ZONE4

ZONE5

BTW: It was to boring in the last time, so here you have the next error in most of the addons xD

Ссылка на комментарий
Поделиться на другие сайты

Man, once you'll get the ".pak-method" you'll not need thsese functions anymore, anyways we can use english as default localization and just add "rus" as optional for russia (as it is supported by our clients")

BTW what did this patch give you? Lvl 41-42 cap increasing?

Ссылка на комментарий
Поделиться на другие сайты

You can check if zine 0 is gipat, that's all. 1-st letter of Gipat is G in all languages, isn't? And if it's gipat - just check 5-th, not 4-th one.

Ссылка на комментарий
Поделиться на другие сайты

Quote:
BTW what did this patch give you? Lvl 41-42 cap increasing?

No only worser localization and non working game-server -.- (why you are asking? xD)
Ссылка на комментарий
Поделиться на другие сайты

ok, its not only a problem of gipat, its also a problem of the unknow are (astral...) and this should be transalted different (Unbekanntes Gebiet in german)

Ссылка на комментарий
Поделиться на другие сайты

I think it's time to completly rewrite this function because:

1. The current version do not work in some zone.

2. The current version will not work with locals, which also use no latin characters. (e.g. chinese would be detected as russian)

3. The Locals for mapnames will nearly sure not be changed anymore.

So write for every local the name of one zone in a table and make a fullnamesearch as for i=1,5 do cartographer.GetMapBlocks() ).name==... , because this will fix problem 1.

Ссылка на комментарий
Поделиться на другие сайты

Quote:
GetGameLocalization is broken in gipat, because if you are in gipat, the zone, which was on 4th place is then on 5th place -.- (because in our gameversion gipat is add on 0th place and not on last place)


12345jo7.jpg

Quote:
I think it's time to completly rewrite this function because:
<...>
So write for every local the name of one zone in a table and make a fullnamesearch as for i=1,5 do cartographer.GetMapBlocks() ).name==... , because this will fix problem 1.

I agree, probably this is the only solution, which solves this problem once and for all (with the possibility of similar problems in the future patches from gPotato). Here is an updated version of GetGameLocalization():

HOW-TO: Multilangual addon
.
Ссылка на комментарий
Поделиться на другие сайты

Гость
Ответить в этой теме...

×   Вставлено с форматированием.   Восстановить форматирование

  Разрешено использовать не более 75 эмодзи.

×   Ваша ссылка была автоматически встроена.   Отображать как обычную ссылку

×   Ваш предыдущий контент был восстановлен.   Очистить редактор

×   Вы не можете вставлять изображения напрямую. Загружайте или вставляйте изображения по ссылке.

×
×
  • Создать...

Важная информация

Пользуясь сайтом, вы принимаете Условия использования