netradiant-custom icon indicating copy to clipboard operation
netradiant-custom copied to clipboard

Choices also merge from FGD

Open sinewavey opened this issue 1 year ago • 4 comments

I have the following line in my FGD:

image

I've tried a few different combinations including 0 and 1, "Yes" and "No', etc. However, it looks like keys end up colliding here as well like spawnflags regardless of the above tweak.

image

Expected behavior shown in TrenchBroom with the same exact fgd:

image

Is this intentional?

sinewavey avatar May 15 '24 16:05 sinewavey

I'm looking at halflife.fgd and e.g. in @BaseClass base(Targetname,Global) = Breakable no collision of choices occurs 🤔

Garux avatar May 15 '24 16:05 Garux

ok, problem is triggered by equal 'qwe' strings, empty in your case

@BaseClass color(123 123 123) size( -8 -8 -8, 8 8 8 ) = Breakable
[
	material(choices) : "qwe" =
	[
		2: "Glass"
		3: "Wood"
	]
	explosion(choices) : "qwe" =
	[
		0: "Random"
		1: "Relative to Attack"
	]
]

@PointClass base(Breakable) = func_breakable : "Breakable Object" 
[
]

Garux avatar May 15 '24 16:05 Garux

Excellent - thank you! That closes this - we'll handle it on our side

sinewavey avatar May 15 '24 19:05 sinewavey

This is bug tho, somewhere matching is done by long name, while should use key name.

Garux avatar May 15 '24 21:05 Garux