Fixes

How to Get Rid of Witcher 3 Script Compilation Errors [Complete Guide]

Witcher 3 is one of the most famous titles due to its diverse gameplay and immaculate graphics. It also contains a well known modding community and modding is a common thing with this game. However, a lot of modders have been recently getting Witcher 3 script compilation errors while trying to run their game with mods on Nexus Mod Manager or other Mod managing tools.

Witcher 3 Script Compilation Errors
Witcher 3 Script Compilation Errors

What causes Script Compilation Errors in Witcher 3?

After deeply analyzing this error on our test-benches, we concluded that the following are some of the most common triggers behind its occurrence.

  • Faulty or outdated mods: If the Mods that you are trying to install have been outdated or are generally known to be faulty, the Witcher 3 Script compilation errors will occur while trying to run the game. It is best to only install mods that aren’t incompatible with each other are known to play well with other mods.
  • Outdated game patch: Also, it is very important to install the latest game patch before trying to apply any mods on the game. if you haven’t installed the latest game patch available, the Script Compilation Errors will be seen while playing Witcher 3.
  • Corrupt files in the hack folder: It is also possible that you have installed some corrupted files in the Hack folder or they have been installed there automatically. It is best to get rid of these files before trying to attempt any fix.
  • Incorrect telemetry keyword: The Witcher 3 Script compilation errors can also spring up if a wrong telemetry keyword has been configured for them. Therefore, it is best to reconfigure the telemetry keyword and to make sure that you have selected the proper one.

Now that you are familiar with some of the most common reasons that trigger this issue, we will be moving on towards implementing the fixes.

Fixing the Witcher 3 Script Compilation Errors:

Solution 1: Remove faulty mod

In most of the cases, script compilation errors occur in Witcher 3 if the mods you have installed, contradict with each other. Mods are important to be used with the game because they add extra features to the game and enhance the gameplay, but on the other side, they can cause some major trouble if one of the mod is outdated or is interfering with the other mods. As it is a very hectic task to locate a faulty mode and disable it, the most efficient approach to resolve this issue is to delete the “Mod” folder from the game’s directory and install all the mods again one by one and see which mod triggers the error.

Solution 2: Update Mods and the game

  1. Launch your favorite browser and download the Day 1 Patch, 1.10 Patch, 1.22 Patch, 1.24 Patch, 1.30 Patch, and the 1.31 Patch.
  2. After downloading all the patches on your computer, place them in a single folder and install them one by one in sequence.
  3. To install the patch, simply open the respective folder, double-click on the executable file present in it, and click on the “Update” button from the window appeared on the screen.
  4. On completion of the steps indexed above, your game will be updated to the Patch 1.31.

Note: While downloading the mods for your game, make sure that their version is 1.31 otherwise they will not be compatible with your game.

Solution 3: Download the Unification patch

  1. Launch your favorite browser and download the Unification Patch for Witcher 3.
  2. Once the patch is downloaded, copy the “Content” and “Mods” folder and paste it in the Witcher 3 folder of your game’s directory.
  3. Now click on “Copy and Replace” from the window appeared on the screen.
  4. Once the folders are replaced successfully, launch the game and check whether the witcher 3 script compilation errors are rectified.

Solution 4: Merge Mod scripts

  1. Launch your favorite browser and download Script Merger.
  2. Now double-click on the downloaded file and follow the on-screen instructions to install script merger.
  3. In the script merger home screen, click on the “Three-dot” icon located parallel to the text field on the top of the screen and browse to the Witchers 3 directory.
    Browse to the game folder to fix witcher 3 script compilation errors
    Browsing to the game folder
  4. Now click on the “Refresh” button parallel to the “Conflicts” label, to find out the conflicts in the mods.
  5. Now select the faulty mods and click on the “Merge Selected Script” button located at the bottom of the screen.
  6. Now the mods that are repaired automatically and the mods that need to be repaired manually will be displayed on the screen. Click on the “OK” button.
  7. You can see three columns i.e A, B, and C, on the upper half of the screen and one Output column at the lower half of the screen. In the upper columns, the mods that need to be repaired manually, are highlighted in yellow color.
  8. Now, to repair these mods, scroll down in the Output column and locate a line that says “Merge Column”. Right-click on that line and click on the column label in which the actual code was highlighted in yellow.
    For example: If the code was highlighted in column C, you will right-click on Merge columns and choose“Select Lines From C”.
  9. After the completion of the above procedure, navigate to the “File” tab, and select “Save” to save the changes.
  10. Now click “OK” on the window appeared that says “Mergered files” and close the script merger and launch the game and check if the error has been rectified.

Solution 5: Delete the hack folder and update the telemetry keyword

  1. Navigate to the “tasks” folder in the Witcher 3 game’s directory and delete the “hack” folder.
    C:\Program Files (x86)\The Witcher 3\content\content0\script\game\behavior_tree\tasks
  2. Now go back to the “scripts” folder and open the folder named “engine”.
    C:\Program Files (x86)\The Witcher 3\content\content0\script\engine
  3. In this folder, create a new “Text document” and paste the following lines in it. Name the folder as “telemetryKeyword.ws”.
    Note: If there is a text file with the same name already present in that folder, replace it with the new one you just created.
    /***********************************************************************/
    /** 	© 2015 CD PROJEKT S.A. All rights reserved.
    /** 	THE WITCHER® is a trademark of CD PROJEKT S. A.
    /** 	The Witcher game is based on the prose of Andrzej Sapkowski.
    /***********************************************************************/
    
    import class CR4TelemetryScriptProxy extends CObject
    {
    	import final function LogWithName( eventType : ER4TelemetryEvents );
    	import final function LogWithLabel( eventType : ER4TelemetryEvents, label : String );
    	import final function LogWithValue( eventType : ER4TelemetryEvents, value : int );
    	import final function LogWithValueStr( eventType : ER4TelemetryEvents, value : String );
    	import final function LogWithLabelAndValue( eventType : ER4TelemetryEvents, label : String, value : int );
    	import final function LogWithLabelAndValueStr( eventType : ER4TelemetryEvents, label : String, value : String );
    	import final function SetCommonStatFlt( statType: ER4CommonStats, value : float );	
    	import final function SetCommonStatI32( statType: ER4CommonStats, value : int );
    	import final function SetGameProgress( value : float );
    	import final function AddSessionTag( tag : String );
    	import final function RemoveSessionTag( tag : String );
    	import final function XDPPrintUserStats( statisticName : String );
    	import final function XDPPrintUserAchievement( achievementName : String );
    }

Workaround:

When you launch the game, and the Script compilation Error, study the error log carefully and note down the path of a text file indexed in the error log. Also, note down the line number in the respective text file written in the text file. Now navigate to the path that is listed in the error log and, open the text file and delete the line that you noted before. We have given an example below in which we are deleting some lines from two textfiles that were indexed in our error log.

Error Log
Error Log Display
  1. In your game’s directory, navigate to the following path, open the file named “commonmainmenubase.ws” and delete line 73.
    C:\Program Files (x86)\The Witcher 3\content\content0\gui\commonmainmenubase.ws
  2. After making the changes, save the file and close it.
  3. Now go to the following location, open the file named “maincreditsmenu.ws” and delete the line 397.
  4. Now save the change and close the file.
  5. After making the amendments indexed above, launch the game again and see if the issue is resolved.

If you are still unable to fix this issue, you can contact us for any further assistance.

Back to top button
Close
Close