Creation Kit and Enderal

Moderator: Moderatoren

5 Beiträge Seite 1 von 1
Davipb
Moderator
Moderator
Bettler
Bettler
Beiträge: 6
Registriert: 24.03.2017 13:47
Hat sich bedankt: 5 Mal
Danksagung erhalten: 13 Mal


The Creation Kit doesn't work by default with Enderal.
This post will teach you why and how to fix it.

Quick-Fix
"Just get it working"
  1. Uninstall the Creation Kit if you already have it installed
  2. Download and unzip the QuickFix.zip attachment
  3. Run Link.bat as an admin
  4. Install the Creation Kit via Steam
  5. Replace SkyrimEditor.ini on your Enderal folder with the one from the zip
  6. Optionally, extract the "E - Scripts.bsa" archive to your Data folder to make scripts editable
The Issue
The Creation Kit can only be executed from the steamapps\common\Steam folder. Additionally, it is hardcoded to look for Documents\My Games\Skyrim.ini and Documents\My Games\SkyrimPrefs.ini, which Enderal doesn't use.
The SKSE version that comes with Enderal doesn't support the current version of the Creation Kit, so you cannot run the CK through SKSE to use the SkyrimRedirector plugin to redirect those files.

Symbolic Links
We're going to use Symbolic Links. These are like shortcuts, but they're followed automatically by any program without any extra logic. If you make a symbolic link at My Games\Skyrim that has My Games\Enderal as a target, every file that is read or written to My Games\Skyrim will end up at My Games\Enderal instead.
Unfortunately, you can only create Symbolic Links as an admin in Windows. So, in order to run any scripts or commands that follow, make sure you're running as an Administrator.

To make a symbolic link named LinkName targeting the directory TargetDir in cmd, you can use:
Code: Alles auswählen
mklink /D "LinkName" "TargetDir"
If you're making a symbolic link named LinkName targeting the file TargetFile in cmd, you can use:
Code: Alles auswählen
mklink "LinkName" "TargetFile"
To make a symbolic link named LinkName targeting the file or directory TargetItem in PowerShell, you can use:
Code: Alles auswählen
New-Item -Type SymbolicLink -Path "LinkName" -Target "TargetItem"
The Solution
If you want to keep the Creation Kit at steamapps\common\Skyrim, you can just make a symbolic link at Skyrim\Data targeting the directory Enderal\Data. This works, but doesn't help with organization if you want to keep both Skyrim and Enderal installed at the same time.

So it might be better to rename your Skyrim folder, make a symbolic link at steamapps\common\Skyrim targeting the directory steamapps\common\Enderal, then copy the CK files to the Enderal folder or re-download it on Steam so that the files are copied there automatically.
This way, you can change which installation the CK will run on just by changing the "Skyrim" link to point to "Enderal" or to your actual Skyrim folder, and all files are kept in a single folder if you have just Enderal installed. This is the method used by the Quick-Fix.

Additionally, you'll have to edit your SkyrimEditor.ini to point to the right .bsa files. You can use the SkyrimEditor.ini included in the QuickFix.zip, or find the [Archive] section and add or replace the following entries:
Code: Alles auswählen
SResourceArchiveList=Skyrim - Animations.bsa, Skyrim - Interface.bsa, Skyrim - Meshes.bsa, Skyrim - Misc.bsa, Skyrim - Shaders.bsa, Skyrim - Sounds.bsa, Skyrim - Textures.bsa, Skyrim - Voices.bsa, Update.bsa
SResourceArchiveList2=E - Meshes.bsa, E - Music.bsa, E - Scripts.bsa, E - Sounds.bsa, E - Textures1.bsa, E - Textures2.bsa, E - Textures3.bsa, L - Textures.bsa, L - Voices.bsa
While those are the bare minimum required to run the CK, Skyrim.ini and SkyrimPrefs.ini are also read by the program to apply extra options such as the 3D rendering quality. You'll have to make three links in your documents folder to redirect those: One link named My Games\Skyrim targeting the directory My Games\Enderal, one link named My Games\Skyrim\Skyrim.ini targeting the file My Games\Enderal\Enderal.ini, and one link named My Games\Skyrim\SkyrimPrefs.ini targeting My Games\Enderal\EnderalPrefs.ini.
The directory link alone is not sufficient like the other links because the names of the files are different in this case.

