joshuha
July 9th, 2007, 19:40
This is confirmed bug although again it is probably rare that this will occur. Will give breakdown of how to replicate and what the issue is. The fix for this when it comes by Smiteworks should have no effect on how modules are produced. I may even come up with a coding solution in the base ruleset to fix the issue.
Steps to reproduce (using default d20 2.012 ruleset):
Create new campaign. I called mine AdventureX.
Create a story entry. enter a title and some description text.
/export the campaign. I used AdventureX as the mod/file name. Exported the story entries as Host.
Create another new campaign. I called mine Sandbox.
Click the story icon. Note here there are no tabs at all. Leave this window open.
Click the modules, open the AdventureX module.
Note that 1 tab now appears under the Story window. Click the tab if you don't see anything listed.
Click the modules button again. Close the AdventureX module.
Fantasy Grounds should now crash.
I am 99% sure the reason this is happening is because you are now trying to close what should be the default tab and this cause a database problem. The reason I say this in Step 5 above, if you create a story entry and delete it you now have the default tab now and forever in that campaign as it properly spawns the tab. When you open the module a second tab appears and everything works fine.
The easy fix for this is when a DB window like Story/Images/NPC/etc. is opened create a category tab. Right now it doesn't do that until the first entry is actually created. This would be pretty trivial to add in the windowclasses of those controls and I am guessing is what Smiteworks would do to fix the issue but could probably be worked around manually in the meantime.
Steps to reproduce (using default d20 2.012 ruleset):
Create new campaign. I called mine AdventureX.
Create a story entry. enter a title and some description text.
/export the campaign. I used AdventureX as the mod/file name. Exported the story entries as Host.
Create another new campaign. I called mine Sandbox.
Click the story icon. Note here there are no tabs at all. Leave this window open.
Click the modules, open the AdventureX module.
Note that 1 tab now appears under the Story window. Click the tab if you don't see anything listed.
Click the modules button again. Close the AdventureX module.
Fantasy Grounds should now crash.
I am 99% sure the reason this is happening is because you are now trying to close what should be the default tab and this cause a database problem. The reason I say this in Step 5 above, if you create a story entry and delete it you now have the default tab now and forever in that campaign as it properly spawns the tab. When you open the module a second tab appears and everything works fine.
The easy fix for this is when a DB window like Story/Images/NPC/etc. is opened create a category tab. Right now it doesn't do that until the first entry is actually created. This would be pretty trivial to add in the windowclasses of those controls and I am guessing is what Smiteworks would do to fix the issue but could probably be worked around manually in the meantime.