Proton icon indicating copy to clipboard operation
Proton copied to clipboard

Skyrim Script Extender (365720)

Open valeth opened this issue 8 years ago • 108 comments

When trying to launch SKSE Steam just terminates the application immediately.

I'm unsure if this is because it created its own Wine prefix, and it cannot find the Skyrim executable, or something else.

Skyrim (regular 2011 edition without any DLC) is running fine by itself.

valeth avatar Aug 22 '18 21:08 valeth

This Patch can be used to fix SKSE and F4SE

9ParsonsB avatar Aug 22 '18 23:08 9ParsonsB

How do we use that patch, @9ParsonsB? If you'll excuse my ignorance...

linkjay avatar Aug 23 '18 07:08 linkjay

If this is about SKSE for original Skyrim and not SKSE64 for SkyrimSE, my patches shouldn't be necessary. To my knowledge SKSE works fine under normal wine.

hdmap avatar Aug 23 '18 14:08 hdmap

Yes. SKSE runs perfectly fine when you Wine Steam and such. However, if you try the installer, archive, or the Steam mod, under the native linux steam with proton, it simply will not start. You open up the SKSE loader and it immediately crashes.

linkjay avatar Aug 23 '18 14:08 linkjay

@hdmap this is indeed about original Skyrim with SKSE. Like @linkjay said SKSE is running just fine with regular Wine.

valeth avatar Aug 23 '18 16:08 valeth

Hello, I have a work around which partially works...

  1. I manually installed SKSE
  2. I renamed SkyrimLauncher.exe to SkyrimLauncher.exe.backup
  3. I renamed skse_loader.exe to SkyrimLauncher.exe And it works, but mods which save data will have issue (I think the same issue with the workshops ... can't write to the directory).

malahx avatar Aug 24 '18 22:08 malahx

@malahx I've not had a chance to play around much with this yet, but based on my research there should be an executable called proton_run created in /tmp that could potentially be used to run skse without needing to rename files. Here's the info (found through Shenmue): https://www.shenmuedojo.com/forum/index.php?threads/request-shenmue-1-ii-for-linux-steam-install-guide-request-even-if-you-dont-use-linux-so-that-linux-users-can-play-the-game-as-well.399/

specifically the steps:

  1. Run the game it will probably fail but will create an important file named proton_run
  2. Open File explorer then Press CTRL + L write /temp
  3. Go to /tmp
  4. Locate file called proton_run inside tmp
  5. Copy the file proton_run, paste it in another location, I put mine inside a folder named proton in my desktop.

Looking forward to trying it out when I get a chance myself, just too much going on for me right now to start playing skyrim again.

defron avatar Aug 29 '18 18:08 defron

Skyrim (72850) Script Extender (SKSE) (365720) fail to load

Issue transferred from https://github.com/ValveSoftware/Proton/issues/1654. @powerman posted on 2018-09-30T20:12:48:

Compatibility Report

  • Name of the game with compatibility issues: Skyrim with Skyrim Script Extender
  • Steam AppID of the game: 72850 + 365720

System Information

  • GPU: GTX 560 Ti
  • Driver/LLVM version: mesa-18.1.9, nvidia-drivers-390.87
  • Kernel version: 4.9.74-unofficial+grsec
  • Link to full system information report as Gist: https://gist.github.com/powerman/b5175e19343dc63389ba1bad8c5e5173
  • Proton version: 3.7-6, 3.7-7 Beta

I confirm:

  • [ ] that I haven't found an existing compatibility report for this game.
  • [X] that I have checked whether there are updates for my system available.

There are compatibility reports for both apps, but no one mention this specific issue.

steam-72850.log

Symptoms

At a glance symptoms looks very similar to https://bugs.winehq.org/show_bug.cgi?id=43844 - any chance this year-old change wasn't merged to Proton yet?

Reproduction

Install (using Steam) Skyrim, Skyrim Script Extender. Then manually install SkyUI mod from https://www.nexusmods.com/skyrim/mods/3863 by copying SkyUI.bsa and SkyUI.esp files into steamapps/common/Skyrim/Data/. Now start Skyrim, start new game, and you'll see error from SkyUI about absent Skyrim Script Externder (SKSE).

kisak-valve avatar Sep 30 '18 21:09 kisak-valve

I've fixed issue with SKSE by changing kernel from 4.9.74 with GrSecurity/PaX to 4.14.65 without GrSecurity/PaX (more details at https://github.com/ValveSoftware/Proton/issues/460#issuecomment-430826514).

powerman avatar Oct 17 '18 23:10 powerman

$ ./winedbg_run

WineDbg starting on pid 0028
0x000000007b462bab start_process+0xeb in kernel32: movl	0xffffff24(%ebp),%esi
Wine-dbg>        
Wine-dbg>next
Invalid address (0x000000007b462bc6 start_process+0x106) for breakpoint 0, disabling it
Process of pid=0028 has terminated

FreeLikeGNU avatar Dec 08 '18 17:12 FreeLikeGNU

Using these patches I was able to get SKSE working with Proton 3.16-5: https://github.com/hdmap/wine-hackery/tree/master/f4se. I built wine with the patches and then copied ntdll.dll.so into the existing proton directory. Now it works.

I don't know if this needs to be submitted as a request for the wine team or the proton team, but somehow these patches need to become more readily available to the end user.

Lyle-Tafoya avatar Dec 21 '18 09:12 Lyle-Tafoya

@Lyle-Tafoya what version of wine did you use?

ThePreviousOne avatar Dec 21 '18 17:12 ThePreviousOne

I did a git clone of proton and used whichever version of wine it uses. I ran the git submodule update --init and then I applied the patches to the wine directory before building. However, I found a post on reddit indicating that it is possible to perform a binary patch against ntdll.dll.so instead of having to build it from source. I have not tried that method, but it's probably faster and easier. You can read more about that here: https://www.reddit.com/r/wine_gaming/comments/9uk36c/fallout_4_how_to_get_fallout_4_script_extender/

I am able to run getskseversion from the console in skyrim and get a version string (which I was unable to do before) and the skse log seems to indicate normal behavior, although I'll admit I haven't yet found a mod which works correctly with skse under proton.

Lyle-Tafoya avatar Dec 22 '18 01:12 Lyle-Tafoya

I just realized that the above comments already discussed this. I didn't realize this was an issue specific to special edition. It looks like this doesn't apply here. My apologies.

Lyle-Tafoya avatar Dec 22 '18 01:12 Lyle-Tafoya

Feature Request + Modding Report: The Elder Scrolls V: Skyrim Special Edition (489830)

Issue transferred from https://github.com/ValveSoftware/Proton/issues/2216. @8BitCerberus posted on 2019-01-14T09:10:13:

Feature Request

Integrate patch found here: https://github.com/hdmap/wine-hackery/tree/master/f4se They were originally done for Fallout 4/F4SE but also works for SKSE64.

I confirm:

  • [X] that I haven't found another request for this feature.
  • [X] that I have checked whether there are updates for my system available that contain this feature already.

Description

Non-SKSE64 mods are working. You can either manually drop them in the Data folder and edit your loadorder.txt and plugins.txt files, or you can install a mod manager (I'm using Nexus' Vortex currently) via Wine or Proton. I have played a few hours now with several mods, both plugins and loose files/texture and audio replacers.

SKSE64 however does not work. It silently fails and just goes on to load Skyrim without hooking in. I've been doing some digging and it's a difference in how it loads into memory compared to SKSE for Skyrim Legendary Edition (72850). There are patches for Wine that address the same issue with F4SE for Fallout 4, and because SKSE64 works in the same way this fixes the problem.

Justification [optional]

This would open up Skyrim SE and Fallout 4 modding without needing to jump through hoops or compile their own versions of Proton and/or Wine. They still would need to get a mod manager working on their own if they want to use one, but having SKSE64 or F4SE working without hassle would eliminate a major roadblock.

Combined with the FAudio patches which seem to be already being worked on, this could help make both Skyrim Special Edition and Fallout 4 candidates for whitelisting.

Risks [optional]

None known.

References [optional]

https://github.com/ValveSoftware/Proton/issues/308

kisak-valve avatar Jan 14 '19 14:01 kisak-valve

At times it happens that Skyrim doesn’t launch. It gets caught in a small loading screen or nothing occurs when you try to open the executable. This problem has been there since the nemesis of the game and irritates users often. We will let you know that how can you fix it without wasting your time.

1- Refreshing Steam Entirely: Let it confirm that you backup your data and have the credentials. You have to change the essential Steam installation files and try not to get your downloaded game data removed. You are supposed to fix the Steam library files and if that doesn’t work then refresh the app on your own.

2- Checking Installed Mods: In case you are utilizing numerous mods to alter the game play or add some features, then you should disable these mods and start the game. Mods alter the main files of the game and twist the behavior. In case there is some mod which is conflicting with the settings, it is better to delete that mod and try to start the game. For more methods open https://appuals.com/fix-skyrim-not-launching/

3- Checking SKSE: Skyrim Script Extender is utilized for broad mod programs and for handling them. It has been observed that although SKSE has a huge follower base, it is still under development and encounter periodic updates. This mod manager deal all the mods that are working at the moment on your system, there are higher possibilities that it might cause issue to the game.

zaidalikhan9 avatar Mar 24 '19 11:03 zaidalikhan9

Just tried it with Proton 4.2-2 & no response from SKSE, shame as a lot of mods need it to work.

lucifertdark avatar Apr 03 '19 15:04 lucifertdark

SKSE SKSE64 F4SE FO76SE

These are all separate injectors, atm only SKSE (oldrim) works. There is a fix for 64bit versions of SKSE but nobody has merged the work around for it because 'reasons'.

It would be nice if somebody merged the 64bit fix sometime! until then its a matter of manually compiling wine and copying its files into proton, quite a bother for 99% of people out there!

jarrard avatar May 21 '19 07:05 jarrard

Is anyone more knowledgable could clarify situation?

  1. SKS64 is only version that works for Special Edition, right?
  2. What is current best approach for launching SKSE64? Select Proton 3.7 in Skyrim properies and apply binary path from reddit? Or it could work for 3.16 too? If not, should I install xact via protontricks since there is no faudio in Proton 3.7?
  3. Is it possible to launch SKSE64 in the same way as it was described for SKSE in ProtonDB? ("Rename skse_loader.exe to SkyrimLauncher.exe")

RussianNeuroMancer avatar Jun 15 '19 15:06 RussianNeuroMancer

  1. Yes

  2. I have renamed the skyrim launcher exe with a copy of the skse64.exe and so whenever I launch skyrim se it just loads the script extender, seems to work well. (after you mount the files correctly)

  3. As above. But keep in mind that proton has not got the skse64 patch (single line code fix) last time I checked. I might have been pushed to latest version of wine staging however, can't be sure.

The best solution is to create your own proton prefix which you can update and use from within steam yourself (there is a proton guide on howto add your own proton versions to steam in the drop down list).

Is proton 3.7 the latest?

jarrard avatar Jun 15 '19 16:06 jarrard