Go Back   FileForums > Game Backup > PC Games > PC Games - CD/DVD Conversions > Conversion Tutorials

Reply
 
Thread Tools Search this Thread Display Modes
  #736  
Old 07-02-2024, 10:30
audiofeel's Avatar
audiofeel audiofeel is offline
Registered User
 
Join Date: Jan 2013
Location: Russia
Posts: 400
Thanks: 457
Thanked 1,013 Times in 344 Posts
audiofeel is on a distinguished road
Wink

Quote:
Originally Posted by Tihiy_Don View Post
Maybe it will be useful to someone.
Automatically set the unpacking parameters depending on the amount of RAM:
If it comes to that, then you can do the same with the number of processor cores and with its frequency (where necessary).
Can also implement a comparison of free disk space and, based on the results, place a temporary folder there for unpacking.
__________________
https://t.me/FMXInno

Last edited by audiofeel; 07-02-2024 at 10:37.
Reply With Quote
The Following 2 Users Say Thank You to audiofeel For This Useful Post:
Behnam2018 (07-02-2024), hitman797 (07-02-2024)
Sponsored Links
  #737  
Old 08-02-2024, 00:11
BLACKFIRE69's Avatar
BLACKFIRE69 BLACKFIRE69 is offline
Registered User
 
Join Date: Mar 2019
Location: In the Hell
Posts: 673
Thanks: 479
Thanked 2,464 Times in 547 Posts
BLACKFIRE69 is on a distinguished road
Quote:
Originally Posted by Tihiy_Don View Post
Maybe it will be useful to someone.
Automatically set the unpacking parameters depending on the amount of RAM:


Code:
function GetRamMemory: Integer;
var i: Integer;
s: String;
begin
s:=MbOrTb(RamInfo.TotalRam, 0);
for i:=length(s) downto 1 do
if not (s[i] in ['0','1','2','3','4','5','6','7','8','9']) then delete(s,i,1);

Result:=StrToInt(s);
end;

procedure CurStepChanged(CurStep: TSetupStep);
var
XValue, LRamValue, LCpuValue, SValue: String;
begin
case GetRamMemory of
0..2:
begin
XValue:= 't4';
SValue:= '512mb';
LRamValue:= '512mb';
LCpuValue:= '4';
end;
3..4:
begin
XValue:= 't4';
SValue:= '768mb';
LRamValue:= '768mb';
LCpuValue:= '4';
end;

// ....
end;


how about this way? i think it's more convenient.


Code:
procedure _GetMeRAMInGB;
var
  MyRamInGB: Integer;
begin
  // Note:  ARamUsage.TotalRam --> Total RAM in MB.

  MyRamInGB := Round(ARamUsage.TotalRam / 1024);  // 0, 1, 2, 3, ....

  case MyRamInGB of
    0..2:
    begin
      MsgBox('RAM: 0..2 GB', mbInformation, MB_OK);
    end;

    3..4:
    begin
      MsgBox('RAM: 3..4 GB', mbInformation, MB_OK);
    end;

    // ....

    else
    begin
      MsgBox('Are you sure you really have RAM installed?  ;)', mbError, MB_OK);
    end;
  end;
end;
Reply With Quote
The Following 2 Users Say Thank You to BLACKFIRE69 For This Useful Post:
audiofeel (08-02-2024), Tihiy_Don (08-02-2024)
  #738  
Old 08-02-2024, 01:58
Tihiy_Don Tihiy_Don is offline
Registered User
 
Join Date: Mar 2023
Location: Los Angeles Lakers
Posts: 43
Thanks: 89
Thanked 26 Times in 18 Posts
Tihiy_Don is on a distinguished road
Quote:
Originally Posted by BLACKFIRE69 View Post
how about this way? i think it's more convenient.


Code:
procedure _GetMeRAMInGB;
var
  MyRamInGB: Integer;
begin
  // Note:  ARamUsage.TotalRam --> Total RAM in MB.

  MyRamInGB := Round(ARamUsage.TotalRam / 1024);  // 0, 1, 2, 3, ....

  case MyRamInGB of
    0..2:
    begin
      MsgBox('RAM: 0..2 GB', mbInformation, MB_OK);
    end;

    3..4:
    begin
      MsgBox('RAM: 3..4 GB', mbInformation, MB_OK);
    end;

    // ....

    else
    begin
      MsgBox('Are you sure you really have RAM installed?  ;)', mbError, MB_OK);
    end;
  end;
end;
It's more convenient, yes. I did this because I thought that it could only be done through the MbOrTb function and asked about it in the FMX Q&A topic, but I never got an answer, so I did and already released a repack on the torrent tracker, the main thing is that it works.

I was not afraid to make it on FMX and release it, I even worked on supporting 32-bit machines.

Last edited by Tihiy_Don; 08-02-2024 at 02:05.
Reply With Quote
The Following 2 Users Say Thank You to Tihiy_Don For This Useful Post:
ADMIRAL (10-02-2024), BLACKFIRE69 (08-02-2024)
  #739  
Old 08-02-2024, 01:59
Tihiy_Don Tihiy_Don is offline
Registered User
 
Join Date: Mar 2023
Location: Los Angeles Lakers
Posts: 43
Thanks: 89
Thanked 26 Times in 18 Posts
Tihiy_Don is on a distinguished road
Quote:
Originally Posted by audiofeel View Post
If it comes to that, then you can do the same with the number of processor cores and with its frequency (where necessary).
Can also implement a comparison of free disk space and, based on the results, place a temporary folder there for unpacking.
I know what can be done with kernels in mind, but it doesn't make sense for my repack.
Reply With Quote
  #740  
Old 12-02-2024, 11:13
BLACKFIRE69's Avatar
BLACKFIRE69 BLACKFIRE69 is offline
Registered User
 
Join Date: Mar 2019
Location: In the Hell
Posts: 673
Thanks: 479
Thanked 2,464 Times in 547 Posts
BLACKFIRE69 is on a distinguished road
Arrow FMXInno - documentation

FMXInno - documentation




Quote:
* A documentation for FMXInno may arrive someday, but not in the near future. what are your thoughts on this?



.
Attached Images
File Type: png 1.png (19.5 KB, 256 views)
File Type: png 2.png (29.5 KB, 260 views)
File Type: png 3.png (62.8 KB, 260 views)
Reply With Quote
The Following 10 Users Say Thank You to BLACKFIRE69 For This Useful Post:
audiofeel (12-02-2024), Behnam2018 (14-02-2024), Cesar82 (13-02-2024), hitman797 (12-02-2024), Jahan1373 (13-02-2024), Masquerade (13-02-2024), nordi (13-02-2024), ScOOt3r (12-02-2024), Tihiy_Don (12-02-2024), Wanterlude (12-02-2024)
  #741  
Old 22-02-2024, 06:18
Ponasss Ponasss is offline
Registered User
 
Join Date: Feb 2024
Location: Москва
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Ponasss is on a distinguished road
Why does it show so many Trojans?

(че столько троянов показывает?)

Last edited by Joe Forster/STA; 23-02-2024 at 05:59. Reason: English translation
Reply With Quote
  #742  
Old 23-02-2024, 06:01
Joe Forster/STA's Avatar
Joe Forster/STA Joe Forster/STA is offline
Senior forum member
 
Join Date: Nov 2000
Location: Hungary
Posts: 9,813
Thanks: 20
Thanked 331 Times in 216 Posts
Joe Forster/STA is on a distinguished road
Quote:
Originally Posted by Ponasss View Post
Why does it show so many Trojans?
(This is an English-only forum.) Your virus scanner may be overreacting. I suggest that you upload suspicious files to https://www.virustotal.com, an online multi-engine virus scanner.
__________________
Joe Forster/STA
For more information, see the FileForums forum rules and the PC Games forum FAQ!
Don't contact me via E-mail or PM to ask for help with anything other than patches (or software in general) done by me, otherwise your request may be deleted without any reply!
Homepage: http://sta.c64.org, E-mail: [email protected]; for attachments, send compressed (ZIP or RAR) files only, otherwise your E-mail will bounce back!
Reply With Quote
The Following User Says Thank You to Joe Forster/STA For This Useful Post:
audiofeel (23-02-2024)
  #743  
