Closed MoritzBrueckner closed 1 year ago
Hm is this still an issue? I can't seem to reproduce on my Windows 10 machine. :(
Ah no, it works now! Maybe it was just a certain commit in a submodule that caused this issue. Thanks again
I was able to reproduce the issue again -> activate Generate Relative Paths
in Armory's settings and the game will not build if the debug console is on.
A thing that got my attention is that relative paths have sometimes a different amount of ../
in khafile.js
:
project.addShaders("../../../Forks/ArmorySDKDEV/armory/Shaders/debug_draw/**");
project.addLibrary("../../../../Forks/ArmorySDKDEV/armory");
There are more entries in khafile.js
for both cases.
Maybe that's the problem?
A workaround is to replace the line https://github.com/armory3d/armory/blob/01920b99c76eceb690914ad6613854f03c6e8d83/blender/arm/write_data.py#L221
with
f.write(add_shaders(sdk_path + "armory/Shaders/debug_draw/line.frag.glsl", rel_path=rel_path))
f.write(add_shaders(sdk_path + "armory/Shaders/debug_draw/line.vert.glsl", rel_path=rel_path))
f.write(add_shaders(sdk_path + "armory/Shaders/debug_draw/line_deferred.frag.glsl", rel_path=rel_path))
So it seems that the **
in the khafile is causing the issue, although it only occurs when relative paths are used as already mentioned.
I have a similar problem that may be related after I updated to 2019.11: I need to manually clean cache before browser view after I made some changes like adding a material (tested with blender PBR and Armory PBR) to Suzanne AND activate debug console: the object doesn't display in browser runtime and it doesn't display in the debug scene tree too.
It's non-consistent, for some changes it works, for some others (LOD, material) it may work or not.
The problematic khafile entry mentioned above in https://github.com/armory3d/armory/issues/1410#issuecomment-544299517 does no longer exist in that form so this issue is no longer reproducible in Armory.
I tried to reproduce it in pure Kha as well in case it's still a Khamake issue but I also wasn't able to do so.
The build fails if I activate the debug console. Open any file (it seems not file related), activate the
arm_debug_console
flag and hit F5.Console output:
System Blender: 2.80.75 f6cb5f54494e Armory: SDK https://github.com/armory3d/armsdk/commit/cb6697d1496077171d35d96c1bc7c3de542ecc6b OS: Win 10 64bit v1903 Graphics card: Geforce GTX 750Ti