Jump to content
  • Advertisement
Sign in to follow this  

#include in scriptbuilder addon may report wrong path on error

This topic is 1545 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts



I have noticed a minor issue with the scriptbuilder add-on when using include directives: if included files are missing, the reported path in the error message is a concatenation of the "current path" and the full path of the included file, which is awkward in most cases (like C:\MyDirectory\C:\MyOtherDirectory\missing_file.as" on Windows).


This is due to the fact that relative and absolute paths may be mixed when loading files. So I propose the simple modification in the attached patch. It's not perfect because it will report relative paths instead of full path when using LoadSectionFromFile with a path relative to the current path, but it avoids that wrong paths are reported in most other cases, so it seems a bit better than the current implementation until proper absolute/relative path management can be implemented.


What do you think?

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!