diff --git a/LuaLibs/BeamExec.lua b/LuaLibs/BeamExec.lua index a1247f0..b5b7c0a 100644 --- a/LuaLibs/BeamExec.lua +++ b/LuaLibs/BeamExec.lua @@ -555,7 +555,7 @@ local function GetFeatureForcedStrategy( Proc) -- cerco e aggiorno i parametri come sono settati nel processing for i = 1, #StrategyData.Parameters do - local sParameterToRead = StrategyData.sStrategyId .. '_' .. StrategyData.Parameters[i].sName + local sParameterToRead = StrategyData.sStrategyId .. '_' .. StrategyData.Parameters[i].sNameNge ForcedParameterForProc = EgtGetInfo( Proc.id, sParameterToRead, 's') -- se ho trovato il valore, lo sovrascrivo al default if ForcedParameterForProc then diff --git a/LuaLibs/BeamLib.lua b/LuaLibs/BeamLib.lua index 9aeeb6d..af1c51c 100644 --- a/LuaLibs/BeamLib.lua +++ b/LuaLibs/BeamLib.lua @@ -346,8 +346,10 @@ function BeamLib.LoadCustomParametersInStrategy( CustomParameters) Parameters[CustomParameters[i].sName] = CustomParameters[i].sValue == 'true' elseif CustomParameters[i].Type == 'd' then Parameters[CustomParameters[i].sName] = tonumber( CustomParameters[i].sValue) - else -- CustomParameters.Type == 's' + elseif CustomParameters[i].Type == 's' then Parameters[CustomParameters[i].sName] = CustomParameters[i].sValue + else -- CustomParameters.Type == 'c' + Parameters[CustomParameters[i].sName][CustomParameters[i].sValue] = true end end end diff --git a/Strategies/Standard/STR0003/STR0003Config.lua b/Strategies/Standard/STR0003/STR0003Config.lua index 952ee82..9c6965c 100644 --- a/Strategies/Standard/STR0003/STR0003Config.lua +++ b/Strategies/Standard/STR0003/STR0003Config.lua @@ -6,7 +6,14 @@ local STR0003Data = { { sName = 'bFinishWithChainSaw', sValue = 'true', sDescriptionShort = 'Finish with chainsaw if needed', sDescriptionLong = 'Finish with chainsaw if needed', sType = 'b', sMessageId = '', sMinUserLevel = '1'}, { sName = 'bForceLongcutBlade', sValue = 'false', sDescriptionShort = 'Force ripping blade', sDescriptionLong = 'Force the use of ripping blade, designed for cuts parallel to the grain', sType = 'b', sMessageId = '', sMinUserLevel = '1'}, { sName = 'bNotCompleteWithBladeRadius', sValue = 'true', sDescriptionShort = '', sDescriptionLong = '', sType = 'b', sMessageId = '', sMinUserLevel = '1'}, - { sName = 'bUseZigZagMortising', sValue = 'false', sDescriptionShort = '', sDescriptionLong = '', sType = 'b', sMessageId = '', sMinUserLevel = '1'} + { sName = 'bUseZigZagMortising', sValue = 'false', sDescriptionShort = '', sDescriptionLong = '', sType = 'b', sMessageId = '', sMinUserLevel = '1'}, + { sNameNge = 'DAMAGENEXTPIECE', sName = 'DamageNextPiece', sType = 'combo', sMinUserLevel = '1', + { sNameNge = 'NEVER', sDescriptionShort = '', sDescriptionLong = '', sMessageId = ''}, + { sNameNge = 'ALWAYS', sDescriptionShort = '', sDescriptionLong = '', sMessageId = ''}}, + + { sNameNge = 'CUBETTI', sName = 'DamageNextPiece', sType = 'combo', sMinUserLevel = '1', + { sNameNge = 'MIN', sDescriptionShort = '', sDescriptionLong = '', sMessageId = ''}, + { sNameNge = 'MAX', sDescriptionShort = '', sDescriptionLong = '', sMessageId = ''}}, } }