x

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"

Turning off PhysX

Hi! I'm trying to figure out how to compile without PhysX.

In my game's Target.cs, I've set bCompilePhysX and bCompileAPEX to false. However, when I try to build, I get the error:

 ERROR: Unable to instantiate module 'Engine': APEX is enabled, without PhysX. This is not supported!

This appears to trigger when bCompilePhysX is false but bCompileAPEX is true. From logging, it appears after my project's Target is successfully setting bCompileAPEX to false, but by the time my game's module is instantiated, the Target rules that are passed in have bCompileAPEX set to true.

I can't seem to figure out what's setting the flag back to true. Any ideas?

Product Version: UE 4.19
Tags:
more ▼

asked Apr 18 '18 at 02:57 PM in Packaging & Deployment

avatar image

PhilBax
2 2 1 7

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

Well, that didn't take long. In UEBuildLinux.cs, the ValidateTarget() function overrides it. Don't know why I didn't find that in my search results.

The comment indicates the code is meant to turn off APEX/NvCloth for non-x86_64 builds, but the way it's written has the side effect of forcing them on for x86_64 builds.

Probably should '&&' the assignment with the existing value to prevent forcing it on. ;)

more ▼

answered Apr 18 '18 at 03:12 PM

avatar image

PhilBax
2 2 1 7

(comments are locked)
10|2000 characters needed characters left
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