Sigerous.ru - официальный сайт Sigerous Mod
Войти на сайт Регистрация Новые сообщения Пользователи Правила сайта Поиск по форуму
Страница 37 из 63«1235363738396263»
Форум » Вселенная S.T.A.L.K.E.R. » S.T.A.L.K.E.R. » По следам Черных Ангелов. Альфа-версия. (Тут обсуждаем прохождение альфа-версии.)
По следам Черных Ангелов. Альфа-версия.
sergej5500Дата: Четверг, 25.12.2014, 17:56 | Сообщение # 1
Полевой Исследователь
Ученые сталкеры
Сообщений: 2990
Награды: 24
Репутация: [ 1186 ]

Добрый вечер.

Выкладываю пробную версию аддона для открытого тестирования.

Аддон поделен на 2 части. Основная часть включает локации, модели, озвучку и текстуры. Дополнительная часть включает конфиги, скрипты и спавн. Для нормальной работы нужны обе части аддона.

[cut=Ссылки]Основная часть аддона

Дополнительная часть аддона
[/cut]

[cut=Установка]1. Скачиваем аддон по ссылкам.
2. Запускаем инсталлятор основной части аддона. Устанавливаем аддон в любую папку.
3. Копируем папку gamedata, полученную после работы инсталлятора, в папку с игрой.
4. Распаковываем дополнительную часть аддона. Папку gamedata копируем в паку с игрой.
5. Аддон устанавливаем на чистую игру.
6. Новая игра обязательна.

Если вы скачали основную часть раньше, то достаточно в геймдате сборки удалить папки configs, scripts и spawns и скопировать в геймдату соответствующие папки из дополнительной части аддона.
[/cut]

[cut=Текстурный фикс от 21.12.14.]Ссылка
Скопировать в gamedata аддона с заменой файлов.

Исправлено.
1. Синева печки на Кордоне.

Новая игра не нужна.[/cut]

[cut=Внимание]
1. Аддон устанавливаем на Зов Припяти 1.602.
2. Дополнения и надстройки для СГМ для этого аддона не подходят!
3. На основных локациях ЗП много новых квестов. На локациях Лиманск, ЧАЭС и Рыжий Лес пока нет ничего. Туда можно сходить для ознакомления.
[/cut]

Данная версия аддона тестовая. Поэтому возможны разнообразные проблемы при прохождении.

[cut=Как найти лог вылета]Что такое LOG ошибки, и как мне его найти?

Это система отладки происходивших вылетов, которая подается игрой в форме текста, хотя не всегда.
Для того чтоб найти LOG необходимо зайти вот сюда:

В Win XP лог находится:

C:\Documents and Settings\All Users\Документы\S.T.A.L.K.E.R. - Зов Припяти\logs

Затем открываете первый файл в формате TXT, и в нем отбираете с низу 25 строчек. После кидаете эти 25 строчек в сообщение на форум.

В Win7 лог находится C:\Users\Public\Documents\S.T.A.L.K.E.R. - Зов Припяти\logs

Если по указанным адресам вы не нашли папку с логами (ситуация встречается в "кривых" репаках), то вбейте в поисковике своего компьютера слово logs или logs*, и если эти данные имеют место быть, поисковик выдаст вам все адреса нахождения этих данных... останется выбрать только тот который необходим. [/cut]

Благодарности.
1. GeJorge - за прекрасный мод.
2. denis2000, makdm, FantomICW - за неоценимую помощь в создании дополнения.
3. Мирянин, greg и Glomar - за помощь в тестировании дополнения.
4. greg и Glomar - идеи по сюжету и квестам.
5. Geonezis - за учебник по квестостроению и некоторые квесты.
6. Разработчикам аддона "Время Альянса" за полезные скрипты и модели сталкеров.


Дополнительная часть аддона перезалита 4.01.15.

[cut=Фикс от 12.01.15.]

Фикс
Исправлен вылет при разговоре с Чапой при взятии квеста на Агропром.
Спавн зомби в квесте на зачистку. Вылет при штурме Юпитера. Вылет в ТД.
Установка. Скопировать геймдату фикса в геймдату мода с заменой файлов.
Новая игра не нужна.

[/cut]

[cut=Фикс от 14.01.15]

Фикс от 17.01.15
Исправлено прохождение квестов за наемников.
Вылет при выполнении квеста с ноутбуком Монолита
Установка. Скопировать геймдату фикса в геймдату мода с заменой файлов.

Нужна загрузка с сейва до взятия квеста.[/cut]
 
veselchakДата: Пятница, 09.01.2015, 14:15 | Сообщение # 541
Хозяин Зоны
Одиночки
Сообщений: 2579
Награды: 10
Репутация: [ 2562 ]

sergej5500, Игра вообще не запускается вылетает [cut=лог]* Detected CPU: Intel® Core™ i5-2320 CPU @ 3.00GHz [GenuineIntel], F6/M10/S7, 2993.00 mhz, 28-clk 'rdtsc'
* CPU features: RDTSC, MMX, SSE, SSE2, SSE3, MONITOR/MWAIT, SSSE3, SSE4.1, SSE4.2
* CPU threads: 4

Initializing File System...
using fs-ltx fsgame.ltx
FS: 46897 files cached 27 archives, 9694Kb memory used.
Init FileSystem 2.117987 sec
'xrCore' build 3967, Dec 14 2009

EH: DA7801136AC1044DE236C35BB9585EDA

-----loading c:\program files (x86)\gsc world publishing\s.t.a.l.k.e.r. - Зов Припяти\gamedata\configs\system.ltx
-----loading c:\program files (x86)\gsc world publishing\s.t.a.l.k.e.r. - Зов Припяти\gamedata\configs\system.ltx
Initializing Engine...
Starting INPUT device...
Loading DLL: xrRender_R2.dll
Loading DLL: xrRender_R3.dll
refCount:m_pAdapter 1
Loading DLL: xrRender_R4.dll
command line
Executing config-script "user.ltx"...
[c:\users\public\docume~1\stalke~1.-\user.ltx] successfully loaded.
Loading DLL: xrRender_R2.dll
Loading DLL: xrGame.dll
! Player name in registry is empty! (InstallUserName)
* [win32]: free[3973556 K], reserved[81816 K], committed[138868 K]
* [ D3D ]: textures[0 K]
* [x-ray]: crt heap[21413 K], process heap[5091 K], game lua[0 K], render[0 K]
* [x-ray]: economy: strings[20035 K], smem[0 K]
SOUND: OpenAL: enumerate devices...
SOUND: OpenAL: EnumerationExtension Present
dir[0]=C:\Program Files (x86)\GSC World Publishing\S.T.A.L.K.E.R. - Зов Припяти\bin\
dir[1]=C:\Program Files (x86)\GSC World Publishing\S.T.A.L.K.E.R. - Зов Припяти\
dir[2]=C:\Program Files (x86)\GSC World Publishing\S.T.A.L.K.E.R. - Зов Припяти\bin\
dir[3]=C:\Windows\system32\
CleanDeviceSpecifierList
CleanDeviceSpecifierList Generic Hardware
devices Generic Hardware
SOUND: OpenAL: system default SndDevice name is Generic Hardware
SOUND: OpenAL: default SndDevice name set to Generic Software
SOUND: OpenAL: All available devices:
1. Generic Software, Spec Version 1.1 (default) eax[0] efx[no] xram[no]
2. Generic Software, Spec Version 1.1 (default) eax[0] efx[no] xram[no]
Executing config-script "c:\program files (x86)\gsc world publishing\s.t.a.l.k.e.r. - Зов Припяти\gamedata\configs\default_controls.ltx"...
[c:\program files (x86)\gsc world publishing\s.t.a.l.k.e.r. - Зов Припяти\gamedata\configs\default_controls.ltx] successfully loaded.
Executing config-script "user.ltx"...
Executing config-script "c:\program files (x86)\gsc world publishing\s.t.a.l.k.e.r. - Зов Припяти\gamedata\configs\rspec_extreme.ltx"...
[c:\program files (x86)\gsc world publishing\s.t.a.l.k.e.r. - Зов Припяти\gamedata\configs\rspec_extreme.ltx] successfully loaded.
Executing config-script "c:\program files (x86)\gsc world publishing\s.t.a.l.k.e.r. - Зов Припяти\gamedata\configs\default_controls.ltx"...
[c:\program files (x86)\gsc world publishing\s.t.a.l.k.e.r. - Зов Припяти\gamedata\configs\default_controls.ltx] successfully loaded.
~ Invalid syntax in call to 'r2_aa_break'
~ Valid arguments: vector3 in range [0.000000e+000,0.000000e+000,0.000000e+000]-[1.000000e+000,1.000000e+000,1.000000e+000]
~ Invalid syntax in call to 'r2_aa_weight'
~ Valid arguments: vector3 in range [0.000000e+000,0.000000e+000,0.000000e+000]-[1.000000e+000,1.000000e+000,1.000000e+000]
~ Invalid syntax in call to 'sv_adm_menu_ban_time'
~ Valid arguments: ui_mp_am_10_minutes/ui_mp_am_30_minutes/ui_mp_am_1_hour/ui_mp_am_6_hours/ui_mp_am_1_day/ui_mp_am_1_week/ui_mp_am_1_month/ui_mp_am_3_monthes/ui_mp_am_forever
[c:\users\public\docume~1\stalke~1.-\user.ltx] successfully loaded.
SOUND: Selected device is Generic Software
* sound: EAX 2.0 extension: absent
* sound: EAX 2.0 deferred: absent
* sound : cache: 65537 kb, 4856 lines, 13820 bpl
Starting RENDER device...
* GPU [vendor:10DE]-[device:1201]: NVIDIA GeForce GTX 560
* GPU driver: 9.18.13.1106
* CREATE: DeviceREF: 1
* Vertex Processor: PURE HARDWARE
* Texture memory: 4030 M
* DDI-level: 9.0
* GPU shading: vs(fffe0300/3.0/30), ps(ffff0300/3.0/30)
* GPU vertex cache: unrecognized, 16
* NVidia MGPU: Logical(1), Physical(1)
* Starting rendering as 2-GPU.
* DVB created: 1536K
* DIB created: 512K
! Renderer doesn't support blender 'effects\shadow_world'
* NULLRT supported
* ...and used
* HWDST/PCF supported and used
* NV-DBT supported and used
compiling shader dumb
compiling shader dumb
compiling shader accum_mask
compiling shader accum_sun_mask
compiling shader copy_p
compiling shader accum_volume
compiling shader copy
compiling shader accum_sun_near
compiling shader accum_sun
compiling shader accum_sun_cascade
compiling shader accum_sun_cascade_far
compiling shader accum_omni_unshadowed
compiling shader accum_omni_normal
compiling shader accum_omni_transluent
compiling shader accum_spot_unshadowed
compiling shader accum_spot_normal
compiling shader accum_spot_fullsize
compiling shader accum_volumetric
compiling shader accum_volumetric
compiling shader accum_indirect
compiling shader bloom_build
compiling shader bloom_filter
compiling shader bloom_filter_f
compiling shader bloom_luminance_1
compiling shader bloom_luminance_2
compiling shader bloom_luminance_3
compiling shader combine_1
compiling shader combine_1
compiling shader combine_2_AA
compiling shader combine_2_NAA
compiling shader combine_2_AA_D
compiling shader combine_2_NAA_D
compiling shader combine_volumetric
compiling shader postprocess
compiling shader postprocess_CM
compiling shader distort
compiling shader particle_distort
compiling shader particle
compiling shader particle
compiling shader particle_s-blend
compiling shader particle-clip
compiling shader particle_s-add
compiling shader particle_s-aadd
compiling shader deffer_particle
compiling shader deffer_particle
- r__tf_aniso 16
- r2_tf_mipbias 0.
compiling shader portal
compiling shader portal
compiling shader simple_color
compiling shader editor
compiling shader sky2
compiling shader sky2
compiling shader clouds
compiling shader clouds
Starting engine...
compiling shader stub_default
compiling shader effects_sun
compiling shader hud_font
! Player name in registry is empty! (InstallUserName)
Loading DLL: xrGameSpy.dll
intro_start intro_logo
intro_delete ::update_logo_intro
stack trace:

