iliketrains wrote: ⤴Fri Sep 02, 2022 1:52 am
ThaCrip wrote: ⤴Fri Sep 02, 2022 1:28 am
Mafia (2002) is FREE to claim on Steam right now from Sep 1st through Sep 5th.
A great game free or priced but Windows only unless I'm missing something. I still have the original on an XP partition.
It works on Linux with Lutris/GloriousEggroll runner for Lutris (
https://github.com/GloriousEggroll/wine ... Proton7-27 ; extract 'wine-lutris-GE-Proton7-27-x86_64.tar.xz' to "~/.local/share/lutris/runners/wine" and Lutris should automatically use it. if not, you can force it through the games options in the shortcut to the games exe you make ) and Wine from WineHQ installed (I am currently using Wine v7.16 'development' version). but I suspect even a basic Wine install should work, since it's a old game, but that setup I used is optimal though as it allowed me to run games in the past that I could not normally run.
the funny thing is, you can't click the "Install" on that game when using Steam on Linux (you can still sign-in to the Steam website to register it to your Steam account though so you can get back to it in the future if you need to) as I had to temporarily setup a virtual machine running Windows 10 for the game data to download (so I could click "Install" on Steam in the Win10 VM) and then I transferred it out of the VM to Mint v21.0-Xfce and then ran it through Lutris (I suspect even a basic Wine install will work though).
so for whatever reason Steam must think it does not work on Linux so it greys out the 'Install' icon that's normally selectable. but, like I was saying, you can bypass this by temporarily installing Steam in a virtual machine running Windows 10, download the game data, and then transfer it out of that back to your Linux machine.
EDIT: I just learned that you can get Mafia to install on Linux through Steam (so you don't need to use Virtual Machine) as here is how... right click the Mafia icon in Steam > Properties > Compatibility, then select the 'Force the use of a specific Steam Play compatibility tool', then close out of that window and now the 'Install' icon is selectable and appears it will proceed like normal since it shows download size.
here is the Widescreen fix (it makes things display properly as the speedometer is not stretched and you get more view in the game environment etc)...
https://videogamemods.com/mafia/mods/ma ... creen-fix/ ; that also works on Linux as you extract the 'models' and 'scripts' folders along with the 'dinput8.dll' to the root of the Mafia directory. but on Linux to get that working you also need to 'Configure Wine' and add a entry for the 'game' exe (Mafia's main exe file), and I changed mine to Windows 7 mode (the default Windows 10 mode might still work though as I did not test this too much on Mafia (2002)) and then for 'Libraries' I added 'dinput8' at which point the mod will now work as without doing that it won't work (I know the 'dinput8.dll' file in the root of game directory is critical to as if you rename that and load the game the mod does not work, rename it back to it's proper naming, and the mod works again). but on Windows you just copy those three things to the root of the game folder and it should work. that also comes with the 'unlimited draw distance' mod which is a bonus since in areas of the game you can see really far, the draw distance is much improved, which on modern computers it can easily handle it. just make sure when you start the game you increase the graphics to 'high' etc as it's on the 'Options > Audio & Video' section and then make sure the game saves it (double check this to make sure it sticks as I think it will as long as you get to a proper save point). you can even increase the 'blood' as it will likely default to nothing.
but since you said you got the original game, you can use that to update the Steam copy to the proper music from original by simply deleting the 'sounds' folder in the Steam copy and then simply copy the 'a0.dta' and 'ab.dta' file from your original copy to the root of the Mafia directory in the Steam copy and it should now be just like the original 2002 music etc. it even saves you 500MB+ of storage space to.
but upon initial load of the games main exe file it will likely trigger the setup so you select your monitors resolution and then you can use anti-aliasing at 4x etc and then save as the rest is likely already on the best settings.
you don't need Windows to run Mafia (2002). hell, ALL of the Mafia games work on Linux using that Lutris/GloriousEggroll/Wine v7.x combo (and have basically the same as Windows level of performance or thereabouts as I can't notice any obvious differences either way). Mafia/Mafia II/Mafia III/Mafia Definitive Edition (remake of the original 2002 game). even Mafia II Definitive Edition works which is a slightly updated graphics version of the 2010 game, but has graphics glitches in the game itself, so if a person is only going to run one version of Mafia II, I suggest sticking with the 2010 version. but speaking of the 2010 version of Mafia II, I suggest either leaving PhysX off (come to think of it you MUST install PhysX for Mafia II to start up on Linux (from terminal do 'winetricks physx')) or if you enable it, you need to delete certain files from the games I think it was APEX folder (I don't remember the details off the top of my head but this is the basic idea) because leaving everything on kills performance like the NPC's waste a lot of frame rate for barely any improvement so I typically disable those but leave say Vito's coat with PhysX on as it flows more naturally vs when it's off, as when PhysX is off, Vito's coat is stiff when moving. but if that sounds complicated with the PhysX stuff, just disable PhysX outright within the game and your frame rates will be a lot better (but PhysX MUST be installed for the game to start up either way regardless if you enable it in the game or disable it!). but another thing come to think of it, I think on Mafia II (2010) I 'think' I had to disable 'esync' for performance to become a lot better, which you can do in the Lutris options, because I think when that was enabled the frame rate took a solid hit.
p.s. the nice thing about this Steam version is there is no copy protection on the game where as the original release I had to use a cracked exe file. so now that I got a hold of the Steam version I can just use that from now on but ill likely make a backup of the folder to say a 7z file after I applied the music fix and widescreen fixes for future use and long term storage.
EDIT: I noticed Mafia (2002) runs with a much improved frame rate with d3d8.dll file active (i.e.
https://github.com/crosire/d3d8to9/rele ... 1/d3d8.dll ) as you copy that to the root of the Mafia directory and it basically translates DirectX8 into DirectX9 as that gave me a solid frame rate boost as it was running a bit so-so, especially during certain areas in the first chase mission, and I knew something was not right, but once I applied that, the frame rate got much better. but you need to basically do what I did with the dinput8 dll file and add the entry for d3d8 on the 'Libraries' for the game to use the d3d8.dll in the root of the Mafia directory. so basically for the game to use the 'dinput8.dll' and 'd3d8.dll' files in the root of the Mafia directory you got to add in 'dinput8' and 'd3d8' on the Libraries section of the 'Configure Wine' under the specific game entry. so you would have to add 'Game.exe' (which is Mafia's main exe file) there and add the two entries specifically to that and then it will work as long as you got the actual two dll files in the root of the Mafia directory the game will use it.
even in regards to say a XBox360 controller, it basically works, but does require some manual configuration through the game itself like the basic acceleration/reverse I had to manually set to the LT/RT buttons. but once I did, they seem to respond well to the increase in button pressure with acceleration/braking etc.
EDIT: I am using the dinput8.dll file from
https://www.gamepressure.com/download.asp?ID=80410 and the general widescreen/controller dead zone/settings save fix (basically the 'scripts' folder) from
https://github.com/ThirteenAG/Widescree ... eenFix.zip paired with the d3d8.dll file from crosire listed above since his gives best performance. but if for whatever reason when using that 'scripts' folder from ThirteenAG acts up in regards to 'settings.bin' (text file) in your 'savegame' folder, with say the game running in a small window in center of the screen (I got a 1080p monitor) the likely fix, which worked for me, is to from terminal type 'wine regedit' which will bring up the registry editor and find "HKEY_LOCAL_MACHINE\Software\Wow6432Node\Illusion Softworks\Mafia" and on the main entry to the right (the 'LS3D_setup' entry) right click it and select modify (but don't actually modify anything here) which will bring up a window and you simply make sure the info listed there is the same in the 'settings.bin' text file (in 'savegame' folder) as mine was different in the 'settings.bin' text file and once I modified that settings.bin text file so it matched what was shown in the registry entry the game went back to full screen and all is good basically.