[Q] New executable for single player mods, why?

The best and quickest support by a group of top-notch editing specialists, guaranteed!

Moderator: Forum Guards

[Q] New executable for single player mods, why?

Postby DxPlayer » Sat Jul 07, 12 8:35 pm

So looking at the best DeusEx mods released so far, why those usually have a different executable than DeusEx.exe? I mean, why not simple change the ini files throw command lines (2027,TNM stills do that, but also with a different .exe). I don't underspend why, for Deranged there is an launcher that calls DeusEx.exe with arguments for the custom ini files, that configures the game to run the proper player class and game class used in Deranged.


Project 2027 command line for 2027.exe :
Code: Select all
Init: Command line: ini="..\2027\System\2027.ini" userini="..\2027\System\2027User.ini" log="..\2027\System\2027.log"


Deranged command line for default DeusEx.exe:
Code: Select all
Init: Command line: ini=Deranged.ini userini=DRuser.ini log=Deranged.log


Are there benefits?
Last edited by DxPlayer on Sat Jul 07, 12 8:37 pm, edited 2 times in total.
User avatar
DxPlayer
Regular
 
Posts: 488
Joined: Sun Jan 25, 09 6:31 pm
Location: Brazil

Postby Dae » Sat Jul 07, 12 9:52 pm

As far as I remember, the main reason is... the splash logo. If you rename DeusEx.exe to Sex.exe, on startup it would try to load Sex.bmp from the Help\ folder.

On top of that, I once hacked DeusEx.exe to remove ugly borders around the splash screen. Project: 2027 uses that modified .exe.
User avatar
Dae
Alpha
 
Posts: 12086
Joined: Sat Sep 06, 03 4:40 pm

Postby DxPlayer » Sat Jul 07, 12 11:53 pm

Oh, I see.

Thx Dae!
User avatar
DxPlayer
Regular
 
Posts: 488
Joined: Sun Jan 25, 09 6:31 pm
Location: Brazil

Postby han » Thu Nov 29, 12 11:41 pm

A more severe issue is, that Default.ini / DefUser.ini will get used if someone deletes the Mod.ini / ModUser.ini.

But could be hacked away like:
Code: Select all
class FHXFileManagerWindows : public FFileManagerWindows
{
public:
   // Use HXDefault.ini / HXDefUser.ini (hack)
   FArchive* CreateFileReader( const TCHAR* Filename, DWORD Flags, FOutputDevice* Error )
   {
      if (!appStrcmp(Filename, TEXT("Default.ini")))
         return FFileManagerWindows::CreateFileReader( TEXT("HXDefault.ini"), Flags, Error );
      else if (!appStrcmp(Filename, TEXT("DefUser.ini")))
         return FFileManagerWindows::CreateFileReader( TEXT("HXDefUser.ini"), Flags, Error );
      else
         return FFileManagerWindows::CreateFileReader( Filename, Flags, Error );
   }
};
han
Newbie
 
Posts: 15
Joined: Thu Nov 29, 12 10:47 pm


Return to Editing issues

Who is online

Users browsing this forum: No registered users and 17 guests
cron