I kinda want to make a game that’s controlled by plugging and unplugging a gamepad now.
Which version of Facebook NE works with this engine version?
Oops, accidentally clicked the wrong reply button…
Since the update to the new editor version 1.2.157 my bundle resources defined in the game.project are ignored. So my adaptive icon for Android (https://github.com/britzl/defold-adaptive_icons) is no longer included in the APK.
Can you tell me what the new path must look like for it to work again?
Hype!
@johann.ulbrich I’m sorry to hear that this is no longer working for you. It really still should work the same way. What’s the path you have set for bundle resources?
The v1.3 version of the extension is the official one currently. We’re still working on the v2.0 version.
@johann.ulbrich Sorry to hear you got trioubles with bundling now.
Here’s a setup from a project we have, which I tested with and the apk seems to be as expected.
In the game.project file:
[project]
bundle_resources = /assets/bundle
In the project:
/assets
/bundle
/android
/res
/drawable-anydpi-v26
...
/mipmap-hdpi-v4
...
And when printing the contents (unzip -l game.apk
):
8940 06-25-2019 08:45 AndroidManifest.xml
552 06-25-2019 08:45 res/drawable-anydpi-v26/icon.xml
8497 06-25-2019 08:45 res/mipmap-hdpi-v4/ic_launcher_bg.png
1548 06-25-2019 08:45 res/mipmap-hdpi-v4/ic_launcher_fg.png
4248 06-25-2019 08:45 res/mipmap-mdpi-v4/ic_launcher_bg.png
1164 06-25-2019 08:45 res/mipmap-mdpi-v4/ic_launcher_fg.png
13555 06-25-2019 08:45 res/mipmap-xhdpi-v4/ic_launcher_bg.png
2775 06-25-2019 08:45 res/mipmap-xhdpi-v4/ic_launcher_fg.png
26457 06-25-2019 08:45 res/mipmap-xxhdpi-v4/ic_launcher_bg.png
5052 06-25-2019 08:45 res/mipmap-xxhdpi-v4/ic_launcher_fg.png
41260 06-25-2019 08:45 res/mipmap-xxxhdpi-v4/ic_launcher_bg.png
6848 06-25-2019 08:45 res/mipmap-xxxhdpi-v4/ic_launcher_fg.png
...
What does your setup look like?
What error do you get?
What does your apk listing look like?
My configuration looks exactly like yours. When I build it in editor 1.2.156, the folders are included. If I build it in the new editor, these folders are missing.
I build the same project each time. The only difference is the Facebook extension. I have to remove it in 1.2.156, otherwise I get an error when building.
Regarding the facebook extension, make sure you use v1.3, since the v2.0 isn’t ready yet.
For the bundling issue, perhaps you can make a minimal repro project to share with us to make it easier to debug?
Strange. Can you trim this down to a minimal example to share?
I can reproduce the behavior with your Adaptive Icon demo project: https://github.com/britzl/defold-adaptive_icons
Sounds related to Issue-4215 (#4215) (the difference between Windows and MacOS bundling pipeline in 1.2.157)
Faced with same problem when bundle for HTML5 platform on 1.2.157 Win10 Editor
Looks like replacing “/folder” with “folder” (without leading slash) can solve it.
Just a quick update, I’m looking into the issues with bundle resources on Android.
If it’s a blocker for you, please use previously released editor (1.2.156) while we work on a fix:
- macOS: http://d.defold.com/archive/67b68f1e1ac26a3385fb511cdce520fe52387bb0/stable/editor2/Defold-x86_64-darwin.dmg
- Windows: http://d.defold.com/archive/67b68f1e1ac26a3385fb511cdce520fe52387bb0/stable/editor2/Defold-x86_64-win32.zip
- Linux: http://d.defold.com/archive/67b68f1e1ac26a3385fb511cdce520fe52387bb0/stable/editor2/Defold-x86_64-linux.zip
Any plans on adding runtime detection of gamepads and let users to map them?
Yes, ideas, but nothing designed or concrete planned currently. Might give it a shot on an exploration day.
Was in this version the searching in game.project introduced too? I think it appeared after the update recently it’s a great feature! I won’t need to switch to atom or slide through the whole list again! thanks!
An update regarding the issue with bundling Android from Windows (#4215):
We have a fix ready and will probably release a new stable in a few days that includes this fix and a few more bug fixes.