aa1982 / wot-xvm

Automatically exported from code.google.com/p/wot-xvm
0 stars 0 forks source link

minimap MapSizeBase add german map names #261

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
hi,
i have a patch with the germen mapnames as patch
i hope it help u finish the minimap faster ;)

gj

mEDI

Original issue reported on code.google.com by rene.wu...@gmail.com on 26 Jan 2013 at 10:07

GoogleCodeExporter commented 9 years ago
O_O ! All europe people has localized WoT client versions? French? Spain? 
Romanian etc??

Original comment by ilitvinov87@gmail.com on 28 Jan 2013 at 6:29

GoogleCodeExporter commented 9 years ago

Original comment by ilitvinov87@gmail.com on 28 Jan 2013 at 6:34

GoogleCodeExporter commented 9 years ago
yes ;/ i think the beter way is to use the internel name (replay mapname) i do 
not know wat data u from the api can get

the Eu server have 22 localisazions oO

the replay mapname is on all the same so i think he know the basic name

Original comment by rene.wu...@gmail.com on 28 Jan 2013 at 12:57

GoogleCodeExporter commented 9 years ago
I did not find internal name inside flash resources. That is why im working 
around dirty way.

http://code.google.com/p/wot-xvm/source/browse/#svn%2Ftrunk%2Fsrc%2Fxvm%2Fsrc%2F
wot%2FMinimap%2Fmodel%2FmapSize

You can check that yourself by adding Logger.addObject(_root, "_root", 2); 
almost anywhere. Logger.addObject(_root, "_root", 3); works very long time.

Maybe i should take some hash like md5 of background image MovieClip. Or 
BitmapData stuff.

Original comment by ilitvinov87@gmail.com on 28 Jan 2013 at 6:15

GoogleCodeExporter commented 9 years ago
i have a other idea! can u use .mo files? locales? all map names from the 
current installation found u in
c:\Games\World_of_Tanks\res\text\LC_MESSAGES\arenas.mo + translation
this way sold on all languarges work

Original comment by rene.wu...@gmail.com on 29 Jan 2013 at 1:53

GoogleCodeExporter commented 9 years ago
Thanks. I will check into this some day.

Original comment by ilitvinov87@gmail.com on 29 Jan 2013 at 3:59

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Please, use your native language and translate your text with some program like 
http://translate.google.cn

Original comment by ilitvinov87@gmail.com on 31 Jan 2013 at 8:55

GoogleCodeExporter commented 9 years ago
Just to confirm: Yes, all languages have the map names customized to a degree. 
Some map names are untouched (like Himmelsdorf), some are translated (like Sand 
River). That depends entirely on the map name itself.
The only things, that should be completely untouched, are the tank names. Even 
some tank module names have been translated (signal flags, for example).
With regards,
Official translator of Estonian locale.

Original comment by mik...@gmail.com on 2 Feb 2013 at 11:01

GoogleCodeExporter commented 9 years ago
Are you *sure* WOT does not export it's localization api to flash/actionscript 
somehow?

Because the battle loading header & texts sure come from those localized files 
(for example 'type/ctf/name' & 'type/ctf/description' ;)

At least inside the XMLs it's coded like "#<mofile>:resourcekey", so in case of 
mapnames, you'd probably go with something like "#arenas:23_westfeld/name" to 
get the current locale's name for westfield.

If I knew how to add my own actionscript, I'd poke around a bit there, but 
flash is sadly not my thing :(

I've attached an english localized .po for the arenas where the resource keys 
for the mapnames should be evident (There's a _ton_ of unpublished arena names 
in there - looking forward to those).

Original comment by emh...@gmail.com on 3 Feb 2013 at 3:44

Attachments:

GoogleCodeExporter commented 9 years ago
he can use as3-gettext its a port from gnu.gettext for actionscript
https://github.com/vincent-petithory/as3-gettext/blob/master/samples/HelloWorld/
src/HelloWorld.as

but it would be better if he could use the internal classe on game

Original comment by rene.wu...@gmail.com on 3 Feb 2013 at 4:15

GoogleCodeExporter commented 9 years ago
I just took another poke at the ingame scripts, and from what *I* can see, 
localization seems to be built into the UI...

From this little nugget inside battleloading.swf, Symbol 34 MovieClip Frame 1 
(sry, the most I can do with swf is operate webbased decompilers *g*) I'd wager 
you can use localized keys in as:

    function onLoad() {
        net.wargaming.managers.ContextMenuManager.__get__instance().hide();
        helpTip.text = "#menu:loading/helpTip";
    }

So building a list with localized mapnames for known keys should be possible...

Original comment by emh...@gmail.com on 3 Feb 2013 at 4:28

GoogleCodeExporter commented 9 years ago
I've extracted internal system map names from battle loading screen.
Method is locale independent, but xvm-stat.exe dependent.

Try
http://code.google.com/p/wot-xvm/downloads/detail?name=xvm-3.3.2-test6.zip

Original comment by ilitvinov87@gmail.com on 12 Feb 2013 at 3:04

GoogleCodeExporter commented 9 years ago
great job!
nice idea heh

thanks mann ;)

Original comment by rene.wu...@gmail.com on 13 Feb 2013 at 1:23

GoogleCodeExporter commented 9 years ago
Fixed

Original comment by ilitvinov87@gmail.com on 13 Feb 2013 at 11:57