dl_studios
Topic Author
Posts: 13
Joined: 24 Sep 2014, 00:31

Can not select DX9

27 Feb 2015, 22:36

I'm Getting this error when trying to build for windows on my mac: Assets/Editor/NoesisGUI/Platform_.cs(5,0): error CS1029: #error: 'DirectX is not active! Please, activate it in Window -> NoesisGUI -> Settings'

I go to Window -> NoesisGUI -> Settings. I see the check box but is greyed out and unclickable. https://www.dropbox.com/s/sdtam7c19dzoj ... M.png?dl=0

My build settings are set to Windows x86. I do not have directx113D selected in the player.

The only asset in the project is Noesis, which leads me to believe that it is something between the interaction between Unity and Noesis that is not working.

I'm using the latest asset store version of Noesis on Unity version 4.6.3.1.

Any suggestions on how to fix this would be appreciated.

Thank you.

Note: this bug is hitting us at a particularly bad time as we need a windows build by monday. Any priority you can give to this issue would be greatly appreciated.
 
User avatar
sfernandez
Site Admin
Posts: 1912
Joined: 22 Dec 2011, 19:20

Re: Can not select DX9

28 Feb 2015, 10:31

Hi,

Unfortunately it is not possible now to generate NoesisGUI resources for DirectX from a Mac, only GL resources.
But there is something wrong with our code, because it should be possible at least to generate a Windows GL build from a Mac.

To generate a Windows GL build, please follow these steps to avoid that error message:
  • Delete Assets/Editor/NoesisGUI/Platform_.cs file.
  • Open Assets/Editor/NoesisGUI/NoesisSettings.cs and comment lines 116 to 150, so Platform_.cs is not generated again
  • Open Window -> NoesisGUI -> Settings window, and make sure GL is selected.
  • Click the Build button to generate NoesisGUI GL resources.
  • Open File -> Build Settings... window, select PC, Mac and Linux standalone.
  • Select the Windows x86 option.
  • Click the Build button.
Let me know if it is working, I have not access to a Mac machine right now to test it.

Greetings.

EDIT: Forget this message and read next post ;)
 
User avatar
sfernandez
Site Admin
Posts: 1912
Joined: 22 Dec 2011, 19:20

Re: Can not select DX9

28 Feb 2015, 13:00

Hi,

I've been thinking about this issue because there shouldn't be real technical problems to generate DX resources from a Mac machine. Although right now we are not allowing it by disabling the DX9 platform.

Please forget my previous post and follow these steps to allow building DX and GL resources for Windows from a Mac machine:
  • Delete Assets/Editor/NoesisGUI/Platform_.cs file.
  • Open Assets/Editor/NoesisGUI/NoesisSettings.cs and comment lines 116 to 150, so Platform_.cs is not generated again.
  • In Assets/Editor/NoesisGUI/NoesisSettings.cs comment also lines 223 to 227, so DX9 checkbox can be clicked.
  • Open Window -> NoesisGUI -> Settings window, and make sure DX9 and GL are selected.
  • Click the Build button to generate NoesisGUI DX9 and GL resources.
  • Open File -> Build Settings... window, select PC, Mac and Linux standalone.
  • Select the Windows x86 option.
  • Click the Build button.
As before, let me know if it is working, it should be :)

Bye.
 
dl_studios
Topic Author
Posts: 13
Joined: 24 Sep 2014, 00:31

Re: Can not select DX9

09 Mar 2015, 18:43

I can confirm that this fixed the issue. Thank you so much for your quick response. It was very helpful.

Who is online

Users browsing this forum: No registered users and 2 guests