Archived copy of war3source.com, the War3Source forum (2009–2020), rebuilt from the Internet Archive by wc3mods.net. This page was captured on 2012-10-25 (original capture). Forum · All archived topics · Wiki · Bug tracker · Blog
Chat

War3:Source
October 24, 2012, 07:01:24 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Download: http://war3source.com/index.php?board=9.0
What is War3Source?: http://war3source.com/index.php?topic=200.0
Sample Stats: http://war3source.com/war3stats
Steam Community Group: http://steamcommunity.com/groups/war3source
War3Source SVN Checkout: http://ownageclan.com/svn/war3source/
War3Source servers: http://www.game-monitor.com/search.php?vars=war3_version=
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: [Russian] Проблема с переводом расы  (Read 480 times)
Han
Full Member
***
Posts: 134



View Profile WWW
« on: September 15, 2011, 10:01:23 AM »

Здарова всем.
Вопрос,почему то у меня на сервере не переводятся расы на русский язык,вот пример:


"Phrases"
{
   //<shortname>_RaceName
   "element_RaceName"
   {
      "ru"        "Елемент"
      "en"        "Element"
   }

   //skills:
   //<shortname>_skill_<SkillNameIdentifier> for the skill name
   //<shortname>_skill_<SkillNameIdentifier>_desc for the skill description
   "element_skill_ImpulseRifle"
   {
            "ru"        "Импульс винтовка"
                 "en"        "Impulse Rifle"
   }
   "element_skill_ImpulseRifle_desc"
   {
            "ru"        "Нанесите больше Ущерба"
                 "en"        "Do more Damage and Disentegrate the enemie"
   }

   "element_skill_Transport"
   {
      "ru"        "Транспорт"
                "en"        "Transport"
   }
   "element_skill_Transport_desc"
   {
      "ru"        "Идите немного быстрее"
                "en"        "Go a little faster"
   }

   "element_skill_TimesElement"
   {
      "ru"        "Елемент времени"
                "en"       "Times Element"
   }
   "element_skill_TimesElement_desc"
   {
      "ru"        "Вернитесь Рє тому моменту перед смертью"
                "en"       "Go back to the exact moment before death
   }

   "element_skill_GravityGun"
   {
            "ru"        "Тяжёлое РѕСЂСѓР¶РёРµ"
            "en"       "Gravity Gun"
   }
   "element_skill_GravityGun_desc"
   {
      "ru"        "Потяните вражеского РёРіСЂРѕРєР°"
            "en"       "Pull the enemy player torward you"
   }

   "You have pulled {player} closer to you"
   {
      "#format"   "{1:s}"
      "ru"        "Р’С‹ потянули {1} ближе Вам"
      "en"       "You have pulled {1} closer to you"
   }
   "You have been pulled torward {player}"
   {
      "#format"   "{1:s}"
      "ru"        "Вам потянули torward {1}"
      "en"       "You have been pulled torward {1}"
   }
   "In {amount} seconds Time's Element will peice together your last Moment"
   {
      "#format"   "{1:.f}"
      "ru"        "Р’ {1} секунды Элемент Времени будет peice вместе РІ Ваш прошлый момент"
      "en"       "In {1} seconds Time's Element will peice together your last Moment"
   }
   "In {amount} seconds you go back in time to this verry moment"
   {
      "#format"   "{1:.f}"
      "ru"        "Р’ {1} секунды Р’С‹ возвращаетесь вовремя Рє этому моменту"
      "en"       "In {1} seconds you go back in time to this verry moment"
   }
}


Это стоит естественно в транслите,а вот трансли ру стоит это:


"Phrases"
{
   //<shortname>_RaceName
   "element_RaceName"
   {
      "ru"        "Елемент"
   }

   //skills:
   //<shortname>_skill_<SkillNameIdentifier> for the skill name
   //<shortname>_skill_<SkillNameIdentifier>_desc for the skill description
   "element_skill_ImpulseRifle"
   {
      "ru"        "Импульс винтовка"
   }
   "element_skill_ImpulseRifle_desc"
   {
      "ru"        "Нанесите больше Ущерба"
   }

   "element_skill_Transport"
       {
      "ru"        "Транспорт"
   }
   "element_skill_Transport_desc"
   {
      "ru"        "Идите немного быстрее"
   }

   "element_skill_TimesElement"
   {
      "ru"        "Елемент времени"
   }
   "element_skill_TimesElement_desc"
   {
      "ru"        "Вернитесь Рє тому моменту перед смертью"
   }

   "element_skill_GravityGun"
   {
      "ru"        "Тяжёлое РѕСЂСѓР¶РёРµ"
   }
   "element_skill_GravityGun_desc"
   {
      "ru"        "Потяните вражеского РёРіСЂРѕРєР°"
   }

   "You have pulled {player} closer to you"
   {
      "#format"   "{1:s}"
      "ru"        "Р’С‹ потянули {1} ближе Вам"
   }
   "You have been pulled torward {player}"
   {
      "#format"   "{1:s}"
      "ru"        "Вам потянули torward {1}"
   }
   "In {amount} seconds Time's Element will peice together your last Moment"
   {
      "#format"   "{1:.f}"
      "ru"        "Р’ {1} секунды Элемент Времени будет peice вместе РІ Ваш прошлый момент"
   }
   "In {amount} seconds you go back in time to this verry moment"
   {
      "#format"   "{1:.f}"
      "ru"        "Р’ {1} секунды Р’С‹ возвращаетесь вовремя Рє этому моменту"
   }
}


