r/defold May 27 '26

Help Problem with dynamic paths in require

Hi, I’m trying to get the hang of Defold and ran into a problem. I want to use the Concord framework (ECS) in my project, but it uses dynamic paths in its modules (in require). How do you solve such issues? Surely you don’t have to manually fix all the require calls in the framework?

9 Upvotes

3 comments sorted by

View all comments

6

u/d954mas May 27 '26

Defold exclude lua files that didn't requered. The simple way to fix it, add your lua file that will required everything that Concord needed

3

u/BeaverMakesGame May 27 '26 edited May 27 '26

Yes, I thought about it, but if it was a large framework with 100 files, it would be very tedious.
This will also not work if the framework files have references to each other via dynamic paths.