Juanchi Ultimate Pack [ALL-in-ONE] [v4.6]

Post Reply
User avatar
runs
Member
Posts: 3225
Joined: Sat Oct 27, 2018 08:32

Juanchi Ultimate Pack [ALL-in-ONE] [v4.6]

by runs » Post

## Juanchi Ultimate Pack

This is a build of the latest Minetest.

What does it offer?

- Very updated: Minetest reloaded with better features: Updated to the latest official build. 5.5-dev.
- Windows 10 x64: Support for the the fastest and ultimate Windows.
- Installer: Install in one click.
- Install & Play: No configurations. So simple!
- Juanchi Game inside: Best Game Ever.

Download
Last edited by runs on Tue Dec 07, 2021 11:46, edited 1 time in total.

User avatar
LMD
Member
Posts: 1385
Joined: Sat Apr 08, 2017 08:16
GitHub: appgurueu
IRC: appguru[eu]
In-game: LMD
Location: Germany
Contact:

Re: Juanchi Ultimate Pack [ALL-in-ONE] [v4.6]

by LMD » Post

Are you aware that Windows Defender apparently considers this a virus (first noticed by Rolleroxza on Discord)? https://www.virustotal.com/gui/file/fc6 ... cfada60df2

Did you include anything apart from the Minetest engine, Juanchi Game and the required libraries in your build?
My stuff: Projects - Mods - Website

User avatar
runs
Member
Posts: 3225
Joined: Sat Oct 27, 2018 08:32

Re: Juanchi Ultimate Pack [ALL-in-ONE] [v4.6]

by runs » Post

LMD wrote:
Mon Dec 06, 2021 20:44
Are you aware that Windows Defender apparently considers this a virus (first noticed by Rolleroxza on Discord)? https://www.virustotal.com/gui/file/fc6 ... cfada60df2

Did you include anything apart from the Minetest engine, Juanchi Game and the required libraries in your build?
How not? Discorders, again, nest of vipers that hate me...

The installer is InnoSetup. Anyone can unzip that exe and watch what are inside and read the installer script with this tool:
http://innounp.sourceforge.net/

Tell that bunch of *beep* from me that my life is great, and thanks for remembering me, ha and re-ha.

User avatar
runs
Member
Posts: 3225
Joined: Sat Oct 27, 2018 08:32

Re: Juanchi Ultimate Pack [ALL-in-ONE] [v4.6]

by runs » Post

More facts:
- 1 of 62 antivirus is a false positive.
- Microsoft antivirus is shit.
- Passed the Github antivirus.
- I continue?

User avatar
runs
Member
Posts: 3225
Joined: Sat Oct 27, 2018 08:32

Re: Juanchi Ultimate Pack [ALL-in-ONE] [v4.6]

by runs » Post

Maybe the false positive is for the pascal script. But anyway anyone can check it.

Code: Select all

;InnoSetupVersion=5.6.1

[Setup]
AppName=Juanchi Game
AppVerName=v3.18
DefaultDirName={pf64}\Juanchi Name}
DefaultGroupName=Juanchi Game
OutputBaseFilename=JuanchiGame_v3.18
Uninstallable= yes
WizardImageFile={app}\games\juanchi\menu\icon.bmp
WizardImageStretch=no
Compression=lzma
DisableDirPage=no

[Languages]
Name: "en"; MessagesFile: "compiler:Default.isl"
Name: "es"; MessagesFile: "compiler:Languages\Spanish.isl"

[Files]
Source: "{app}\*.*"; DestDir: "{app}"; Components: "base"; Flags: ignoreversion recursesubdirs; AfterInstall: MyAfterInstall

[Dirs]
Name: "{app}"; 

[Components]
Name: "base"; Description: "Juanchi Game"; Types: "full compact custom";

[Icons]
Name: "{group}\{cm:PlayTo,Juanchi Game}"; Filename: "{app}\bin\minetest.exe"; Components: "base"
Name: "{group}\{cm:UninstallProgram,Juanchi Game}"; Filename: "{app}\unins000.exe"; Components: "base"
Name: "{userdesktop}\Juanchi Game"; Filename: "{app}\bin\minetest.exe"; Tasks: desktopicon

[Tasks]
Name: "desktopicon"; Description: "Crear acceso directo en el Escritorio"; GroupDescription: "Opciones";

[INI] 

[CustomMessages]
CustomMessage=Undefined //just in case (should be equal to English)
en.PlayTo=Play to
es.PlayTo=Juega a
en.InstallOptionsHeader=Install Options
es.InstallOptionsHeader=Opciones de instalación
en.InstallOptionsQuery=Who should Juanchi Game be installed for?
es.InstallOptionsQuery=¿Para quién debería instalarse Juanchi Game?
en.InstallOptionsText1=Please, select if you want to make Juanchi Game available to all users
es.InstallOptionsText1=Por favor, selecciona si deseas hacer Juanchi Game disponible para todos los usuarios
en.InstallOptionsText2=or just for you.
es.InstallOptionsText2=o sólo para ti.
en.InstallOptions1=&Whoever uses this PC
es.InstallOptions1=&Cualquiera que use este PC
en.InstallOptions2=&Just for me 
es.InstallOptions2=&Sólo para mí

[Messages]
en.BeveledLabel=English
es.BeveledLabel=Español

[Registry]

[Code]

var
  OptionPage: TInputOptionWizardPage;  
  Is_AfterInstall_Executed: Boolean; 


Const
    SM_CXSCREEN = 0; // The enum-value for getting the width of the cient area for a full-screen window on the primary display monitor, in pixels.
    SM_CYSCREEN = 1; // The enum-value for getting the height of the client area for a full-screen window on the primary display monitor, in pixels.


procedure InitializeWizard();
begin
  OptionPage :=
    CreateInputOptionPage(
      wpWelcome,
      ExpandConstant('{cm:InstallOptionsHeader}'), ExpandConstant('{cm:InstallOptionsQuery}'),
      ExpandConstant('{cm:InstallOptionsText1}') + ' ' +
      ExpandConstant('{cm:InstallOptionsText2}'),
      True, False);

  OptionPage.Add(ExpandConstant('{cm:InstallOptions1}'));
  OptionPage.Add(ExpandConstant('{cm:InstallOptions2}'));

  if IsAdminLoggedOn then
  begin
    OptionPage.Values[0] := True;
  end
    else
  begin
    OptionPage.Values[1] := True;
    OptionPage.CheckListBox.ItemEnabled[0] := False;
  end;
end;

function NextButtonClick(CurPageID: Integer): Boolean;
begin
  if CurPageID = OptionPage.ID then
  begin
    if OptionPage.Values[1] then
    begin
      WizardForm.DirEdit.Text := ExpandConstant('{userappdata}\Juanchi Game')
    end
      else
    begin
      WizardForm.DirEdit.Text := ExpandConstant('{pf64}\Juanchi Game');
    end;
  end;
  Result := True;
end;

function FileReplaceString(const FileName, SearchString, ReplaceString: string):boolean;
var
  MyFile : TStrings;
  MyText : string;
begin
  MyFile := TStringList.Create;

  try
    result := true;

    try
      MyFile.LoadFromFile(FileName);
      MyText := MyFile.Text;

      { Only save if text has been changed. }
      if StringChangeEx(MyText, SearchString, ReplaceString, True) > 0 then
      begin;
        MyFile.Text := MyText;
        MyFile.SaveToFile(FileName);
      end;
    except
      result := false;
    end;
  finally
    MyFile.Free;
  end;
end;

function GetSystemMetrics (nIndex: Integer): Integer;
  external 'GetSystemMetrics@User32.dll stdcall setuponly';

procedure DecodeVersion( verstr: String; var verint: array of Integer );
var
  i,p: Integer; s: string;
begin
  // initialize array
  verint := [0,0,0,0];
  i := 0;
  while ( (Length(verstr) > 0) and (i < 4) ) do
  begin
  	p := pos('.', verstr);
  	if p > 0 then
  	begin
      if p = 1 then s:= '0' else s:= Copy( verstr, 1, p - 1 );
  	  verint[i] := StrToInt(s);
  	  i := i + 1;
  	  verstr := Copy( verstr, p+1, Length(verstr));
  	end
  	else
  	begin
  	  verint[i] := StrToInt( verstr );
  	  verstr := '';
  	end;
  end;

end;

// This function compares version string
// return -1 if ver1 < ver2
// return  0 if ver1 = ver2
// return  1 if ver1 > ver2
function CompareVersion( ver1, ver2: String ) : Integer;
var
  verint1, verint2: array of Integer;
  i: integer;
