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
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 ===---
}