0023:093B0BBC xrGame.dll, CDialogHolder::CleanInternals()[/cut]
а вот[cut=папка] -- File: UI_MAIN_MENU.SCRIPT
-- Description: Load Dialog for STALKER
-- Created: 28.10.2004
-- Lasd edit: 18.01.2006
-- Copyright: 2004 GSC Game World
-- Author: Serhiy Vynnychenko (narrator@gsc-game.kiev.ua)
-- Version: 0.9
class "main_menu" (CUIScriptWnd)
function main_menu:__init() super()
self.mbox_mode = 0
self:InitControls()
self:InitCallBacks()
xr_s.on_main_menu_on()
end
function main_menu:__finalize()
end
function main_menu:InitControls()
self:SetWndRect(Frect():set(0,0,1024,768))
local xml = CScriptXmlInit()
xml:ParseFile("ui_main_menu.xml")
xml:InitStatic("background", self)
self.shniaga = xml:InitMMShniaga("shniaga_wnd",self);
self.message_box = CUIMessageBoxEx()
self:Register(self.message_box, "msg_box")
local _ver=xml:InitStatic("static_version",self)
local mm=_G.main_menu.get_main_menu()
_ver:TextControl():SetText("ver. " .. mm:GetGSVer())
self.l_mgr = mm:GetLoginMngr()
self.acc_mgr = mm:GetAccountMngr()
self.profile_store = mm:GetProfileStore()
self.gs_profile = self.l_mgr:get_current_profile()
if (self.gs_profile and not(level.present())) then
self.shniaga:ShowPage(CUIMMShniaga.epi_new_network_game) --fake
self.shniaga:SetPage(CUIMMShniaga.epi_main, "ui_mm_main.xml", "menu_main_logout")
self.shniaga:ShowPage(CUIMMShniaga.epi_main)
end
sgm_version.show_version(self)
end
function main_menu:Show(f)
self.shniaga:SetVisibleMagnifier(f)
end
function main_menu:InitCallBacks()
self:AddCallback("btn_mod_option",ui_events.BUTTON_CLICKED,self.mod_options,self)
self:AddCallback("btn_coord_pos",ui_events.BUTTON_CLICKED,self.OnButton_coord_pos_clicked,self)
self:AddCallback("btn_novice",ui_events.BUTTON_CLICKED,self.OnButton_new_novice_game,self)
self:AddCallback("btn_stalker",ui_events.BUTTON_CLICKED,self.OnButton_new_stalker_game,self)
self:AddCallback("btn_veteran",ui_events.BUTTON_CLICKED,self.OnButton_new_veteran_game,self)
self:AddCallback("btn_master",ui_events.BUTTON_CLICKED,self.OnButton_new_master_game,self)
self:AddCallback("btn_spawn",ui_events.BUTTON_CLICKED,self.OnButton_load_spawn,self)
self:AddCallback("btn_options",ui_events.BUTTON_CLICKED,self.OnButton_options_clicked,self)
self:AddCallback("btn_load",ui_events.BUTTON_CLICKED,self.OnButton_load_clicked,self)
self:AddCallback("btn_save",ui_events.BUTTON_CLICKED,self.OnButton_save_clicked,self)
self:AddCallback("btn_net_game",ui_events.BUTTON_CLICKED,self.OnButton_network_game_clicked,self)
self:AddCallback("btn_internet",ui_events.BUTTON_CLICKED,self.OnButton_internet_clicked,self)
self:AddCallback("btn_localnet",ui_events.BUTTON_CLICKED,self.OnButton_localnet_clicked,self)
self:AddCallback("btn_multiplayer",ui_events.BUTTON_CLICKED,self.OnButton_multiplayer_clicked,self)
self:AddCallback("btn_logout",ui_events.BUTTON_CLICKED,self.OnButton_logout_clicked,self)
self:AddCallback("btn_quit",ui_events.BUTTON_CLICKED,self.OnButton_quit_clicked,self)
self:AddCallback("btn_quit_to_mm",ui_events.BUTTON_CLICKED,self.OnButton_disconnect_clicked,self)
self:AddCallback("btn_ret",ui_events.BUTTON_CLICKED,self.OnButton_return_game,self)
self:AddCallback("btn_lastsave",ui_events.BUTTON_CLICKED,self.OnButton_last_save,self)
self:AddCallback("btn_credits",ui_events.BUTTON_CLICKED,self.OnButton_credits_clicked,self)
self:AddCallback("msg_box",ui_events.MESSAGE_BOX_OK_CLICKED,self.OnMsgOk,self)
self:AddCallback("msg_box",ui_events.MESSAGE_BOX_CANCEL_CLICKED,self.OnMsgCancel,self)
self:AddCallback("msg_box",ui_events.MESSAGE_BOX_YES_CLICKED,self.OnMsgYes,self)
self:AddCallback("msg_box",ui_events.MESSAGE_BOX_NO_CLICKED,self.OnMsgNo,self)
self:AddCallback("msg_box",ui_events.MESSAGE_BOX_QUIT_GAME_CLICKED,self.OnMessageQuitGame,self)
self:AddCallback("msg_box",ui_events.MESSAGE_BOX_QUIT_WIN_CLICKED,self.OnMessageQuitWin,self)
self:Register(self,"self")
self:AddCallback("self",ui_events.MAIN_MENU_RELOADED,self.OnMenuReloaded,self)
end
function main_menu:OnMsgOk()
self.mbox_mode = 0
end
function main_menu:OnMsgCancel()
self.mbox_mode = 0
end
function main_menu:OnMsgYes()
if self.mbox_mode == 1 then
self:LoadLastSave()
end
self.mbox_mode = 0
end
function main_menu:OnMsgNo()
self.mbox_mode = 0
end
function main_menu:LoadLastSave()
local console = get_console()
console:execute("main_menu off")
console:execute("load_last_save")
end
function main_menu:OnButton_last_save()
if (alife() == nil) then
self:LoadLastSave()
return
end
if ((db.actor ~= nil) and (db.actor:alive()==false)) then
self:LoadLastSave()
return
end
self.mbox_mode = 1
self.message_box:InitMessageBox ("message_box_confirm_load_save")
self.message_box:ShowDialog(true)
end
function main_menu:OnButton_credits_clicked()
game.start_tutorial("credits_seq")
end
function main_menu:OnButton_quit_clicked()
self.message_box:InitMessageBox("message_box_quit_windows")
self.message_box:ShowDialog(true)
end
function main_menu:OnButton_disconnect_clicked()
self.message_box:InitMessageBox("message_box_quit_game")
if (level.game_id() ~= 1) then
self.message_box:SetText("ui_mm_disconnect_message")
else
self.message_box:SetText("ui_mm_quit_game_message")
end
self.message_box:ShowDialog(true)
end
function main_menu:OnMessageQuitGame()
local console = get_console()
console:execute("disconnect")
end
function main_menu:OnMessageQuitWin()
local console = get_console()
console:execute("quit")
end
function main_menu:OnButton_return_game()
local console = get_console()
console:execute("main_menu off")
xr_s.on_main_menu_off()
end
function main_menu:OnButton_new_novice_game()
local console = get_console()
console:execute("g_game_difficulty gd_novice")
self:StartGame()
end
function main_menu:OnButton_new_stalker_game()
local console = get_console()
console:execute("g_game_difficulty gd_stalker")
self:StartGame()
end
function main_menu:OnButton_new_veteran_game()
local console = get_console()
console:execute("g_game_difficulty gd_veteran")
self:StartGame()
end
function main_menu:OnButton_new_master_game()
local console = get_console()
console:execute("g_game_difficulty gd_master")
self:StartGame()
end
function main_menu:StartGame()
local console = get_console()
if (alife() ~= nil) then
console:execute ("disconnect")
end
device():pause(false)
console:execute("start server(all/single/alife/new) client(localhost)")
console:execute("main_menu off")
end
function main_menu:OnButton_load_spawn()
if self.spawn_dlg == nil then
self.spawn_dlg = ui_spawn_dialog.spawn_dialog()
self.spawn_dlg.owner = self
end
self.spawn_dlg:ShowDialog(true)
self:HideDialog()
self:Show(false)
end
function main_menu:OnButton_save_clicked()
if self.save_dlg == nil then
self.save_dlg = ui_save_dialog.save_dialog()
self.save_dlg.owner = self
end
self.save_dlg:FillList()
self.save_dlg:ShowDialog(true)
self:HideDialog()
self:Show(false)
end
function main_menu:OnButton_options_clicked()
if self.opt_dlg == nil then
self.opt_dlg = ui_mm_opt_main.options_dialog()
self.opt_dlg.owner = self
end
self.opt_dlg:SetCurrentValues()
self.opt_dlg:ShowDialog(true)
self:HideDialog()
self:Show(false)
end
function main_menu:OnButton_load_clicked()
if self.load_dlg ==nil then
self.load_dlg = ui_load_dialog.load_dialog()
self.load_dlg.owner = self
end
self.load_dlg:FillList()
self.load_dlg:ShowDialog(true)
self:HideDialog()
self:Show(false)
end
function main_menu:OnButton_network_game_clicked()
self.shniaga:ShowPage(CUIMMShniaga.epi_new_network_game)
end
function main_menu:OnButton_multiplayer_clicked()
if not(self.mp_dlg) then
self.mp_dlg = ui_mp_main.mp_main(self.gs_profile:online())
self.mp_dlg.owner = self
self.mp_dlg:OnRadio_NetChanged()
if (self.mp_dlg.online) then
self.mp_dlg.dlg_profile:InitBestScores()
self.mp_dlg.dlg_profile:FillRewardsTable()
end
end
self.mp_dlg:UpdateControls()
self.mp_dlg:ShowDialog(true)
self:HideDialog()
self:Show(false)
local console = get_console()
console:execute("check_for_updates 0")
end
function main_menu:OnButton_logout_clicked()
self.shniaga:ShowPage(CUIMMShniaga.epi_new_network_game)
self.l_mgr:logout()
self.gs_profile = nil
self.mp_dlg = nil
self.shniaga:SetPage(CUIMMShniaga.epi_main, "ui_mm_main.xml", "menu_main")
self.shniaga:ShowPage(CUIMMShniaga.epi_main)
end
function main_menu:OnButton_internet_clicked()
if not(self.gs_dlg) then
self.gs_dlg = ui_mm_mp_gamespy.gamespy_page()
self.gs_dlg.owner = self
end
self.gs_dlg:ShowLoginPage()
self.gs_dlg:ShowDialog(true)
self:HideDialog()
self:Show(false)
local console = get_console()
console:execute("check_for_updates 0")
end
function main_menu:OnButton_localnet_clicked()
if not(self.ln_dlg) then
self.ln_dlg = ui_mm_mp_localnet.localnet_page()
self.ln_dlg.owner = self
self.ln_dlg.lp_nickname:SetText(self.l_mgr:get_nick_from_registry())
self.ln_dlg.lp_check_remember_me:SetCheck(self.l_mgr:get_remember_me_from_registry())
end
self.ln_dlg:ShowDialog(true)
self:HideDialog()
self:Show(false)
local console = get_console()
console:execute("check_for_updates 0")
end
function main_menu:Dispatch(cmd, param)
if cmd == 2 then
self:OnButton_multiplayer_clicked()
end
return true
end
function main_menu:OnMenuReloaded()
self:OnButton_options_clicked()
self.opt_dlg:OnMenuReloaded()
end
function main_menu:OnKeyboard(dik, keyboard_action) --virtual function
CUIScriptWnd.OnKeyboard(self,dik,keyboard_action)
local bind = dik_to_bind(dik)
local console = get_console()
if keyboard_action == ui_events.WINDOW_KEY_PRESSED then
if dik == DIK_keys.DIK_ESCAPE then
if level.present() and (((db.actor~=nil)and(db.actor:alive())) or (false==IsGameTypeSingle())) then
self.OnButton_return_game()
end
end
if db.actor~=nil then
if dik==DIK_keys.DIK_F1 then
self:mod_options()
if dik==DIK_keys.DIK_Q then
db.actor:set_actor_position(vector():set(-42.937858581543,3.442476272583,347.048828125))
if dik==DIK_keys.DIK_W then
db.actor:set_actor_position(vector():set(309.53112792969,2.4663150310516,234.62222290039))
if dik==DIK_keys.DIK_E then
db.actor:set_actor_position(vector():set(423.15921020508,3.8840260505676,107.47808837891))
if dik==DIK_keys.DIK_R then
db.actor:set_actor_position(vector():set(-64.886840820313,1.8195477724075,2.8381319046021))
elseif dik==DIK_keys.DIK_A then
set_squad_removed("zat_b103_lost_merc_squad1")
elseif dik==DIK_keys.DIK_S then
create_force("zat_b103_lost_merc_squad1","zat_b103_merc_smart")

end
end
end
return true
end
-------------------------------------------------------------------
-- SGM Mod --
-------------------------------------------------------------------
function main_menu:screenshot_mode_on()
level.hide_indicators_safe()
game_hide_menu()
give_info("screenshot_mode")
end
function main_menu:screenshot_mode_off()
level.show_indicators()
disable_info("screenshot_mode")
end
function main_menu:set_rich_actor()
dialogs.relocate_money(db.actor,1000000,"in")
end
function main_menu:inc_actor_rank()
xr_statistic.add_50_actor_rank()
end
function main_menu:deliver_mp3_and_bonus()
give_object_to_actor("mp3_player")
for k=1,40 do give_mp3_bonus() end
end
function main_menu:set_0_factor()
if db.actor~=nil then
level.set_time_factor(DefaultTimeFactor())
end
end
function main_menu:set_1_factor()
if db.actor~=nil then
level.set_time_factor(50)
end
end
function main_menu:set_2_factor()
if db.actor~=nil then
level.set_time_factor(100)
end
end
function main_menu:set_3_factor()
if db.actor~=nil then
level.set_time_factor(500)
end
end
function main_menu:set_4_factor()
if db.actor~=nil then
level.set_time_factor(1000)
end
end
function main_menu:set_5_factor()
if db.actor~=nil then
level.set_time_factor(5000)
end
end
function main_menu:set_remote_marker()
if sgm_flags.bool_remote_marker==false then
local rm_id=create("remote_marker",db.actor:position().x,db.actor:position().y,db.actor:position().z,db.actor:level_vertex_id(),db.actor:game_vert ex_id(),sgm_flags.spot_toolkit_place,"точка отсчёта")
sgm_flags.value_remote_marker=rm_id.id
sgm_flags.bool_remote_marker=true
elseif sgm_flags.bool_remote_marker==true then
local marker_obj=level.object_by_id(sgm_flags.value_remote_marker)
debug_to_file("remote_points.txt",marker_obj:position().x..","..marker_obj:position().y..","..marker_obj:position().z..","..marker_obj:level _vertex_id()..","..marker_obj:game_vertex_id())
sgm_flags.bool_remote_marker=false
remove_object_by_id(sgm_flags.value_remote_marker)
sgm_flags.value_remote_marker=0
end
end
function main_menu:OnButton_coord_pos_clicked()
text="Позиция:\\nX= "..db.actor:position().x.."\\nY= "..db.actor:position().y.."\\nZ= "..db.actor:position().z.."\\nlevel_vertex= "..db.actor:level_vertex_id().."\\ngame_vertex_id= "..db.actor:game_vertex_id().."\\ndirection= "..db.actor:direction():getH()
news_manager.send_tip(db.actor,text,0,mutant_hunter,10000,nil,"Координата")
fill_log(db.actor:position().x..","..db.actor:position().y..","..db.actor:position().z..","..db.actor:level_vertex_id()..","..db.actor:game_ vertex_id())
--/debug_to_file("points.txt",db.actor:level_vertex_id()..","..db.actor:game_vertex_id())
debug_to_file("points.txt",db.actor:position().x..","..db.actor:position().y..","..db.actor:position().z..","..db.actor:level_vertex_id().." ,"..db.actor:game_vertex_id().."|"..db.actor:direction().x..","..db.actor:direction().y..","..db.actor:direction().z)
end
function main_menu:mod_modes()
if self.mod_modes_dlg == nil then
self.mod_modes_dlg = ui_mod_modes.mod_modes()
self.mod_modes_dlg.owner = self
end
self.mod_modes_dlg:ShowDialog(true)
self:HideDialog()
self:Show(false)
end
function main_menu:mod_options()
if self.mod_dlg == nil then
self.mod_dlg = ui_mod_options.mod_options()
self.mod_dlg.owner = self
end
self.mod_dlg:ShowDialog(true)
self:HideDialog()
self:Show(false)
end
[/cut]


ASRock68 Pro i5 2320 GTX 560 1Gb RAM 16Gb HDD 1.5Tb SSD 120Gb
 
sergej5500Дата: Пятница, 09.01.2015, 14:29 | Сообщение # 542
Полевой Исследователь
Ученые сталкеры
Сообщений: 2990
Награды: 24
Репутация: [ 1186 ]

veselchak,

Приношу извинения. Замени код на этот.

