Ошибка KeyValues Error: LoadFromBuffer: missing { in file addons/sourcemod/configs/shop/equipments.t

DanZe

Участник
Сообщения
51
Реакции
7
Попробовал посмотреть в чём дело, так и не понял

Ошибка:
KeyValues Error: LoadFromBuffer: missing { in file addons/sourcemod/configs/shop/equipments.txt
(*midna*), (*angles*), (*masks*), (*facemask*), (*aviators*),

"Equipments"
{
"wings"
{
"en" "Крылья"
"ru" "Крылья"

"white wings"
{
"name" "Белые крылья"
"price" "35000"
"sell_price" "-1"
"duration" "0"
"model" "models/shop/wings/white.mdl"

"attachment" "facemask"

"position" "-1.500000 -6.500000 -11.500000"
"angles" "-65.000000 170.000000 0.000000"
}

"red wings"
{
"name" "Красные крылья"
"price" "35000"
"sell_price" "-1"
"duration" "0"
"model" "models/shop/wings/red.mdl"

"attachment" "facemask"

"position" "-1.500000 -6.500000 -11.500000"
"angles" "-65.000000 170.000000 0.000000"
}

"blue wings"
{
"name" "Синие крылья"
"price" "35000"
"sell_price" "-1"
"duration" "0"
"model" "models/shop/wings/blue.mdl"

"attachment" "facemask"

"position" "-1.500000 -6.500000 -11.500000"
"angles" "-65.000000 170.000000 0.000000"
}

"green wings"
{
"name" "Зеленые крылья"
"price" "35000"
"sell_price" "-1"
"duration" "0"
"model" "models/shop/wings/green.mdl"

"attachment" "facemask"

"position" "-1.500000 -6.500000 -11.500000"
"angles" "-65.000000 170.000000 0.000000"
}

"cyan wings"
{
"name" "небесные крылья"
"price" "35000"
"sell_price" "-1"
"duration" "0"
"model" "models/shop/wings/cyan.mdl"

"attachment" "facemask"

"position" "-1.500000 -6.500000 -11.500000"
"angles" "-65.000000 170.000000 0.000000"
}
}

"glasses"
{
"en" "Glasses"
"ru" "Очки"

"3d"
{
"name" "3D очки"
"price" "50000"
"sell_price" "-1"
"duration" "0"
"model" "models/gmod_tower/3dglasses.mdl"

"attachment" "facemask"

"position" "0.0 -2.5 1.0"
"angles" "0.0 0.0 0.0"
}

"kleiner"
{
"name" "Очки Клейнера"
"price" "50000"
"sell_price" "-1"
"duration" "0"
"model" "models/gmod_tower/klienerglasses.mdl"

"attachment" "facemask"

"position" "0.0 -2.5 1.0"
"angles" "0.0 0.0 0.0"
}

"aviators"
{
"name" "Очки Пилота"
"price" "50000"
"sell_price" "-1"
"duration" "0"
"model" "models/gmod_tower/aviators.mdl"

"attachment" "facemask"

"position" "0.0 -2.5 1.0"
"angles" "0.0 0.0 0.0"
}
}
"masks"
{
"en" "Masks"
"ru" "Маски"
"evil_clown"
"majora"
{
"name" "Маска индейца"
"price" "50000"
"sell_price" "-1"
"duration" "0"
"model" "models/gmod_tower/majorasmask.mdl"

"attachment" "facemask"
"alt_attachment" ""

"position" "0.0 -1.5 0.0"
"angles" "0.0 0.0 0.0"
}

"andros"
{
"name" "Маска обязьяна"
"price" "50000"
"sell_price" "-1"
"duration" "0"
"model" "models/gmod_tower/androssmask.mdl"

"attachment" "facemask"
"alt_attachment" ""

"position" "0.0 2.0 0.0"
"angles" "0.0 0.0 0.0"
}

"toro"
{
"name" "Маска кошка"
"price" "50000"
"sell_price" "-1"
"duration" "0"
"model" "models/gmod_tower/toromask.mdl"

"attachment" "facemask"
"alt_attachment" ""

"position" "0.0 -3.0 4.0"
"angles" "0.0 0.0 0.0"
}
}
"hats"
{
"en" "Hats"
"ru" "Шляпы"

"santa"
{
"name" "Шапка деда мороза"
"price" "50000"
"sell_price" "-1"
"duration" "0"
"model" "models/gmod_tower/santahat.mdl"

"attachment" "facemask"
"alt_attachment" "primary"

"position" "0.0 -4.0 4.0"
"angles" "0.0 0.0 0.0"
}

"sombrero"
{
"name" "Самбреро"
"price" "50000"
"sell_price" "-1"
"duration" "0"
"model" "models/gmod_tower/sombrero.mdl"

"attachment" "facemask"
"alt_attachment" "primary"

"position" "0.0 -5.0 5.0"
"angles" "0.0 0.0 0.0"
}

"cake"
{
"name" "Тортик"
"price" "50000"
"sell_price" "-1"
"duration" "0"
"model" "models/cakehat/cakehat.mdl"

"attachment" "facemask"
"alt_attachment" "primary"

"position" "0.0 -1.0 3.0"
"angles" "0.0 0.0 0.0"
}

"cat_ears"
{
"name" "Ушки кошки"
"price" "50000"
"sell_price" "-1"
"duration" "0"
"model" "models/gmod_tower/catears.mdl"

"attachment" "facemask"
"alt_attachment" "primary"

"position" "0.0 -3.0 6.0"
"angles" "0.0 0.0 0.0"
}

"аfro"
{
"name" "Парик-Афро"
"price" "50000"
"sell_price" "-1"
"duration" "0"
"model" "models/gmod_tower/afro.mdl"

"attachment" "facemask"
"alt_attachment" "primary"

"position" "0.0 -3.0 6.0"
"angles" "0.0 0.0 0.0"
}

"link"
{
"name" "Гоблинская"
"price" "50000"
"sell_price" "-1"
"duration" "0"
"model" "models/gmod_tower/linkhat.mdl"

"attachment" "facemask"
"alt_attachment" "primary"

"position" "0.0 -8.0 3.0"
"angles" "0.0 0.0 0.0"
}

"party"
{
"name" "Праздничная"
"price" "50000"
"sell_price" "-1"
"duration" "0"
"model" "models/gmod_tower/partyhat.mdl"

"attachment" "facemask"
"alt_attachment" "primary"

"position" "1.0 -4.0 5.0"
"angles" "0.0 0.0 0.0"
}

"antlers"
{
"name" "Оленьи рога"
"price" "50000"
"sell_price" "-1"
"duration" "0"
"model" "models/sam/antlers.mdl"

"attachment" "facemask"
"alt_attachment" "primary"

"position" "0.0 0.0 2.0"
"angles" "0.0 0.0 0.0"
}

"viking_helmet"
{
"name" "Шлем викинга"
"price" "50000"
"sell_price" "-1"
"duration" "0"
"model" "models/vikinghelmet/vikinghelmet.mdl"

"attachment" "facemask"
"alt_attachment" "primary"

"position" "0.0 -4.0 5.5"
"angles" "0.0 0.0 0.0"
}

"kfc_bucket"
{
"name" "Ведро KFC"
"price" "50000"
"sell_price" "-1"
"duration" "0"
"model" "models/gmod_tower/kfcbucket.mdl"

"attachment" "facemask"
"alt_attachment" "primary"

"position" "0.0 -4.0 3.0"
"angles" "0.0 0.0 0.0"
}

"dunce"
{
"name" "Шапка тупицы"
"price" "50000"
"sell_price" "-1"
"duration" "0"
"model" "models/duncehat/duncehat.mdl"

"attachment" "facemask"
"alt_attachment" "primary"

"position" "0.0 -4.0 4.5"
"angles" "0.0 0.0 0.0"
}

"drink_cap"
{
"name" "Питьевая шапка"
"price" "50000"
"sell_price" "-1"
"duration" "0"
"model" "models/gmod_tower/drinkcap.mdl"

"attachment" "facemask"
"alt_attachment" "primary"

"position" "0.0 -4.5 7.0"
"angles" "0.0 0.0 0.0"
}

"top_hat"
{
"name" "Высокая шляпа"
"price" "50000"
"sell_price" "-1"
"duration" "0"
"model" "models/gmod_tower/tophat.mdl"

"attachment" "facemask"
"alt_attachment" "primary"

"position" "0.0 -5.0 4.5"
"angles" "0.0 0.0 0.0"
}

"toeto"
{
"name" "Кошка"
"price" "50000"
"sell_price" "-1"
"duration" "0"
"model" "models/gmod_tower/toetohat.mdl"

"attachment" "facemask"
"alt_attachment" "primary"

"position" "0.0 -6.0 4.0"
"angles" "0.0 0.0 0.0"
}

"seuss"
{
"name" "Сьюз"
"price" "50000"
"sell_price" "-1"
"duration" "0"
"model" "models/gmod_tower/seusshat.mdl"

"attachment" "facemask"
"alt_attachment" "primary"

"position" "0.0 -3.5 6.0"
"angles" "0.0 0.0 0.0"
}

"midna"
{
"name" "Шлем"
"price" "50000"
"sell_price" "-1"
"duration" "0"
"model" "models/gmod_tower/midnahat.mdl"

"attachment" "facemask"
"alt_attachment" "primary"

"position" "0.0 0.0 0.0"
"angles" "0.0 0.0 0.0"
}
}
}
Видимо где-то скобку затёр
 

Planes

Потерявшиеся точка с запятой
Сообщения
356
Реакции
97
Самая частая проблема, это файл который не сохранили в нужной кодировке. Сохрани его в кодировке UTF-8 без BOM
Если уверен, что все правильно, подсчитай кол-во открывающихся и закрывающихся скобок ( Делается через программы, например notepad++ ). Если есть различие в цифрах, значит что-то не закрыл/открыл.
Так-же проверь кол-во открытых скобок ( -> " <- ) , если их кол-во не делиться на 2, значит одна где-то не закрыта/открыта
 

DanZe

Участник
Сообщения
51
Реакции
7
Самая частая проблема, это файл который не сохранили в нужной кодировке. Сохрани его в кодировке UTF-8 без BOM
Если уверен, что все правильно, подсчитай кол-во открывающихся и закрывающихся скобок ( Делается через программы, например notepad++ ). Если есть различие в цифрах, значит что-то не закрыл/открыл.
Так-же проверь кол-во открытых скобок ( -> " <- ) , если их кол-во не делиться на 2, значит одна где-то не закрыта/открыта
Вот заметил лишнюю строчку "model, она может повлиять?
"kleiner"
{
"name" "Очки Клейнера"
"price" "50000"
"sell_price" "-1"
"duration" "0"
"model" "models/gmod_tower/klienerglasses.mdl"
 

iLoco

Пишу плагины за печеньки 🍪🍪🍪
Сообщения
2,265
Реакции
1,323
@luidgi, скинь конфиг ввиде файла.
 

rejchev

менеджер клоунов
Сообщения
1,669
Реакции
1,291
@luidgi,
PHP:
"Equipments"
{
    "wings"
    {
        "en" "Крылья"
        "ru" "Крылья"

        "white wings"
        {
            "name" "Белые крылья"
            "price" "35000"
            "sell_price" "-1"
            "duration" "0"
            "model" "models/shop/wings/white.mdl"

            "attachment" "facemask"

            "position" "-1.500000 -6.500000 -11.500000"
            "angles" "-65.000000 170.000000 0.000000"
        }

        "red wings"
        {
            "name" "Красные крылья"
            "price" "35000"
            "sell_price" "-1"
            "duration" "0"
            "model" "models/shop/wings/red.mdl"

            "attachment" "facemask"

            "position" "-1.500000 -6.500000 -11.500000"
            "angles" "-65.000000 170.000000 0.000000"
        }

        "blue wings"
        {
            "name" "Синие крылья"
            "price" "35000"
            "sell_price" "-1"
            "duration" "0"
            "model" "models/shop/wings/blue.mdl"

            "attachment" "facemask"

            "position" "-1.500000 -6.500000 -11.500000"
            "angles" "-65.000000 170.000000 0.000000"
        }

        "green wings"
        {
            "name" "Зеленые крылья"
            "price" "35000"
            "sell_price" "-1"
            "duration" "0"
            "model" "models/shop/wings/green.mdl"

            "attachment" "facemask"

            "position" "-1.500000 -6.500000 -11.500000"
            "angles" "-65.000000 170.000000 0.000000"
        }

        "cyan wings"
        {
            "name" "небесные крылья"
            "price" "35000"
            "sell_price" "-1"
            "duration" "0"
            "model" "models/shop/wings/cyan.mdl"

            "attachment" "facemask"

            "position" "-1.500000 -6.500000 -11.500000"
            "angles" "-65.000000 170.000000 0.000000"
        }
    }

    "glasses"
    {
        "en" "Glasses"
        "ru" "Очки"

        "3d"
        {
            "name" "3D очки"
            "price" "50000"
            "sell_price" "-1"
            "duration" "0"
            "model" "models/gmod_tower/3dglasses.mdl"

            "attachment" "facemask"

            "position" "0.0 -2.5 1.0"
            "angles" "0.0 0.0 0.0"
        }

        "kleiner"
        {
            "name" "Очки Клейнера"
            "price" "50000"
            "sell_price" "-1"
            "duration" "0"
            "model" "models/gmod_tower/klienerglasses.mdl"

            "attachment" "facemask"

            "position" "0.0 -2.5 1.0"
            "angles" "0.0 0.0 0.0"
        }

        "aviators"
        {
            "name" "Очки Пилота"
            "price" "50000"
            "sell_price" "-1"
            "duration" "0"
            "model" "models/gmod_tower/aviators.mdl"

            "attachment" "facemask"

            "position" "0.0 -2.5 1.0"
            "angles" "0.0 0.0 0.0"
        }
    }
    "masks"
    {
        "en" "Masks"
        "ru" "Маски"
        
        "majora"
        {
            "name" "Маска индейца"
            "price" "50000"
            "sell_price" "-1"
            "duration" "0"
            "model" "models/gmod_tower/majorasmask.mdl"

            "attachment" "facemask"
            "alt_attachment" ""

            "position" "0.0 -1.5 0.0"
            "angles" "0.0 0.0 0.0"
            }

            "andros"
            {
            "name" "Маска обязьяна"
            "price" "50000"
            "sell_price" "-1"
            "duration" "0"
            "model" "models/gmod_tower/androssmask.mdl"

            "attachment" "facemask"
            "alt_attachment" ""

            "position" "0.0 2.0 0.0"
            "angles" "0.0 0.0 0.0"
        }

        "toro"
        {
            "name" "Маска кошка"
            "price" "50000"
            "sell_price" "-1"
            "duration" "0"
            "model" "models/gmod_tower/toromask.mdl"

            "attachment" "facemask"
            "alt_attachment" ""

            "position" "0.0 -3.0 4.0"
            "angles" "0.0 0.0 0.0"
        }
    }
    "hats"
    {
        "en" "Hats"
        "ru" "Шляпы"

        "santa"
        {
            "name" "Шапка деда мороза"
            "price" "50000"
            "sell_price" "-1"
            "duration" "0"
            "model" "models/gmod_tower/santahat.mdl"

            "attachment" "facemask"
            "alt_attachment" "primary"

            "position" "0.0 -4.0 4.0"
            "angles" "0.0 0.0 0.0"
        }

        "sombrero"
        {
            "name" "Самбреро"
            "price" "50000"
            "sell_price" "-1"
            "duration" "0"
            "model" "models/gmod_tower/sombrero.mdl"

            "attachment" "facemask"
            "alt_attachment" "primary"

            "position" "0.0 -5.0 5.0"
            "angles" "0.0 0.0 0.0"
        }

        "cake"
        {
            "name" "Тортик"
            "price" "50000"
            "sell_price" "-1"
            "duration" "0"
            "model" "models/cakehat/cakehat.mdl"

            "attachment" "facemask"
            "alt_attachment" "primary"

            "position" "0.0 -1.0 3.0"
            "angles" "0.0 0.0 0.0"
        }

        "cat_ears"
        {
            "name" "Ушки кошки"
            "price" "50000"
            "sell_price" "-1"
            "duration" "0"
            "model" "models/gmod_tower/catears.mdl"

            "attachment" "facemask"
            "alt_attachment" "primary"

            "position" "0.0 -3.0 6.0"
            "angles" "0.0 0.0 0.0"
        }

        "аfro"
        {
            "name" "Парик-Афро"
            "price" "50000"
            "sell_price" "-1"
            "duration" "0"
            "model" "models/gmod_tower/afro.mdl"

            "attachment" "facemask"
            "alt_attachment" "primary"

            "position" "0.0 -3.0 6.0"
            "angles" "0.0 0.0 0.0"
        }

        "link"
        {
            "name" "Гоблинская"
            "price" "50000"
            "sell_price" "-1"
            "duration" "0"
            "model" "models/gmod_tower/linkhat.mdl"

            "attachment" "facemask"
            "alt_attachment" "primary"

            "position" "0.0 -8.0 3.0"
            "angles" "0.0 0.0 0.0"
        }

        "party"
        {
            "name" "Праздничная"
            "price" "50000"
            "sell_price" "-1"
            "duration" "0"
            "model" "models/gmod_tower/partyhat.mdl"

            "attachment" "facemask"
            "alt_attachment" "primary"

            "position" "1.0 -4.0 5.0"
            "angles" "0.0 0.0 0.0"
        }

        "antlers"
        {
            "name" "Оленьи рога"
            "price" "50000"
            "sell_price" "-1"
            "duration" "0"
            "model" "models/sam/antlers.mdl"

            "attachment" "facemask"
            "alt_attachment" "primary"

            "position" "0.0 0.0 2.0"
            "angles" "0.0 0.0 0.0"
        }

        "viking_helmet"
        {
            "name" "Шлем викинга"
            "price" "50000"
            "sell_price" "-1"
            "duration" "0"
            "model" "models/vikinghelmet/vikinghelmet.mdl"

            "attachment" "facemask"
            "alt_attachment" "primary"

            "position" "0.0 -4.0 5.5"
            "angles" "0.0 0.0 0.0"
        }

        "kfc_bucket"
        {
            "name" "Ведро KFC"
            "price" "50000"
            "sell_price" "-1"
            "duration" "0"
            "model" "models/gmod_tower/kfcbucket.mdl"

            "attachment" "facemask"
            "alt_attachment" "primary"

            "position" "0.0 -4.0 3.0"
            "angles" "0.0 0.0 0.0"
        }

        "dunce"
        {
            "name" "Шапка тупицы"
            "price" "50000"
            "sell_price" "-1"
            "duration" "0"
            "model" "models/duncehat/duncehat.mdl"

            "attachment" "facemask"
            "alt_attachment" "primary"

            "position" "0.0 -4.0 4.5"
            "angles" "0.0 0.0 0.0"
        }

        "drink_cap"
        {
            "name" "Питьевая шапка"
            "price" "50000"
            "sell_price" "-1"
            "duration" "0"
            "model" "models/gmod_tower/drinkcap.mdl"

            "attachment" "facemask"
            "alt_attachment" "primary"

            "position" "0.0 -4.5 7.0"
            "angles" "0.0 0.0 0.0"
        }

        "top_hat"
        {
            "name" "Высокая шляпа"
            "price" "50000"
            "sell_price" "-1"
            "duration" "0"
            "model" "models/gmod_tower/tophat.mdl"

            "attachment" "facemask"
            "alt_attachment" "primary"

            "position" "0.0 -5.0 4.5"
            "angles" "0.0 0.0 0.0"
        }

        "toeto"
        {
            "name" "Кошка"
            "price" "50000"
            "sell_price" "-1"
            "duration" "0"
            "model" "models/gmod_tower/toetohat.mdl"

            "attachment" "facemask"
            "alt_attachment" "primary"

            "position" "0.0 -6.0 4.0"
            "angles" "0.0 0.0 0.0"
        }

        "seuss"
        {
            "name" "Сьюз"
            "price" "50000"
            "sell_price" "-1"
            "duration" "0"
            "model" "models/gmod_tower/seusshat.mdl"

            "attachment" "facemask"
            "alt_attachment" "primary"

            "position" "0.0 -3.5 6.0"
            "angles" "0.0 0.0 0.0"
        }

        "midna"
        {
            "name" "Шлем"
            "price" "50000"
            "sell_price" "-1"
            "duration" "0"
            "model" "models/gmod_tower/midnahat.mdl"

            "attachment" "facemask"
            "alt_attachment" "primary"

            "position" "0.0 0.0 0.0"
            "angles" "0.0 0.0 0.0"
        }
    }
}
 
Сверху Снизу