Jump to content

Trying to get "sStartingConsoleCommand" to work


xavius05

Recommended Posts

So I've been trying to get the above command to work from my ini files. I first learned of this command via the godrays mod here:

https://www.nexusmods.com/fallout4/mods/15211

And for the longest time, it worked. I can clearly see the changes automatically typed in when I open the console upon loading the game. Now that I've come back to the game, I have a different setup of mods. This ini edit included, but now also I'd like to use "SetGameSetting fCombatMusicPlayerTargetedThreatRatio 1000" as well, only because I'm using the Game Config Menu mod which overwrites any mods that do it, and only has a max of 30 in it's menu. (Despite not touching the "Sound" section which can edit that and forcing the mod to read the "hardcoded" setting as it calls it and has described how to do so via resetting it, it still doesn't work.) And no, actual mods that force the combat music and more or less do the same thing as the above command don't work either.

So I changed the .txt file I made from the godrays ini and included the last extra line, it now shows:

gr grid 12
gr scale .8
gr maxcascade 1
SetGameSetting fCombatMusicPlayerTargetedThreatRatio 1000

 

But despite having "sStartingConsoleCommand=bat startup" in my Fallout 4.ini, (I put it in prefs and custom as well, and I am using Mod Organizer 2 to run FO4 so yes I put it in the ini's MO2 reads from my profile) it doesn't seem to be working. If I type "bat startup" in the console once in-game, it does indeed work, (combat music starts immediately once I type it in after encountering an enemy that doesn't start the music) but it defeats the purpose of the edit having it start automatically.

The thing is, something else is starting automatically, and I feel that's what's preventing it from being read as it might be doing the same thing. But I can't find another instance of "sStartingConsoleCommand" anywhere in any ini, so I don't know what I have that's causing it. When I do load the game, this appears in the console automatically:

cl rim 0.0025; gr grid 12;gr scale 0.8

Command: cl rim 0.0025;gr grid 12;gr scale 0.8

Changed character light RIM strength from 0.020000 to 0.002500

 

I have read that semi-colons are used to execute multiple commands when using "sStartingConsoleCommand" but if you just use "bat" like I did above, it just runs the text of the file name you give as a batch file. So whatever this is, I think it's overwriting it. Does this look familiar to anyone?

This is my load order pasted from LOOT:

 

0 0 Fallout4.esm
1 1 DLCRobot.esm
2 2 DLCworkshop01.esm
3 3 DLCCoast.esm
4 4 DLCworkshop02.esm
5 5 DLCworkshop03.esm
6 6 DLCNukaWorld.esm
DLCUltraHighResolution.esm
7 7 Unofficial Fallout 4 Patch.esp
8 8 ArmorKeywords.esm
254 FE 0 GCM_DLC_Automatron.esl
9 9 Homemaker.esm
10 a HUDFramework.esm
254 FE 1 Loot Detector.esl
11 b NAC.esm
12 c SettlementKeywords.esm
254 FE 2 GKX Worthwhile Caps Stashes.esl
13 d JonsMod.esm
14 e Loads.esm
15 f NewCalibers.esp
16 10 SimSettlements.esm
17 11 PlayerComments.esp
18 12 ValdacilsItemSorting-00-ValsPicks-DLCVersion-VanillaWeight.esp
19 13 Weaponsmith Extended 2.esp
20 14 3dscopes.esp
21 15 3dscopes-AddToSpawnList.esp
22 16 3dscopes-framework.esp
23 17 AlternateSettlements.esp
24 18 Armorsmith Extended.esp
25 19 AzarPonytailHairstyles.esp
26 1a Reverb and Ambiance Overhaul.esp
27 1b KSHairdos.esp
28 1c MiscHairstyle.esp
29 1d The Eyes Of Beauty.esp
30 1e Better Vendor Stalls.esp
31 1f dD-Action Ragdoll Force.esp
32 20 DD_bleu_Ump_Extreme_Lore_friendly_edition.esp
33 21 FunctionalDisplays.esp
34 22 FunctionalDisplays-Collectibles.esp
35 23 FunctionalDisplays-Patch-DLC-ALL-VIS.esp
36 24 GCM.esp
37 25 HoloTime.esp
38 26 Homemaker - Streetlights Use Passive Power.esp
39 27 Homemaker - Unlocked Institute Objects.esp
40 28 Immersive HUD.esp
41 29 IncreasedSettlerPopulation50.esp
42 2a InvisibleArmorAA.esp
43 2b K9TacticalHarness.esp
44 2c Loads of Ammo - Leveled Lists.esp
45 2d LongerPowerLines3x.esp
46 2e LooksMenu.esp
47 2f Lots More Facial Hair.esp
48 30 Lots More Female Hairstyles.esp
49 31 Lots More Male Hairstyles.esp
50 32 mjp_PTRS41ATR.esp
51 33 More Where That Came From Diamond City.esp
52 34 OLYMPUS-SM.esp
53 35 NAC-FarHarbor.esp
54 36 NAC-NukaWorld.esp
55 37 OCDecorator.esp
56 38 OCDecoratorDLC.esp
57 39 OCDispenser.esp
58 3a OWR2_CraftableDecor.esp
59 3b OWR2_CraftableDecor_CW.esp
60 3c OWR2_CraftableDecor_CW_SKPatch.esp
61 3d OWR2_CraftableDecor_SKPatch.esp
62 3e OWR_CraftableDecor.esp
63 3f OWR_CraftableDecor_CW.esp
64 40 OWR_CraftableDecor_SKPatch.esp
65 41 Pip-Boy Flashlight.esp
66 42 Quieter Settlements - Contraptions.esp
67 43 Quieter Settlements - Vanilla.esp
68 44 Quieter Settlements - Wasteland Workshop.esp
69 45 RAW INPUT.esp
70 46 SimSettlements_XPAC_IndustrialRevolution.esp
71 47 StandaloneHiddenHelmets.esp
72 48 Synth Overhaul.esp
73 49 ZellaHairDye.esp
74 4a THBrows.esp
75 4b TheEyesOfBeauty.esp
76 4c M14.esp
77 4d M2216.esp
78 4e This is MY Bed (Extended).esp
79 4f EFF.esp
80 50 VendorCaps.esp
81 51 AWPWandererCoat.esp
82 52 Weapon Brackets.esp
83 53 WestTekTacticalOptics.esp
84 54 CREAtiveClutter.esp
85 55 Faded Glory - Soundtrack Expansion.esp
86 56 BostonFPSFixAIO.esp
87 57 WelcometoGoodneighbor.esp
88 58 BTInteriors_Project.esp
89 59 3DNPC_FO4.esp
90 5a Eli_Faction Housing Overhaul - AiO.esp
91 5b subwayrunnnerdynamiclighting.esp
92 5c OutcastsAndRemnants.esp
93 5d ProjectValkyrie.esp
ConcordEXPANDED.esp
BeantownConcordExpandedPatch.esp
94 5e Stm_DiamondCityExpansion.esp
95 5f AlootHomePlate.esp
96 60 Eli_Armour_Compendium.esp
97 61 BostonCommonPlayerHome.esp
98 62 AA FusionCityRising.esp
99 63 NAC-AE Patch.esp
100 64 wastelandwoundcare.esp
101 65 10mmRevolver.esp
102 66 Crimsomrider's 1950s Feminine Outfits.esp
103 67 el_AgentOutfit.esp
104 68 Ambient Wasteland.esp
105 69 CHEF.esp
106 6a WZWildWasteland.esp
107 6b Ketaros_TradingCards.esp
108 6c Backpacks of the Commonwealth.esp
109 6d QuazHighTechLoftOLD.esp
110 6e RealComics.esp
111 6f CAPP.esp
112 70 Immortal Cats 2.esp
113 71 BetterSettlers.esp
114 72 BetterSettlersCleanFacePack.esp
115 73 Mercenary.esp
116 74 MAGS.esp
117 75 MoreBobbleheads.esp
118 76 MsRae_Shops.esp
119 77 stumbleuponinteriors.esp
120 78 ScavengedMercGear.esp
121 79 Eli_Accessories.esp
122 7a ASVektor.esp
123 7b BattleRifle.esp
124 7c BasementLiving.esp
125 7d Be Exceptional.esp
126 7e BetterCompanions.esp
127 7f Move (Get Out the Way).esp
128 80 BetterSettlersNoLollygagging.esp
129 81 BetterSettlersCCAPack2.0.esp
130 82 BountifulBoards.esp
131 83 SlowTime.esp
132 84 Business Settlements.esp
133 85 Campsite.esp
134 86 Collectable_Trucks.esp
135 87 CompanionStatus.esp
136 88 Yona_Weapon_DefenseGun.esp
137 89 Dogmeat's Backpack.esp
138 8a dD-Enhanced Blood.esp
139 8b AtomicAnnieLagrieGun.esp
140 8c OWR.esp
141 8d OWR2.esp
142 8e OWR2_SKEPatch.esp
143 8f Scavenged NCR Armor.esp
144 90 SKKQuantumStorage.esp
145 91 Blues Radio DBR.esp
146 92 Conelrad 640-1240.esp
147 93 FO4Hotkeys.esp
148 94 AES_Renovated Furniture.esp
149 95 SSC.esp
150 96 FO4Hotkeys_SSC_patch.esp
151 97 Crafting Workbench.esp
152 98 Crafting Workbenches - Ammo.esp
153 99 Crafting Workbenches - Ammo Special.esp
154 9a Crafting Workbenches - Automatron DLC.esp
155 9b Crafting Workbenches - Junk Items.esp
156 9c Crafting Workbenches - Power Armor.esp
157 9d Crafting Workbenches - Pre War and Manufactured.esp
158 9e AkaSinger.esp
159 9f AkaSingersWardrobe.esp
160 a0 SKKDynamicTimescale.esp
161 a1 SKKCombatStalkers.esp
162 a2 SKKKillXP.esp
163 a3 PD_LowerWeapon.esp
164 a4 def_inv_scrap_en.esp
165 a5 FunctionalDisplays-MISC-VIS.esp
166 a6 Workshop Shipments Rebalanced - discount.esp
167 a7 F04Merged.esp
168 a8 FunctionalDisplays-AID-VIS.esp
169 a9 Wasteland Heroines Replacer All in One_1.0.0.esp
170 aa Dogmeat A True Companion.esp
171 ab EnhancedGrass_Low.esp
172 ac CBBE.esp
173 ad ProjectValkyrie - NC-Loads-AE-VIS Patch.esp
174 ae Rusty Face Fix.esp
175 af DNHeavy.esp
176 b0 ValiusHDTextures2K.esp
177 b1 Existence 2.0.esp
178 b2 AnotherLife.esp
179 b3 Bashed Patch, 0.esp

Thanks for any help.

Link to comment
Share on other sites

going to quote my other post:

 

"download this: https://www.nexusmod...llout4/mods/102

place it in your fallout 4 root folder, open fallout4ConfigTool - Click on the Tweaks Tab - Click on AutoExec - Click on Add - and add all of them commands into the AutoExec.txt Document that Pops up, save the document, then back on the tool, click on Save.

you should be good to go

i have tried it myself with many commands and it worked flawlessly

the game has to check all 3 fallout 4 ini files on load, which is likely why it is flopping after the first command, where as using the method above, it will check the commands at the right time, meaning it will have a much higher success rate.

because it is an AutoExec document (Auto Execute, has the highest priority), as the game will read it as soon as the game launches, quite possibly before everything else."

Edited by Guest
Link to comment
Share on other sites

in the AutoExec.txt it needs to be added exactly as below:

 

sStartingConsoleCommand=cl rim 0.0025; gr grid 12; gr scale 0.8

 

going to assume, because you did not get messages from the console, that would imply you might of not added the sStartingConsoleCommand at the start of these commands ?

 

or try:

 

sStartingConsoleCommand=cl rim 0.0025;gr grid 12;gr scale 0.8 (basically without the spaces)

 

it has been a long time since i done the above so cannot remember exactly how i entered the commands

 

alternatively, just add the sStartingConsoleCommand=bat Test

 

then create a text document called Test, and paste each command into it,as you put in your first quote:

 

"gr grid 12
gr scale .8
gr maxcascade 1
SetGameSetting fCombatMusicPlayerTargetedThreatRatio 1000"
without the quotation marks
so the autoexec, launches the bat file, meaning the bat file loads immediately on game load, eliminating delay, meaning a higher success rate.
Edited by Guest
Link to comment
Share on other sites

Well, not getting messages in the console, but I have yet to encounter something that didn't trigger combat music. So, it's working maybe? Maybe it just doesn't display them?

I did do an edit to the "Immersive Super Ultra Hype Combat Music Overhaul" mod last night though, replacing the "MUS_Combat_Low" with any of the "MUS_Combat_XX". (I just copied the higher threat files and renamed them.) For some reason in that mod, the "low threat" music triggers in fights that aren't exactly "low threat" at all for some reason, so I changed them to just place any of the other songs again. But AFAIK "fCombatMusicPlayerTargetedThreatRatio" just forces combat music to happen at all at a given threshold, low threat version or otherwise.

I didn't put "sStartingConsoleCommand" since I thought that's exactly what the auto.txt was doing, so I just put the commands. So far it's either working, or the edit to the music mod I did is treating all threats high. Either way it's doing what I want, but if something happens I'll put that command at the top. Thanks.

Edited by xavius05
Link to comment
Share on other sites

  • 4 months later...

In case anyone still wants to know the cause of the problem is NAC.

In Data folder you will find NAC.ini and you will see that there is the sStartingConsoleCommand= that you must edit.

 

I see OP's load order includes NAC.esm, so I assume NAC.ini is part of the same mod. Out of curiosity, what mod is it?

Link to comment
Share on other sites

  • 3 months later...

Well, not getting messages in the console, but I have yet to encounter something that didn't trigger combat music. So, it's working maybe? Maybe it just doesn't display them?

 

I did do an edit to the "Immersive Super Ultra Hype Combat Music Overhaul" mod last night though, replacing the "MUS_Combat_Low" with any of the "MUS_Combat_XX". (I just copied the higher threat files and renamed them.) For some reason in that mod, the "low threat" music triggers in fights that aren't exactly "low threat" at all for some reason, so I changed them to just place any of the other songs again. But AFAIK "fCombatMusicPlayerTargetedThreatRatio" just forces combat music to happen at all at a given threshold, low threat version or otherwise.

 

I didn't put "sStartingConsoleCommand" since I thought that's exactly what the auto.txt was doing, so I just put the commands. So far it's either working, or the edit to the music mod I did is treating all threats high. Either way it's doing what I want, but if something happens I'll put that command at the top. Thanks.

 

Thank you good sir. That was my problem too.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...