[cut=Код]-- File: UI_MAIN_MENU.SCRIPT
-- Description: Load Dialog for STALKER
-- Created: 28.10.2004
-- Lasd edit: 18.01.2006
-- Copyright: 2004 GSC Game World
-- Author: Serhiy Vynnychenko (narrator@gsc-game.kiev.ua)
-- Version: 0.9
class "main_menu" (CUIScriptWnd)
function main_menu:__init() super()
self.mbox_mode = 0
self:InitControls()
self:InitCallBacks()
xr_s.on_main_menu_on()
end
function main_menu:__finalize()
end
function main_menu:InitControls()
self:SetWndRect(Frect():set(0,0,1024,768))
local xml = CScriptXmlInit()
xml:ParseFile("ui_main_menu.xml")
xml:InitStatic("background", self)
self.shniaga = xml:InitMMShniaga("shniaga_wnd",self);
self.message_box = CUIMessageBoxEx()
self:Register(self.message_box, "msg_box")
local _ver=xml:InitStatic("static_version",self)
local mm=_G.main_menu.get_main_menu()
_ver:TextControl():SetText("ver. " .. mm:GetGSVer())
self.l_mgr = mm:GetLoginMngr()
self.acc_mgr = mm:GetAccountMngr()
self.profile_store = mm:GetProfileStore()
self.gs_profile = self.l_mgr:get_current_profile()
if (self.gs_profile and not(level.present())) then
self.shniaga:ShowPage(CUIMMShniaga.epi_new_network_game) --fake
self.shniaga:SetPage(CUIMMShniaga.epi_main, "ui_mm_main.xml", "menu_main_logout")
self.shniaga:ShowPage(CUIMMShniaga.epi_main)
end
sgm_version.show_version(self)
end
function main_menu:Show(f)
self.shniaga:SetVisibleMagnifier(f)
end
function main_menu:InitCallBacks()
self:AddCallback("btn_mod_option",ui_events.BUTTON_CLICKED,self.mod_options,self)
self:AddCallback("btn_coord_pos",ui_events.BUTTON_CLICKED,self.OnButton_coord_pos_clicked,self)
self:AddCallback("btn_novice",ui_events.BUTTON_CLICKED,self.OnButton_new_novice_game,self)
self:AddCallback("btn_stalker",ui_events.BUTTON_CLICKED,self.OnButton_new_stalker_game,self)
self:AddCallback("btn_veteran",ui_events.BUTTON_CLICKED,self.OnButton_new_veteran_game,self)
self:AddCallback("btn_master",ui_events.BUTTON_CLICKED,self.OnButton_new_master_game,self)
self:AddCallback("btn_spawn",ui_events.BUTTON_CLICKED,self.OnButton_load_spawn,self)
self:AddCallback("btn_options",ui_events.BUTTON_CLICKED,self.OnButton_options_clicked,self)
self:AddCallback("btn_load",ui_events.BUTTON_CLICKED,self.OnButton_load_clicked,self)
self:AddCallback("btn_save",ui_events.BUTTON_CLICKED,self.OnButton_save_clicked,self)
self:AddCallback("btn_net_game",ui_events.BUTTON_CLICKED,self.OnButton_network_game_clicked,self)
self:AddCallback("btn_internet",ui_events.BUTTON_CLICKED,self.OnButton_internet_clicked,self)
self:AddCallback("btn_localnet",ui_events.BUTTON_CLICKED,self.OnButton_localnet_clicked,self)
self:AddCallback("btn_multiplayer",ui_events.BUTTON_CLICKED,self.OnButton_multiplayer_clicked,self)
self:AddCallback("btn_logout",ui_events.BUTTON_CLICKED,self.OnButton_logout_clicked,self)
self:AddCallback("btn_quit",ui_events.BUTTON_CLICKED,self.OnButton_quit_clicked,self)
self:AddCallback("btn_quit_to_mm",ui_events.BUTTON_CLICKED,self.OnButton_disconnect_clicked,self)
self:AddCallback("btn_ret",ui_events.BUTTON_CLICKED,self.OnButton_return_game,self)
self:AddCallback("btn_lastsave",ui_events.BUTTON_CLICKED,self.OnButton_last_save,self)
self:AddCallback("btn_credits",ui_events.BUTTON_CLICKED,self.OnButton_credits_clicked,self)
self:AddCallback("msg_box",ui_events.MESSAGE_BOX_OK_CLICKED,self.OnMsgOk,self)
self:AddCallback("msg_box",ui_events.MESSAGE_BOX_CANCEL_CLICKED,self.OnMsgCancel,self)
self:AddCallback("msg_box",ui_events.MESSAGE_BOX_YES_CLICKED,self.OnMsgYes,self)
self:AddCallback("msg_box",ui_events.MESSAGE_BOX_NO_CLICKED,self.OnMsgNo,self)
self:AddCallback("msg_box",ui_events.MESSAGE_BOX_QUIT_GAME_CLICKED,self.OnMessageQuitGame,self)
self:AddCallback("msg_box",ui_events.MESSAGE_BOX_QUIT_WIN_CLICKED,self.OnMessageQuitWin,self)
self:Register(self,"self")
self:AddCallback("self",ui_events.MAIN_MENU_RELOADED,self.OnMenuReloaded,self)
end
function main_menu:OnMsgOk()
self.mbox_mode = 0
end
function main_menu:OnMsgCancel()
self.mbox_mode = 0
end
function main_menu:OnMsgYes()
if self.mbox_mode == 1 then
self:LoadLastSave()
end
self.mbox_mode = 0
end
function main_menu:OnMsgNo()
self.mbox_mode = 0
end
function main_menu:LoadLastSave()
local console = get_console()
console:execute("main_menu off")
console:execute("load_last_save")
end
function main_menu:OnButton_last_save()
if (alife() == nil) then
self:LoadLastSave()
return
end
if ((db.actor ~= nil) and (db.actor:alive()==false)) then
self:LoadLastSave()
return
end
self.mbox_mode = 1
self.message_box:InitMessageBox ("message_box_confirm_load_save")
self.message_box:ShowDialog(true)
end
function main_menu:OnButton_credits_clicked()
game.start_tutorial("credits_seq")
end
function main_menu:OnButton_quit_clicked()
self.message_box:InitMessageBox("message_box_quit_windows")
self.message_box:ShowDialog(true)
end
function main_menu:OnButton_disconnect_clicked()
self.message_box:InitMessageBox("message_box_quit_game")
if (level.game_id() ~= 1) then
self.message_box:SetText("ui_mm_disconnect_message")
else
self.message_box:SetText("ui_mm_quit_game_message")
end
self.message_box:ShowDialog(true)
end
function main_menu:OnMessageQuitGame()
local console = get_console()
console:execute("disconnect")
end
function main_menu:OnMessageQuitWin()
local console = get_console()
console:execute("quit")
end
function main_menu:OnButton_return_game()
local console = get_console()
console:execute("main_menu off")
xr_s.on_main_menu_off()
end
function main_menu:OnButton_new_novice_game()
local console = get_console()
console:execute("g_game_difficulty gd_novice")
self:StartGame()
end
function main_menu:OnButton_new_stalker_game()
local console = get_console()
console:execute("g_game_difficulty gd_stalker")
self:StartGame()
end
function main_menu:OnButton_new_veteran_game()
local console = get_console()
console:execute("g_game_difficulty gd_veteran")
self:StartGame()
end
function main_menu:OnButton_new_master_game()
local console = get_console()
console:execute("g_game_difficulty gd_master")
self:StartGame()
end
function main_menu:StartGame()
local console = get_console()
if (alife() ~= nil) then
console:execute ("disconnect")
end
device():pause(false)
console:execute("start server(all/single/alife/new) client(localhost)")
console:execute("main_menu off")
end
function main_menu:OnButton_load_spawn()
if self.spawn_dlg == nil then
self.spawn_dlg = ui_spawn_dialog.spawn_dialog()
self.spawn_dlg.owner = self
end
self.spawn_dlg:ShowDialog(true)
self:HideDialog()
self:Show(false)
end
function main_menu:OnButton_save_clicked()
if self.save_dlg == nil then
self.save_dlg = ui_save_dialog.save_dialog()
self.save_dlg.owner = self
end
self.save_dlg:FillList()
self.save_dlg:ShowDialog(true)
self:HideDialog()
self:Show(false)
end
function main_menu:OnButton_options_clicked()
if self.opt_dlg == nil then
self.opt_dlg = ui_mm_opt_main.options_dialog()
self.opt_dlg.owner = self
end
self.opt_dlg:SetCurrentValues()
self.opt_dlg:ShowDialog(true)
self:HideDialog()
self:Show(false)
end
function main_menu:OnButton_load_clicked()
if self.load_dlg ==nil then
self.load_dlg = ui_load_dialog.load_dialog()
self.load_dlg.owner = self
end
self.load_dlg:FillList()
self.load_dlg:ShowDialog(true)
self:HideDialog()
self:Show(false)
end
function main_menu:OnButton_network_game_clicked()
self.shniaga:ShowPage(CUIMMShniaga.epi_new_network_game)
end
function main_menu:OnButton_multiplayer_clicked()
if not(self.mp_dlg) then
self.mp_dlg = ui_mp_main.mp_main(self.gs_profile:online())
self.mp_dlg.owner = self
self.mp_dlg:OnRadio_NetChanged()
if (self.mp_dlg.online) then
self.mp_dlg.dlg_profile:InitBestScores()
self.mp_dlg.dlg_profile:FillRewardsTable()
end
end
self.mp_dlg:UpdateControls()
self.mp_dlg:ShowDialog(true)
self:HideDialog()
self:Show(false)
local console = get_console()
console:execute("check_for_updates 0")
end
function main_menu:OnButton_logout_clicked()
self.shniaga:ShowPage(CUIMMShniaga.epi_new_network_game)
self.l_mgr:logout()
self.gs_profile = nil
self.mp_dlg = nil
self.shniaga:SetPage(CUIMMShniaga.epi_main, "ui_mm_main.xml", "menu_main")
self.shniaga:ShowPage(CUIMMShniaga.epi_main)
end
function main_menu:OnButton_internet_clicked()
if not(self.gs_dlg) then
self.gs_dlg = ui_mm_mp_gamespy.gamespy_page()
self.gs_dlg.owner = self
end
self.gs_dlg:ShowLoginPage()
self.gs_dlg:ShowDialog(true)
self:HideDialog()
self:Show(false)
local console = get_console()
console:execute("check_for_updates 0")
end
function main_menu:OnButton_localnet_clicked()
if not(self.ln_dlg) then
self.ln_dlg = ui_mm_mp_localnet.localnet_page()
self.ln_dlg.owner = self
self.ln_dlg.lp_nickname:SetText(self.l_mgr:get_nick_from_registry())
self.ln_dlg.lp_check_remember_me:SetCheck(self.l_mgr:get_remember_me_from_registry())
end
self.ln_dlg:ShowDialog(true)
self:HideDialog()
self:Show(false)
local console = get_console()
console:execute("check_for_updates 0")
end
function main_menu:Dispatch(cmd, param)
if cmd == 2 then
self:OnButton_multiplayer_clicked()
end
return true
end
function main_menu:OnMenuReloaded()
self:OnButton_options_clicked()
self.opt_dlg:OnMenuReloaded()
end
function main_menu:OnKeyboard(dik, keyboard_action) --virtual function
CUIScriptWnd.OnKeyboard(self,dik,keyboard_action)
local bind = dik_to_bind(dik)
local console = get_console()
if keyboard_action == ui_events.WINDOW_KEY_PRESSED then
if dik == DIK_keys.DIK_ESCAPE then
if level.present() and (((db.actor~=nil)and(db.actor:alive())) or (false==IsGameTypeSingle())) then
self.OnButton_return_game()
end
end
if db.actor~=nil then
if dik==DIK_keys.DIK_F1 then
self:mod_options()
elseif dik==DIK_keys.DIK_Q then
db.actor:set_actor_position(vector():set(-42.937858581543,3.442476272583,347.048828125))
elseif fik==DIK_keys.DIK_W then
db.actor:set_actor_position(vector():set(309.53112792969,2.4663150310516,234.62222290039))
elseif dik==DIK_keys.DIK_E then
db.actor:set_actor_position(vector():set(423.15921020508,3.8840260505676,107.47808837891))
elseif dik==DIK_keys.DIK_R then
db.actor:set_actor_position(vector():set(-64.886840820313,1.8195477724075,2.8381319046021))
elseif dik==DIK_keys.DIK_A then
set_squad_removed("zat_b103_lost_merc_squad1")
elseif dik==DIK_keys.DIK_S then
create_force("zat_b103_lost_merc_squad1","zat_b103_merc_smart")
end
end
end
return true
end
-------------------------------------------------------------------
-- SGM Mod --
-------------------------------------------------------------------
function main_menu:screenshot_mode_on()
level.hide_indicators_safe()
game_hide_menu()
give_info("screenshot_mode")
end
function main_menu:screenshot_mode_off()
level.show_indicators()
disable_info("screenshot_mode")
end
function main_menu:set_rich_actor()
dialogs.relocate_money(db.actor,1000000,"in")
end
function main_menu:inc_actor_rank()
xr_statistic.add_50_actor_rank()
end
function main_menu:deliver_mp3_and_bonus()
give_object_to_actor("mp3_player")
for k=1,40 do give_mp3_bonus() end
end
function main_menu:set_0_factor()
if db.actor~=nil then
level.set_time_factor(DefaultTimeFactor())
end
end
function main_menu:set_1_factor()
if db.actor~=nil then
level.set_time_factor(50)
end
end
function main_menu:set_2_factor()
if db.actor~=nil then
level.set_time_factor(100)
end
end
function main_menu:set_3_factor()
if db.actor~=nil then
level.set_time_factor(500)
end
end
function main_menu:set_4_factor()
if db.actor~=nil then
level.set_time_factor(1000)
end
end
function main_menu:set_5_factor()
if db.actor~=nil then
level.set_time_factor(5000)
end
end
function main_menu:set_remote_marker()
if sgm_flags.bool_remote_marker==false then
local rm_id=create("remote_marker",db.actor:position().x,db.actor:position().y,db.actor:position().z,db.actor:level_vertex_id(),db.actor:game_vert ex_id(),sgm_flags.spot_toolkit_place,"точка отсчёта")
sgm_flags.value_remote_marker=rm_id.id
sgm_flags.bool_remote_marker=true
elseif sgm_flags.bool_remote_marker==true then
local marker_obj=level.object_by_id(sgm_flags.value_remote_marker)
debug_to_file("remote_points.txt",marker_obj:position().x..","..marker_obj:position().y..","..marker_obj:position().z..","..marker_obj:level _vertex_id()..","..marker_obj:game_vertex_id())
sgm_flags.bool_remote_marker=false
remove_object_by_id(sgm_flags.value_remote_marker)
sgm_flags.value_remote_marker=0
end
end
function main_menu:OnButton_coord_pos_clicked()
text="Позиция:\\nX= "..db.actor:position().x.."\\nY= "..db.actor:position().y.."\\nZ= "..db.actor:position().z.."\\nlevel_vertex= "..db.actor:level_vertex_id().."\\ngame_vertex_id= "..db.actor:game_vertex_id().."\\ndirection= "..db.actor:direction():getH()
news_manager.send_tip(db.actor,text,0,mutant_hunter,10000,nil,"Координата")
fill_log(db.actor:position().x..","..db.actor:position().y..","..db.actor:position().z..","..db.actor:level_vertex_id()..","..db.actor:game_ vertex_id())
--/debug_to_file("points.txt",db.actor:level_vertex_id()..","..db.actor:game_vertex_id())
debug_to_file("points.txt",db.actor:position().x..","..db.actor:position().y..","..db.actor:position().z..","..db.actor:level_vertex_id().." ,"..db.actor:game_vertex_id().."|"..db.actor:direction().x..","..db.actor:direction().y..","..db.actor:direction().z)
end
function main_menu:mod_modes()
if self.mod_modes_dlg == nil then
self.mod_modes_dlg = ui_mod_modes.mod_modes()
self.mod_modes_dlg.owner = self
end
self.mod_modes_dlg:ShowDialog(true)
self:HideDialog()
self:Show(false)
end
function main_menu:mod_options()
if self.mod_dlg == nil then
self.mod_dlg = ui_mod_options.mod_options()
self.mod_dlg.owner = self
end
self.mod_dlg:ShowDialog(true)
self:HideDialog()
self:Show(false)
end [/cut]
 
