everytime i select the entities layer in WM, i get a long list of entities, most of which are base classes that're ununsed.
anyway to selectively load entity names? maybe add a tag in the .js file of each entity, such as "showInWeltmeister:true", and then filter from there.
Someone in IRC had the opposite problem where entities in sub-directories weren't showing up in WM. The solution was to alter lib/weltmeister/config.js and add the paths to the entityFiles as an array.
'entityFiles': ['lib/game/entities/*.js', 'lib/game/entities/subfolder/*.js'],
So if you don't want to have them show up at all in WM you could just put them in a different directory that WM isn't checking. Of course you'd have to re-path them in the definition.
Might be a better solution out there... I'm just connecting some dots.
1 decade ago
by gxxaxx
Thanks for the heads up on the config edit.
I've been thinking that it would be nice to group my entities by type -- monsters, triggers, effects, etc.
1 decade ago
by Arantor
Why not just add a prefix to them? E.g. EntityMsBlob, EntityMsSpike, EntityTgTrigger1 etc?
It's not what you were thinking of, certainly but it's something that's viable I guess.
Also, I seem to remember something from the tutorial video; it only looks for entities whose name matches the file name, e.g. EntityPlayer needs to be in the relevant folder under player.js. If you rename the entity itself (but leave all the binding/loading stuff alone, so that the ig.module and requires calls are as they were), I believe it'll not be shown in the editor.
Page 1 of 1
« first
« previous
next ›
last »