Defold: Custom resources not worked. When project have multiple *.project files

Created on 13 Feb 2021  Â·  5Comments  Â·  Source: defold/defold

Custom resources not worked. When project have multiple *.project files

I use multiple .project file.
1)game.project is base
2)debug_game.project for dev build
3)release_game.project for prod build
4)test_game.project for running tests

All worked ok before i add custom resources.
1)i add custom resources only in game.project. custom_resources = assets/levels/json
2)Try bundle or build html
3)I get message /assets/levels/json/1.json
Conflicting output resource 'build/default/assets/levels/json/1.json‘ generated by the following input files: [assets/levels/json/1.json, assets/levels/json/2.json, assets/levels/json/3.json, assets/levels/json/4.json, assets/levels/json/5.json, assets/levels/json/6.json, assets/levels/json/7.json, assets/levels/json/8.json] <-> [assets/levels/json/1.json, assets/levels/json/2.json, assets/levels/json/3.json, assets/levels/json/4.json, assets/levels/json/5.json, assets/levels/json/6.json, assets/levels/json/7.json, assets/levels/json/8.json]

3.1)If i add folder that not exist. I get that error.
Conflicting output resource 'build/default/assets/levels/json/sss‘ generated by the following input files: [assets/levels/json/sss] <-> [assets/levels/json/sss]

4)Moving that project files from root to another folder not helped.

5)I rename them from *.project to *.project_settings.
Now it helped.














Build time2021-02-08T09:09:39.603768
Defold channeleditor-alpha
Defold editor sha9892f06543413f700997f15be240cd8078ba4803
Defold engine sha5209b50cf4bf8e925cb4c32fd0bde6c53fc85a66
Defold version1.2.179
GPUGeForce GTX 1070 Ti/PCIe/SSE2
GPU Driver4.6.0 NVIDIA 461.40
Java version11.0.1+13
OS archamd64
OS nameWindows 10
OS version10.0

bob

All 5 comments

There may only be one .project file in a project.

5)I rename them from *.project to *.project_settings.
Now it helped.

So it's working now?

Yes it working. When I rename.

But it also worked, with multiple project files, before I add custom resources))
Also error message is not helped)

Maybe add some error or warning when there are multiple project files?

From Bob doc
--settings a path to a game project settings file. more than one occurrance are allowed. the settings files are applied left to right.

Maybe add some warning, to user. That such files, can't be named as .project. When I read, i think that I need create settings1.project

I do not think, that Bob should worked with multiple files. It is ok, that. .project is single file.

I think that error should be more correct.
Something like, can't build there are more then one project file.

That error not helped understand the problem)
Conflicting output resource 'build/default/assets/levels/json/sss‘ generated by the following input files: [assets/levels/json/sss] <-> [assets/levels/json/sss]

Was this page helpful?
0 / 5 - 0 ratings