Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Creating a file in a subfolder means #include file is incorrect

When using the editor command to add code to your project (via File>Add Code to Project), if the file is placed in a subdirectory of the source directory, the includes to the games main header is not correctly updated.

Specifically, it needs a ../ prepended. It currently reads:

 #include "ProjectName.h"

but should read:

 #include "../ProjectName.h"

for files that are nested within one folder (obviously needs more for deeper folders/include the root directory directly).

Pretty minor annoyance, but annoying none the less!

Product Version: Not Selected
more ▼

asked Aug 08 '14 at 03:35 PM in Bug Reports

avatar image

646 44 59 91

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Which version?

It should detect whether the module header is Public or Private and include it appropriately (if it's Private it will need the path, if it's Public it shouldn't since all Public folders are always on the include path).

more ▼

answered Aug 08 '14 at 03:39 PM

avatar image

Jamie Dale STAFF
7.5k 177 67 305

avatar image thk123 Aug 08 '14 at 03:44 PM

Ah, I am a bit behind, version 4.2.1. It is just the game module, so there are no public/private folders. I suppose it defaults to private for game modules?

avatar image Jamie Dale STAFF Aug 08 '14 at 03:46 PM

I think it's 4.3+ which has the change I mentioned. I think that was also the version which changed the default to Public rather than Private... I'll check to make sure.

EDIT: Yeah, just tried this with a test project and it worked correctly.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question