Duplicating then renaming a collision object causes build errors

Hello!

This is a bit difficult to capture in the subject line, so let me try to explain. I have a lot of enemies in my game, and the file structure looks something like this:
image

The easiest way for me to create a new type of enemy is just to copy the entire “knight” folder, then rename all the files. I make sure that the references are updated, e.g. the new_enemy.factory file will reference new_enemy.go.

The issue arises when I try to build, I get errors indicating that “knight.collisionobject” can not be found, even when no file is referencing it. The “solution” is to put a “knight.collisionobject” file in every duplicated folder. So, for instance, when I have created a new enemy called “ogre”, the folder looks like this:
image

If I do not structure the folder like this, I get build errors like the below:
image

Please note that I was not having issues like this when using Editor 1.

Any ideas? Thanks in advance!

It sounds like an editor bug. Have you reported it via Help->Report Issue?

I have now! Thanks for the suggestion.

2 Likes