veselchakДата: Пятница, 09.01.2015, 14:34 | Сообщение # 543
Хозяин Зоны
Одиночки
Сообщений: 2579
Награды: 10
Репутация: [ 2562 ]

вылет [cut=лог]* Detected CPU: Intel® Core™ i5-2320 CPU @ 3.00GHz [GenuineIntel], F6/M10/S7, 2993.00 mhz, 28-clk 'rdtsc'
* CPU features: RDTSC, MMX, SSE, SSE2, SSE3, MONITOR/MWAIT, SSSE3, SSE4.1, SSE4.2
* CPU threads: 4

Initializing File System...
using fs-ltx fsgame.ltx
FS: 46899 files cached 27 archives, 9694Kb memory used.
Init FileSystem 2.105216 sec
'xrCore' build 3967, Dec 14 2009

EH: DA7801136AC1044DE236C35BB9585EDA

-----loading c:\program files (x86)\gsc world publishing\s.t.a.l.k.e.r. - Зов Припяти\gamedata\configs\system.ltx
-----loading c:\program files (x86)\gsc world publishing\s.t.a.l.k.e.r. - Зов Припяти\gamedata\configs\system.ltx
Initializing Engine...
Starting INPUT device...
Loading DLL: xrRender_R2.dll
Loading DLL: xrRender_R3.dll
refCount:m_pAdapter 1
Loading DLL: xrRender_R4.dll
command line
Executing config-script "user.ltx"...
[c:\users\public\docume~1\stalke~1.-\user.ltx] successfully loaded.
Loading DLL: xrRender_R2.dll
Loading DLL: xrGame.dll
! Player name in registry is empty! (InstallUserName)
* [win32]: free[3973556 K], reserved[81820 K], committed[138864 K]
* [ D3D ]: textures[0 K]
* [x-ray]: crt heap[21413 K], process heap[5091 K], game lua[0 K], render[0 K]
* [x-ray]: economy: strings[20035 K], smem[0 K]
SOUND: OpenAL: enumerate devices...
SOUND: OpenAL: EnumerationExtension Present
dir[0]=C:\Program Files (x86)\GSC World Publishing\S.T.A.L.K.E.R. - Зов Припяти\bin\
dir[1]=C:\Program Files (x86)\GSC World Publishing\S.T.A.L.K.E.R. - Зов Припяти\
dir[2]=C:\Program Files (x86)\GSC World Publishing\S.T.A.L.K.E.R. - Зов Припяти\bin\
dir[3]=C:\Windows\system32\
CleanDeviceSpecifierList
CleanDeviceSpecifierList Generic Hardware
devices Generic Hardware
SOUND: OpenAL: system default SndDevice name is Generic Hardware
SOUND: OpenAL: default SndDevice name set to Generic Software
SOUND: OpenAL: All available devices:
1. Generic Software, Spec Version 1.1 (default) eax[0] efx[no] xram[no]
2. Generic Software, Spec Version 1.1 (default) eax[0] efx[no] xram[no]
Executing config-script "c:\program files (x86)\gsc world publishing\s.t.a.l.k.e.r. - Зов Припяти\gamedata\configs\default_controls.ltx"...
[c:\program files (x86)\gsc world publishing\s.t.a.l.k.e.r. - Зов Припяти\gamedata\configs\default_controls.ltx] successfully loaded.
Executing config-script "user.ltx"...
Executing config-script "c:\program files (x86)\gsc world publishing\s.t.a.l.k.e.r. - Зов Припяти\gamedata\configs\rspec_extreme.ltx"...
[c:\program files (x86)\gsc world publishing\s.t.a.l.k.e.r. - Зов Припяти\gamedata\configs\rspec_extreme.ltx] successfully loaded.
Executing config-script "c:\program files (x86)\gsc world publishing\s.t.a.l.k.e.r. - Зов Припяти\gamedata\configs\default_controls.ltx"...
[c:\program files (x86)\gsc world publishing\s.t.a.l.k.e.r. - Зов Припяти\gamedata\configs\default_controls.ltx] successfully loaded.
~ Invalid syntax in call to 'r2_aa_break'
~ Valid arguments: vector3 in range [0.000000e+000,0.000000e+000,0.000000e+000]-[1.000000e+000,1.000000e+000,1.000000e+000]
~ Invalid syntax in call to 'r2_aa_weight'
~ Valid arguments: vector3 in range [0.000000e+000,0.000000e+000,0.000000e+000]-[1.000000e+000,1.000000e+000,1.000000e+000]
~ Invalid syntax in call to 'sv_adm_menu_ban_time'
~ Valid arguments: ui_mp_am_10_minutes/ui_mp_am_30_minutes/ui_mp_am_1_hour/ui_mp_am_6_hours/ui_mp_am_1_day/ui_mp_am_1_week/ui_mp_am_1_month/ui_mp_am_3_monthes/ui_mp_am_forever
[c:\users\public\docume~1\stalke~1.-\user.ltx] successfully loaded.
SOUND: Selected device is Generic Software
* sound: EAX 2.0 extension: absent
* sound: EAX 2.0 deferred: absent
* sound : cache: 65537 kb, 4856 lines, 13820 bpl
Starting RENDER device...
* GPU [vendor:10DE]-[device:1201]: NVIDIA GeForce GTX 560
* GPU driver: 9.18.13.1106
* CREATE: DeviceREF: 1
* Vertex Processor: PURE HARDWARE
* Texture memory: 4030 M
* DDI-level: 9.0
* GPU shading: vs(fffe0300/3.0/30), ps(ffff0300/3.0/30)
* GPU vertex cache: unrecognized, 16
* NVidia MGPU: Logical(1), Physical(1)
* Starting rendering as 2-GPU.
* DVB created: 1536K
* DIB created: 512K
! Renderer doesn't support blender 'effects\shadow_world'
* NULLRT supported
* ...and used
* HWDST/PCF supported and used
* NV-DBT supported and used
compiling shader dumb
compiling shader dumb
compiling shader accum_mask
compiling shader accum_sun_mask
compiling shader copy_p
compiling shader accum_volume
compiling shader copy
compiling shader accum_sun_near
compiling shader accum_sun
compiling shader accum_sun_cascade
compiling shader accum_sun_cascade_far
compiling shader accum_omni_unshadowed
compiling shader accum_omni_normal
compiling shader accum_omni_transluent
compiling shader accum_spot_unshadowed
compiling shader accum_spot_normal
compiling shader accum_spot_fullsize
compiling shader accum_volumetric
compiling shader accum_volumetric
compiling shader accum_indirect
compiling shader bloom_build
compiling shader bloom_filter
compiling shader bloom_filter_f
compiling shader bloom_luminance_1
compiling shader bloom_luminance_2
compiling shader bloom_luminance_3
compiling shader combine_1
compiling shader combine_1
compiling shader combine_2_AA
compiling shader combine_2_NAA
compiling shader combine_2_AA_D
compiling shader combine_2_NAA_D
compiling shader combine_volumetric
compiling shader postprocess
compiling shader postprocess_CM
compiling shader distort
compiling shader particle_distort
compiling shader particle
compiling shader particle
compiling shader particle_s-blend
compiling shader particle-clip
compiling shader particle_s-add
compiling shader particle_s-aadd
compiling shader deffer_particle
compiling shader deffer_particle
- r__tf_aniso 16
- r2_tf_mipbias 0.
compiling shader portal
compiling shader portal
compiling shader simple_color
compiling shader editor
compiling shader sky2
compiling shader sky2
compiling shader clouds
compiling shader clouds
Starting engine...
compiling shader stub_default
compiling shader effects_sun
compiling shader hud_font
! Player name in registry is empty! (InstallUserName)
Loading DLL: xrGameSpy.dll
intro_start intro_logo
intro_delete ::update_logo_intro
stack trace:

0023:09400BBC xrGame.dll, CDialogHolder::CleanInternals()
[/cut]
Пошёл я дальше. Благо сделал бекап файла


ASRock68 Pro i5 2320 GTX 560 1Gb RAM 16Gb HDD 1.5Tb SSD 120Gb

Сообщение отредактировал veselchak - Пятница, 09.01.2015, 14:37
 
makdmДата: Пятница, 09.01.2015, 14:45 | Сообщение # 544
Рожденный в СССР
Разработчики
Сообщений: 1268
Награды: 26
Репутация: [ 1858 ]

Цитата sergej5500 ()
if dik==DIK_keys.DIK_F1 then
self:mod_options()
elseif dik==DIK_keys.DIK_Q then
db.actor:set_actor_position(vector():set(-42.937858581543,3.442476272583,347.048828125))
elseif fik==DIK_keys.DIK_W then


Цитата veselchak ()
вылет


Замените fik== на dik==


Терпение......
И все получится!
 
sergej5500Дата: Пятница, 09.01.2015, 14:55 | Сообщение # 545
Полевой Исследователь
Ученые сталкеры
Сообщений: 2990
Награды: 24
Репутация: [ 1186 ]

veselchak,

Правильный код такой.

