Script Compilation Error with modded game

+
Hi guys. Need help with this problem:

Error[mod0000_mergedfiles]game\gui\main_menu\ingamemenu.ws(2190): Unexpected end of file found after '{' at line 65

I'm sure it's easy to solve, just substituting "}" somewhere. But where I don't know.

Below is the link to the paste:

 
I could use some help with some script compilation errors. Here is the errors

Error [mod0000_mergedfiles]game\player\playerwitcher.ws(8166): Function 'SuperchargedSignCleanup' is already defined in class 'W3PlayerWitcher'.
Error [mod0000_mergedfiles]game\player\playerwitcher.ws(8171): Function 'DelayedRemoveTemporarySkills' is already defined in class 'W3PlayerWitcher'.

Warning [content0]engine\environment.ws(30): Global native function 'EnableDebugOverlayFilter' was not exported from C++ code.
Warning [content0]engine\environment.ws(32): Global native function 'EnableDebugPostProcess' was not exported from C++ code.
Warning [content0]engine\showflags.ws(11): Global native function 'DebugSetEShowFlag' was not exported from C++ code.

I hope this may be a better way to help:
 

Attachments

  • Witcher 3 Script Compilation Error 1.txt
    670 bytes · Views: 102
I want help by posting Script Merger SS. If I put them all one by one, can you tell me which line it is?


1653221356545.png

1653221453369.png

1653221478202.png

1653221494105.png

1653221526985.png

1653221541911.png

Error [content0]game\gui\main_menu\ingamemenu\igmoptions.ws(30): I dont know any 'IGMActionType_Button'
Error [mod0000_mergedfiles]game\r4game.ws(1296): I dont know any '_mainMenuType'
Error [mod0000_mergedfiles]game\r4game.ws(1296): I dont know any 'availableMainMenuTypes'
Error [mod0000_mergedfiles]game\player\playerinput.ws(3097): syntax error, unexpected TOKEN_VAR, near 'var'
Error [modfriendlyhud]game\gui\commonmainmenubase.ws(73): Could not find function 'GetChosenMainMenuType'
Error [modfriendlyhud]game\gui\main_menu\maincreditsmenu.ws(397): Could not find function 'GetChosenMainMenuType'

Warning [content0]engine\environment.ws(30): Global native function 'EnableDebugOverlayFilter' was not exported from C++ code.
Warning [content0]engine\environment.ws(32): Global native function 'EnableDebugPostProcess' was not exported from C++ code.
Warning [content0]engine\showflags.ws(11): Global native function 'DebugSetEShowFlag' was not exported from C++ code.
 
Last edited:
Hi guys. Need help with this problem:

Error [mod0000_mergedfiles]game\gameplay\ability\playerabilitymanager.ws(3297): Found unexpected '}'
Error [mod0000_mergedfiles]game\player\playerwitcher.ws(7702): Found unexpected '}'

The two links below are the paste bin links:
player ability manager
playerwitcher.ws


I's using the script merger 0.6.5, I tried to fix it on by myself but ended up getting more errors progressively. The error codes below is my previous my attempt, in the order of corrections

Error [mod0000_mergedfiles]game\gameplay\ability\playerabilitymanager.ws(3278): Found unexpected '}'
Error [mod0000_mergedfiles]game\gameplay\ability\playerabilitymanager.ws(3336): Found unexpected '}'
Error [mod0000_mergedfiles]game\gameplay\ability\playerabilitymanager.ws(3341): Unexpected end of file found after '{' at line 3340
Error [mod0000_mergedfiles]game\player\playerwitcher.ws(7702): Found unexpected '}'

Error [mod0000_mergedfiles]game\gameplay\ability\playerabilitymanager.ws(229): syntax error, unexpected TOKEN_IDENT, expecting '{' or ';', near 'isMutationSystemEnabled'
Error [mod0000_mergedfiles]game\player\playerwitcher.ws(7702): Found unexpected '}'

Error [mod0000_mergedfiles]game\gameplay\ability\playerabilitymanager.ws(3341): Unexpected end of file found after '{' at line 29
Error [mod0000_mergedfiles]game\player\playerwitcher.ws(7702): Found unexpected '}'
Error [mod0000_mergedfiles]game\player\playerwitcher.ws(7717): Unexpected end of file found after '{' at line 7705

Error [mod0000_mergedfiles]game\gameplay\ability\playerabilitymanager.ws(30): syntax error, unexpected TOKEN_PRIVATE, expecting '{', near 'private'
Error [mod0000_mergedfiles]game\player\playerwitcher.ws(2258): syntax error, unexpected TOKEN_IF, expecting TOKEN_FUNCTION, near 'if'

Error [mod0000_mergedfiles]game\gameplay\ability\playerabilitymanager.ws(3341): Unexpected end of file found after '{' at line 30
Error [mod0000_mergedfiles]game\player\playerwitcher.ws(2258): syntax error, unexpected TOKEN_IF, expecting TOKEN_FUNCTION, near 'if'
 
Last edited:
Hello! I have the same problem and I would really appreciate your help.
The error I've received is:


Error [mod0000_mergedfiles]game\gui\main_menu\ingamemenu.ws(2157): Unexpected end of file found after '{' at line 65

I'm not exactly sure on what mods are merged together but here's a paste bin: https://pastebin.com/fcaSaF4g

Please help me. Please...
 
Hi, Everyone

Can someone please help me locate this issue??


Error [mod0000_mergedfiles]game\player\playerwitcher.ws(5287): syntax error, unexpected TOKEN_PUBLIC, expecting '{' or ';', near 'public'

Here is my paste bin: https://pastebin.com/UczxCjue

Thank you in advance!!
Post automatically merged:

Hi,

Can someone please help me with this merge error??

Error [mod0000_mergedfiles]game\player\playerwitcher.ws(5293): Function 'SendToxicityTooHighMessage' is already defined in class 'W3PlayerWitcher'.

here is my paste bin: https://pastebin.com/7yL4TnUA

Thank you so much in advance
 
Last edited:
Hi, I'm new here so i cant create this post in the corresponding sub-forum.
Topic: Witcher 3 - Mod Troubleshooting

I've experienced some syntax errors while merging different mods. Any help would be highly appreciated. I copied the corresponding blocks of code and marked the lines named in the error messages. Thank you in advance :D

Error [mod0000_mergedfiles]game\player\r4player.ws(4334): syntax error, unexpected TOKEN_ELSE, near 'else'
Error [mod0000_mergedfiles]game\player\r4player.ws(4347): syntax error, unexpected '}', expecting $end, near '}'
Code:
        UpdateCameraSprint( moveData, dt );    //ImmersiveCam
        //---=== modFriendlyMeditation ===---
LINE 4334 ->        else if( fmedCameraRequestTimeStamp > 0 )
        {
            if( fmedCameraRequestTimeStamp + 1.5f < theGame.GetEngineTimeAsSeconds() )
            {
                fmedResetCameraRequest();
            }
            else
            {
                angles = thePlayer.GetWorldRotation();
                moveData.pivotRotationController.SetDesiredHeading( angles.Yaw );
                moveData.pivotRotationController.SetDesiredPitch( angles.Pitch );
                moveData.pivotRotationValue.Yaw = LerpAngleF( 2.f * dt, moveData.pivotRotationValue.Yaw, angles.Yaw );
                moveData.pivotRotationValue.Pitch = LerpAngleF( 1.f * dt, moveData.pivotRotationValue.Pitch, angles.Pitch );
LINE 4347 ->            }
        }
        //---=== modFriendlyMeditation ===---
    }

Error [mod0000_mergedfiles]game\player\playerinput.ws(2781): syntax error, unexpected TOKEN_VAR, near 'var'
Code:
    {
        //---=== modFriendlyMeditation ===---
        //var med : W3PlayerWitcherStateMeditation;
        //
        //if (!theGame.GetGuiManager().IsAnyMenu())
        //{
        //    med = (W3PlayerWitcherStateMeditation)GetWitcherPlayer().GetCurrentState();
        //    if(med)
        //    {
        //     
        //     
        //        med.StopRequested(false);
        //    }
        //}
        var witcher : W3PlayerWitcher = GetWitcherPlayer();
      
        if( witcher.IsMeditating() || witcher.IsSkippingTime() )
        //Immersive Meditation++
      
LINE 2781 ->        var imInstalled : bool;
      
        if( StringToFloat( theGame.GetInGameConfigWrapper().GetVarValue('ImmersiveCamPositionsMeditation', 'medRotSpeed') ) >= 0.1 )
            imInstalled = true;
          
        if( ((CMeditationUI)thePlayer.getMeditation()).getMedMenuBool() && imInstalled )
        {
            ((CMeditationUI)thePlayer.getMeditation()).NewMeditate();
        }
      
        //Immersive Meditation--     
      
        {
            witcher.ModEndMeditation();
        }
        //---=== modFriendlyMeditation ===---
    }
 

Attachments

  • Affected files.zip
    115.7 KB · Views: 35
Last edited:
Error [mod0000_mergedfiles]game\player\r4player.ws(4334): syntax error, unexpected TOKEN_ELSE, near 'else'
Error [mod0000_mergedfiles]game\player\r4player.ws(4347): syntax error, unexpected '}', expecting $end, near '}'
Not an expert and not sure, but the "LINE 4347" seem to be missplaced :)
It should look like that :
(but hard to say without the rest, the very last " }" seem useless, but it's probably "linked" to another "{" above)
Code:
LINE 4334 ->
        else if( fmedCameraRequestTimeStamp > 0 )
        {
            if( fmedCameraRequestTimeStamp + 1.5f < theGame.GetEngineTimeAsSeconds() )
            {
                fmedResetCameraRequest();
            }
            else
            {
                angles = thePlayer.GetWorldRotation();
                moveData.pivotRotationController.SetDesiredHeading( angles.Yaw );
                moveData.pivotRotationController.SetDesiredPitch( angles.Pitch );
                moveData.pivotRotationValue.Yaw = LerpAngleF( 2.f * dt, moveData.pivotRotationValue.Yaw, angles.Yaw );
                moveData.pivotRotationValue.Pitch = LerpAngleF( 1.f * dt, moveData.pivotRotationValue.Pitch, angles.Pitch );
            }
        }
LINE 4347 ->
        //---=== modFriendlyMeditation ===---
    }
not sure about the rest :(
 
Last edited:
Not an expert and not sure, but the "LINE 4347" seem to be missplaced :)
It should look like that :
(but hard to say without the rest, the very last " }" seem useless, but it's probably "linked" to another "{" above)
Code:
LINE 4334 ->
        else if( fmedCameraRequestTimeStamp > 0 )
        {
            if( fmedCameraRequestTimeStamp + 1.5f < theGame.GetEngineTimeAsSeconds() )
            {
                fmedResetCameraRequest();
            }
            else
            {
                angles = thePlayer.GetWorldRotation();
                moveData.pivotRotationController.SetDesiredHeading( angles.Yaw );
                moveData.pivotRotationController.SetDesiredPitch( angles.Pitch );
                moveData.pivotRotationValue.Yaw = LerpAngleF( 2.f * dt, moveData.pivotRotationValue.Yaw, angles.Yaw );
                moveData.pivotRotationValue.Pitch = LerpAngleF( 1.f * dt, moveData.pivotRotationValue.Pitch, angles.Pitch );
            }
        }
LINE 4347 ->
        //---=== modFriendlyMeditation ===---
    }
not sure about the rest :(

Thank you for the answer. Sadly, the problem still remains. I've added both files to the main post in case it might help.
Post automatically merged:

Hi, I'm new here so i cant create this post in the corresponding sub-forum.
Topic: Witcher 3 - Mod Troubleshooting

I've experienced some syntax errors while merging different mods. Any help would be highly appreciated. I copied the corresponding blocks of code and marked the lines named in the error messages. Thank you in advance :D

Error [mod0000_mergedfiles]game\player\r4player.ws(4334): syntax error, unexpected TOKEN_ELSE, near 'else'
Error [mod0000_mergedfiles]game\player\r4player.ws(4347): syntax error, unexpected '}', expecting $end, near '}'
Code:
        UpdateCameraSprint( moveData, dt );    //ImmersiveCam
        //---=== modFriendlyMeditation ===---
LINE 4334 ->        else if( fmedCameraRequestTimeStamp > 0 )
        {
            if( fmedCameraRequestTimeStamp + 1.5f < theGame.GetEngineTimeAsSeconds() )
            {
                fmedResetCameraRequest();
            }
            else
            {
                angles = thePlayer.GetWorldRotation();
                moveData.pivotRotationController.SetDesiredHeading( angles.Yaw );
                moveData.pivotRotationController.SetDesiredPitch( angles.Pitch );
                moveData.pivotRotationValue.Yaw = LerpAngleF( 2.f * dt, moveData.pivotRotationValue.Yaw, angles.Yaw );
                moveData.pivotRotationValue.Pitch = LerpAngleF( 1.f * dt, moveData.pivotRotationValue.Pitch, angles.Pitch );
LINE 4347 ->            }
        }
        //---=== modFriendlyMeditation ===---
    }

Error [mod0000_mergedfiles]game\player\playerinput.ws(2781): syntax error, unexpected TOKEN_VAR, near 'var'
Code:
    {
        //---=== modFriendlyMeditation ===---
        //var med : W3PlayerWitcherStateMeditation;
        //
        //if (!theGame.GetGuiManager().IsAnyMenu())
        //{
        //    med = (W3PlayerWitcherStateMeditation)GetWitcherPlayer().GetCurrentState();
        //    if(med)
        //    {
        //    
        //    
        //        med.StopRequested(false);
        //    }
        //}
        var witcher : W3PlayerWitcher = GetWitcherPlayer();
     
        if( witcher.IsMeditating() || witcher.IsSkippingTime() )
        //Immersive Meditation++
     
LINE 2781 ->        var imInstalled : bool;
     
        if( StringToFloat( theGame.GetInGameConfigWrapper().GetVarValue('ImmersiveCamPositionsMeditation', 'medRotSpeed') ) >= 0.1 )
            imInstalled = true;
         
        if( ((CMeditationUI)thePlayer.getMeditation()).getMedMenuBool() && imInstalled )
        {
            ((CMeditationUI)thePlayer.getMeditation()).NewMeditate();
        }
     
        //Immersive Meditation--    
     
        {
            witcher.ModEndMeditation();
        }
        //---=== modFriendlyMeditation ===---
    }

+ Question: I'm not using the addon Immersive Meditation. Therefore, is it possible to delete this:
Code:
        //Immersive Meditation++
      
LINE 2781 ->        var imInstalled : bool;
      
        if( StringToFloat( theGame.GetInGameConfigWrapper().GetVarValue('ImmersiveCamPositionsMeditation', 'medRotSpeed') ) >= 0.1 )
            imInstalled = true;
          
        if( ((CMeditationUI)thePlayer.getMeditation()).getMedMenuBool() && imInstalled )
        {
            ((CMeditationUI)thePlayer.getMeditation()).NewMeditate();
        }
      
        //Immersive Meditation--

and get rid of the VAR_TOKEN script error?
 
Last edited:
Hello, I'm currently stuck on a Compilation error. I've been able to fix all the other ones I've had but for some reason, I'm having issues understanding what it's asking me in this one.

The mods being merged are Enemy Healthbar On Top, FriendlyHUD, and ReduxDL

The Error I'm getting reads as follows:
"Error [mod0000_mergedfiles]game\gui\hud\modules\hudmoduleenemyfocus.ws(506): syntax error, unexpected TOKEN_ELSE, expecting TOKEN_FUNCTION, near 'else' "

Here is the file via Pastebin as well.

https://pastebin.com/nMTHSMDc

Any help would be greatly appreciated.

Thank you for your time.
 
Hello everyone. I had the following problem after installing the Crossbow Damage Boost and Balance mod.
Error [mod0000_mergedfiles]game\projectile\explosivebolt.ws(179): Unexpected end of file found after '{' at line 10
Script Merger shows no problems when merging. I didn't find any solutions on the Internet. I will be very grateful for your help
 
I have the same issue, I have to tried to fix it, however not sure how to fix it.
Error [mod0000_mergedfiles]game\player\movement\locomotiondirectcontroller.ws(1223): Unexpected end of file found after '{' at line 34
Error [mod0000_mergedfiles]game\player\playerinput.ws(3290): syntax error, unexpected TOKEN_ELSE, expecting TOKEN_FUNCTION, near 'else'
Error [mod0000_mergedfiles]game\player\r4player.ws(464): syntax error, unexpected TOKEN_VAR, expecting TOKEN_FUNCTION, near 'var'
I have attached the files. Any help would be appreciated.
 
Hi guys, this is the only error I'm getting after hours of solving. Not sure if this is a known one, but here goes:

Error [modw3ee]game\player\playerwitcher.ws(8802): Function 'GetTotalWeaponDamage' takes 4 parameter(s) which is inconsistent with base function (3).

pastebin.com/UwfrG5is

Help is appreciated
 
I have an issue with the game Witcher 3 that I need help with, when i launch the game, the script compiler comes up,
and gives the error message

Error [mod0000_mergedfiles]game\player\r4player.ws(6): Class 'CR4Player' was already exported.

I cannot get past this error message to launch the game.

the file r4player.ws has a merged file with the mods modRemoveItemLevelReqs and modSpawnCompanions, and
W3scriptmerger found no conflicts after I merged both of those files. does anyone have any advice on what I can
do about this problem?
 
Last edited by a moderator:
Got an issue with script compliation.

Error [mod0000_mergedfiles]game\player\playerinput.ws(3401): 'event' has no sense for global function 'OnToggleHud'.
Error [mod0000_mergedfiles]game\player\playerinput.ws(3414): 'public' has no sense for global function 'Debug_ClearAllActionLocks'.

I don't know much about coding so I've no idea how to fix this, can anyone help?
https://pastebin.com/BHjxxpPz

This is after having a bunch of errors caused from a shit ton of duplicate code that I managed to solve, those 2 errors are the only ones left.
 
How do i fix this script issue?

[mod0000_mergedfiles]game\gui\main_menu\ingamemenu.ws(66): syntax error, unexpected TOKEN_PROTECTED, expecting '{', near 'protected

 
Last edited:
Top Bottom