Author Topic: [Russian] war3source_races.cfg расы генерируются друг в друге  (Read 745 times)

SHAREN

  • Newbie
  • *
  • Posts: 14
    • View Profile
В общем расы в файле \addons\sourcemod\configs\war3source_races.cfg принимают странный вид


Мои действия
Сначала я попробовал удалить все внутри массива вот так:
Code: [Select]
"Race Config"
{
}
Потом перезагружаю сервер и вуаля, вроде бы все нормально:
Code: [Select]
"Race Config"
{
"undead"
{
"restricted_items" "Some"
"restricted_maps" "None"
"restricted_other" "Some"
"restricted_hugalug" "None"
"restricted_blah" "Some"
"restricted_blah23" "Some"
"name" "Undead Scourge"
}
"human"
{
"restricted_items" "Some"
"restricted_maps" "None"
"restricted_other" "Some"
"restricted_hugalug" "None"
"restricted_blah" "Some"
"restricted_blah23" "Some"
"name" "Human Alliance"
}
"orc"
{
"restricted_items" "Some"
"restricted_maps" "None"
"restricted_other" "Some"
"restricted_hugalug" "None"
"restricted_blah" "Some"
"restricted_blah23" "Some"
"name" "Orcish Horde"
}
"nightelf"
{
"restricted_items" "Some"
"restricted_maps" "None"
"restricted_other" "Some"
"restricted_hugalug" "None"
"restricted_blah" "Some"
"restricted_blah23" "Some"
"name" "Night Elf"
}
"mage"
{
"restricted_items" "Some"
"restricted_maps" "None"
"restricted_other" "Some"
"restricted_hugalug" "None"
"restricted_blah" "Some"
"restricted_blah23" "Some"
"name" "Blood Mage"
}
"hunter"
{
"restricted_items" "Some"
"restricted_maps" "None"
"restricted_other" "Some"
"restricted_hugalug" "None"
"restricted_blah" "Some"
"restricted_blah23" "Some"
"name" "Shadow Hunter"
}
"warden"
{
"restricted_items" "Some"
"restricted_maps" "None"
"restricted_other" "Some"
"restricted_hugalug" "None"
"restricted_blah" "Some"
"restricted_blah23" "Some"
"name" "Warden"
}
}

Но после ещё одной перезагрузки случается это :-[  (и так остается после каждой перезагрузки):
Code: [Select]
"Race Config"
{
"undead"
{
"restricted_items" "Some"
"restricted_maps" "None"
"restricted_other" "Some"
"restricted_hugalug" "None"
"restricted_blah" "Some"
"restricted_blah23" "Some"
"name" "Undead Scourge"
"human"
{
"restricted_items" "Some"
"restricted_maps" "None"
"restricted_other" "Some"
"restricted_hugalug" "None"
"restricted_blah" "Some"
"restricted_blah23" "Some"
"name" "Human Alliance"
"orc"
{
"restricted_items" "Some"
"restricted_maps" "None"
"restricted_other" "Some"
"restricted_hugalug" "None"
"restricted_blah" "Some"
"restricted_blah23" "Some"
"name" "Orcish Horde"
"nightelf"
{
"restricted_items" "Some"
"restricted_maps" "None"
"restricted_other" "Some"
"restricted_hugalug" "None"
"restricted_blah" "Some"
"restricted_blah23" "Some"
"name" "Night Elf"
"mage"
{
"restricted_items" "Some"
"restricted_maps" "None"
"restricted_other" "Some"
"restricted_hugalug" "None"
"restricted_blah" "Some"
"restricted_blah23" "Some"
"name" "Blood Mage"
"hunter"
{
"restricted_items" "Some"
"restricted_maps" "None"
"restricted_other" "Some"
"restricted_hugalug" "None"
"restricted_blah" "Some"
"restricted_blah23" "Some"
"name" "Shadow Hunter"
"warden"
{
"restricted_items" "Some"
"restricted_maps" "None"
"restricted_other" "Some"
"restricted_hugalug" "None"
"restricted_blah" "Some"
"restricted_blah23" "Some"
"name" "Warden"
}
}
}
}
}
}
}
}
}
}
}
}
"human"
{
"restricted_items" "Some"
"restricted_maps" "None"
"restricted_other" "Some"
"restricted_hugalug" "None"
"restricted_blah" "Some"
"restricted_blah23" "Some"
"name" "Human Alliance"
}
"orc"
{
"restricted_items" "Some"
"restricted_maps" "None"
"restricted_other" "Some"
"restricted_hugalug" "None"
"restricted_blah" "Some"
"restricted_blah23" "Some"
"name" "Orcish Horde"
}
"nightelf"
{
"restricted_items" "Some"
"restricted_maps" "None"
"restricted_other" "Some"
"restricted_hugalug" "None"
"restricted_blah" "Some"
"restricted_blah23" "Some"
"name" "Night Elf"
}
"mage"
{
"restricted_items" "Some"
"restricted_maps" "None"
"restricted_other" "Some"
"restricted_hugalug" "None"
"restricted_blah" "Some"
"restricted_blah23" "Some"
"name" "Blood Mage"
}
"hunter"
{
"restricted_items" "Some"
"restricted_maps" "None"
"restricted_other" "Some"
"restricted_hugalug" "None"
"restricted_blah" "Some"
"restricted_blah23" "Some"
"name" "Shadow Hunter"
}
"warden"
{
"restricted_items" "Some"
"restricted_maps" "None"
"restricted_other" "Some"
"restricted_hugalug" "None"
"restricted_blah" "Some"
"restricted_blah23" "Some"
"name" "Warden"
}
}

Вот к примеру если из нормальных строк оставить только пару рас (undead (который в "лесенке"), human и orc), то они перейдут в "лесенку"

Было (смотрите конец):
Code: [Select]
"Race Config"
{
"undead"
{
"restricted_items" "Some"
"restricted_maps" "None"
"restricted_other" "Some"
"restricted_hugalug" "None"
"restricted_blah" "Some"
"restricted_blah23" "Some"
"name" "Undead Scourge"
"human"
{
"restricted_items" "Some"
"restricted_maps" "None"
"restricted_other" "Some"
"restricted_hugalug" "None"
"restricted_blah" "Some"
"restricted_blah23" "Some"
"name" "Human Alliance"
"orc"
{
"restricted_items" "Some"
"restricted_maps" "None"
"restricted_other" "Some"
"restricted_hugalug" "None"
"restricted_blah" "Some"
"restricted_blah23" "Some"
"name" "Orcish Horde"
"nightelf"
{
"restricted_items" "Some"
"restricted_maps" "None"
"restricted_other" "Some"
"restricted_hugalug" "None"
"restricted_blah" "Some"
"restricted_blah23" "Some"
"name" "Night Elf"
"mage"
{
"restricted_items" "Some"
"restricted_maps" "None"
"restricted_other" "Some"
"restricted_hugalug" "None"
"restricted_blah" "Some"
"restricted_blah23" "Some"
"name" "Blood Mage"
"hunter"
{
"restricted_items" "Some"
"restricted_maps" "None"
"restricted_other" "Some"
"restricted_hugalug" "None"
"restricted_blah" "Some"
"restricted_blah23" "Some"
"name" "Shadow Hunter"
"warden"
{
"restricted_items" "Some"
"restricted_maps" "None"
"restricted_other" "Some"
"restricted_hugalug" "None"
"restricted_blah" "Some"
"restricted_blah23" "Some"
"name" "Warden"
}
}
}
}
}
}
}
}
}
}
}
}
"human"
{
"restricted_items" "Some"
"restricted_maps" "None"
"restricted_other" "Some"
"restricted_hugalug" "None"
"restricted_blah" "Some"
"restricted_blah23" "Some"
"name" "Human Alliance"
}
"orc"
{
"restricted_items" "Some"
"restricted_maps" "None"
"restricted_other" "Some"
"restricted_hugalug" "None"
"restricted_blah" "Some"
"restricted_blah23" "Some"
"name" "Orcish Horde"
}
}


Стало  :-\
Code: [Select]
"Race Config"
{
"undead"
{
"restricted_items" "Some"
"restricted_maps" "None"
"restricted_other" "Some"
"restricted_hugalug" "None"
"restricted_blah" "Some"
"restricted_blah23" "Some"
"name" "Undead Scourge"
"human"
{
"restricted_items" "Some"
"restricted_maps" "None"
"restricted_other" "Some"
"restricted_hugalug" "None"
"restricted_blah" "Some"
"restricted_blah23" "Some"
"name" "Human Alliance"
"orc"
{
"restricted_items" "Some"
"restricted_maps" "None"
"restricted_other" "Some"
"restricted_hugalug" "None"
"restricted_blah" "Some"
"restricted_blah23" "Some"
"name" "Orcish Horde"
}
}
}
"human"
{
"restricted_items" "Some"
"restricted_maps" "None"
"restricted_other" "Some"
"restricted_hugalug" "None"
"restricted_blah" "Some"
"restricted_blah23" "Some"
"name" "Human Alliance"
}
"orc"
{
"restricted_items" "Some"
"restricted_maps" "None"
"restricted_other" "Some"
"restricted_hugalug" "None"
"restricted_blah" "Some"
"restricted_blah23" "Some"
"name" "Orcish Horde"
}
"nightelf"
{
"restricted_items" "Some"
"restricted_maps" "None"
"restricted_other" "Some"
"restricted_hugalug" "None"
"restricted_blah" "Some"
"restricted_blah23" "Some"
"name" "Night Elf"
}
"mage"
{
"restricted_items" "Some"
"restricted_maps" "None"
"restricted_other" "Some"
"restricted_hugalug" "None"
"restricted_blah" "Some"
"restricted_blah23" "Some"
"name" "Blood Mage"
}
"hunter"
{
"restricted_items" "Some"
"restricted_maps" "None"
"restricted_other" "Some"
"restricted_hugalug" "None"
"restricted_blah" "Some"
"restricted_blah23" "Some"
"name" "Shadow Hunter"
}
"warden"
{
"restricted_items" "Some"
"restricted_maps" "None"
"restricted_other" "Some"
"restricted_hugalug" "None"
"restricted_blah" "Some"
"restricted_blah23" "Some"
"name" "Warden"
}
}


https://github.com/War3Source/War3Source/blob/401cf28cc3ad3b631846845d464f91179c258755/addons/sourcemod/scripting/War3Source_Engine_Config.sp на 114 строчке упоминается configs/war3source_races.cfg


SHAREN

  • Newbie
  • *
  • Posts: 14
    • View Profile
Спасибо