Skip to content

Conversation

@GlassySundew
Copy link

fixed a bug in getSheetLines() if you referenced an in-list type from inside a custom type: Reflect.field could retrieve column data instead of an array
filled macro model data.sheets with actual data of in-list types
filled runtime model root.sheets with actual data of in-list types

@ncannasse
Copy link
Owner

I think that is not correct. You shouldn't set sheet lines as most of subsheets have empty lines data because their actual data is split into several objects and we don't want data duplication here.

@GlassySundew
Copy link
Author

GlassySundew commented Feb 16, 2025

Thank you for your response.
Pardon my ignorance, but macro code is hard for me to comprehend and I cannot find mentioned "split" subsheet data anywhere, I tried to create a reference to a subsheet that has a unique id with global scope and I only see string id in the debugger at the place.
If you write a custom type that references a subsheet, compilation will output an error (without the fix)

enum NpcResponseActionType {
    SetChain( response : npcResponse@responses );
}

@GlassySundew GlassySundew force-pushed the global-id-in-list-support branch from eac3add to b3d8b22 Compare October 6, 2025 08:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants