Bridge Commander Central
BC Forums => BC Scripting => Topic started by: KrrKs on September 11, 2009, 11:51:31 AM
-
So, i started scripting again and promptly ran into a problem...
I wrote this little messy script that should let you select your QB startship via UMM from Mainmenu. However a 'for' clause which adds shipButtons seems to cause an Attribut error in KMs Registry class.
The strange thing is, I could add a infinite number of buttons without that clause and anything is fine, but with the for clause as soon as I click on "customize" the options vanish.
Any help appreciated
My file, the Registry class and console log are attached.
#############
Edit:
Args I'm so stupid forget about that, now
If I knew how to return a SubMenu with a given Text in Mainmenu that would be helpfull... tomorrow
-
That's strange. The script works , but when i select a ship, do something else and then click on "options" a second time i get an imediate crash to desktop. No error window, nothing in console log. :wtf
I have no Idea why, so if anyone could have a look at this?
-
A better way would to be use FoundationMenu, in that case, you get SubMenu functionality for free (if the user has it installed).
Look in QuickBattle.py on how to use it.
I've also worked on this type of mod before, and hope to complete it whenever I find some time to do it.
-
Ahh, should have looked more carefull in there. Thank you, I try that :)
Edit:
Ahh, it works stabile with around 80 % less code! So i guess it was an Event overflow that killed my BC. Again thanks