Fallout 4
0 of 0

File information

Last updated

Original upload

Created by

charlieoctopus5000

Uploaded by

charlieoctopus5000

Virus scan

Safe to use

Tags for this mod

About this mod

A simple fix for the non-functional ClearConsole (clear) Console Command. It must be executed on its own line.

Permissions and credits
Donations
To use the accompanying Console.7z file:

1) Extract the Console.swf file from the Console.7z file.
2) Add Console.swf to your installation's Data\Interface\ directory (create the directory if it doesn't exist).
3) Add the following lines to your local user's Fallout4Custom.ini (don't add a [block] tag if it's already there):

[Archive] 
sResourceDataDirsFinal=STRINGS\,INTERFACE\
[Launcher] 
bEnableFileSelection=1


To fix the bug yourself:


1) Extract Fallout 4 - Interface.ba2 from your installation's Data\ directory, and find Console.swf.
2) Open Console.swf in a flash decompiler, and make the yellow changes to Console.as:

public function onKeyUp(param1:KeyboardEvent) : *     
{         
var command:String = this.CommandEntry.text.toLowerCase();

var _loc2_:int = 0;
var _loc3_:int = 0;         
if(param1.keyCode == Keyboard.ENTER || param1.keyCode == Keyboard.NUMPAD_ENTER)
{           
if(this.Commands.length >= this.PREVIOUS_COMMANDS)
{               
this.Commands.shift();           
}           
this.Commands.push(this.CommandEntry.text);           
if(command == "clear" || command == "clearconsole") 

{               
this.CommandHistory.text = "";
           
} 

else 
{
               
this.BGSCodeObj.executeCommand(this.CommandEntry.text);           
}
           
this.ResetCommandEntry();         
}
...


3) Recompile the changes to Console.swf into your installation's Data\Interface\ directory (create the directory if it doesn't exist).
4) Make sure the changes have been made to Fallout4Custom.ini, as outlined for the Console.7z case.