Game Development Community

DSOs in Android assets folder

by redbarndan · in Torque 2D Professional · 04/30/2014 (10:18 am) · 3 replies

Does Android support dso files in the assets folder? I tried compiling the .cs files into .dso as used by my iOS app and then copying these into the assets folder but I get the following error.

04-30 12:51:11.973: I/Torque2D(6163): [2014/04/30 12:51:11] Module Manager: Cannot load explicit module Id 'Wonderful' at version Id '1' as it failed to have the script file '/modules/Wonderful/1/main.cs' loaded.

If I replace the .dso with the .cs equivalent all works fine. I'm curious since leaving these as .cs files would leave them exposed in the apk.

#1
04/30/2014 (1:03 pm)
Might be ignoring .dso files - I can't remember what the flag is but I'm pretty sure the default is set up to ignore them.
#2
04/30/2014 (1:28 pm)
Thanks Richard, that was it.

The main.cs file in my assets folder had
$Scripts::ignoreDSOs = true;

I had changed it in my project but forgot to copy it over to the assets folder.

Thanks again.
#3
05/01/2014 (6:12 am)
No problem!