Old 24-02-2024, 05:40
BLACKFIRE69's Avatar
BLACKFIRE69 BLACKFIRE69 is offline
Registered User
 
Join Date: Mar 2019
Location: In the Hell
Posts: 673
Thanks: 479
Thanked 2,464 Times in 547 Posts
BLACKFIRE69 is on a distinguished road
Arrow FMXInno - Updates

* FMXInno - Updates [2024-Feb-24]


Code:
1. Integrated all updates up to this point.
2. Removed FMXInno's memory (RAM) truncation.
3. Fixed issues with invalid handles and owners.
4. Resolved some memory leaks.
5. Addressed previously encountered issues.
6. Implemented various improvements.
7. Updated all examples to Inno Setup 6.2.2.
8. Compiled with RadStudio 12 Athens + Patch 01.
9. This build is free from false positive trojans.


The first post has been updated; check it out.



.
Attached Images
File Type: png z0.png (26.4 KB, 190 views)
Reply With Quote
The Following 8 Users Say Thank You to BLACKFIRE69 For This Useful Post:
audiofeel (24-02-2024), Behnam2018 (24-02-2024), Cesar82 (24-02-2024), hitman797 (24-02-2024), Jahan1373 (25-02-2024), Lord.Freddy (25-02-2024), ScOOt3r (24-02-2024), Tihiy_Don (24-02-2024)
  #744  
Old 26-02-2024, 06:44
BLACKFIRE69's Avatar
BLACKFIRE69 BLACKFIRE69 is offline
Registered User
 
Join Date: Mar 2019
Location: In the Hell
Posts: 673
Thanks: 479
Thanked 2,464 Times in 547 Posts
BLACKFIRE69 is on a distinguished road
Arrow FMXInno - Final Release: Hotfix_01

FMXInno - Final Release: Hotfix_01


* The FMXInno final build includes three main types of FMXInno libs. (yes, i should have mentioned these facts earlier; i really forgot, sorry.)


Code:
1. FMXInno Standard:
   - Contains all FMXInno features.
   - Path1: .\Files\FMXInno.dll
   - Path2: .\FMXInno+FXPacker\Files\FMXInno.dll

2. FMXInno Standard + SKIA:
   - Includes all Standard features and SKIA features.
   - Path: .\SKIA\FMXInno.dll
   - Requires 'sk4d.dll' to be next to 'FMXInno.dll'.

3. FMXInno Standard + Blend2D:
   - Combines Standard features with Blend2D features.
   - Path: .\_Blend2D\Files\FMXInno.dll
   - Requires 'blend2d_win32.dll' to be next to 'FMXInno.dll'.


================================================== =========

* in the latest final release (FMXInno + SKIA + Blend2D - Final Release [2024-Feb-24]), i also forgot the following:

Code:
1. For SKIA:
   a. To replace Firemonkey canvas with SKIA canvas.
   b. To enable GPU Acceleration.

   >> Resulting in the lowest FPS rate and the experience of slow animations and lags.

2. For XBass_F:
   a. To adjust to be compatible with new changes.

   >> Resulting in unexpected behavior and crashes when closing the 'setup.exe'.

3. Additionally, i slightly sped up the Dark-Light mode transition.


thanks to @audiofeel for reporting these bugs.



================================================== =========

* to apply Hotfix_01:

Code:
1. Just replace the old files with the new ones.



.

Last edited by BLACKFIRE69; 14-07-2024 at 02:17.
Reply With Quote
The Following 5 Users Say Thank You to BLACKFIRE69 For This Useful Post:
audiofeel (26-02-2024), hitman797 (26-02-2024), Lord.Freddy (26-02-2024), ScOOt3r (26-02-2024), Tihiy_Don (26-02-2024)
  #745  
