Jump to content

Digest October

We talk about what was done and updated in the past month. We help keep abreast of events.

Read more

Servers monitoring and the Addons Editor

We present you two legends. All dreams come true.

Servers monitoring The Addons Editor

Game tooltips

Tooltips provide a way for 3rd party fansites and extensions to display detailed information on mouseover.

Read more

GetGameLocalization BROKEN ON EU CLIENT SINCE TODAY's PATCH


Guest Carnifex
 Share

Recommended Posts

Guest 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

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

Guest Carnifex
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)
Link to comment
Share on other sites

Guest Carnifex

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)

Link to comment
Share on other sites

Guest Carnifex

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.

Link to comment
Share on other sites

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
.
Link to comment
Share on other sites

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

By using our site you agree to the Terms of Use