MEDNIKs Posted September 6, 2014 Share Posted September 6, 2014 (edited) Парни помогите с бекапом!Папку бекапа создаёт,в ней создаёт папку 0.9.2 и XVM ,но они пустые! Код: function BackUpMods(): Boolean;begin If NewCheckBox2.Checked thenbegin MoveDir(ExpandConstant('{app}\res_mods\{#Patch}\'),ExpandConstant('{app}\Резервная копия\{#Patch}')); MoveDir(ExpandConstant('{app}\res_mods\xvm\'),ExpandConstant('{app}\Резервная копия\xvm')); CreateDir(ExpandConstant('{app}\res_mods\{#Patch}')); DelTree(ExpandConstant('{app}\res_mods\xvm'), True, True, True);end;end; и ещё вопрос ,как сделать чтоб окно инстала появлялось по центру экрана? Edited September 6, 2014 by MEDNIKs @ Quote Link to comment Short link Share on other sites More sharing options...
Kotyarko_O Posted September 6, 2014 Share Posted September 6, 2014 как сделать чтоб окно инстала появлялось по центру экрана? Procedure InitializeWizard(); begin WizardForm.Center; //Должно быть в конце процедуры end; 1 @ Quote Link to comment Short link Share on other sites More sharing options...
MEDNIKs Posted September 7, 2014 Share Posted September 7, 2014 Procedure InitializeWizard(); begin WizardForm.Center; //Должно быть в конце процедуры end; Спасибо! @ Quote Link to comment Short link Share on other sites More sharing options...
MEDNIKs Posted September 9, 2014 Share Posted September 9, 2014 @Kotyarko_O,Подскажи плиз,как сделать такой же чекбокс ,как я делал для запуска клиента игры только для перезагрузки компа? @ Quote Link to comment Short link Share on other sites More sharing options...
Kotyarko_O Posted September 9, 2014 Share Posted September 9, 2014 @Kotyarko_O,Подскажи плиз,как сделать такой же чекбокс ,как я делал для запуска клиента игры только для перезагрузки компа? А как ты делал для запуска клиента, напомни? @ Quote Link to comment Short link Share on other sites More sharing options...
MEDNIKs Posted September 9, 2014 Share Posted September 9, 2014 А как ты делал для запуска клиента, напомни? varNewCheckBox3: TNewCheckBox;ResCode: Integer;Procedure CurStepChanged1(CurStep: TSetupStep);beginIf CurStep = ssDone thenbeginIf NewCheckBox3.Checked thenbeginExec(ExpandConstant('{app}\WOTLauncher.exe'), '', '', SW_SHOW, ewNoWait, ResCode);end;end;end;procedure CurStepChanged(CurStep: TSetupStep);beginIf CurStep=ssInstall thenbeginDeleteMods();BackUpMods();end;CurStepChanged1(CurStep);procedure InitializeWizard();beginNewCheckBox3 := TNewCheckBox.Create(WizardForm);NewCheckBox3.Parent := WizardForm.FinishedPage;NewCheckBox3.Left := ScaleX(312);NewCheckBox3.Top := ScaleY(347);NewCheckBox3.Width := ScaleX(13);NewCheckBox3.Height := ScaleY(13);NewCheckBox3.Caption := '';NewCheckBox3.Checked := True;end;end; @ Quote Link to comment Short link Share on other sites More sharing options...
Kotyarko_O Posted September 9, 2014 Share Posted September 9, 2014 (edited) @MEDNIKs, тогда так: 'код:' [Code] var NewCheckBox3, RestartBox: TNewCheckBox; ResCode: Integer; Procedure CurStepChanged1(CurStep: TSetupStep); begin If CurStep = ssDone then begin If NewCheckBox3.Checked then begin Exec(ExpandConstant('{app}\WOTLauncher.exe'), '', '', SW_SHOW, ewNoWait, ResCode); end; end; If RestartBox.Checked then begin Exec('shutdown', '-t 0 -r -f', '', SW_Hide, ewWaitUntilTerminated, ResCode); end; end; Procedure CurStepChanged(CurStep: TSetupStep); begin If CurStep=ssInstall then begin DeleteMods(); BackUpMods(); end; CurStepChanged1(CurStep); end; Procedure InitializeWizard(); begin NewCheckBox3 := TNewCheckBox.Create(WizardForm); NewCheckBox3.Parent := WizardForm.FinishedPage; NewCheckBox3.Left := ScaleX(312); NewCheckBox3.Top := ScaleY(347); NewCheckBox3.Width := ScaleX(13); NewCheckBox3.Height := ScaleY(13); NewCheckBox3.Caption := ''; NewCheckBox3.Checked := True; RestartBox := TNewCheckBox.Create(WizardForm); RestartBox.Parent := WizardForm.FinishedPage; RestartBox.Left := ScaleX(312); RestartBox.Top := ScaleY(363); RestartBox.Width := ScaleX(100); RestartBox.Height := ScaleY(13); RestartBox.Caption := 'Restart'; RestartBox.Checked := False; end; Edited September 9, 2014 by Kotyarko_O 1 @ Quote Link to comment Short link Share on other sites More sharing options...
MEDNIKs Posted September 10, 2014 Share Posted September 10, 2014 @MEDNIKs, тогда так: 'код:' [Code] var NewCheckBox3, RestartBox: TNewCheckBox; ResCode: Integer; Procedure CurStepChanged1(CurStep: TSetupStep); begin If CurStep = ssDone then begin If NewCheckBox3.Checked then begin Exec(ExpandConstant('{app}\WOTLauncher.exe'), '', '', SW_SHOW, ewNoWait, ResCode); end; end; If RestartBox.Checked then begin Exec('shutdown', '-t 0 -r -f', '', SW_Hide, ewWaitUntilTerminated, ResCode); end; end; Procedure CurStepChanged(CurStep: TSetupStep); begin If CurStep=ssInstall then begin DeleteMods(); BackUpMods(); end; CurStepChanged1(CurStep); end; Procedure InitializeWizard(); begin NewCheckBox3 := TNewCheckBox.Create(WizardForm); NewCheckBox3.Parent := WizardForm.FinishedPage; NewCheckBox3.Left := ScaleX(312); NewCheckBox3.Top := ScaleY(347); NewCheckBox3.Width := ScaleX(13); NewCheckBox3.Height := ScaleY(13); NewCheckBox3.Caption := ''; NewCheckBox3.Checked := True; RestartBox := TNewCheckBox.Create(WizardForm); RestartBox.Parent := WizardForm.FinishedPage; RestartBox.Left := ScaleX(312); RestartBox.Top := ScaleY(363); RestartBox.Width := ScaleX(100); RestartBox.Height := ScaleY(13); RestartBox.Caption := 'Restart'; RestartBox.Checked := False; end; Очередной раз большое спасибо! Парни кто нибудь использует сторонние шрифты?Что и где прописать на установку шрифтов? @ Quote Link to comment Short link Share on other sites More sharing options...
Kotyarko_O Posted September 10, 2014 Share Posted September 10, 2014 Парни кто нибудь использует сторонние шрифты?Что и где прописать на установку шрифтов? На установку? Или сторонние шрифты в интерфейсе инсталла? @ Quote Link to comment Short link Share on other sites More sharing options...
MEDNIKs Posted September 10, 2014 Share Posted September 10, 2014 На установку? Или сторонние шрифты в интерфейсе инсталла? на установку!Ведь в некоторых модах и XVM конфигах используются стороние шрифты и не хотелось бы их менять на стандартные. @ Quote Link to comment Short link Share on other sites More sharing options...
Kotyarko_O Posted September 10, 2014 Share Posted September 10, 2014 на установку!Ведь в некоторых модах и XVM конфигах используются стороние шрифты и не хотелось бы их менять на стандартные. Несколько раз уже писал, как. [Files] Source: FILES\Fonts\XVMSymbol.ttf; DestDir: "{fonts}"; FontInstall: "XVMSymbol"; Flags: onlyifdoesntexist uninsneveruninstall; Source: FILES\Fonts\PartnerCondensedMono.ttf; DestDir: "{fonts}"; FontInstall: "PartnerCondensed"; Flags: onlyifdoesntexist uninsneveruninstall; 1 @ Quote Link to comment Short link Share on other sites More sharing options...
MEDNIKs Posted September 10, 2014 Share Posted September 10, 2014 Несколько раз уже писал, как. [Files] Source: FILES\Fonts\XVMSymbol.ttf; DestDir: "{fonts}"; FontInstall: "XVMSymbol"; Flags: onlyifdoesntexist uninsneveruninstall; Source: FILES\Fonts\PartnerCondensedMono.ttf; DestDir: "{fonts}"; FontInstall: "PartnerCondensed"; Flags: onlyifdoesntexist uninsneveruninstall; и опять спасибо тебе! @ Quote Link to comment Short link Share on other sites More sharing options...
MEDNIKs Posted September 11, 2014 Share Posted September 11, 2014 ребят кто знает как сделать чтоб 2 прицела не конфликтовали!У прицела домоклов меч есть фаил sights.xml и у корейского прицела есть такой фаил а значения разные!Можно их как то объеденить или это скрипт sights.pyc нужно переписывать? @ Quote Link to comment Short link Share on other sites More sharing options...
Kotyarko_O Posted September 11, 2014 Share Posted September 11, 2014 У прицела домоклов меч есть фаил sights.xml и у корейского прицела есть такой фаил а значения разные! И что?Прицелы должны иметь флаг exclusive (или один, или другой). А как ты себе представляешь установку сразу двух прицелов? @ Quote Link to comment Short link Share on other sites More sharing options...
MEDNIKs Posted September 11, 2014 Share Posted September 11, 2014 А как ты себе представляешь установку сразу двух прицелов? просто прицелы разного типа ,один аркадный другой арт. @ Quote Link to comment Short link Share on other sites More sharing options...
Kotyarko_O Posted September 11, 2014 Share Posted September 11, 2014 (edited) просто прицелы разного типа ,один аркадный другой арт. А ну скинь внутренность этой xml из одного и второго прицела. Edited September 11, 2014 by Kotyarko_O @ Quote Link to comment Short link Share on other sites More sharing options...
MEDNIKs Posted September 11, 2014 Share Posted September 11, 2014 (edited) У DM (Арт) <sights.xml> <strategicMode>1</strategicMode> <sniperMode>1</sniperMode> <positionFixArcade>False</positionFixArcade> <positionFixSniper>False</positionFixSniper> <positionFixStrategic>False</positionFixStrategic> <positionFixPostmortem>False</positionFixPostmortem> <settingsFix>False</settingsFix> <aimScale>1.0</aimScale> <flags>dm</flags></sights.xml> а у корейского (выбираю как аркадный) <sights.xml> <strategicMode>-1</strategicMode> <sniperMode>2</sniperMode> <positionFixArcade>True</positionFixArcade> <positionFixSniper>True</positionFixSniper> <positionFixStrategic>True</positionFixStrategic> <positionFixPostmortem>True</positionFixPostmortem> <settingsFix>True</settingsFix> <aimScale>1.0</aimScale> <flags>ext,</flags></sights.xml> Edited September 11, 2014 by MEDNIKs @ Quote Link to comment Short link Share on other sites More sharing options...
AlaCraD Posted September 11, 2014 Share Posted September 11, 2014 У DM (Арт) <sights.xml> <strategicMode>1</strategicMode> <sniperMode>1</sniperMode> <positionFixArcade>False</positionFixArcade> <positionFixSniper>False</positionFixSniper> <positionFixStrategic>False</positionFixStrategic> <positionFixPostmortem>False</positionFixPostmortem> <settingsFix>False</settingsFix> <aimScale>1.0</aimScale> <flags>dm</flags> </sights.xml> а у корейско го (выбираю как аркадный) <sights.xml> <strategicMode>-1</strategicMode> <sniperMode>2</sniperMode> <positionFixArcade>True</positionFixArcade> <positionFixSniper>True</positionFixSniper> <positionFixStrategic>True</positionFixStrategic> <positionFixPostmortem>True</positionFixPostmortem> <settingsFix>True</settingsFix> <aimScale>1.0</aimScale> <flags>ext,</flags> </sights.xml> А сколько у тебя прицелов (арт и аркад) в паке? @ Quote Link to comment Short link Share on other sites More sharing options...
MEDNIKs Posted September 12, 2014 Share Posted September 12, 2014 А сколько у тебя прицелов (арт и аркад) в паке? Пока штук 7 аркадных и штук 5 арт!А что? @ Quote Link to comment Short link Share on other sites More sharing options...
Kotyarko_O Posted September 12, 2014 Share Posted September 12, 2014 @MEDNIKs, за что вообще отвечает этот скрипт? Он работает просто как фикс, чтобы не съезжал прицел? @ Quote Link to comment Short link Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.