Skip to content

Is it possible to include haks and erfs in mod target? #97

Answered by squattingmonk
radiantone asked this question in Q&A
Discussion options

You must be logged in to vote

erf files cannot be included in a module, but the files within them can be. What you need to do is extract the erf into your source tree and include those files in your module.

Example adapted from my Core Framework project:

[Sources]
include = "src/**/*.{nss,json}"

[Target]
name = "mod"
description = "A demo module showing the system in action"
file = "core_framework.mod"
exclude = "src/core/core_c_config.nss" # Use src/demo/core_c_config.nss instead

[Target]
name = "erf"
description = "An importable erf for use in new or existing modules"
file = "core_framework.erf"
exclude = "src/demo/*"

Note: in this example, the module-specific files live in the src/demo directory, so the erf targe…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by squattingmonk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants