All the fields known by the DFHack community are documented as XML files, and yes, I think the relations thing has changed over the years.
Where would these xml files? I can only see symbols and some files in stonesense folder.
In addition to using the XML files, you can also use gui/gm-editor to look at structures (which is often easier). For the unit structure, select any unit in a fortress (probably works in adventure mode as well) and invoke gui/gm-editor from the DFHack terminal. This allows you to browse the structure, and thus see what the current one looks like.
Thanks. I have ocd when it comes to dealing with problems in the code. To the point, where I can sit for two days straight doing nothing else. But I'm learning to deal with it by asking other people. Kind of works
Anyway.
The field following is there, but its nil and does not seem to be do anything.
After fixing the code, it seems like it is doing nothing now, but LUA keeps executing and now this:
unit_ref = df.general_ref_contains_unitst:new()
unit_ref.unit_id = unit.id
cage.general_refs:insert('#',unit_ref)
...causes everybody interested to follow the caged creature.
I'll comment it out and see if it works (previously as execution broke earlier, this block wasn't executing and at least my hunter ignored caged animal).
If I get this all working I'll upload whole this as a standalone package for anyone interested.
Edit:
...and they no longer follow the cage with an animal, but now game does not know how to get to this animal either.
Any quick way to clear their interest?