Closed Butanium closed 1 year ago
Good point, if possible the tooltipmodule should be updated to either allow for this (hard), or detect the problem and print a warning.
I think that detecting the problem with a warning would be enough. Let me know if you fix this issue so that I can include the same warning in my next module (https://github.com/CodinGame/codingame-game-engine/pull/66)
In version v4.3.2, dependencies between modules will be checked on load.
@Butanium FYI, you can see what declared dependencies look like here: https://github.com/CodinGame/codingame-game-engine/commit/ecd08da23e0d809e36e5c9230e45ace8fa585aeb
@Butanium I hope replacing your camera module's name "c" with a longer "camera" won't overcharge your game.json files?
@Butanium I hope replacing your camera module's name "c" with a longer "camera" won't overcharge your game.json files?
No worries, I still use my local version of the module. Thanks for letting me know the declared dependency syntax (will use it in #66 )
The doc about the tooltip module says :
But, the module needs more than that, it needs to be loaded after the graphicEntityModule (so needs an higher index in
modules
from theconfig.js
). If you load it before the GraphicEntityModule, you get this error :Because the containers are not created.
I don't know if you noticed that and if we should change the doc.