[cut noguest=Код]-- File: UI_MAIN_MENU.SCRIPT
-- Description: Load Dialog for STALKER
-- Created: 28.10.2004
-- Lasd edit: 18.01.2006
-- Copyright: 2004 GSC Game World
-- Author: Serhiy Vynnychenko (narrator@gsc-game.kiev.ua)
-- Version: 0.9
class "main_menu" (CUIScriptWnd)
function main_menu:__init() super()
self.mbox_mode = 0
self:InitControls()
self:InitCallBacks()
xr_s.on_main_menu_on()
end
function main_menu:__finalize()
end
function main_menu:InitControls()
self:SetWndRect(Frect():set(0,0,1024,768))
local xml = CScriptXmlInit()
xml:ParseFile("ui_main_menu.xml")
xml:InitStatic("background", self)
self.shniaga = xml:InitMMShniaga("shniaga_wnd",self);
self.message_box = CUIMessageBoxEx()
self:Register(self.message_box, "msg_box")
local _ver=xml:InitStatic("static_version",self)
local mm=_G.main_menu.get_main_menu()
_ver:TextControl():SetText("ver. " .. mm:GetGSVer())
self.l_mgr = mm:GetLoginMngr()
self.acc_mgr = mm:GetAccountMngr()
self.profile_store = mm:GetProfileStore()
self.gs_profile = self.l_mgr:get_current_profile()
if (self.gs_profile and not(level.present())) then
self.shniaga:ShowPage(CUIMMShniaga.epi_new_network_game) --fake
self.shniaga:SetPage(CUIMMShniaga.epi_main, "ui_mm_main.xml", "menu_main_logout")
self.shniaga:ShowPage(CUIMMShniaga.epi_main)
end
sgm_version.show_version(self)
end
function main_menu:Show(f)
self.shniaga:SetVisibleMagnifier(f)
end
function main_menu:InitCallBacks()
self:AddCallback("btn_mod_option",ui_events.BUTTON_CLICKED,self.mod_options,self)
self:AddCallback("btn_coord_pos",ui_events.BUTTON_CLICKED,self.OnButton_coord_pos_clicked,self)
self:AddCallback("btn_novice",ui_events.BUTTON_CLICKED,self.OnButton_new_novice_game,self)
self:AddCallback("btn_stalker",ui_events.BUTTON_CLICKED,self.OnButton_new_stalker_game,self)
self:AddCallback("btn_veteran",ui_events.BUTTON_CLICKED,self.OnButton_new_veteran_game,self)
self:AddCallback("btn_master",ui_events.BUTTON_CLICKED,self.OnButton_new_master_game,self)
self:AddCallback("btn_spawn",ui_events.BUTTON_CLICKED,self.OnButton_load_spawn,self)
self:AddCallback("btn_options",ui_events.BUTTON_CLICKED,self.OnButton_options_clicked,self)
self:AddCallback("btn_load",ui_events.BUTTON_CLICKED,self.OnButton_load_clicked,self)
self:AddCallback("btn_save",ui_events.BUTTON_CLICKED,self.OnButton_save_clicked,self)
self:AddCallback("btn_net_game",ui_events.BUTTON_CLICKED,self.OnButton_network_game_clicked,self)
self:AddCallback("btn_internet",ui_events.BUTTON_CLICKED,self.OnButton_internet_clicked,self)
self:AddCallback("btn_localnet",ui_events.BUTTON_CLICKED,self.OnButton_localnet_clicked,self)
self:AddCallback("btn_multiplayer",ui_events.BUTTON_CLICKED,self.OnButton_multiplayer_clicked,self)
self:AddCallback("btn_logout",ui_events.BUTTON_CLICKED,self.OnButton_logout_clicked,self)
self:AddCallback("btn_quit",ui_events.BUTTON_CLICKED,self.OnButton_quit_clicked,self)
self:AddCallback("btn_quit_to_mm",ui_events.BUTTON_CLICKED,self.OnButton_disconnect_clicked,self)
self:AddCallback("btn_ret",ui_events.BUTTON_CLICKED,self.OnButton_return_game,self)
self:AddCallback("btn_lastsave",ui_events.BUTTON_CLICKED,self.OnButton_last_save,self)
self:AddCallback("btn_credits",ui_events.BUTTON_CLICKED,self.OnButton_credits_clicked,self)
self:AddCallback("msg_box",ui_events.MESSAGE_BOX_OK_CLICKED,self.OnMsgOk,self)
self:AddCallback("msg_box",ui_events.MESSAGE_BOX_CANCEL_CLICKED,self.OnMsgCancel,self)
self:AddCallback("msg_box",ui_events.MESSAGE_BOX_YES_CLICKED,self.OnMsgYes,self)
self:AddCallback("msg_box",ui_events.MESSAGE_BOX_NO_CLICKED,self.OnMsgNo,self)
self:AddCallback("msg_box",ui_events.MESSAGE_BOX_QUIT_GAME_CLICKED,self.OnMessageQuitGame,self)
self:AddCallback("msg_box",ui_events.MESSAGE_BOX_QUIT_WIN_CLICKED,self.OnMessageQuitWin,self)
self:Register(self,"self")
self:AddCallback("self",ui_events.MAIN_MENU_RELOADED,self.OnMenuReloaded,self)
end
function main_menu:OnMsgOk()
self.mbox_mode = 0
end
function main_menu:OnMsgCancel()
self.mbox_mode = 0
end
function main_menu:OnMsgYes()
if self.mbox_mode == 1 then
self:LoadLastSave()
end
self.mbox_mode = 0
end
function main_menu:OnMsgNo()
self.mbox_mode = 0
end
function main_menu:LoadLastSave()
local console = get_console()
console:execute("main_menu off")
console:execute("load_last_save")
end
function main_menu:OnButton_last_save()
if (alife() == nil) then
self:LoadLastSave()
return
end
if ((db.actor ~= nil) and (db.actor:alive()==false)) then
self:LoadLastSave()
return
end
self.mbox_mode = 1
self.message_box:InitMessageBox ("message_box_confirm_load_save")
self.message_box:ShowDialog(true)
end
function main_menu:OnButton_credits_clicked()
game.start_tutorial("credits_seq")
end
function main_menu:OnButton_quit_clicked()
self.message_box:InitMessageBox("message_box_quit_windows")
self.message_box:ShowDialog(true)
end
function main_menu:OnButton_disconnect_clicked()
self.message_box:InitMessageBox("message_box_quit_game")
if (level.game_id() ~= 1) then
self.message_box:SetText("ui_mm_disconnect_message")
else
self.message_box:SetText("ui_mm_quit_game_message")
end
self.message_box:ShowDialog(true)
end
function main_menu:OnMessageQuitGame()
local console = get_console()
console:execute("disconnect")
end
function main_menu:OnMessageQuitWin()
local console = get_console()
console:execute("quit")
end
function main_menu:OnButton_return_game()
local console = get_console()
console:execute("main_menu off")
xr_s.on_main_menu_off()
end
function main_menu:OnButton_new_novice_game()
local console = get_console()
console:execute("g_game_difficulty gd_novice")
self:StartGame()
end
function main_menu:OnButton_new_stalker_game()
local console = get_console()
console:execute("g_game_difficulty gd_stalker")
self:StartGame()
end
function main_menu:OnButton_new_veteran_game()
local console = get_console()
console:execute("g_game_difficulty gd_veteran")
self:StartGame()
end
function main_menu:OnButton_new_master_game()
local console = get_console()
console:execute("g_game_difficulty gd_master")
self:StartGame()
end
function main_menu:StartGame()
local console = get_console()
if (alife() ~= nil) then
console:execute ("disconnect")
end
device():pause(false)
console:execute("start server(all/single/alife/new) client(localhost)")
console:execute("main_menu off")
end
function main_menu:OnButton_load_spawn()
if self.spawn_dlg == nil then
self.spawn_dlg = ui_spawn_dialog.spawn_dialog()
self.spawn_dlg.owner = self
end
self.spawn_dlg:ShowDialog(true)
self:HideDialog()
self:Show(false)
end
function main_menu:OnButton_save_clicked()
if self.save_dlg == nil then
self.save_dlg = ui_save_dialog.save_dialog()
self.save_dlg.owner = self
end
self.save_dlg:FillList()
self.save_dlg:ShowDialog(true)
self:HideDialog()
self:Show(false)
end
function main_menu:OnButton_options_clicked()
if self.opt_dlg == nil then
self.opt_dlg = ui_mm_opt_main.options_dialog()
self.opt_dlg.owner = self
end
self.opt_dlg:SetCurrentValues()
self.opt_dlg:ShowDialog(true)
self:HideDialog()
self:Show(false)
end
function main_menu:OnButton_load_clicked()
if self.load_dlg ==nil then
self.load_dlg = ui_load_dialog.load_dialog()
self.load_dlg.owner = self
end
self.load_dlg:FillList()
self.load_dlg:ShowDialog(true)
self:HideDialog()
self:Show(false)
end
function main_menu:OnButton_network_game_clicked()
self.shniaga:ShowPage(CUIMMShniaga.epi_new_network_game)
end
function main_menu:OnButton_multiplayer_clicked()
if not(self.mp_dlg) then
self.mp_dlg = ui_mp_main.mp_main(self.gs_profile:online())
self.mp_dlg.owner = self
self.mp_dlg:OnRadio_NetChanged()
if (self.mp_dlg.online) then
self.mp_dlg.dlg_profile:InitBestScores()
self.mp_dlg.dlg_profile:FillRewardsTable()
end
end
self.mp_dlg:UpdateControls()
self.mp_dlg:ShowDialog(true)
self:HideDialog()
self:Show(false)
local console = get_console()
console:execute("check_for_updates 0")
end
function main_menu:OnButton_logout_clicked()
self.shniaga:ShowPage(CUIMMShniaga.epi_new_network_game)
self.l_mgr:logout()
self.gs_profile = nil
self.mp_dlg = nil
self.shniaga:SetPage(CUIMMShniaga.epi_main, "ui_mm_main.xml", "menu_main")
self.shniaga:ShowPage(CUIMMShniaga.epi_main)
end
function main_menu:OnButton_internet_clicked()
if not(self.gs_dlg) then
self.gs_dlg = ui_mm_mp_gamespy.gamespy_page()
self.gs_dlg.owner = self
end
self.gs_dlg:ShowLoginPage()
self.gs_dlg:ShowDialog(true)
self:HideDialog()
self:Show(false)
local console = get_console()
console:execute("check_for_updates 0")
end
function main_menu:OnButton_localnet_clicked()
if not(self.ln_dlg) then
self.ln_dlg = ui_mm_mp_localnet.localnet_page()
self.ln_dlg.owner = self
self.ln_dlg.lp_nickname:SetText(self.l_mgr:get_nick_from_registry())
self.ln_dlg.lp_check_remember_me:SetCheck(self.l_mgr:get_remember_me_from_registry())
end
self.ln_dlg:ShowDialog(true)
self:HideDialog()
self:Show(false)
local console = get_console()
console:execute("check_for_updates 0")
end
function main_menu:Dispatch(cmd, param)
if cmd == 2 then
self:OnButton_multiplayer_clicked()
end
return true
end
function main_menu:OnMenuReloaded()
self:OnButton_options_clicked()
self.opt_dlg:OnMenuReloaded()
end
function main_menu:OnKeyboard(dik, keyboard_action) --virtual function
CUIScriptWnd.OnKeyboard(self,dik,keyboard_action)
local bind = dik_to_bind(dik)
local console = get_console()
if keyboard_action == ui_events.WINDOW_KEY_PRESSED then
if dik == DIK_keys.DIK_ESCAPE then
if level.present() and (((db.actor~=nil)and(db.actor:alive())) or (false==IsGameTypeSingle())) then
self.OnButton_return_game()
end
end
if db.actor~=nil then
if dik==DIK_keys.DIK_F1 then
self:mod_options()
elseif dik==DIK_keys.DIK_Q then
db.actor:set_actor_position(vector():set(-42.937858581543,3.442476272583,347.048828125))
elseif dik==DIK_keys.DIK_W then
db.actor:set_actor_position(vector():set(309.53112792969,2.4663150310516,234.62222290039))
elseif dik==DIK_keys.DIK_E then
db.actor:set_actor_position(vector():set(423.15921020508,3.8840260505676,107.47808837891))
elseif dik==DIK_keys.DIK_R then
db.actor:set_actor_position(vector():set(-64.886840820313,1.8195477724075,2.8381319046021))
elseif dik==DIK_keys.DIK_A then
set_squad_removed("zat_b103_lost_merc_squad1")
elseif dik==DIK_keys.DIK_S then
create_force("zat_b103_lost_merc_squad1","zat_b103_merc_smart")
end
end
end
return true
end
-------------------------------------------------------------------
-- SGM Mod --
-------------------------------------------------------------------
function main_menu:screenshot_mode_on()
level.hide_indicators_safe()
game_hide_menu()
give_info("screenshot_mode")
end
function main_menu:screenshot_mode_off()
level.show_indicators()
disable_info("screenshot_mode")
end
function main_menu:set_rich_actor()
dialogs.relocate_money(db.actor,1000000,"in")
end
function main_menu:inc_actor_rank()
xr_statistic.add_50_actor_rank()
end
function main_menu:deliver_mp3_and_bonus()
give_object_to_actor("mp3_player")
for k=1,40 do give_mp3_bonus() end
end
function main_menu:set_0_factor()
if db.actor~=nil then
level.set_time_factor(DefaultTimeFactor())
end
end
function main_menu:set_1_factor()
if db.actor~=nil then
level.set_time_factor(50)
end
end
function main_menu:set_2_factor()
if db.actor~=nil then
level.set_time_factor(100)
end
end
function main_menu:set_3_factor()
if db.actor~=nil then
level.set_time_factor(500)
end
end
function main_menu:set_4_factor()
if db.actor~=nil then
level.set_time_factor(1000)
end
end
function main_menu:set_5_factor()
if db.actor~=nil then
level.set_time_factor(5000)
end
end
function main_menu:set_remote_marker()
if sgm_flags.bool_remote_marker==false then
local rm_id=create("remote_marker",db.actor:position().x,db.actor:position().y,db.actor:position().z,db.actor:level_vertex_id(),db.actor:game_vert ex_id(),sgm_flags.spot_toolkit_place,"точка отсчёта")
sgm_flags.value_remote_marker=rm_id.id
sgm_flags.bool_remote_marker=true
elseif sgm_flags.bool_remote_marker==true then
local marker_obj=level.object_by_id(sgm_flags.value_remote_marker)
debug_to_file("remote_points.txt",marker_obj:position().x..","..marker_obj:position().y..","..marker_obj:position().z..","..marker_obj:level _vertex_id()..","..marker_obj:game_vertex_id())
sgm_flags.bool_remote_marker=false
remove_object_by_id(sgm_flags.value_remote_marker)
sgm_flags.value_remote_marker=0
end
end
function main_menu:OnButton_coord_pos_clicked()
text="Позиция:\\nX= "..db.actor:position().x.."\\nY= "..db.actor:position().y.."\\nZ= "..db.actor:position().z.."\\nlevel_vertex= "..db.actor:level_vertex_id().."\\ngame_vertex_id= "..db.actor:game_vertex_id().."\\ndirection= "..db.actor:direction():getH()
news_manager.send_tip(db.actor,text,0,mutant_hunter,10000,nil,"Координата")
fill_log(db.actor:position().x..","..db.actor:position().y..","..db.actor:position().z..","..db.actor:level_vertex_id()..","..db.actor:game_ vertex_id())
--/debug_to_file("points.txt",db.actor:level_vertex_id()..","..db.actor:game_vertex_id())
debug_to_file("points.txt",db.actor:position().x..","..db.actor:position().y..","..db.actor:position().z..","..db.actor:level_vertex_id().." ,"..db.actor:game_vertex_id().."|"..db.actor:direction().x..","..db.actor:direction().y..","..db.actor:direction().z)
end
function main_menu:mod_modes()
if self.mod_modes_dlg == nil then
self.mod_modes_dlg = ui_mod_modes.mod_modes()
self.mod_modes_dlg.owner = self
end
self.mod_modes_dlg:ShowDialog(true)
self:HideDialog()
self:Show(false)
end
function main_menu:mod_options()
if self.mod_dlg == nil then
self.mod_dlg = ui_mod_options.mod_options()
self.mod_dlg.owner = self
end
self.mod_dlg:ShowDialog(true)
self:HideDialog()
self:Show(false)
end [/cut]
 
GlomarДата: Пятница, 09.01.2015, 15:00 | Сообщение # 546
Хозяин Зоны
Вольные сталкеры
Сообщений: 14499
Награды: 47
Репутация: [ 2076 ]

sergej5500. Приветсвую всех!
А что с фиксом по бандитах и гопниках Сергей?


 
veselchakДата: Пятница, 09.01.2015, 15:02 | Сообщение # 547
Хозяин Зоны
Одиночки
Сообщений: 2579
Награды: 10
Репутация: [ 2562 ]

makdm, sergej5500 , А вылетает [cut=лог]* Detected CPU: Intel® Core™ i5-2320 CPU @ 3.00GHz [GenuineIntel], F6/M10/S7, 2993.00 mhz, 27-clk 'rdtsc'
* CPU features: RDTSC, MMX, SSE, SSE2, SSE3, MONITOR/MWAIT, SSSE3, SSE4.1, SSE4.2
* CPU threads: 4

Initializing File System...
using fs-ltx fsgame.ltx
FS: 46896 files cached 27 archives, 9694Kb memory used.
Init FileSystem 2.118316 sec
'xrCore' build 3967, Dec 14 2009

EH: DA7801136AC1044DE236C35BB9585EDA

