Presets.ini builtIn Parameter List?

I am looking for documentation on what each number in the Presets.ini’s builtin lines represents. I have searched and found nothing on Google or via the search function on these forums.

Is there any documentation listing the arguments in the order they appear in the style=builtin line? If not, I’ll have to go read the preset.ini save code to figure it out.

I encountered the following “curruption” again, in one of my styles. I am trying to determine how to tell which parameter is overflowing/currupting and how to manually replace the individual bad parameters in this list.

style=builtin 0 1 30324,0,49768 11102,92,53864 2 -1828312037 2046883269 1176148761 17976,63486,65460 -251090687 17976,45059,59581 63487,64509,17926 6857,59376,63701 -134239743 45664,37633,59853 151056463 17152,63686,13240 62016,6176,62146 845478040 64203,26792,61496 -120205047 53756,62016,4896 1142228226 44729,39441,26704 -1190496094 -1694257421 -787987037 -121487104 -410711552 26914,45362,37389 -230677504 58751,40453,58760 62146,2048,63168 -1660079579 46260,46260,65535 0,0,65535

I am using the Proffie OS7.x branch on the git repo. (OS7.14 + a few bug fixes)

The parameters are based on Edit Mode’s arguments. Any Color Arg uses Rgb16 values, and other Arg uses an Integer (0 to 327678 typically), each value is separated by a single space, if an argument is unused a “~” is used to represent the argument. The order corresponds to the order here, beginning immediately after “builtin 0 1”

So first color “30324,0,49768” is BASE_COLOR_ARG, so on, in your example you have a lot of integers that don’t seem to be generated from Edit Mode and are quite higher than I’d expect, those would be where I’d start investigating.

This presets.ini was generated by the onboard Edit Mode menu. Specifically these config/props.

#include "proffieboard_v3_config.h"
...
#ifdef CONFIG_PROP
#include "../props/saber_fett263_buttons.h"
#endif

This is why i’m trying to investigate to see where the values go off the rails, as it might be some kind of overflow error in the prop or proffie itself.

So, if I did this right…

style=builtin 0 1 

30324,0,49768		// BASE_COLOR_ARG 
11102,92,53864		// ALT_COLOR_ARG 
2					// STYLE_OPTION_ARG 
-1828312037			// IGNITION_OPTION_ARG 
2046883269			// IGNITION_TIME_ARG 
1176148761			// IGNITION_DELAY_ARG 
17976,63486,65460	// IGNITION_COLOR_ARG 
-251090687 			// IGNITION_POWER_UP_ARG 
17976,45059,59581 	// BLAST_COLOR_ARG 
63487,64509,17926 	// CLASH_COLOR_ARG 
6857,59376,63701 	// LOCKUP_COLOR_ARG 
-134239743 			// LOCKUP_POSITION_ARG 
45664,37633,59853 	// DRAG_COLOR_ARG 
151056463 			// DRAG_SIZE_ARG 
17152,63686,13240 	// LB_COLOR_ARG 
62016,6176,62146 	// STAB_COLOR_ARG 
845478040 			// MELT_SIZE_ARG 
64203,26792,61496 	// SWING_COLOR_ARG 
-120205047 			// SWING_OPTION_ARG 
53756,62016,4896 	// EMITTER_COLOR_ARG 
1142228226 			// EMITTER_SIZE_ARG 
44729,39441,26704 	// PREON_COLOR_ARG 
-1190496094 			// PREON_OPTION_ARG 
-1694257421 			// PREON_SIZE_ARG 
-787987037 			// RETRACTION_OPTION_ARG 
-121487104 			// RETRACTION_TIME_ARG 
-410711552 			// RETRACTION_DELAY_ARG 
26914,45362,37389 	// RETRACTION_COLOR_ARG 
-230677504 			// RETRACTION_COOL_DOWN_ARG 
58751,40453,58760 	// POSTOFF_COLOR_ARG 
62146,2048,63168 	// OFF_COLOR_ARG 
-1660079579 			// OFF_OPTION_ARG 
46260,46260,65535 	// ALT_COLOR2_ARG 
0,0,65535			// ALT_COLOR3_ARG 

It looks like things go off the rails at Ignition Options Arg, and it looks like the style is also truncated, as these are missing

STYLE_OPTION2_ARG
STYLE_OPTION3_ARG
IGNITION_OPTION2_ARG
RETRACTION_OPTION2_ARG
LAST_ARG = RETRACTION_OPTION2_ARG, 

Q: When looking for other currupt styles in preset.ini, is any value being negative an indication? Should any of these values ever be a large negative number? If not, then I have several more to anylize.

EDIT: Another one went off the rails at RETRACTION_COOL_DOWN_ARG.

The menu cannot generate negative numbers, Edit Mode limits *_OPTION_ARG and *_SIZE_ARG values to (0 ~32768) if you go down from 0 it will be 32768 and if you go up from 32768 it will be 0. Time ARG can be 0 and up (still no negatives though, but *_TIME_ARG values can go above 32768, but you’d have to do a hell of a rotation to get some of those numbers.

ok, that’s what I thought. Then it’s definitely something causing some kind of overflow, or possibly NAN.

I’ll try to do some more testing to see if I can determine some exact steps to reproduce it.

Haven’t isolated a repro case yet, but I did compare some more of the currupted style presets.ini lines, and noticed that for a given value, the currupted number was identical.

For example, in every style that was currupted beyond RETRACTION_COOLDOWN_ARG, the value for that variable was -230677504, and OFF_OPTION_ARG is always -1660079579.

Will keep digging/testing.