Script merger cannot figure it out automatically unfortunately, but yes you can easily merge them so they are compatible. In the lowest window of script merger - the output script - manually make sure all lines from Immersive Camera from this section as well as Sprinting Tweaks from this section are included. Both are identified by the code notes "//ImmersiveCam++" and "//--===modSprintingTweaks Begin===--", respectively. Also, make sure modSprintingTweaks variables: var sprintingTweaksInstance: SprintingTweaksConfig; var mode: int; var timeIn: int; var timeOut: int; are included directly after the line saying: var currentStateName : name;
Otherwise you will get a compiling error when you start the game. Good luck.
And in case it wasn't clear - as I didn't realize at first when I started modding - yes you can edit the output script of that lower window as if you were working in Notepad.
The conflicting section of my final merged script. The conflict between Immersive Cam and Sprinting Tweaks occurs only in this function "ShouldDrainStaminaWhileSprinting". Game compiled this successfully and both mods work as intended. **Yours might vary depending on what mods you use and if they also affect this section**
protected function ShouldDrainStaminaWhileSprinting() : bool { var currentStateName : name;
//--===modSprintingTweaks Begin===-- var sprintingTweaksInstance: SprintingTweaksConfig; var mode: int; var timeIn: int; var timeOut: int; //--===modSprintingTweaks End===--
Thank you so much, this fixed it for me. For anyone without coding experience like me, it is quite simple. Just try to recreate his version of the script by placing in the similar or equal coding from your own scripts in script merger. He has also added some text with // infront of it that will not be in your script. You do not need the // text because any textline with // in front of it does not actually modify the script, it is a way to write notes for yourself without editing the script. But you can copy over his // text if you want it to look tidy for a later script merge. So you remember what mod changes what script. For me the one thing that was screwing up my initial attempt was that if you try to merge it without coding experience by copying and moving the highlighted text, you will be missing the end bracket } in the line above "//ImmersiveCam++ End//". Make sure you have that end bracket there.
Update: It might be that BetterTorches or JumpInShallowWater conflicts with the player.ws file.
I can't seem to be able to sprint while in witcher sense mode though focusModeSprint is set to true (focusModeSprint = true;). Everything else is working. How come this be?
I wanted to extend my apologies the mod author, whose works I hosted on the 1.30 project update page. I have removed all works from the downloads area and transferred them to a dropbox mirror located at https://www.dropbox.com/sh/f53hcpgmz3nj6cb/AABPShv2ljfyTkBnPz6QPeo4a?dl=0. This is where you can find my version of the 1.30 update until the author is able to get an official one put out. Again, I never intended to infringe on the rights of the creators and I apologize.
64 comments
Both are identified by the code notes "//ImmersiveCam++" and "//--===modSprintingTweaks Begin===--", respectively.
Also, make sure modSprintingTweaks variables:
var sprintingTweaksInstance: SprintingTweaksConfig;
var mode: int;
var timeIn: int;
var timeOut: int;
are included directly after the line saying:
var currentStateName : name;
Otherwise you will get a compiling error when you start the game.
Good luck.
The conflict between Immersive Cam and Sprinting Tweaks occurs only in this function "ShouldDrainStaminaWhileSprinting".
Game compiled this successfully and both mods work as intended.
**Yours might vary depending on what mods you use and if they also affect this section**
protected function ShouldDrainStaminaWhileSprinting() : bool
{
var currentStateName : name;
//--===modSprintingTweaks Begin===--
var sprintingTweaksInstance: SprintingTweaksConfig;
var mode: int;
var timeIn: int;
var timeOut: int;
//--===modSprintingTweaks End===--
//ImmersiveCam++//
if ( sprintingTime >= 1.0 || GetStaminaPercents() < 1.0 )
{
if( playerMoveType != PMT_Sprint )
return false;//ImmersiveCam--
}
//ImmersiveCam++ End//
//--===modSprintingTweaks Begin===--
sprintingTweaksInstance = new SprintingTweaksConfig in this;
sprintingTweaksInstance.Init();
mode= sprintingTweaksInstance.sprintingMode;
timeOut= sprintingTweaksInstance.sprintTimeOut;
timeIn= sprintingTweaksInstance.sprintTimeIn;
currentStateName = GetCurrentStateName();
if ( mode == 0 )
{
if( currentStateName == 'Exploration' )
if ( sprintingTime >= timeOut || ( GetStaminaPercents() < 1.0 && sprintingTweaksInstance.drainUnder100 ) )
return true;
if( currentStateName == 'CombatSteel' || currentStateName == 'CombatSilver' || currentStateName == 'CombatFists' )
if ( sprintingTime >= timeIn || ( GetStaminaPercents() < 1.0 && sprintingTweaksInstance.drainUnder100 ) )
return true;
}
else if ( mode == 1 )
{
if( currentStateName == 'CombatSteel' || currentStateName == 'CombatSilver' || currentStateName == 'CombatFists' )
if ( sprintingTime >= timeIn || ( GetStaminaPercents() < 1.0 && sprintingTweaksInstance.drainUnder100 ) )
return true;
}
//--===modSprintingTweaks End===--
return false;
}
I can't seem to be able to sprint while in witcher sense mode though focusModeSprint is set to true (focusModeSprint = true;). Everything else is working. How come this be?