defold / editor2-issues

DEPRECATED
44 stars 4 forks source link

If there is a file in the common bundle resources and a different file in a platform specific bundle resources folder then the platform specific one should be the one used when bundling. #2707

Open subsoap opened 5 years ago

subsoap commented 5 years ago

Currently this kind of setup produces a conflict error when bundling

2019-08-16 15_49_33-Window

subsoap commented 5 years ago

The reason for this would be to make platform specific files a little easier to deal with. For example, FMOD audio banks - for desktop targets they can be high quality, but for mobile we must use a compressed version. So in this case I would put the 80MB version in common, and the 30MB version in the Android and iOS folders, and pc for win/mac/linux. It would be even better if there was a mobile folder option. Then the precedence would be for example android > mobile > common. That way obviously I could just put the 30MB version of audio banks into the mobile folder for bundle resources and not have 2 copies.

JCash commented 5 years ago

I think this feature is important, but also quite complicated to design in a way that fits each game's needs.

Currently, the workaround is to use extra project settings files, in combination with project.bundle_resources and project.bundle_exclude_resources

E.g. :

java -jar bob.jar --settings mobile.properties --release.properties ...