pzzxx Posted May 16, 2022 Posted May 16, 2022 I've been trying to develop a mod using AAF. Most of the resources I've found & other mods use this structure: I would assume this would work without issue as this seems to be the standard setup everyone uses and I can't find anything saying differently. AAF:AAF_API AAF_API Function StartupOrWhatever() AAF_API = Game.GetFormFromFile(0x00000F99, "AAF.esm") as AAF:AAF_API If !AAF_API utility.wait(0.1) Else RegisterEvents() Endif EndFunction However on compiling I receive compilation failed, followed by this: unknown type aaf:aaf_api I've also added the source scripts to my PPJ just in case you assume it's that. Maybe I've added the wrong directory? Does it need to point to one of the sub directories? It's the same directory layout as the main folder, however it only contains the source scripts. <Imports> <Import>vendor\f4se\Data\Scripts\Source\User</Import> <Import>vendor\looksmenu\Data\Scripts\source</Import> <Import>vendor\aaf\data\Scripts\Source</Import> <Import>E:\Steam\steamapps\common\Fallout 4\Data\Scripts\Source\Base</Import> <Import>E:\Steam\steamapps\common\Fallout 4\Data\Scripts\Source\User</Import> </Imports> I use a vendor file structure and copy the source scripts in there, I've also tried this direct to the AAF installation folder with the source scripts. Can anyone point to where I am severely f'ing up?
pzzxx Posted May 16, 2022 Author Posted May 16, 2022 Solved it, I was targetting /source rather than /source/user
Recommended Posts
Archived
This topic is now archived and is closed to further replies.