In 2020, Frictional Games released the source code for Amnesia under a GPL license. If you are a developer looking to "generate" a new piece of the engine or a Total Conversion mod, this is your best starting point.
Open the custom_stories folder. Extract your .zip file into a new subfolder here. File: Amnesia.The.Dark.Descent.v1.41b.zip ...
If you have a .zip file for a and want to "generate" it in your game: In 2020, Frictional Games released the source code