begin

  SetArrayLength( verint1, 4 );
  DecodeVersion( ver1, verint1 );

  SetArrayLength( verint2, 4 );
  DecodeVersion( ver2, verint2 );

  Result := 0; i := 0;
  while ( (Result = 0) and ( i < 4 ) ) do
  begin
  	if verint1[i] > verint2[i] then
  	  Result := 1
  	else
      if verint1[i] < verint2[i] then
  	    Result := -1
  	  else
  	    Result := 0;

  	i := i + 1;
  end;

end;

// DirectX version is stored in registry as 4.majorversion.minorversion
// DirectX 8.0 is 4.8.0
// DirectX 8.1 is 4.8.1
// DirectX 9.0 is 4.9.0

function GetDirectXVersion(): String;
var
  sVersion:  String;
begin
  sVersion := '';
  RegQueryStringValue( HKLM, 'SOFTWARE\Microsoft\DirectX', 'Version', sVersion );
  Result := sVersion;
end;

procedure MyAfterInstall();
var
  xres: Integer;
  yres: Integer;
begin
  if not Is_AfterInstall_Executed then
  begin
    yres:= GetSystemMetrics(SM_CYSCREEN); //vertical resolution  
    FileReplaceString(ExpandConstant('{app}/minetest.conf'), 'language = en', 'language = '+ ActiveLanguage);
    xres:= GetSystemMetrics(SM_CXSCREEN);
    FileReplaceString(ExpandConstant('{app}/minetest.conf'), 'screen_w = 1920', 'screen_w = '+ IntToStr(xres));
    FileReplaceString(ExpandConstant('{app}/minetest.conf'), 'screen_h = 1080', 'screen_h = '+ IntToStr(yres));
    if CompareVersion( GetDirectXVersion(), '4.8.0') > 0 then
      begin
      FileReplaceString(ExpandConstant('{app}/minetest.conf'), 'driver = opengl', 'driver = '+ 'direct3d8')
      end;
    SaveStringToFile(ExpandConstant('{app}/minetest.conf'), 'texture_path='+ExpandConstant('{app}\textures\juanchi\'), True);
    Is_AfterInstall_Executed:= true;
  end;
end;

User avatar
LMD
Member
Posts: 1385
Joined: Sat Apr 08, 2017 08:16
GitHub: appgurueu
IRC: appguru[eu]
In-game: LMD
Location: Germany
Contact:

Re: Juanchi Ultimate Pack [ALL-in-ONE] [v4.6]

by LMD » Post

runs wrote:
Mon Dec 06, 2021 21:37

How not? Discorders, again, nest of vipers that hate me...
Nest of vipers? They identified an issue with your builds that was brought to your attention. I'd rather be thankful.

Are you sure that "innounp" is legit? A third scanner is considering it malware: https://www.virustotal.com/gui/file/1d8 ... 818ff6df67

Note that the sources haven't been updated since v0.35. And even the sources contain dubious files like "REPLACE.EXE". Consider using another tool.
My stuff: Projects - Mods - Website

User avatar
runs
Member
Posts: 3225
Joined: Sat Oct 27, 2018 08:32

Re: Juanchi Ultimate Pack [ALL-in-ONE] [v4.6]

by runs » Post

LMD wrote:
Tue Dec 07, 2021 08:21
runs wrote:
Mon Dec 06, 2021 21:37

How not? Discorders, again, nest of vipers that hate me...
Nest of vipers? They identified an issue with your builds that was brought to your attention. I'd rather be thankful.

Are you sure that "innounp" is legit? A third scanner is considering it malware: https://www.virustotal.com/gui/file/1d8 ... 818ff6df67

Note that the sources haven't been updated since v0.35. And even the sources contain dubious files like "REPLACE.EXE". Consider using another tool.
I've download the last version from the official webpage (not sourceforge) and repacked. Now it seems clean in VirusTotal. :-D

As for Discord if you only get bashing and humiliation it is understandable that I would be defensive.

User avatar
runs
Member
Posts: 3225
Joined: Sat Oct 27, 2018 08:32

Re: Juanchi Ultimate Pack [ALL-in-ONE] [v4.6]

by runs » Post

Well, I regret being aggressive in my replies. I am sorry for that.

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests