cwtools-vscode icon indicating copy to clipboard operation
cwtools-vscode copied to clipboard

[HOI4] False Error when using 'num_faction_members' "Expecting an integer, got from.num_faction_members"

Open Wehrmachtserdbeere opened this issue 1 year ago • 1 comments

In an Event's ai_chance, when trying to compare faction members, it gives an incorrect error.

			modifier = {
				add = -10
				num_faction_members > FROM.num_faction_members
			}

I checked and it does not cause an in-game error.

Wehrmachtserdbeere avatar Jun 11 '24 19:06 Wehrmachtserdbeere

I've updated config to resolve the issue. The fix will be available in https://github.com/cwtools/cwtools-hoi4-config/pull/189

Please use https://github.com/cwtools/cwtools-hoi4-config/issues to report hoi4-related issues

Pelmen323 avatar Jun 24 '24 20:06 Pelmen323