PDA

View Full Version : getModules()



Irian
May 4th, 2007, 19:57
Hi,

can Modules.getModules() be ever nil? I've got one working module, which can be displayed, but sometimes - for example after reloading the campaign - the console tells me, that getModules() (in moduleselection) is nil (and I don't think, that this should be the case :-). But it can't be nil, because there surely IS one module - is there a known bug with reloading the campagain and the modules?

Edit: This also happens with the D20 ruleset, so I think it's a bug :-) Try it: Open ModuleSelection (the small book icon), use /reload and try to open it again - it shows an error.

Flo

Goblin-King
May 7th, 2007, 08:20
Modules.getModules() should never return nil. Reloading is actually still officially a feature in experimentation, so there might be some kinks like these. It's provided as a convenience mostly. I would recommend using "/reload ruleset", as it is probably the most tested. If something funny happens, reload the application.