First of all I have two code files, dna.dm comes first before inc_dna.dm does in this order:
dna.dm
inc_dna.dm
Now in dna.dm I have this:
#include "inc_dna.dm"
generate_structures()
world<<"generated"
I then have in my inc_dna.dm,
proc/generate_structures()
I learned that it wasn't calling the procedure in my dna.dm file but instead going to inc_dna.dm to call it, thus having no effect when I call the procedure. First of all dna.dm comes first, but calls in the code from inc_dna.dm defining the generate procedure. I then define the generate_structures procedure after the include line but I think it is then reading from the next code file; inc_dna.dm thus having a reversing effect on the procedure definition.
This is my theory, but what I find interesting is I have the same setup under multiple procedures only they are defined in datums and are not global. They work perfectly...? Has anyone else run into this problem? I mean I can easily get around it but I just find these circumstances interesting.