Starfield
0 of 0

File information

Last updated

Original upload

Created by

jedijosh920

Uploaded by

jedijosh920

Virus scan

Safe to use

Tags for this mod

About this mod

Starfield Script Hook allows you to install and use Script Mods with various hooks and functions. Simply, it lets you inject and uninject .DLL scripts to the game easily during runtime.

Requirements
Permissions and credits
Donations
ABOUT:
Starfield Script Hook allows you to install and use Script Mods with various hooks and functions. Simply, it lets you inject and uninject .DLL scripts to the game easily during runtime. 

Currently, it is only focused and made for my upcoming script mod releases which will be a requirement to have this installed. If you are a developer, I highly recommend using Starfield Script Extender instead. But if you want to use this to make your scripts, take a look at the exported functions as I continue to update.

COMPATIBILITY WITH SFSE:
Yes it works alongside SFSE. Enable SFSE_COMPATIBILITY in the StarfieldScriptHook.ini

COMPATIBILITY WITH GAME PASS:
Yes, it works with game pass, Steam, whatever Starfield executable :) AOBs ftw!
It also should "auto update" itself and work fine with future game updates.

REQUIREMENTS:
https://www.microsoft.com/en-us/download/details.aspx?id=6812
https://docs.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170
Install DirectX SDK and Visual Studio C++ Redistributable X64 (vc_redist.x64.exe)

DirectX SDK is only needed if mods require it (D3D12 Hook)

Disable USE_D3D12_IMGUI in the StarfieldScriptHook.ini if you are crashing or have some sort of DLSS/graphics mod that could be hooking D312 as well, but mods that require this (custom UI) will not work!

INSTALLATION:
Place all of the files inside the root of your game's directory. (Ex: C:\Program Files (x86)\Steam\steamapps\common\Starfield)
- StarfieldScriptHookLauncher.exe (Injects the ScriptHook, can be used to run the game or started when the game is already running)
- StarfieldScriptHook.dll (Actual script hook that gets loaded by the launcher, this lets you inject scripts, has the main functions, etc.)
- StarfieldScriptHook.ini (Script Hook settings)
- StarfieldScriptHook.log (Script Hook Log, which Script Mods can use)
Create a "scripts" folder as well, which is where you place the Script Mods that you have downloaded or made.
When you launch the game you should get an indicator in the console (press ~ tilde key) that it is loaded.

Make sure to run the game with StarfieldScriptHookLauncher.exe or run it while you are in game to lets the scripts be loaded.

CONTROLS:
INSERT KEY - This key is used to unload and load scripts, useful for developers to be able to edit scripts without restarting their game or if something seems to be broken.

UPDATES / CHANGELOG:
v1.0.0 (10/3/2023)
- Initial release
v1.0.1 (10/9/23)
- Check the hooked events to see if they actually exist in the injected script modules before calling
- Improved start up D3D12 hook enabled checks (disable USE_D3D12_IMGUI in the StarfieldScriptHook.ini if you are crashing or have some sort of DLSS/graphics mod that could be hooking D312 as well, but mods that require this (custom UI) will not work!)
- Add SFSE compatiblity setting (enable SFSE_COMPATIBILITY in the StarfieldScriptHook.ini if you want SFSE to load automatically before this), no more workarounds (.bat files, etc.) needed, just launch this script hook launcher
- Confirmed to work with latest patch released today (yay AOBs! :D)
v1.0.2 (10/12/23)
- Added more functions