Starfield
0 of 0

File information

Last updated

Original upload

Created by

Bobbyclue and Meridiano

Uploaded by

MeridianoRus

Virus scan

Safe to use

Tags for this mod

About this mod

An SFSE plugin that automatically runs user defined console commands on some events.

Requirements
Permissions and credits
Changelogs
Console Command Runner (Updated) is an SFSE plugin that automatically runs a list of console commands from user defined .toml files.
Contact me if you are reading this and you are Bobbyclue! Well, 50% of this mod DPs are already yours.

How to install

Install the Data folder.

You can do this manually.

You can use a mod-manager.
  • If you use Mod Organizer 2 then let the mod-manager handle this mod's archive.
  • If you use Vortex then let the mod-manager handle this mod's archive.

I can't help you with your installation issues.
If you don't get any "ConsoleCommandRunner.log" in your "Documents\My Games\Starfield\SFSE\Logs" - this is your installation issue.

How to use
- Create an uniquely named .toml file in your "Data\SFSE\Plugins\ConsoleCommandRunner" directory. Any number of .toml files can be read, you are not limited to a single file. This ensures compatibility with other mods.
- In this new .toml file you'll want to create a layout that looks like this:

[[Event]]
EventType = "DataLoaded"
Commands = ['SetGS fZKeyMaxForce 90000', 'bat MyFile', 'bat "My File With Spaces"']

[[Event]]
EventType = "OnMenuOpenCloseEvent"
asMenuName = "BSMissionMenu"
abOpening = true
Commands = ['Player.RestoreAV StarPower 1000;CGF "Debug.Notification" "Player was powered"']

[[Event]]
EventType = "GameLoaded"
    aiLoadType = 2
Commands = ['005788.MoveTo Player']


Each individual event is prefaced with the "[[Event]]" tag. Within the event the event type needs to be defined. If an event has any parameters those are listed. Then the actual commands to fire are listed. Any valid console command should work here. Commands should be encased in apostrophes (so quotes will also work for any command that takes a string parameter) and separated by commas.
And that's it!

Valid event types

  • DataLoaded
  • This event will run registered console commands when the game data is fully loaded (this happens in the main menu before you load your gameplay process). This happens only once so if you exit to the main menu the event will not fire again.
  • You can use this event to change things that persist across the whole game session with no changes including saves and characters switch. This means using "SetGS fZKeyMaxForce 90000" is nice but "005788.AddKeyword 1453AA" is useless (your changes will be ignored in your save load).

  • OnMenuOpenCloseEvent
  • This event will run registered console commands when you open or close different menus. It has 2 options - menu name and open/close condition. For example asMenuName="BSMissionMenu" with abOpening=true will fire when you open your missions menu where you track your tasks. All valid menus names are listed here or here (63 of them).
  • You can use this event to process some things when your player character is already in the game world and you can control them. Here you have access to persistent object references and CGF (CallGlobalFunction) console command.

  • GameLoaded
  • This event will run registered console commands when you start a new game (including NG+) or when your save is loaded and you are in the game world. It's similar to OnMenuOpenCloseEvent but has one integer option - aiLoadType. 0 = assigned commands will be executed on both new game and save loaded, 1 =  only on new game, 2 = only on save loaded.
  • You can use all the same commands as for OnMenuOpenCloseEvent because it fires during the game process but once, in the very beginning.