-
Публикаций
229 -
Зарегистрирован
-
Посещение
Тип контента
Профили
Форумы
Блоги
Календарь
Новости
Моды
Весь контент Paradox27kms
-
vader_33 неа Дополнено 40 минуты спустя ещё такой момент, в gui сделал для удобства чтобы таблицы предметов для списков были прописаны в другом скрипте чтобы не засорять основной но ловлю вылет Expression : !m_error_code Function : raii_guard::~raii_guard File : D:\prog_repository\sources\trunk\xrServerEntities\script_storage.cpp Line : 748 Description : ... - call of pripyat\gamedata\scripts\ui_mm_mod.script:832: bad argument #1 to 'pairs' (table expected, got nil) сам пример списка function ui_mm_mod:FillListPistols2() local tbl tbl = mod_items_tbl.pistols_table_2 for i,v in pairs(tbl) do local inv_name = game.translate_string(system_ini():r_string(i, "inv_name")) local inv_weight = system_ini():r_string(i, "inv_weight") local cost = system_ini():r_string(i, "cost") local name = inv_name..", "..cost.."RU, "..inv_weight.."kg" self:AddItemToListShop(name, i) end end
-
vader_33 в bind_stalker.script под функцию actor_binder:update(delta) прописал но не отображает хотя по идее должно if has_alife_info("mod_pve_actor_in_killer_start") and has_alife_info("mod_pve_match_killer_frag_add_10") then local hud = get_hud() local custom_static = hud:GetCustomStatic("rank_6") if custom_static == nil then hud:RemoveCustomStatic("rank_5") hud:AddCustomStatic("rank_6", true) end end P.S теперь все работает Дополнено 15 минуты спустя vader_33 хелп, в общем у меня по условию после определенного поршня должна появится текстурка она появляется аллилуя, но потом после след инфопоршня у меня должна появиться новая текстура на месте старой которую по скрипту я удалил но она не удаляется\либо не заменяется на новую if has_alife_info("mod_pve_actor_in_killer_start") and has_alife_info("mod_pve_match_killer_frag_add_10") then local hud = get_hud() local custom_static = hud:GetCustomStatic("rank_6") if custom_static == nil then hud:RemoveCustomStatic("rank_5") hud:AddCustomStatic("rank_6", true) end end if has_alife_info("mod_pve_actor_in_killer_start") and has_alife_info("mod_pve_match_killer_frag_add_15") then local hud = get_hud() local custom_static = hud:GetCustomStatic("rank_7") if custom_static == nil then hud:RemoveCustomStatic("rank_6") hud:AddCustomStatic("rank_7", true) end end
-
Хочу навесить на худ игрока свою текстурку через bind_stalker.scripts, но ловлю вылет данное условие появления текстуры if has_alife_info("mod_pve_actor_in_killer_start") and has_alife_info("mod_pve_match_killer_frag_add_10") then local hud = get_hud() local custom_static = hud:GetCustomStatic("rank_6") if custom_static then hud:RemoveCustomStatic("rank_5") hud:AddCustomStatic("rank_6", true) end пишу скрипт под функцией function actor_binder:update(delta) Expression : !m_error_code Function : raii_guard::~raii_guard File : D:\prog_repository\sources\trunk\xrServerEntities\script_storage.cpp Line : 748 Description : ...r - call of pripyat\gamedata\scripts\xr_logic.script:1272: attempt to index local 'obj' (a nil value) P.S уже разобрался и исправил но текстурка то не хочет появлятся все ровно значит где-то в другом месте нужно прописать данное условие?
-
denis2000 Зачем? Я нашел в mp_actor.ltx default = 1.0, -1, 0.1 bip01_pelvis = 0.25, 15, 0.8 ;от ядра до пояса bip01_spine = 0.3, 15, 0.8 ;в основном без шейпа bip01_spine1 = 0.4, 15, 0.8 ;торс до шеи bip01_spine2 = 0.4, 15, 0.8 bip01_neck = 1.25, 5, 0.1 ;в основном без шейпа bip01_head = 2, 5, 0.1 ;очень большой шейп eye_left = 3, 5, 0.1 ;глаза eye_right = 3, 5, 0.1 ;глаза jaw_1 = 1.25, 5, 0.1 ;рот от шеи до носа bip01_l_clavicle = 0.4, 15, 0.8 ;плечо + bip01_spine1 bip01_l_upperarm = 0.3, 6, 0.6, 1 ;0.2 bip01_l_forearm = 0.3, 6, 0.5, 1 ; bip01_l_hand = 0.2, 6, 0.2, 1 ;было 0.15 bip01_l_finger0 = 0.2, 6, 0.2, 1 bip01_l_finger1 = 0.2, 6, 0.2, 1 bip01_l_finger2 = 0.2, 6, 0.2, 1 bip01_r_clavicle = 0.4, 15, 0.8 ;плечо + bip01_spine1 bip01_r_upperarm = 0.3, 4, 0.6, 1 bip01_r_forearm = 0.3, 4, 0.5, 1 bip01_r_hand = 0.2, 4, 0.2, 1 bip01_r_finger0 = 0.2, 4, 0.2, 1 bip01_r_finger1 = 0.2, 4, 0.2, 1 bip01_r_finger2 = 0.2, 4, 0.2, 1 bip01_l_thigh = 0.3, 12, 0.5 ;бедро bip01_l_calf = 0.25, 12, 0.4 ;голень bip01_l_foot = 0.15, 12, 0.3 ;пятка,1 bip01_l_toe0 = 0.15, 12, 0.2 ;пальцы,1 bip01_r_thigh = 0.3, 9, 0.5 ;бедро bip01_r_calf = 0.25, 9, 0.4 ;голень bip01_r_foot = 0.15, 9, 0.3 ;пятка,1 bip01_r_toe0 = 0.15, 9, 0.2 ;пальцы,1 Дополнено 0 минут спустя Существует ли проверка из какого оружия был убит НПС? например если с ножа то...
-
В данном скрипте function ui_mm_mod:OnButton_buy_silencer_clicked() if db.actor:money() >= 200 then dialogs.relocate_money_from_actor(first_speaker, second_speaker, 200) dialogs.relocate_item_section(actor,"mp_wpn_addon_silencer","in") self.message_box_buy_silencer:InitMessageBox("message_box_buy_silencer") self.message_box_buy_silencer:ShowDialog(true) else self.message_box:InitMessageBox("message_box_not_money") self.message_box:ShowDialog(true) end if db.actor ~= nil then actor_money = db.actor:money() else actor_money = 0 end self:RefreshMoneyDisplay() end Ловлю вылет из-за строки dialogs.relocate_money_from_actor(first_speaker, second_speaker, 200) Лог Expression : !m_error_code Function : raii_guard::~raii_guard File : D:\prog_repository\sources\trunk\xrServerEntities\script_storage.cpp Line : 748 Description : ....r - call of pripyat\gamedata\scripts\dialogs.script:572: attempt to index local 'npc' (a nil value)
-
Как поменять шрифт надписи с версией ну либо своей новой надписи в главном меню снизу? Новую надпись я реализовал так: local _ver = xml:InitStatic("static_version",self) local _ver_mod = xml:InitStatic("mod_version",self) local mm = _G.main_menu.get_main_menu() _ver_mod:TextControl():SetText(game.translate_string("ui_mm_sandbox").." "..game.translate_string("ui_mm_pve_ver")) _ver:TextControl():SetText("ver. " .. mm:GetGSVer() .. " + Ai Additions") Но проблема в том что шрифт оригинала и мой одинаков P.S разобрался сам)) пускай будет гайдом как создать новую надпись в меню. Ещё нужно зарегистрировать данный текст в ui\ui_mm_main и ui_mm_main_16 данный код <mod_version x="15" y="720" width="100" height="30"> <text align="l" font="letterica18" r="135" g="123" b="116" complex_mode="0"/> </mod_version>