-----loading c:\program files (x86)\gsc world publishing\s.t.a.l.k.e.r. - Зов Припяти\gamedata\configs\system.ltx
-----loading c:\program files (x86)\gsc world publishing\s.t.a.l.k.e.r. - Зов Припяти\gamedata\configs\system.ltx
Initializing Engine...
Starting INPUT device...
Loading DLL: xrRender_R2.dll
Loading DLL: xrRender_R3.dll
refCount:m_pAdapter 1
Loading DLL: xrRender_R4.dll
command line
Executing config-script "user.ltx"...
[c:\users\public\docume~1\stalke~1.-\user.ltx] successfully loaded.
Loading DLL: xrRender_R2.dll
Loading DLL: xrGame.dll
! Player name in registry is empty! (InstallUserName)
* [win32]: free[3973556 K], reserved[81832 K], committed[138852 K]
* [ D3D ]: textures[0 K]
* [x-ray]: crt heap[21413 K], process heap[5090 K], game lua[0 K], render[0 K]
* [x-ray]: economy: strings[20035 K], smem[0 K]
SOUND: OpenAL: enumerate devices...
SOUND: OpenAL: EnumerationExtension Present
dir[0]=C:\Program Files (x86)\GSC World Publishing\S.T.A.L.K.E.R. - Зов Припяти\bin\
dir[1]=C:\Program Files (x86)\GSC World Publishing\S.T.A.L.K.E.R. - Зов Припяти\
dir[2]=C:\Program Files (x86)\GSC World Publishing\S.T.A.L.K.E.R. - Зов Припяти\bin\
dir[3]=C:\Windows\system32\
CleanDeviceSpecifierList
CleanDeviceSpecifierList Generic Hardware
devices Generic Hardware
SOUND: OpenAL: system default SndDevice name is Generic Hardware
SOUND: OpenAL: default SndDevice name set to Generic Software
SOUND: OpenAL: All available devices:
1. Generic Software, Spec Version 1.1 (default) eax[0] efx[no] xram[no]
2. Generic Software, Spec Version 1.1 (default) eax[0] efx[no] xram[no]
Executing config-script "c:\program files (x86)\gsc world publishing\s.t.a.l.k.e.r. - Зов Припяти\gamedata\configs\default_controls.ltx"...
[c:\program files (x86)\gsc world publishing\s.t.a.l.k.e.r. - Зов Припяти\gamedata\configs\default_controls.ltx] successfully loaded.
Executing config-script "user.ltx"...
Executing config-script "c:\program files (x86)\gsc world publishing\s.t.a.l.k.e.r. - Зов Припяти\gamedata\configs\rspec_extreme.ltx"...
[c:\program files (x86)\gsc world publishing\s.t.a.l.k.e.r. - Зов Припяти\gamedata\configs\rspec_extreme.ltx] successfully loaded.
Executing config-script "c:\program files (x86)\gsc world publishing\s.t.a.l.k.e.r. - Зов Припяти\gamedata\configs\default_controls.ltx"...
[c:\program files (x86)\gsc world publishing\s.t.a.l.k.e.r. - Зов Припяти\gamedata\configs\default_controls.ltx] successfully loaded.
~ Invalid syntax in call to 'r2_aa_break'
~ Valid arguments: vector3 in range [0.000000e+000,0.000000e+000,0.000000e+000]-[1.000000e+000,1.000000e+000,1.000000e+000]
~ Invalid syntax in call to 'r2_aa_weight'
~ Valid arguments: vector3 in range [0.000000e+000,0.000000e+000,0.000000e+000]-[1.000000e+000,1.000000e+000,1.000000e+000]
~ Invalid syntax in call to 'sv_adm_menu_ban_time'
~ Valid arguments: ui_mp_am_10_minutes/ui_mp_am_30_minutes/ui_mp_am_1_hour/ui_mp_am_6_hours/ui_mp_am_1_day/ui_mp_am_1_week/ui_mp_am_1_month/ui_mp_am_3_monthes/ui_mp_am_forever
[c:\users\public\docume~1\stalke~1.-\user.ltx] successfully loaded.
SOUND: Selected device is Generic Software
* sound: EAX 2.0 extension: absent
* sound: EAX 2.0 deferred: absent
* sound : cache: 65537 kb, 4856 lines, 13820 bpl
Starting RENDER device...
* GPU [vendor:10DE]-[device:1201]: NVIDIA GeForce GTX 560
* GPU driver: 9.18.13.1106
* CREATE: DeviceREF: 1
* Vertex Processor: PURE HARDWARE
* Texture memory: 4030 M
* DDI-level: 9.0
* GPU shading: vs(fffe0300/3.0/30), ps(ffff0300/3.0/30)
* GPU vertex cache: unrecognized, 16
* NVidia MGPU: Logical(1), Physical(1)
* Starting rendering as 2-GPU.
* DVB created: 1536K
* DIB created: 512K
! Renderer doesn't support blender 'effects\shadow_world'
* NULLRT supported
* ...and used
* HWDST/PCF supported and used
* NV-DBT supported and used
compiling shader dumb
compiling shader dumb
compiling shader accum_mask
compiling shader accum_sun_mask
compiling shader copy_p
compiling shader accum_volume
compiling shader copy
compiling shader accum_sun_near
compiling shader accum_sun
compiling shader accum_sun_cascade
compiling shader accum_sun_cascade_far
compiling shader accum_omni_unshadowed
compiling shader accum_omni_normal
compiling shader accum_omni_transluent
compiling shader accum_spot_unshadowed
compiling shader accum_spot_normal
compiling shader accum_spot_fullsize
compiling shader accum_volumetric
compiling shader accum_volumetric
compiling shader accum_indirect
compiling shader bloom_build
compiling shader bloom_filter
compiling shader bloom_filter_f
compiling shader bloom_luminance_1
compiling shader bloom_luminance_2
compiling shader bloom_luminance_3
compiling shader combine_1
compiling shader combine_1
compiling shader combine_2_AA
compiling shader combine_2_NAA
compiling shader combine_2_AA_D
compiling shader combine_2_NAA_D
compiling shader combine_volumetric
compiling shader postprocess
compiling shader postprocess_CM
compiling shader distort
compiling shader particle_distort
compiling shader particle
compiling shader particle
compiling shader particle_s-blend
compiling shader particle-clip
compiling shader particle_s-add
compiling shader particle_s-aadd
compiling shader deffer_particle
compiling shader deffer_particle
- r__tf_aniso 16
- r2_tf_mipbias 0.
compiling shader portal
compiling shader portal
compiling shader simple_color
compiling shader editor
compiling shader sky2
compiling shader sky2
compiling shader clouds
compiling shader clouds
Starting engine...
compiling shader stub_default
compiling shader effects_sun
compiling shader hud_font
! Player name in registry is empty! (InstallUserName)
Loading DLL: xrGameSpy.dll
intro_start intro_logo
intro_delete ::update_logo_intro
stack trace:

0023:09450BBC xrGame.dll, CDialogHolder::CleanInternals()
[/cut]

[cut=папка]-- File: UI_MAIN_MENU.SCRIPT
-- Description: Load Dialog for STALKER
-- Created: 28.10.2004
-- Lasd edit: 18.01.2006
-- Copyright: 2004 GSC Game World
-- Author: Serhiy Vynnychenko (narrator@gsc-game.kiev.ua)
-- Version: 0.9
class "main_menu" (CUIScriptWnd)
function main_menu:__init() super()
self.mbox_mode = 0
self:InitControls()
self:InitCallBacks()
xr_s.on_main_menu_on()
end
function main_menu:__finalize()
end
function main_menu:InitControls()
self:SetWndRect(Frect():set(0,0,1024,768))
local xml = CScriptXmlInit()
xml:ParseFile("ui_main_menu.xml")
xml:InitStatic("background", self)
self.shniaga = xml:InitMMShniaga("shniaga_wnd",self);
self.message_box = CUIMessageBoxEx()
self:Register(self.message_box, "msg_box")
local _ver=xml:InitStatic("static_version",self)
local mm=_G.main_menu.get_main_menu()
_ver:TextControl():SetText("ver. " .. mm:GetGSVer())
self.l_mgr = mm:GetLoginMngr()
self.acc_mgr = mm:GetAccountMngr()
self.profile_store = mm:GetProfileStore()
self.gs_profile = self.l_mgr:get_current_profile()
if (self.gs_profile and not(level.present())) then
self.shniaga:ShowPage(CUIMMShniaga.epi_new_network_game) --fake
self.shniaga:SetPage(CUIMMShniaga.epi_main, "ui_mm_main.xml", "menu_main_logout")
self.shniaga:ShowPage(CUIMMShniaga.epi_main)
end
sgm_version.show_version(self)
end
function main_menu:Show(f)
self.shniaga:SetVisibleMagnifier(f)
end
function main_menu:InitCallBacks()
self:AddCallback("btn_mod_option",ui_events.BUTTON_CLICKED,self.mod_options,self)
self:AddCallback("btn_coord_pos",ui_events.BUTTON_CLICKED,self.OnButton_coord_pos_clicked,self)
self:AddCallback("btn_novice",ui_events.BUTTON_CLICKED,self.OnButton_new_novice_game,self)
self:AddCallback("btn_stalker",ui_events.BUTTON_CLICKED,self.OnButton_new_stalker_game,self)
self:AddCallback("btn_veteran",ui_events.BUTTON_CLICKED,self.OnButton_new_veteran_game,self)
self:AddCallback("btn_master",ui_events.BUTTON_CLICKED,self.OnButton_new_master_game,self)
self:AddCallback("btn_spawn",ui_events.BUTTON_CLICKED,self.OnButton_load_spawn,self)
self:AddCallback("btn_options",ui_events.BUTTON_CLICKED,self.OnButton_options_clicked,self)
self:AddCallback("btn_load",ui_events.BUTTON_CLICKED,self.OnButton_load_clicked,self)
self:AddCallback("btn_save",ui_events.BUTTON_CLICKED,self.OnButton_save_clicked,self)
self:AddCallback("btn_net_game",ui_events.BUTTON_CLICKED,self.OnButton_network_game_clicked,self)
self:AddCallback("btn_internet",ui_events.BUTTON_CLICKED,self.OnButton_internet_clicked,self)
self:AddCallback("btn_localnet",ui_events.BUTTON_CLICKED,self.OnButton_localnet_clicked,self)
self:AddCallback("btn_multiplayer",ui_events.BUTTON_CLICKED,self.OnButton_multiplayer_clicked,self)
self:AddCallback("btn_logout",ui_events.BUTTON_CLICKED,self.OnButton_logout_clicked,self)
self:AddCallback("btn_quit",ui_events.BUTTON_CLICKED,self.OnButton_quit_clicked,self)
self:AddCallback("btn_quit_to_mm",ui_events.BUTTON_CLICKED,self.OnButton_disconnect_clicked,self)
self:AddCallback("btn_ret",ui_events.BUTTON_CLICKED,self.OnButton_return_game,self)
self:AddCallback("btn_lastsave",ui_events.BUTTON_CLICKED,self.OnButton_last_save,self)
self:AddCallback("btn_credits",ui_events.BUTTON_CLICKED,self.OnButton_credits_clicked,self)
self:AddCallback("msg_box",ui_events.MESSAGE_BOX_OK_CLICKED,self.OnMsgOk,self)
self:AddCallback("msg_box",ui_events.MESSAGE_BOX_CANCEL_CLICKED,self.OnMsgCancel,self)
self:AddCallback("msg_box",ui_events.MESSAGE_BOX_YES_CLICKED,self.OnMsgYes,self)
self:AddCallback("msg_box",ui_events.MESSAGE_BOX_NO_CLICKED,self.OnMsgNo,self)
self:AddCallback("msg_box",ui_events.MESSAGE_BOX_QUIT_GAME_CLICKED,self.OnMessageQuitGame,self)
self:AddCallback("msg_box",ui_events.MESSAGE_BOX_QUIT_WIN_CLICKED,self.OnMessageQuitWin,self)
self:Register(self,"self")
self:AddCallback("self",ui_events.MAIN_MENU_RELOADED,self.OnMenuReloaded,self)
end
function main_menu:OnMsgOk()
self.mbox_mode = 0
end
function main_menu:OnMsgCancel()
self.mbox_mode = 0
end
function main_menu:OnMsgYes()
if self.mbox_mode == 1 then
self:LoadLastSave()
end
self.mbox_mode = 0
end
function main_menu:OnMsgNo()
self.mbox_mode = 0
end
function main_menu:LoadLastSave()
local console = get_console()
console:execute("main_menu off")
console:execute("load_last_save")
end
function main_menu:OnButton_last_save()
if (alife() == nil) then
self:LoadLastSave()
return
end
if ((db.actor ~= nil) and (db.actor:alive()==false)) then
self:LoadLastSave()
return
end
self.mbox_mode = 1
self.message_box:InitMessageBox ("message_box_confirm_load_save")
self.message_box:ShowDialog(true)
end
function main_menu:OnButton_credits_clicked()
game.start_tutorial("credits_seq")
end
function main_menu:OnButton_quit_clicked()
self.message_box:InitMessageBox("message_box_quit_windows")
self.message_box:ShowDialog(true)
end
function main_menu:OnButton_disconnect_clicked()
self.message_box:InitMessageBox("message_box_quit_game")
if (level.game_id() ~= 1) then
self.message_box:SetText("ui_mm_disconnect_message")
else
self.message_box:SetText("ui_mm_quit_game_message")
end
self.message_box:ShowDialog(true)
end
function main_menu:OnMessageQuitGame()
local console = get_console()
console:execute("disconnect")
end
function main_menu:OnMessageQuitWin()
local console = get_console()
console:execute("quit")
end
function main_menu:OnButton_return_game()
local console = get_console()
console:execute("main_menu off")
xr_s.on_main_menu_off()
end
function main_menu:OnButton_new_novice_game()
local console = get_console()
console:execute("g_game_difficulty gd_novice")
self:StartGame()
end
function main_menu:OnButton_new_stalker_game()
local console = get_console()
console:execute("g_game_difficulty gd_stalker")
self:StartGame()
end
function main_menu:OnButton_new_veteran_game()
local console = get_console()
console:execute("g_game_difficulty gd_veteran")
self:StartGame()
end
function main_menu:OnButton_new_master_game()
local console = get_console()
console:execute("g_game_difficulty gd_master")
self:StartGame()
end
function main_menu:StartGame()
local console = get_console()
if (alife() ~= nil) then
console:execute ("disconnect")
end
device():pause(false)
console:execute("start server(all/single/alife/new) client(localhost)")
console:execute("main_menu off")
end
function main_menu:OnButton_load_spawn()
if self.spawn_dlg == nil then
self.spawn_dlg = ui_spawn_dialog.spawn_dialog()
self.spawn_dlg.owner = self
end
self.spawn_dlg:ShowDialog(true)
self:HideDialog()
self:Show(false)
end
function main_menu:OnButton_save_clicked()
if self.save_dlg == nil then
self.save_dlg = ui_save_dialog.save_dialog()
self.save_dlg.owner = self
end
self.save_dlg:FillList()
self.save_dlg:ShowDialog(true)
self:HideDialog()
self:Show(false)
end
function main_menu:OnButton_options_clicked()
if self.opt_dlg == nil then
self.opt_dlg = ui_mm_opt_main.options_dialog()
self.opt_dlg.owner = self
end
self.opt_dlg:SetCurrentValues()
self.opt_dlg:ShowDialog(true)
self:HideDialog()
self:Show(false)
end
function main_menu:OnButton_load_clicked()
if self.load_dlg ==nil then
self.load_dlg = ui_load_dialog.load_dialog()
self.load_dlg.owner = self
end
self.load_dlg:FillList()
self.load_dlg:ShowDialog(true)
self:HideDialog()
self:Show(false)
end
function main_menu:OnButton_network_game_clicked()
self.shniaga:ShowPage(CUIMMShniaga.epi_new_network_game)
end
function main_menu:OnButton_multiplayer_clicked()
if not(self.mp_dlg) then
self.mp_dlg = ui_mp_main.mp_main(self.gs_profile:online())
self.mp_dlg.owner = self
self.mp_dlg:OnRadio_NetChanged()
if (self.mp_dlg.online) then
self.mp_dlg.dlg_profile:InitBestScores()
self.mp_dlg.dlg_profile:FillRewardsTable()
end
end
self.mp_dlg:UpdateControls()
self.mp_dlg:ShowDialog(true)
self:HideDialog()
self:Show(false)
local console = get_console()
console:execute("check_for_updates 0")
end
function main_menu:OnButton_logout_clicked()
self.shniaga:ShowPage(CUIMMShniaga.epi_new_network_game)
self.l_mgr:logout()
self.gs_profile = nil
self.mp_dlg = nil
self.shniaga:SetPage(CUIMMShniaga.epi_main, "ui_mm_main.xml", "menu_main")
self.shniaga:ShowPage(CUIMMShniaga.epi_main)
end
function main_menu:OnButton_internet_clicked()
if not(self.gs_dlg) then
self.gs_dlg = ui_mm_mp_gamespy.gamespy_page()
self.gs_dlg.owner = self
end
self.gs_dlg:ShowLoginPage()
self.gs_dlg:ShowDialog(true)
self:HideDialog()
self:Show(false)
local console = get_console()
console:execute("check_for_updates 0")
end
function main_menu:OnButton_localnet_clicked()
if not(self.ln_dlg) then
self.ln_dlg = ui_mm_mp_localnet.localnet_page()
self.ln_dlg.owner = self
self.ln_dlg.lp_nickname:SetText(self.l_mgr:get_nick_from_registry())
self.ln_dlg.lp_check_remember_me:SetCheck(self.l_mgr:get_remember_me_from_registry())
end
self.ln_dlg:ShowDialog(true)
self:HideDialog()
self:Show(false)
local console = get_console()
console:execute("check_for_updates 0")
end
function main_menu:Dispatch(cmd, param)
if cmd == 2 then
self:OnButton_multiplayer_clicked()
end
return true
end
function main_menu:OnMenuReloaded()
self:OnButton_options_clicked()
self.opt_dlg:OnMenuReloaded()
end
function main_menu:OnKeyboard(dik, keyboard_action) --virtual function
CUIScriptWnd.OnKeyboard(self,dik,keyboard_action)
local bind = dik_to_bind(dik)
local console = get_console()
if keyboard_action == ui_events.WINDOW_KEY_PRESSED then
if dik == DIK_keys.DIK_ESCAPE then
if level.present() and (((db.actor~=nil)and(db.actor:alive())) or (false==IsGameTypeSingle())) then
self.OnButton_return_game()
end
end
if db.actor~=nil then
if dik==DIK_keys.DIK_F1 then
self:mod_options()
elseif dik==DIK_keys.DIK_Q then
db.actor:set_actor_position(vector():set(-42.937858581543,3.442476272583,347.048828125))
elseif dik==DIK_keys.DIK_W then
db.actor:set_actor_position(vector():set(309.53112792969,2.4663150310516,234.62222290039))
elseif dik==DIK_keys.DIK_E then
db.actor:set_actor_position(vector():set(423.15921020508,3.8840260505676,107.47808837891))
elseif dik==DIK_keys.DIK_R then
db.actor:set_actor_position(vector():set(-64.886840820313,1.8195477724075,2.8381319046021))
elseif dik==DIK_keys.DIK_A then
set_squad_removed("zat_b103_lost_merc_squad1")
elseif dik==DIK_keys.DIK_S then
create_force("zat_b103_lost_merc_squad1","zat_b103_merc_smart")
end
end
end
return true
end
-------------------------------------------------------------------
-- SGM Mod --
-------------------------------------------------------------------
function main_menu:screenshot_mode_on()
level.hide_indicators_safe()
game_hide_menu()
give_info("screenshot_mode")
end
function main_menu:screenshot_mode_off()
level.show_indicators()
disable_info("screenshot_mode")
end
function main_menu:set_rich_actor()
dialogs.relocate_money(db.actor,1000000,"in")
end
function main_menu:inc_actor_rank()
xr_statistic.add_50_actor_rank()
end
function main_menu:deliver_mp3_and_bonus()
give_object_to_actor("mp3_player")
for k=1,40 do give_mp3_bonus() end
end
function main_menu:set_0_factor()
if db.actor~=nil then
level.set_time_factor(DefaultTimeFactor())
end
end
function main_menu:set_1_factor()
if db.actor~=nil then
level.set_time_factor(50)
end
end
function main_menu:set_2_factor()
if db.actor~=nil then
level.set_time_factor(100)
end
end
function main_menu:set_3_factor()
if db.actor~=nil then
level.set_time_factor(500)
end
end
function main_menu:set_4_factor()
if db.actor~=nil then
level.set_time_factor(1000)
end
end
function main_menu:set_5_factor()
if db.actor~=nil then
level.set_time_factor(5000)
end
end
function main_menu:set_remote_marker()
if sgm_flags.bool_remote_marker==false then
local rm_id=create("remote_marker",db.actor:position().x,db.actor:position().y,db.actor:position().z,db.actor:level_vertex_id(),db.actor:game_vert ex_id(),sgm_flags.spot_toolkit_place,"точка отсчёта")
sgm_flags.value_remote_marker=rm_id.id
sgm_flags.bool_remote_marker=true
elseif sgm_flags.bool_remote_marker==true then
local marker_obj=level.object_by_id(sgm_flags.value_remote_marker)
debug_to_file("remote_points.txt",marker_obj:position().x..","..marker_obj:position().y..","..marker_obj:position().z..","..marker_obj:level _vertex_id()..","..marker_obj:game_vertex_id())
sgm_flags.bool_remote_marker=false
remove_object_by_id(sgm_flags.value_remote_marker)
sgm_flags.value_remote_marker=0
end
end
function main_menu:OnButton_coord_pos_clicked()
text="Позиция:\\nX= "..db.actor:position().x.."\\nY= "..db.actor:position().y.."\\nZ= "..db.actor:position().z.."\\nlevel_vertex= "..db.actor:level_vertex_id().."\\ngame_vertex_id= "..db.actor:game_vertex_id().."\\ndirection= "..db.actor:direction():getH()
news_manager.send_tip(db.actor,text,0,mutant_hunter,10000,nil,"Координата")
fill_log(db.actor:position().x..","..db.actor:position().y..","..db.actor:position().z..","..db.actor:level_vertex_id()..","..db.actor:game_ vertex_id())
--/debug_to_file("points.txt",db.actor:level_vertex_id()..","..db.actor:game_vertex_id())
debug_to_file("points.txt",db.actor:position().x..","..db.actor:position().y..","..db.actor:position().z..","..db.actor:level_vertex_id().." ,"..db.actor:game_vertex_id().."|"..db.actor:direction().x..","..db.actor:direction().y..","..db.actor:direction().z)
end
function main_menu:mod_modes()
if self.mod_modes_dlg == nil then
self.mod_modes_dlg = ui_mod_modes.mod_modes()
self.mod_modes_dlg.owner = self
end
self.mod_modes_dlg:ShowDialog(true)
self:HideDialog()
self:Show(false)
end
function main_menu:mod_options()
if self.mod_dlg == nil then
self.mod_dlg = ui_mod_options.mod_options()
self.mod_dlg.owner = self
end
self.mod_dlg:ShowDialog(true)
self:HideDialog()
self:Show(false)
end[/cut]