В чем может быть прикол?Huh

Edit by Frenzzy: topic name changed..
« Last Edit: September 15, 2011, 12:21:19 PM by Frenzzy » Logged

Frenzzy
Moderator
Full Member
*****
Posts: 217


337905984 frenzzy@live.ru
View Profile WWW
« Reply #1 on: September 15, 2011, 12:26:34 PM »

Файл перевода расы (w3s.race.shortname.phrases.txt) должен быть в кодировке utf8.

И что значит не переводятся, на сервере раса на английском языке или что?
Было бы хорошо увидеть скриншот для понимания проблемы..

..надеюсь ошибок в логах нет?
Logged

O_o
Han
Full Member
***
Posts: 134



View Profile WWW
« Reply #2 on: September 16, 2011, 09:02:38 AM »

Файл перевода расы (w3s.race.shortname.phrases.txt) должен быть в кодировке utf8.

И что значит не переводятся, на сервере раса на английском языке или что?
Было бы хорошо увидеть скриншот для понимания проблемы..

..надеюсь ошибок в логах нет?
Как вы не заметили,он и так в utf-8,а проблема на сервере он так же на английском и скилы и ульта,в логах ошибок нет.
Logged

Han
Full Member
***
Posts: 134



View Profile WWW
« Reply #3 on: September 17, 2011, 03:53:00 AM »

Вот скрины





Как видно все на английском.
Logged

Frenzzy
Moderator
Full Member
*****
Posts: 217


337905984 frenzzy@live.ru
View Profile WWW
« Reply #4 on: September 17, 2011, 04:05:34 AM »

Может быть в коде расы (.sp) нет поддержки локализаций?
Logged

O_o
Han
Full Member
***
Posts: 134



View Profile WWW
« Reply #5 on: September 17, 2011, 07:56:31 AM »

/**
* File: War3Source_Aura_Master.sp
* Description: The Aura Master race for SourceCraft.
* Author(s): xDr.HaaaaaaaXx
*/

#pragma semicolon 1
#include <sourcemod>
#include <sdktools_tempents>
#include <sdktools_functions>
#include <sdktools_tempents_stocks>
#include <sdktools_entinput>
#include <sdktools_sound>

#include "W3SIncs/War3Source_Interface"

// War3Source stuff
new thisRaceID;

// Chance/Data Arrays
new Float:AuraSpeed[5] = { 1.0, 1.24, 1.28, 1.32, 1.36 };
new Float:AuraGravity[5] = { 1.0, 0.6, 0.52, 0.44, 0.36 };
new Float:AuraPushChance[5] = { 0.0, 0.15, 0.20, 0.25, 0.30 };
new m_vecBaseVelocity;
new HaloSprite, BeamSprite;

new SKILL_SPEED, SKILL_LOWGRAV, SKILL_PUSH, SKILL_LEECH;

public Plugin:myinfo =
{
   name = "War3Source Race - Aura Master",
   author = "xDr.HaaaaaaaXx",
   description = "The Aura Master race for War3Source.",
   version = "1.0.0.0",
   url = ""
};

public OnMapStart()
{
   BeamSprite = PrecacheModel( "materials/sprites/lgtning.vmt" );
   HaloSprite = PrecacheModel( "materials/sprites/halo01.vmt" );
}

public OnPluginStart()
{
   m_vecBaseVelocity = FindSendPropOffs( "CBasePlayer", "m_vecBaseVelocity" );
}

