Hi everyone I have recently started modding GTA IV, and needed dotnet48 to work for some mods.but as many of you may know current proton(4.11<) doesn’t allow dotnet48 download. I scoured the internet and have found a work around. Originally posted on reddit

But I’ve condensed it to be easier to follow and decided to post here because I’m sure there are many reasons to need it for proton

Make a copy of the original …/gameid as a backup

use command: cp -RLv steam-path/gameid/pfx/drive_c/windows steam-path/gameid/pfx/drive_c/windows.dereferenced

remove steam-path/gameid/pfx/drive_c/windows

use command: mv steam-path/gameid/pfx/drive_c/windows.dereferenced steam-path/gameid/pfx/drive_c/windows

use command: protontricks appid -q -f dotnet48

use command: protontricks --gui

winecfg - change W7 to W10

Edit: the only thing that would be annoying about this I found so far is the pfx folder size goes from like 300mb to 1.6gb

  • mariah
    link
    fedilink
    arrow-up
    2
    ·
    8 months ago

    I thought .net doesnt work in wine? As i couldnt get gta v mods working

    • astrsk@piefed.social
      link
      fedilink
      arrow-up
      4
      ·
      8 months ago

      It’s hit or miss. Really depends on the software requirements, versions of wine, your system in general, etc.

      For example; I used the streamer.bot Linux install script to successfully install a new wine prefix that runs the app great. This requires dotnet48 and other dotnet dependencies. But it only worked after several failed attempts because I had to downgrade wine to 9.0 from 9.1 on Debian 12. I’ve since moved to arch and no matter what version of wine I’m running, the program will not work anymore even as fresh install. I’ve yet to fully diagnose what’s wrong.

      • K0W4L5K1@lemmy.dbzer0.comOP
        link
        fedilink
        arrow-up
        4
        ·
        8 months ago

        I am on arch and yeah couldn’t get it to install in any proton version except 4.11 but when I would switch back to whatever version I was using for the game it wouldnt work. This way it has been working flawlessly for a few days now

    • K0W4L5K1@lemmy.dbzer0.comOP
      link
      fedilink
      arrow-up
      2
      ·
      8 months ago

      It doesn’t normally no that’s why it’s called a work around I have GTA V I will download it and try it out. Althought theoretically it should work if you do the steps mentioned above. This work around was originally done to get wemod to work on Linux and wine which requires dotnet48

    • K0W4L5K1@lemmy.dbzer0.comOP
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      8 months ago

      hey so got GTA V downloaded and was able to get dotnet48 installed and scripthookVdotnet does run but i got errors trying the mods stance and disarm. I’m fairly new to this stuff so i don’t know what it means but will play around more here is the log to scripthookvdotnet maybe you’ll understand more LOG

      • mariah
        link
        fedilink
        arrow-up
        2
        ·
        8 months ago

        Idk. I usually just run gta v in a windows vm. Can u get openiv working

        • K0W4L5K1@lemmy.dbzer0.comOP
          link
          fedilink
          arrow-up
          1
          ·
          8 months ago

          Yeah I run openIV installer with just wine works and then I use this program to create a launch option for openIV in GTA Steam meta data editor I’ve combined and created multiple img mods openIV has crashed a couple times still works lol I don’t start the game from openIV either and haven’t had any issues in GTA IV and will be Testing img mods in GTA V tonight

    • K0W4L5K1@lemmy.dbzer0.comOP
      link
      fedilink
      arrow-up
      1
      ·
      8 months ago

      so was messing around and i see that OpenIV doesnt let you install OIVs. Although they are just a zip archive so you can open the archive and place the mods in the rpfs in your mods folder that way. just create a new rpf in your mods folder that follows the folder structure of the oiv installer you can also use codebreaker i find the rpf viewer easier to work in ignore any errors. but still cant get scriptdotnethook scripts to work. the game loads so the scripthook works just wont read the mod assembly. so only scripthookV mods and rpf replacement mods

      • mariah
        link
        fedilink
        arrow-up
        2
        ·
        8 months ago

        When i open openiv the ui is broken. Ill just use a windows vm to play. Hows gta iv

      • mariah
        link
        fedilink
        arrow-up
        1
        ·
        7 months ago

        Hey, simpletrainer isnt working. I added dinput8 to dll overrides