ASRock68 Pro i5 2320 GTX 560 1Gb RAM 16Gb HDD 1.5Tb SSD 120Gb

Сообщение отредактировал veselchak - Пятница, 09.01.2015, 15:11
 
sergej5500Дата: Пятница, 09.01.2015, 15:44 | Сообщение # 548
Полевой Исследователь
Ученые сталкеры
Сообщений: 2990
Награды: 24
Репутация: [ 1186 ]

veselchak,

Попробуй тогда такой код.

[cut=Код]-- File: UI_MAIN_MENU.SCRIPT
-- Description: Load Dialog for STALKER
-- Created: 28.10.2004
-- Lasd edit: 18.01.2006
-- Copyright: 2004 GSC Game World
-- Author: Serhiy Vynnychenko (narrator@gsc-game.kiev.ua)
-- Version: 0.9
class "main_menu" (CUIScriptWnd)
function main_menu:__init() super()
self.mbox_mode = 0
self:InitControls()
self:InitCallBacks()
xr_s.on_main_menu_on()
end
function main_menu:__finalize()
end
function main_menu:InitControls()
self:SetWndRect(Frect():set(0,0,1024,768))
local xml = CScriptXmlInit()
xml:ParseFile("ui_main_menu.xml")
xml:InitStatic("background", self)
self.shniaga = xml:InitMMShniaga("shniaga_wnd",self);
self.message_box = CUIMessageBoxEx()
self:Register(self.message_box, "msg_box")
local _ver=xml:InitStatic("static_version",self)
local mm=_G.main_menu.get_main_menu()
_ver:TextControl():SetText("ver. " .. mm:GetGSVer())
self.l_mgr = mm:GetLoginMngr()
self.acc_mgr = mm:GetAccountMngr()
self.profile_store = mm:GetProfileStore()
self.gs_profile = self.l_mgr:get_current_profile()
if (self.gs_profile and not(level.present())) then
self.shniaga:ShowPage(CUIMMShniaga.epi_new_network_game) --fake
self.shniaga:SetPage(CUIMMShniaga.epi_main, "ui_mm_main.xml", "menu_main_logout")
self.shniaga:ShowPage(CUIMMShniaga.epi_main)
end
sgm_version.show_version(self)
end
function main_menu:Show(f)
self.shniaga:SetVisibleMagnifier(f)
end
function main_menu:InitCallBacks()
self:AddCallback("btn_mod_option",ui_events.BUTTON_CLICKED,self.mod_options,self)
self:AddCallback("btn_coord_pos",ui_events.BUTTON_CLICKED,self.OnButton_coord_pos_clicked,self)
self:AddCallback("btn_novice",ui_events.BUTTON_CLICKED,self.OnButton_new_novice_game,self)
self:AddCallback("btn_stalker",ui_events.BUTTON_CLICKED,self.OnButton_new_stalker_game,self)
self:AddCallback("btn_veteran",ui_events.BUTTON_CLICKED,self.OnButton_new_veteran_game,self)
self:AddCallback("btn_master",ui_events.BUTTON_CLICKED,self.OnButton_new_master_game,self)
self:AddCallback("btn_spawn",ui_events.BUTTON_CLICKED,self.OnButton_load_spawn,self)
self:AddCallback("btn_options",ui_events.BUTTON_CLICKED,self.OnButton_options_clicked,self)
self:AddCallback("btn_load",ui_events.BUTTON_CLICKED,self.OnButton_load_clicked,self)
self:AddCallback("btn_save",ui_events.BUTTON_CLICKED,self.OnButton_save_clicked,self)
self:AddCallback("btn_net_game",ui_events.BUTTON_CLICKED,self.OnButton_network_game_clicked,self)
self:AddCallback("btn_internet",ui_events.BUTTON_CLICKED,self.OnButton_internet_clicked,self)
self:AddCallback("btn_localnet",ui_events.BUTTON_CLICKED,self.OnButton_localnet_clicked,self)
self:AddCallback("btn_multiplayer",ui_events.BUTTON_CLICKED,self.OnButton_multiplayer_clicked,self)
self:AddCallback("btn_logout",ui_events.BUTTON_CLICKED,self.OnButton_logout_clicked,self)
self:AddCallback("btn_quit",ui_events.BUTTON_CLICKED,self.OnButton_quit_clicked,self)
self:AddCallback("btn_quit_to_mm",ui_events.BUTTON_CLICKED,self.OnButton_disconnect_clicked,self)
self:AddCallback("btn_ret",ui_events.BUTTON_CLICKED,self.OnButton_return_game,self)
self:AddCallback("btn_lastsave",ui_events.BUTTON_CLICKED,self.OnButton_last_save,self)
self:AddCallback("btn_credits",ui_events.BUTTON_CLICKED,self.OnButton_credits_clicked,self)
self:AddCallback("msg_box",ui_events.MESSAGE_BOX_OK_CLICKED,self.OnMsgOk,self)
self:AddCallback("msg_box",ui_events.MESSAGE_BOX_CANCEL_CLICKED,self.OnMsgCancel,self)
self:AddCallback("msg_box",ui_events.MESSAGE_BOX_YES_CLICKED,self.OnMsgYes,self)
self:AddCallback("msg_box",ui_events.MESSAGE_BOX_NO_CLICKED,self.OnMsgNo,self)
self:AddCallback("msg_box",ui_events.MESSAGE_BOX_QUIT_GAME_CLICKED,self.OnMessageQuitGame,self)
self:AddCallback("msg_box",ui_events.MESSAGE_BOX_QUIT_WIN_CLICKED,self.OnMessageQuitWin,self)
self:Register(self,"self")
self:AddCallback("self",ui_events.MAIN_MENU_RELOADED,self.OnMenuReloaded,self)
end
function main_menu:OnMsgOk()
self.mbox_mode = 0
end
function main_menu:OnMsgCancel()
self.mbox_mode = 0
end
function main_menu:OnMsgYes()
if self.mbox_mode == 1 then
self:LoadLastSave()
end
self.mbox_mode = 0
end
function main_menu:OnMsgNo()
self.mbox_mode = 0
end
function main_menu:LoadLastSave()
local console = get_console()
console:execute("main_menu off")
console:execute("load_last_save")
end
function main_menu:OnButton_last_save()
if (alife() == nil) then
self:LoadLastSave()
return
end
if ((db.actor ~= nil) and (db.actor:alive()==false)) then
self:LoadLastSave()
return
end
self.mbox_mode = 1
self.message_box:InitMessageBox ("message_box_confirm_load_save")
self.message_box:ShowDialog(true)
end
function main_menu:OnButton_credits_clicked()
game.start_tutorial("credits_seq")
end
function main_menu:OnButton_quit_clicked()
self.message_box:InitMessageBox("message_box_quit_windows")
self.message_box:ShowDialog(true)
end
function main_menu:OnButton_disconnect_clicked()
self.message_box:InitMessageBox("message_box_quit_game")
if (level.game_id() ~= 1) then
self.message_box:SetText("ui_mm_disconnect_message")
else
self.message_box:SetText("ui_mm_quit_game_message")
end
self.message_box:ShowDialog(true)
end
function main_menu:OnMessageQuitGame()
local console = get_console()
console:execute("disconnect")
end
function main_menu:OnMessageQuitWin()
local console = get_console()
console:execute("quit")
end
function main_menu:OnButton_return_game()
local console = get_console()
console:execute("main_menu off")
xr_s.on_main_menu_off()
end
function main_menu:OnButton_new_novice_game()
local console = get_console()
console:execute("g_game_difficulty gd_novice")
self:StartGame()
end
function main_menu:OnButton_new_stalker_game()
local console = get_console()
console:execute("g_game_difficulty gd_stalker")
self:StartGame()
end
function main_menu:OnButton_new_veteran_game()
local console = get_console()
console:execute("g_game_difficulty gd_veteran")
self:StartGame()
end
function main_menu:OnButton_new_master_game()
local console = get_console()
console:execute("g_game_difficulty gd_master")
self:StartGame()
end
function main_menu:StartGame()
local console = get_console()
if (alife() ~= nil) then
console:execute ("disconnect")
end
device():pause(false)
console:execute("start server(all/single/alife/new) client(localhost)")
console:execute("main_menu off")
end
function main_menu:OnButton_load_spawn()
if self.spawn_dlg == nil then
self.spawn_dlg = ui_spawn_dialog.spawn_dialog()
self.spawn_dlg.owner = self
end
self.spawn_dlg:ShowDialog(true)
self:HideDialog()
self:Show(false)
end
function main_menu:OnButton_save_clicked()
if self.save_dlg == nil then
self.save_dlg = ui_save_dialog.save_dialog()
self.save_dlg.owner = self
end
self.save_dlg:FillList()
self.save_dlg:ShowDialog(true)
self:HideDialog()
self:Show(false)
end
function main_menu:OnButton_options_clicked()
if self.opt_dlg == nil then
self.opt_dlg = ui_mm_opt_main.options_dialog()
self.opt_dlg.owner = self
end
self.opt_dlg:SetCurrentValues()
self.opt_dlg:ShowDialog(true)
self:HideDialog()
self:Show(false)
end
function main_menu:OnButton_load_clicked()
if self.load_dlg ==nil then
self.load_dlg = ui_load_dialog.load_dialog()
self.load_dlg.owner = self
end
self.load_dlg:FillList()
self.load_dlg:ShowDialog(true)
self:HideDialog()
self:Show(false)
end
function main_menu:OnButton_network_game_clicked()
self.shniaga:ShowPage(CUIMMShniaga.epi_new_network_game)
end
function main_menu:OnButton_multiplayer_clicked()
if not(self.mp_dlg) then
self.mp_dlg = ui_mp_main.mp_main(self.gs_profile:online())
self.mp_dlg.owner = self
self.mp_dlg:OnRadio_NetChanged()
if (self.mp_dlg.online) then
self.mp_dlg.dlg_profile:InitBestScores()
self.mp_dlg.dlg_profile:FillRewardsTable()
end
end
self.mp_dlg:UpdateControls()
self.mp_dlg:ShowDialog(true)
self:HideDialog()
self:Show(false)
local console = get_console()
console:execute("check_for_updates 0")
end
function main_menu:OnButton_logout_clicked()
self.shniaga:ShowPage(CUIMMShniaga.epi_new_network_game)
self.l_mgr:logout()
self.gs_profile = nil
self.mp_dlg = nil
self.shniaga:SetPage(CUIMMShniaga.epi_main, "ui_mm_main.xml", "menu_main")
self.shniaga:ShowPage(CUIMMShniaga.epi_main)
end
function main_menu:OnButton_internet_clicked()
if not(self.gs_dlg) then
self.gs_dlg = ui_mm_mp_gamespy.gamespy_page()
self.gs_dlg.owner = self
end
self.gs_dlg:ShowLoginPage()
self.gs_dlg:ShowDialog(true)
self:HideDialog()
self:Show(false)
local console = get_console()
console:execute("check_for_updates 0")
end
function main_menu:OnButton_localnet_clicked()
if not(self.ln_dlg) then
self.ln_dlg = ui_mm_mp_localnet.localnet_page()
self.ln_dlg.owner = self
self.ln_dlg.lp_nickname:SetText(self.l_mgr:get_nick_from_registry())
self.ln_dlg.lp_check_remember_me:SetCheck(self.l_mgr:get_remember_me_from_registry())
end
self.ln_dlg:ShowDialog(true)
self:HideDialog()
self:Show(false)
local console = get_console()
console:execute("check_for_updates 0")
end
function main_menu:Dispatch(cmd, param)
if cmd == 2 then
self:OnButton_multiplayer_clicked()
end
return true
end
function main_menu:OnMenuReloaded()
self:OnButton_options_clicked()
self.opt_dlg:OnMenuReloaded()
end
function main_menu:OnKeyboard(dik, keyboard_action) --virtual function
CUIScriptWnd.OnKeyboard(self,dik,keyboard_action)
local bind = dik_to_bind(dik)
local console = get_console()
if keyboard_action == ui_events.WINDOW_KEY_PRESSED then
if dik == DIK_keys.DIK_ESCAPE then
if level.present() and (((db.actor~=nil)and(db.actor:alive())) or (false==IsGameTypeSingle())) then
self.OnButton_return_game()
end
end
if db.actor~=nil then
if dik==DIK_keys.DIK_F1 then
self:mod_options()
elseif dik==DIK_keys.DIK_W then
give_object_to_actor("jup_alfa_base_book")