public OnWar3PluginReady()
{
   thisRaceID = War3_CreateNewRace( "Aura Master", "auramaster" );
   
   SKILL_SPEED = War3_AddRaceSkill( thisRaceID, "Unholy Aura", "Speed", false );   
   SKILL_LOWGRAV = War3_AddRaceSkill( thisRaceID, "Gravity Aura", "Allows you jump higher.", false );   
   SKILL_PUSH = War3_AddRaceSkill( thisRaceID, "Exellence Aura", "Push your enemy", false );
   SKILL_LEECH = War3_AddRaceSkill( thisRaceID, "Ancient Aura", "Leeched enemy healt.", false );
   
   War3_CreateRaceEnd( thisRaceID );
}

public InitPassiveSkills( client )
{
   if( War3_GetRace( client ) == thisRaceID )
   {
      War3_SetBuff( client, fMaxSpeed, thisRaceID, AuraSpeed[War3_GetSkillLevel( client, thisRaceID, SKILL_SPEED )] );
      War3_SetBuff( client, fLowGravitySkill, thisRaceID, AuraGravity[War3_GetSkillLevel( client, thisRaceID, SKILL_LOWGRAV )] );
   }
}

public OnRaceSelected( client, newrace )
{
   if( newrace != thisRaceID )
   {
      W3ResetAllBuffRace( client, thisRaceID );
   }
   else
   {   
      if( IsPlayerAlive( client ) )
      {
         InitPassiveSkills( client );
      }
   }
}

public OnSkillLevelChanged( client, race, skill, newskilllevel )
{
   InitPassiveSkills( client );
}

public OnWar3EventSpawn( client )
{
   new race = War3_GetRace( client );
   if( race == thisRaceID )
   {
      InitPassiveSkills( client );
   }
}

public OnWar3EventDeath( victim, attacker )
{
   W3ResetAllBuffRace( victim, thisRaceID );
}

public OnWar3EventPostHurt( victim, attacker, damage )
{
   if( W3GetDamageIsBullet() && ValidPlayer( victim, true ) && ValidPlayer( attacker, true ) && GetClientTeam( victim ) != GetClientTeam( attacker ) )
   {
      if( War3_GetRace( attacker ) == thisRaceID )
      {
         new skill_push = War3_GetSkillLevel( attacker, thisRaceID, SKILL_PUSH );
         if( !Hexed( attacker, false ) && GetRandomFloat( 0.0, 1.0 ) <= AuraPushChance[skill_push] && !W3HasImmunity( victim, Immunity_Skills ) )
         {
            new Float:velocity[3];
            
            velocity[2] += 600.0;
            
            SetEntDataVector( victim, m_vecBaseVelocity, velocity, true );
            
            W3FlashScreen( victim, RGBA_COLOR_RED );
         }

         new skill_leech = War3_GetSkillLevel( attacker, thisRaceID, SKILL_LEECH );
         if( !Hexed( attacker, false ) && GetRandomFloat( 0.0, 1.0 ) <= 0.45 && skill_leech > 0 && !W3HasImmunity( victim, Immunity_Skills ) )
         {
            new Float:start_pos[3];
            new Float:target_pos[3];
            
            GetClientAbsOrigin( attacker, start_pos );
            GetClientAbsOrigin( victim, target_pos );
            
            TE_SetupBeamPoints( start_pos, target_pos, BeamSprite, HaloSprite, 0, 35, 1.0, 40.0, 40.0, 0, 40.0, { 255, 0, 0, 255 }, 40 );
            TE_SendToAll();
            
            War3_HealToBuffHP( attacker, damage / 2 );
            
            W3FlashScreen( victim, RGBA_COLOR_RED );
         }
      }
   }
}

Где она тут???
Logged

Frenzzy
Moderator
Full Member
*****
Posts: 217


337905984 frenzzy@live.ru
View Profile WWW
« Reply #6 on: September 18, 2011, 04:29:22 AM »

Эта раса не поддерживает локализации (файлы переводов).
А эту ссылку я тебе уже кидал: Как переводить расы?
Logged

O_o
Schmarotzer
Full Member
***
Posts: 189


Ich schmarotze dich!

258631507
View Profile WWW
« Reply #7 on: September 21, 2011, 09:57:02 PM »

Ты пишешь про перевод расы Элемент, а выкладываешь скрины и расу Мастер Аур.
Чтобы твои транслейшны заработали надо код расы перелопатить.
Ищи инструкции... Тут есть.
« Last Edit: September 21, 2011, 10:01:48 PM by Schmarotzer » Logged

Welcome to my server
Han
Full Member
***
Posts: 134



View Profile WWW
« Reply #8 on: September 24, 2011, 10:18:01 AM »

Эта раса не поддерживает локализации (файлы переводов).
А эту ссылку я тебе уже кидал: Как переводить расы?
Ни черта я там не понял
Logged

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!