Old 27-02-2024, 17:30
BLACKFIRE69's Avatar
BLACKFIRE69 BLACKFIRE69 is offline
Registered User
 
Join Date: Mar 2019
Location: In the Hell
Posts: 673
Thanks: 479
Thanked 2,464 Times in 547 Posts
BLACKFIRE69 is on a distinguished road
Lightbulb FMXInno - News

FMXInno - News


Quote:
1. just uploaded the FMXInno project to GitHub, but it's not published yet. it'll be available for everyone someday (, or perhaps never).




.

Last edited by BLACKFIRE69; 14-07-2024 at 02:18.
Reply With Quote
The Following 5 Users Say Thank You to BLACKFIRE69 For This Useful Post:
audiofeel (28-02-2024), Cesar82 (27-02-2024), hitman797 (27-02-2024), Lord.Freddy (28-02-2024), Tihiy_Don (27-02-2024)
  #746  
Old 01-03-2024, 02:29
hitman797's Avatar
hitman797 hitman797 is offline
Registered User
 
Join Date: Feb 2013
Location: Algeria
Posts: 168
Thanks: 468
Thanked 202 Times in 122 Posts
hitman797 is on a distinguished road
FMXInno features

HI, @BLACKFIRE69, can you add Radiant Shapes to the FMXInno.
  • Radiant Parallelogram.
  • Radiant Hexagon.
Attached Images
File Type: png Screenshot 2024-03-01 112257.png (43.4 KB, 235 views)
Reply With Quote
The Following 4 Users Say Thank You to hitman797 For This Useful Post:
audiofeel (01-03-2024), Behnam2018 (01-03-2024), BLACKFIRE69 (05-03-2024), Jahan1373 (01-03-2024)
  #747  
Old 05-03-2024, 11:21
Fak Eid Fak Eid is offline
Registered User
 
Join Date: Jun 2023
Location: Mars
Posts: 147
Thanks: 97
Thanked 151 Times in 54 Posts
Fak Eid is on a distinguished road
Auto Update Directory Space on Directory Edit

Code for Edit Box
Code:
  Page2Edit.FCreate(Page2.Handle);
  Page2Edit.SetBounds(NSSX(100), NSSY(190), NSSX(520), NSSY(35));
  Page2Edit.FontSetting('{#FontName}', VCLFontSizeToFMX2(13), ALGainsBoro);
  Page2Edit.CanFocus(True);
  Page2Edit.Enabled(True);
  Page2Edit.Text(MinimizePathName(WizardForm.DirEdit.Text, WizardForm.DirEdit.Font, WizardForm.DirEdit.Width));
  Page2Edit.OnTyping(@BrowseEditOnChange);

Logic for procedure
Code:
procedure BrowseEditOnChange(Sender: TObject);
var
  PrevDrive, CurrentDrive: String;
begin
  PrevDrive := ExtractFileDrive(WizardForm.DirEdit.Text);
  CurrentDrive := ExtractFileDrive(Page2Edit.GetText);

  // Set the installation path to the edited text value
  WizardForm.DirEdit.Text := Page2Edit.GetText;

  if PrevDrive <> CurrentDrive then
    DirUpdateProc(nil);
