ink icon indicating copy to clipboard operation
ink copied to clipboard

TagsAtStartOfFlowContainerWithPathString skipping tags for knots with a parameter

Open Rhuantavan opened this issue 2 years ago • 2 comments

I have encountered an issue when tags are ignored by TagsForContentAtPath(string path) for a knot that contains a parameter. Example:

=== Util_DigMound(container_id) === #MiniNarrative "It looks like something's buried here," PARTY_RAND said<>

I have narrowed the problem to TagsAtStartOfFlowContainerWithPathString in Story.cs. If the content begins with a variable assignment, the initial tags will be ignored. I have fixed the issue by adding:

var v = c as Runtime.VariableAssignment; if (v != null) { continue; }

just before

var command = c as Runtime.ControlCommand;

in the foreach loop.

Rhuantavan avatar Jul 03 '23 11:07 Rhuantavan

+1 on this issue in version 1.1.8. Thank you for the quick fix.

ShiJbey avatar Jul 02 '24 02:07 ShiJbey

Confirming this issue exists.

tichaelmurvey avatar Nov 03 '24 02:11 tichaelmurvey