Guest Carnifex Posted January 26, 2011 Share Posted January 26, 2011 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: ZONE0ZONE1 ZONE2 ZONE3 ZONE4<- get localisation from this ZONE5 Maplist in Gipat: Code: GipatZONE0 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 Quote Link to comment Share on other sites More sharing options...
Setras Posted January 27, 2011 Share Posted January 27, 2011 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? Quote Link to comment Share on other sites More sharing options...
Setras Posted January 27, 2011 Share Posted January 27, 2011 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 Link to comment Share on other sites More sharing options...
Guest Carnifex Posted January 27, 2011 Share Posted January 27, 2011 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) Quote Link to comment Share on other sites More sharing options...
Guest Carnifex Posted January 27, 2011 Share Posted January 27, 2011 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) Quote Link to comment Share on other sites More sharing options...
Guest Carnifex Posted January 28, 2011 Share Posted January 28, 2011 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 Link to comment Share on other sites More sharing options...
SLA Posted January 29, 2011 Share Posted January 29, 2011 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) 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.