end;
Logic for Directory Update Procedure:
Code:
procedure DirUpdateProc(Sender: TObject);
begin
  DiskUsage.SetDir(WizardForm.DirEdit.Text);
  SelectDirLabel[3].Text('Total Space - ' + MbOrTb(DiskUsage.TotalSpace, 1) + #13 +
                         'Available Space - '+ MbOrTb(DiskUsage.FreeSpace, 1) + #13 +
                         'Repack Size - ' + MbOrTb({#RepackSize}, 1));
  if Round(DiskUsage.FreeSpace) > StrToInt('{#RequiredSpace}') then
  begin
    WizardBtn[4].Enabled(True);  //Install Button enabled if there is space
  end else
  begin
    WizardBtn[4].Enabled(False); //Install Button disabled if no space
    ShowMessage('Not Enough Space', 'Selected Directory does not have required space. Please select a different directory location.');
  end;
end;
Attached Images
File Type: gif Recording 2024-03-06 003906.gif (508.9 KB, 213 views)
Reply With Quote
The Following 8 Users Say Thank You to Fak Eid For This Useful Post:
ADMIRAL (07-03-2024), audiofeel (05-03-2024), Behnam2018 (05-03-2024), BLACKFIRE69 (05-03-2024), JIEXA MEDVED (18-03-2024), Lord.Freddy (05-03-2024), Tihiy_Don (06-03-2024), Wanterlude (Yesterday)
  #748  
Old 05-03-2024, 11:34
Fak Eid Fak Eid is offline
Registered User
 
Join Date: Jun 2023
Location: Mars
Posts: 147
Thanks: 97
Thanked 151 Times in 54 Posts
Fak Eid is on a distinguished road
Common Code to extract Data/Component Files

Declare a global variable DiskSkip in the top
Code:
var
DiskSkip: Boolean;
Updated changes here:
Code:
procedure CurStepChanged(CurStep: TSetupStep);
var
  i: Integer;
begin
  DiskSkip:= False;
  if CurStep = ssInstall then begin
    ISArcExCancel := 0;
    ISArcExDiskCount := 0;
    ISArcDiskAddingSuccess := False;
    ISArcExError := True;

    #include "Game/UnpackTools_Init.iss"
    { - ADDING DISKS: BEGIN -}
    repeat
      {< Main Archives >}
      #ifdef Data1
        VerifyFileExist('Data-01.bin');
        if DiskSkip then break;
      #endif
      #ifdef Data2
        VerifyFileExist('Data-02.bin');
        if DiskSkip then break;
      #endif

      {< Components >}
      #ifdef Component1
        if Checkbox[8].ISChecked then
        VerifyFileExist('selective-english.bin');
      #endif
      #ifdef Component2
        if Checkbox[9].ISChecked then
        VerifyFileExist('selective-bonus.bin');
      #endif
      until true;
    { - ADDING DISKS: END -}

      ISArcExStop;
      if ISArcExError then
        ShowMessage('Installation was interrupted', 'Either the installation has been cancelled by the user,' +#13+ 'or the files are corrupted.');
      end else if not (ISArcDiskAddingSuccess) and (DiskSkip) then
        ShowMessage('Installation is corrupted', 'Required disks could not be located.');

Common procedure to handle all Data files
Code:
procedure VerifyFileExist(FilePath: WideString);
var
  sPath, sFile: WideString;
  sExt: String;
begin
  sPAth := AddBackslash(ExpandConstant('{src}'));
  if FileExists(sPAth + FilePath) then begin
    ISArcDiskAddingSuccess:= ISArcExAddDisks(sPAth + FilePath, '{#DiskPassword}', ExpandConstant('{app}'));
    if not ISArcDiskAddingSuccess then begin
      DiskSkip:= True;
      Exit;
    end;
    ISArcExDiskCount := ISArcExDiskCount + 1;
  end else
    begin
    ShowMessage('Setup Needs the Next Disk', 'Please browse Disk: [ ' + FilePath +  ' ] after closing this prompt'#13#10'If this disk can be found in another folder, browse to the correct path.');
    sExt:= ExtractFileExt(FilePath); StringChange(sExt, '.', '');
    if OpenFileModern(FMXForm.HandleHWND, sExt, FilePath,  sPAth, 'Please specify the location of the next disk', sFile) then
    begin
      sPAth := ExtractFilePath(sFile);
      ISArcDiskAddingSuccess:= ISArcExAddDisks(sPAth + FilePath, '{#DiskPassword}', ExpandConstant('{app}'));
      if not ISArcDiskAddingSuccess then begin
        DiskSkip:= True;
        Exit;
      end;
      ISArcExDiskCount := ISArcExDiskCount + 1;
    end else begin
      ISArcDiskAddingSuccess := False;
      DiskSkip:= True;
      Exit;
    end;
  end;
end;
Reply With Quote
The Following 4 Users Say Thank You to Fak Eid For This Useful Post:
audiofeel (05-03-2024), Behnam2018 (05-03-2024), BLACKFIRE69 (05-03-2024), ScOOt3r (05-03-2024)
  #749  
Old 08-03-2024, 03:09
Fak Eid Fak Eid is offline
Registered User
 
Join Date: Jun 2023
Location: Mars
Posts: 147
Thanks: 97
Thanked 151 Times in 54 Posts
Fak Eid is on a distinguished road
Issue with FCustomFluentWindow

Hi @BlackFire,

I have identified that in 1080p the Form doesn't pop-up at the center of the screen, it is slightly to the left. This is not happening with everyone.

Another issue with FCustomFluentWindow is if once triggered it keeps on popping-up repeatedly and cannot be closed.

Code:
MessageForm.FCreate(FMXForm.HandleHWND, True, False, 0.56, 0);
Temporary fix where it doesn't happen
Code:
MessageForm.FCreateBlankForm(FMXForm.HandleHWND, ALBlack, '');
This is also happening for few people. I'm using a gaming mouse but macro is not enabled. Can you please take a look or let me know the reason or fix?

I've created two videos associated to this. Copy-paste the link after 'youtube.com/' as I'm unable to post the link because they get automatically parsed.
Code:
watch?v=lKhINB7hyBY&ab_channel=FaKEid
Issue notified at 00:40 - 1:30
Code:
watch?v=xopBfI90T-g&ab_channel=FaKEid
Edit : Added GIF to display the issue
Attached Images
File Type: gif Recording 2024-03-08 162211.gif (917.8 KB, 193 views)
Reply With Quote
  #750  
Old 08-03-2024, 03:37
audiofeel's Avatar
audiofeel audiofeel is offline
Registered User
 
Join Date: Jan 2013
Location: Russia
Posts: 400
Thanks: 457
Thanked 1,013 Times in 344 Posts
audiofeel is on a distinguished road
Quote:
Originally Posted by Fak Eid View Post
Hi @BlackFire,
I have identified that in 1080p the Form doesn't pop-up at the center of the screen, it is slightly to the left. This is not happening with everyone.
Another issue with FCustomFluentWindow is if once triggered it keeps on popping-up repeatedly and cannot be closed.
Code:
MessageForm.FCreate(FMXForm.HandleHWND, True, False, 0.56, 0);
Temporary fix where it doesn't happen
Code:
MessageForm.FCreateBlankForm(FMXForm.HandleHWND, ALBlack, '');
This is also happening for few people. I'm using a gaming mouse but macro is not enabled. Can you please take a look or let me know the reason or fix?
I've created two videos associated to this. Copy-paste the link after 'youtube.com/' as I'm unable to post the link because they get automatically parsed.
Code:
watch?v=lKhINB7hyBY&ab_channel=FaKEid
Issue notified at 00:40 - 1:30
Code:
watch?v=xopBfI90T-g&ab_channel=FaKEid
Edit : Added GIF to display the issue
1080p is not the main thing here. The main thing here is the recommended scale -100%. Do you use the theme files that are in the example (OrageStyle-Dark.style)? or are you adding your own?
__________________
https://t.me/FMXInno
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows Fluent Effects Standalone API - InnoSetup / VCL / FXM BLACKFIRE69 Conversion Tutorials 0 15-11-2023 17:35
Windows Phone Installer similar to razor12911's original design? Kitsune1982 Conversion Tutorials 0 02-07-2020 13:04
INDEX - Conversion Tutorial Index Razor12911 Conversion Tutorials 5 11-06-2020 02:05
Frequently Asked Questions Joe Forster/STA PC Games - Frequently Asked Questions 0 29-11-2005 09:48



All times are GMT -7. The time now is 04:41.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
FileForums @ https://fileforums.com