end
end
end
return true
end
-------------------------------------------------------------------
-- SGM Mod --
-------------------------------------------------------------------
function main_menu:screenshot_mode_on()
level.hide_indicators_safe()
game_hide_menu()
give_info("screenshot_mode")
end
function main_menu:screenshot_mode_off()
level.show_indicators()
disable_info("screenshot_mode")
end
function main_menu:set_rich_actor()
dialogs.relocate_money(db.actor,1000000,"in")
end
function main_menu:inc_actor_rank()
xr_statistic.add_50_actor_rank()
end
function main_menu:deliver_mp3_and_bonus()
give_object_to_actor("mp3_player")
for k=1,40 do give_mp3_bonus() end
end
function main_menu:set_0_factor()
if db.actor~=nil then
level.set_time_factor(DefaultTimeFactor())
end
end
function main_menu:set_1_factor()
if db.actor~=nil then
level.set_time_factor(50)
end
end
function main_menu:set_2_factor()
if db.actor~=nil then
level.set_time_factor(100)
end
end
function main_menu:set_3_factor()
if db.actor~=nil then
level.set_time_factor(500)
end
end
function main_menu:set_4_factor()
if db.actor~=nil then
level.set_time_factor(1000)
end
end
function main_menu:set_5_factor()
if db.actor~=nil then
level.set_time_factor(5000)
end
end
function main_menu:set_remote_marker()
if sgm_flags.bool_remote_marker==false then
local rm_id=create("remote_marker",db.actor:position().x,db.actor:position().y,db.actor:position().z,db.actor:level_vertex_id(),db.actor:game_vert ex_id(),sgm_flags.spot_toolkit_place,"точка отсчёта")
sgm_flags.value_remote_marker=rm_id.id
sgm_flags.bool_remote_marker=true
elseif sgm_flags.bool_remote_marker==true then
local marker_obj=level.object_by_id(sgm_flags.value_remote_marker)
debug_to_file("remote_points.txt",marker_obj:position().x..","..marker_obj:position().y..","..marker_obj:position().z..","..marker_obj:level _vertex_id()..","..marker_obj:game_vertex_id())
sgm_flags.bool_remote_marker=false
remove_object_by_id(sgm_flags.value_remote_marker)
sgm_flags.value_remote_marker=0
end
end
function main_menu:OnButton_coord_pos_clicked()
text="Позиция:\\nX= "..db.actor:position().x.."\\nY= "..db.actor:position().y.."\\nZ= "..db.actor:position().z.."\\nlevel_vertex= "..db.actor:level_vertex_id().."\\ngame_vertex_id= "..db.actor:game_vertex_id().."\\ndirection= "..db.actor:direction():getH()
news_manager.send_tip(db.actor,text,0,mutant_hunter,10000,nil,"Координата")
fill_log(db.actor:position().x..","..db.actor:position().y..","..db.actor:position().z..","..db.actor:level_vertex_id()..","..db.actor:game_ vertex_id())
--/debug_to_file("points.txt",db.actor:level_vertex_id()..","..db.actor:game_vertex_id())
debug_to_file("points.txt",db.actor:position().x..","..db.actor:position().y..","..db.actor:position().z..","..db.actor:level_vertex_id().." ,"..db.actor:game_vertex_id().."|"..db.actor:direction().x..","..db.actor:direction().y..","..db.actor:direction().z)
end
function main_menu:mod_modes()
if self.mod_modes_dlg == nil then
self.mod_modes_dlg = ui_mod_modes.mod_modes()
self.mod_modes_dlg.owner = self
end
self.mod_modes_dlg:ShowDialog(true)
self:HideDialog()
self:Show(false)
end
function main_menu:mod_options()
if self.mod_dlg == nil then
self.mod_dlg = ui_mod_options.mod_options()
self.mod_dlg.owner = self
end
self.mod_dlg:ShowDialog(true)
self:HideDialog()
self:Show(false)
end[/cut]

В игре ESC-W-ESC.
 
AinurДата: Пятница, 09.01.2015, 16:14 | Сообщение # 549
Гражданский
Одиночки
Сообщений: 12
Награды: 0
Репутация: [ 0 ]

sergej5500, прошу прощения, как насчет моего вылета (на 36 стр)?
 
makdmДата: Пятница, 09.01.2015, 16:36 | Сообщение # 550
Рожденный в СССР
Разработчики
Сообщений: 1268
Награды: 26
Репутация: [ 1858 ]

Цитата Ainur ()
как насчет моего вылета (на 36 стр)?

Вылет связан с вызовом функции из файла xr_effects.script, т.к. данная функция отсутствует в файле.


Терпение......
И все получится!
 
sergej5500Дата: Пятница, 09.01.2015, 17:49 | Сообщение # 551
Полевой Исследователь
Ученые сталкеры
Сообщений: 2990
Награды: 24
Репутация: [ 1186 ]

Ainur,

Отройте файл gamedata\configs\misc\squad_descr_zaton. Найдите секцию

[zat_alfa_army_wounded_squad_8]:online_offline_group
faction = alfa_force
npc = sim_respawn_alfa_force_0, sim_respawn_alfa_force_1, sim_respawn_alfa_force_2, sim_respawn_alfa_force_0, sim_respawn_alfa_force_1, sim_respawn_alfa_force_2
story_id = zat_alfa_army_wounded_squad_8
target_smart = zat_b39
on_death = %=zat_alfa_army_wounded_squad_update =zat_army_wounded_squad_spawn%

В первой версии в строке on_death было записано:

on_death = %=zat_alfa_army_wounded_squad_update =create_squad(zat_army_wounded_squad:zat_b39)%

Из-за этого и вылетало. Нужно привести строку к виду:

on_death = %=zat_alfa_army_wounded_squad_update =zat_army_wounded_squad_spawn%

В gamedata\scripts\xr_effects надо вписать код

function zat_army_wounded_squad_spawn(actor,npc)
create_force("zat_army_wounded_squad","zat_b39")
end

После гибели сквада отреспится военный.
 
AinurДата: Пятница, 09.01.2015, 21:29 | Сообщение # 552
Гражданский
Одиночки
Сообщений: 12
Награды: 0
Репутация: [ 0 ]

Нашел ноутбук разведгруппы, как только выхожу из лесопилки и подхожу к мосту - вылет.

[cut=Лог]
FATAL ERROR

[error]Expression : fatal error
[error]Function : CInifile::r_section
[error]File : D:\prog_repository\sources\trunk\xrCore\Xr_ini.cpp
[error]Line : 502
[error]Description : <no expression>
[error]Arguments : Can't open section 'zat_b14_alfa_squad'. Please attach [*.ini_log] file to your bug

report
[/cut]
 
mike_vsДата: Пятница, 09.01.2015, 22:15 | Сообщение # 553
Сержант
Разработчики
Сообщений: 966
Награды: 19
Репутация: [ 523 ]

НИ
Отключил гопоту, отключил мины, аномалии, даже выбросы с затмениями. Ну их нафиг, тормозят только. smile
Прошел Кордон.
Без бандитов у моста и в развалинах фермы получилась этакая полноценная начальная локация. Чутка повоевать, чутка подкачаться и прибарахлиться, само то.
Я б так и оставил.
Вылетов не было, все очень стабильно, фризов почти нет. После того что было на Юпитере и Затоне под конец предыдущего теста - просто отдых души.
Есть желание слегка подшаманить диалоги на предмет стилистики и сюжетной логики. Если никто не против.


Intel i7-3770K 3.50GHz, Intel DZ77BH-55K, Corsair DDR3 2x8Гб 1600GHz, GF GTX 780 3GD5, Creative SB X-Fi Xtreme 7.1, HDD 3xSATA3 (2x1TB+2TB), SSD 1x120Gb SATA3 (OS Win 7 Pro x64 SP1), монитор "Обычный" 24" 1920x1080
 
GlomarДата: Пятница, 09.01.2015, 22:25 | Сообщение # 554
Хозяин Зоны
Вольные сталкеры
Сообщений: 14499
Награды: 47
Репутация: [ 2076 ]

Цитата mike_vs ()
Отключил гопоту, отключил мины, аномалии, даже выбросы с затмениями.

Вот если бы всё это было, но систему не напрягало, то было-бы просто отлично.
Цитата mike_vs ()
на Юпитере и Затоне

Там действительно фризы ощущаются.
Цитата mike_vs ()
Есть желание слегка подшаманить диалоги на предмет стилистики и сюжетной логики.

Вот и я за то чтобы сначала отшлифовать сначала Кордон, со всеми имеющими на данный момент фишками во избежания лагов и тормозов. Ну и подправить сюжетную линию. Просто если уже назвали аддон " По следам Чёрных Ангелов" то думаю всё же стоит ввести сюжетную линию по книге . Если же ЧА это та же Альфа, то какой смысл её переименовывать в ЧА?


 
mike_vsДата: Пятница, 09.01.2015, 23:50 | Сообщение # 555
Сержант
Разработчики
Сообщений: 966
Награды: 19
Репутация: [ 523 ]

Цитата Glomar ()
Вот если бы всё это было, но систему не напрягало, то было-бы просто отлично.

Делов-то. SDK на движок FarCry 4 - и дело в шляпе. biggrin

Цитата Glomar ()
Ну и подправить сюжетную линию. Просто если уже назвали аддон " По следам Чёрных Ангелов" то думаю всё же стоит ввести сюжетную линию по книге . Если же ЧА это та же Альфа, то какой смысл её переименовывать в ЧА?

Ну так чтоб по книге это не обязательно, но сюжет хотелось бы свой и желательно отвязанный от оригинала ЗП.

Вообще и Альфа в SGM как-то ни при делах была, если честно. Носились стада хорошо упакованных тушек, с какого-то перепугу взявшихся гоняться за ГГ. С чего им это взбрендило? Нафига им это нужно? Решительно непонятно. wacko biggrin

Сергей, я на Болотах пронаблюдал только грамотно занявших позиции багратионовцев - откровенно порадовало.
А остальное что писал добавил - перенос квестов на Болота, база Рассвета - нету.
Еще не обновлял архив? Там стоит 4 января время заливки, я скачивал 5-го, потом вроде еще позже перекачивал, но не помню какого.

И что насчет правки диалогов - ты не против?


Intel i7-3770K 3.50GHz, Intel DZ77BH-55K, Corsair DDR3 2x8Гб 1600GHz, GF GTX 780 3GD5, Creative SB X-Fi Xtreme 7.1, HDD 3xSATA3 (2x1TB+2TB), SSD 1x120Gb SATA3 (OS Win 7 Pro x64 SP1), монитор "Обычный" 24" 1920x1080

Сообщение отредактировал mike_vs - Пятница, 09.01.2015, 23:51
 
Форум » Вселенная S.T.A.L.K.E.R. » S.T.A.L.K.E.R. » По следам Черных Ангелов. Альфа-версия. (Тут обсуждаем прохождение альфа-версии.)
Страница 37 из 63«1235363738396263»
Поиск: