Dawsonsa Posted January 12, 2021 Share Posted January 12, 2021 Hey, wondering if u can give some guidance on configurations , I know how to do the 1 simple one from giants but I want to use the add configuration script, I got a mod that already had it working ect and in the coding all I changed was the keyword so instead of bar it said plate , to name it but it completely broke the mod lol, was wondering why it’s not working? Cheers! Link to comment Share on other sites More sharing options...
bdbssb Posted January 21, 2021 Share Posted January 21, 2021 I have not used the configuration script itself I have only added config options used in default equipment. I will point someone here that is familiar with it. Sorry for the delay. I keep urging individuals to use this forum however we are all stuck in our comfort zone of using discord. Link to comment Share on other sites More sharing options...
bdbssb Posted January 21, 2021 Share Posted January 21, 2021 Even though I’m not familiar I may be able to look at the lines you edited and see if I see an issue. Either copy the lines here or share the mod in a private message and I can always take a look. That and looking at your log would be a start as well. Link to comment Share on other sites More sharing options...
MkM Posted January 23, 2021 Share Posted January 23, 2021 did you change the word in the vehicle xml or in moddesc/<l10n> ? Link to comment Share on other sites More sharing options...
bdbssb Posted January 26, 2021 Share Posted January 26, 2021 Good question Link to comment Share on other sites More sharing options...
MkM Posted January 27, 2021 Share Posted January 27, 2021 Wumpscut here btw bdbssb 😉 the quick and dirty change that would not messup anything would be in the <l10n> for the config name itself , lets see if i can explain with a example so i have a edit of the cherry smartbox and have the addconfig script in that one. In this example the addConfig script by Ifko[nator] was used for personal use and as always if you want a release a mod to the public then make sure you get the approval from the creator. parts in moddesc: <specializations> <specialization name="addConfig" className="AddConfig" filename="specializations/AddConfig.lua"/> </specializations> <vehicleTypes> <type name="cherryBox" parent="implement" filename="$dataS/scripts/vehicles/Vehicle.lua"> <specialization name="addConfig"/> </type> </vehicleTypes> <newConfigurations> <newConfiguration configName="smartBoxDesign" isColorConfig="false" /> <newConfiguration configName="smartBoxWeight" isColorConfig="false" /> </newConfigurations> i use a separate file for the l10n but can ofcorse be in moddesc directly <l10n> <annotation></annotation> <texts> <text name="configuration_smartBoxDesign" text="Smartbox Design" /> <text name="configuration_claas" text="CLAAS" /> <text name="configuration_cherry" text="CHERRY" /> <text name="configuration_smartBoxWeight" text="Smartbox Weight" /> <text name="configuration_smartBoxWeight1600" text="Weight: 1600kg" /> <text name="configuration_smartBoxWeight1800" text="Weight: 1800kg" /> <text name="configuration_smartBoxWeight2000" text="Weight: 2000kg" /> <text name="configuration_smartBoxWeight2200" text="Weight: 2200kg" /> <text name="configuration_smartBoxWeight2400" text="Weight: 2400kg" /> </texts> </l10n> and last the vehicle xml part (yeah i was to lazy to make a new smaller example ) <smartBoxDesignConfigurations> <smartBoxDesignConfiguration name="$l10n_configuration_cherry" price="0"> <colorChanges> <colorChange materialName="weight_mat" shaderParameterName="colorMat0" materialId="0" color="SHARED_BLACK1" /> <colorChange materialName="weight_mat" shaderParameterName="colorMat1" materialId="0" color="SHARED_RD1" /> <colorChange materialName="weight_mat" shaderParameterName="colorMat2" materialId="0" color="SHARED_BLACK1" /> <colorChange materialName="weight_mat" shaderParameterName="colorMat3" materialId="0" color="SHARED_RD1" /> <colorChange materialName="weight_mat" shaderParameterName="colorMat4" materialId="0" color="SHARED_WHITE1" /> <colorChange materialName="weight_mat" shaderParameterName="colorMat5" materialId="0" color="SHARED_WHITE1" /> </colorChanges> <objectChange node="cherryBigLogo" visibilityActive="true" /> <objectChange node="cherrySmallLogo" visibilityActive="true" /> <objectChange node="cherrySmartboxLogo" visibilityActive="true" /> <objectChange node="claasBig" visibilityActive="false" /> <objectChange node="turnLightLeftFront" visibilityActive="false" /> <objectChange node="turnLightRightFront" visibilityActive="false" /> <objectChange node="turnLightLeftStatic01" visibilityActive="false" /> <objectChange node="turnLightLeftStatic02" visibilityActive="false" /> <objectChange node="turnLightRightStatic01" visibilityActive="false" /> <objectChange node="turnLightRightStatic01" visibilityActive="false" /> </smartBoxDesignConfiguration> <smartBoxDesignConfiguration name="$l10n_configuration_claas" price="1000"> <colorChanges> <colorChange materialName="weight_mat" shaderParameterName="colorMat0" materialId="0" color="CLAAS_DARKGREY2" /> <colorChange materialName="weight_mat" shaderParameterName="colorMat1" materialId="0" color="CLAAS_GREEN1" /> <colorChange materialName="weight_mat" shaderParameterName="colorMat2" materialId="0" color="CLAAS_GREEN1" /> <colorChange materialName="weight_mat" shaderParameterName="colorMat3" materialId="0" color="CLAAS_RED1" /> <colorChange materialName="weight_mat" shaderParameterName="colorMat4" materialId="0" color="CLAAS_RED1" /> <colorChange materialName="weight_mat" shaderParameterName="colorMat5" materialId="0" color="CLAAS_RED1" /> </colorChanges> <objectChange node="cherryBigLogo" visibilityActive="false" /> <objectChange node="cherrySmallLogo" visibilityActive="false" /> <objectChange node="cherrySmartboxLogo" visibilityActive="false" /> <objectChange node="claasBig" visibilityActive="true" /> <objectChange node="turnLightLeftFront" visibilityActive="true" /> <objectChange node="turnLightRightFront" visibilityActive="true" /> <objectChange node="turnLightLeftStatic01" visibilityActive="true" /> <objectChange node="turnLightLeftStatic02" visibilityActive="true" /> <objectChange node="turnLightRightStatic01" visibilityActive="true" /> <objectChange node="turnLightRightStatic02" visibilityActive="true" /> </smartBoxDesignConfiguration> </smartBoxDesignConfigurations> <smartBoxWeightConfigurations> <smartBoxWeightConfiguration name="$l10n_configuration_smartBoxWeight1600" price="0"> <objectChange node="cherry_main_component1" massActive="1600" /> <objectChange node="cherry_main_component1" centerOfMassActive="0 0.2 0" /> </smartBoxWeightConfiguration> <smartBoxWeightConfiguration name="$l10n_configuration_smartBoxWeight1800" price="1000"> <objectChange node="cherry_main_component1" massActive="1800" /> <objectChange node="cherry_main_component1" centerOfMassActive="0 0.2 0" /> </smartBoxWeightConfiguration> <smartBoxWeightConfiguration name="$l10n_configuration_smartBoxWeight2000" price="2000"> <objectChange node="cherry_main_component1" massActive="2000" /> <objectChange node="cherry_main_component1" centerOfMassActive="0 0.2 0" /> </smartBoxWeightConfiguration> <smartBoxWeightConfiguration name="$l10n_configuration_smartBoxWeight2200" price="3000"> <objectChange node="cherry_main_component1" massActive="2200" /> <objectChange node="cherry_main_component1" centerOfMassActive="0 0.2 0" /> </smartBoxWeightConfiguration> <smartBoxWeightConfiguration name="$l10n_configuration_smartBoxWeight2400" price="4000"> <objectChange node="cherry_main_component1" massActive="2400" /> <objectChange node="cherry_main_component1" centerOfMassActive="0 0.2 0" /> </smartBoxWeightConfiguration> </smartBoxWeightConfigurations> Ok now when when have all the part to make it work lets say i wanted the menu in the shop say Cherry Design instead of smartbox design i would just change this line in l10n <text name="configuration_smartBoxDesign" text="Smartbox Design" /> to <text name="configuration_smartBoxDesign" text="Cherry Design" /> and that is applicable on all parts referenced in l10n, you can change everting to have a new name but that can be a lot of work and really not needed as long you don't lose track of what is what 😉 Link to comment Share on other sites More sharing options...
MkM Posted January 27, 2021 Share Posted January 27, 2021 but if i changed in viehcle xml what would happen ? well if something changed there that have connection to moddesc/l10n it would break if not also changed in there 1 Link to comment Share on other sites More sharing options...
bdbssb Posted January 27, 2021 Share Posted January 27, 2021 Thank you for the explaination. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now