aurora/lib/fj_add_are_struct.tpa
I think there are still a few minor discrepancies in this code; someone might want to doublecheck this:
- "WRITE_LONG fj_position + 0x2c fj_spawned" should be a WRITE_SHORT according to the latest NI...
- same goes for "WRITE_LONG fj_position + 0x34 fj_orientation"
- needs a "WRITE_SHORT fj_position + 0x3E ..." to account for Movement Distance for Actors
- missing WRITEs for "creature duration", "wander distance", "movement distance" and "probability (day)" for Spawn Points
- "WRITE_ASCIIE fj_position + 0x9c ~%fj_travel_trigger%~ #16" -- shouldn't this be #24?
- "WRITE_LONG fj_position + 0xbc fj_dialogue_strref" -- i think the offset is fj_position + 0xb4 for Doors
- "WRITE_ASCIIE fj_position + 0xc0 ~%fj_dialogue_resref%~" should be fj_position + 0xb8 for Doors
- "WRITE_LONG fj_position + 0x10 fj_level_base" should probably be split to two WRITE_SHORTs (explosion frequency & duration) for Projectiles
Also, since the code is not taking into account "CRE struct offset" & "CRE struct size" for each actor, it's probably worth mentioning that if you try to add any actors (or maybe even other structures) to areas with embedded creatures, the entire area will likely get corrupt... I remember a mod or two in a mega install that had those types of areas.