Scripts Sources
If you open the CK now, you'll notice that it works, but you're unable to see any script sources. That's because the script source files in Enderal come packed in a .bsa, but the Creation Kit can only read loose files.

You'll need to use a program that can read .BSAs, such as Bethesda Archive Extractor, to open the "Data\E - Scripts.bsa" archive and extract the "scripts\source" folder from inside the .BSA to your Data folder.

When you're done, your should have a bunch of .psc files inside of the Enderal\Data\Scripts\Source directory, and the CK should show you the source code of scripts and let you edit them now.

Tutorial Changelog
24 February 2019: The script no longer relies on "_ReadPaths.bat", so this should fix issues with Right Click -> Run as Admin changing the current path to System32. Thanks OverDev for pointing this out.
Dateianhänge
QuickFix.zip
(7.21 KiB) 529-mal heruntergeladen
Aisis
SureShortcut
SureShortcut
Sterndeuter
Sterndeuter
Beiträge: 159
Registriert: 06.05.2009 21:31
Danksagung erhalten: 3 Mal


Thanks! :thumbsup:

I have followed your Quick-Fix and got the CK running. I just have one noob question: how do I get the CK back to where it was once I'm done modding Enderal and would like to return Skyrim?
Davipb
Moderator
Moderator
Bettler
Bettler
Beiträge: 6
Registriert: 24.03.2017 13:47
Hat sich bedankt: 5 Mal
Danksagung erhalten: 13 Mal


27.02.2019 22:10Aisis hat geschrieben:
Thanks! :thumbsup:

I have followed your Quick-Fix and got the CK running. I just have one noob question: how do I get the CK back to where it was once I'm done modding Enderal and would like to return Skyrim?
You can use the Unlink.bat file that comes in the QuickFix.zip
It will automatically delete the symbolic links and restore the Skyrim folder backups that Link.bat made

You may need to re-download the Creation Kit after that (if it isn't in the steamapps/Skyrim folder after unlinking)
Aisis
SureShortcut
SureShortcut
Sterndeuter
Sterndeuter
Beiträge: 159
Registriert: 06.05.2009 21:31
Danksagung erhalten: 3 Mal


Uh-oh. :shock: I've done the uninstall and now all of my stuff from Skyrim is gone. :dead: I'm pretty sure I've done all as it should be, but it is simply an empty folder. Is there any chance go get it back or is it all gone forever?
Davipb
Moderator
Moderator
Bettler
Bettler
Beiträge: 6
Registriert: 24.03.2017 13:47
Hat sich bedankt: 5 Mal
Danksagung erhalten: 13 Mal


17.03.2019 13:03Aisis hat geschrieben:
Uh-oh. :shock: I've done the uninstall and now all of my stuff from Skyrim is gone. :dead: I'm pretty sure I've done all as it should be, but it is simply an empty folder. Is there any chance go get it back or is it all gone forever?
Did you accidentally run Unlink.bat twice, or maybe the unlinking failed?

Link.bat backups your folders with .SkyrimBackup, so My Games\Skyrim becomes My Games\Skyrim.SkyrimBackup and steamapps\common\Skyrim becomes steamapps\common\Skyrim.SkyrimBackup.
Unlink.bat then deletes My Games\Skyrim and steamapps\common\Skyrim and renames the .SkyrimBackup folders, removing the .SkyrimBackup suffix.

If the unlinking just failed, you should still have the .SkyrimBackup folders with your data.
If you ran Unlink.bat twice, it deleted your actual Skyrim folders thinking they were Enderal links made with Link.bat, so it's truly gone :(
5 Beiträge Seite 1 von 1

Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 1 Gast