Bridge Commander Central

BC Forums => BC Technical Support => Topic started by: FekLeyr Targ on March 22, 2008, 04:45:32 AM

Title: After QB's start, everything acts strange
Post by: FekLeyr Targ on March 22, 2008, 04:45:32 AM
Hi,
My problem is that one: After I start QB, the viewscreen adapts frames from the set (the console too) and no crewmen is responding. After I restart BC, the D3D Render Creation Failure. (deleting the options.cfg helps)
I've looked into the console dump and I found many strange things which haven't to do anything with the ship scripts (as stated in the FAQ)
The mods I had installed before the problem occured the 1st time:
http://bridgecommander.filefront.com/file/Interceptor;88138
http://bridgecommander.filefront.com/file/First_Contact_Bridge;88085
http://bridgecommander.filefront.com/file/TOS_Akira;87952

That the console says:
Code: [Select]
AttributeError: PreLoadAssets
Traceback (innermost last):
  File ".\Scripts\QuickBattle\QuickBattle.py", line 712, in Initialize
    Systems.Belaruz.Belaruz4.Initialize()
  File ".\Scripts\Systems\Belaruz\Belaruz4.py", line 29, in Initialize
    Belaruz4_S.Initialize(pSet)
  File ".\Scripts\Custom\NanoFXv2\SpecialFX\Systems\Belaruz\Belaruz4_S.py", line 53, in Initialize
    pAsteroid = loadspacehelper.CreateShip("Asteroid", pBelaruz4, sAsteroidName, sPlacementName)
  File ".\Scripts\Custom\Autoload\000-Fixes20030402-FoundationRedirect.py", line 88, in CreateShip
    debug("Ship %s" % ( pcScript))
NameError: debug
Traceback (innermost last):
  File ".\Scripts\Custom\Autoload\000-Fixes20030305-FoundationTriggers.py", line 22, in __call__
    i(pObject, pEvent)
  File ".\Scripts\Custom\Autoload\LoadEngineeringExtension.py", line 240, in __call__
    LoadQBautostart.ImportQBautostart()
  File ".\Scripts\Custom\Autoload\LoadEngineeringExtension.py", line 218, in ImportQBautostart
    pModule.init() # init the file
  File ".\Scripts\Custom\QBautostart\AdvancedTorpedoManagement.py", line 51, in init
    firstcheck()
  File ".\Scripts\Custom\QBautostart\AdvancedTorpedoManagement.py", line 144, in firstcheck
    pTorpedoSystem = pPlayer.GetTorpedoSystem()
AttributeError: 'None' object has no attribute 'GetTorpedoSystem'
Traceback (innermost last):
  File ".\Scripts\Custom\Autoload\RealTech.py", line 48, in __call__
    Load()
  File ".\Scripts\Custom\Autoload\RealTech.py", line 41, in Load
    Custom.RealTech.RealTechLibary.Load(dotPrefix + Addonfile)
NameError: Custom
Traceback (innermost last):
  File ".\Scripts\Custom\Autoload\zzzHyperdrive.py", line 23, in __call__
    Custom.Hyperdrive.HyperdriveModule.handlers()
  File ".\Scripts\Custom\Hyperdrive\HyperdriveModule.py", line 175, in handlers
    init()
  File ".\Scripts\Custom\Hyperdrive\HyperdriveModule.py", line 97, in init
    pSet = pPlayer.GetContainingSet()
AttributeError: 'None' object has no attribute 'GetContainingSet'
Traceback (innermost last):
  File ".\Scripts\Custom\Autoload\zzzSlipstreamMode.py", line 24, in __call__
    Custom.Slipstream.SlipstreamModule.handlers()
  File ".\Scripts\Custom\Slipstream\SlipstreamModule.py", line 181, in handlers
    init()
  File ".\Scripts\Custom\Slipstream\SlipstreamModule.py", line 103, in init
    pSet = pPlayer.GetContainingSet()
AttributeError: 'None' object has no attribute 'GetContainingSet'
Traceback (innermost last):
  File ".\Scripts\Custom\Autoload\BPSoundsv2.py", line 146, in MissionStart
    MuteSpace()
  File ".\Scripts\Custom\Autoload\BPSoundsv2.py", line 189, in MuteSpace
    pSpace = App.TGSoundRegion_GetRegion(App.Game_GetCurrentPlayer().GetContainingSet().GetName())
AttributeError: 'None' object has no attribute 'GetContainingSet'
Traceback (innermost last):
  File ".\Scripts\UIHelpers.py", line 300, in CreateRightRoundedButton
    fScreenRatio = App.g_kIconManager.GetScreenWidth () / App.g_kIconManager.GetScreenHeight ()
ZeroDivisionError: float division
Title: Re: After QB's start, everything acts strange
Post by: MLeo on March 22, 2008, 09:26:27 AM
Install the bcdebug file first, then try again.

Instructions + file here:
http://bc-central.net/forums/index.php?topic=2214.msg39124#msg39124
Title: Re: After QB's start, everything acts strange
Post by: FekLeyr Targ on March 22, 2008, 01:30:10 PM
Thanks, but I already have bcdebug.py. But I've still tried it with your bcdebug.py, but no effect. I've tried it with all mutators off and the problem hasn't occured. I thing a script must have an error. I'll have a look.
Here's the newest console report.
Code: [Select]
AttributeError: PreLoadAssets
AttributeError: PreLoadAssets
Traceback (innermost last):
  File ".\Scripts\QuickBattle\QuickBattle.py", line 712, in Initialize
    Systems.Belaruz.Belaruz4.Initialize()
  File ".\Scripts\Systems\Belaruz\Belaruz4.py", line 29, in Initialize
    Belaruz4_S.Initialize(pSet)
  File ".\Scripts\Custom\NanoFXv2\SpecialFX\Systems\Belaruz\Belaruz4_S.py", line 53, in Initialize
    pAsteroid = loadspacehelper.CreateShip("Asteroid", pBelaruz4, sAsteroidName, sPlacementName)
  File ".\Scripts\Custom\Autoload\000-Fixes20030402-FoundationRedirect.py", line 88, in CreateShip
    debug("Ship %s" % ( pcScript))
NameError: debug
Traceback (innermost last):
  File ".\Scripts\Custom\Autoload\zzz_DS9FX.py", line 61, in __call__
    Handler(pObject, pEvent)
  File ".\Scripts\Custom\Autoload\zzz_DS9FX.py", line 185, in Handler
    pSet = pPlayer.GetContainingSet()
AttributeError: 'None' object has no attribute 'GetContainingSet'
Traceback (innermost last):
  File ".\Scripts\Custom\Autoload\zzz_DS9FX.py", line 61, in __call__
    Handler(pObject, pEvent)
  File ".\Scripts\Custom\Autoload\zzz_DS9FX.py", line 185, in Handler
    pSet = pPlayer.GetContainingSet()
AttributeError: 'None' object has no attribute 'GetContainingSet'
Traceback (innermost last):
  File ".\Scripts\Custom\Autoload\zzz_DS9FX.py", line 61, in __call__
    Handler(pObject, pEvent)
  File ".\Scripts\Custom\Autoload\zzz_DS9FX.py", line 185, in Handler
    pSet = pPlayer.GetContainingSet()
AttributeError: 'None' object has no attribute 'GetContainingSet'
Traceback (innermost last):
  File ".\Scripts\Custom\Autoload\zzz_DS9FX.py", line 61, in __call__
    Handler(pObject, pEvent)
  File ".\Scripts\Custom\Autoload\zzz_DS9FX.py", line 185, in Handler
    pSet = pPlayer.GetContainingSet()
AttributeError: 'None' object has no attribute 'GetContainingSet'
Traceback (innermost last):
  File ".\Scripts\Custom\Autoload\zzz_DS9FX.py", line 61, in __call__
    Handler(pObject, pEvent)
  File ".\Scripts\Custom\Autoload\zzz_DS9FX.py", line 185, in Handler
    pSet = pPlayer.GetContainingSet()
AttributeError: 'None' object has no attribute 'GetContainingSet'
Traceback (innermost last):
  File ".\Scripts\Custom\Autoload\zzz_DS9FX.py", line 61, in __call__
    Handler(pObject, pEvent)
  File ".\Scripts\Custom\Autoload\zzz_DS9FX.py", line 185, in Handler
    pSet = pPlayer.GetContainingSet()
AttributeError: 'None' object has no attribute 'GetContainingSet'
Traceback (innermost last):
  File ".\Scripts\Custom\Autoload\zzz_DS9FX.py", line 61, in __call__
    Handler(pObject, pEvent)
  File ".\Scripts\Custom\Autoload\zzz_DS9FX.py", line 185, in Handler
    pSet = pPlayer.GetContainingSet()
AttributeError: 'None' object has no attribute 'GetContainingSet'
Traceback (innermost last):
  File ".\Scripts\Custom\Autoload\zzz_DS9FX.py", line 61, in __call__
    Handler(pObject, pEvent)
  File ".\Scripts\Custom\Autoload\zzz_DS9FX.py", line 185, in Handler
    pSet = pPlayer.GetContainingSet()
AttributeError: 'None' object has no attribute 'GetContainingSet'
Traceback (innermost last):
  File ".\Scripts\Custom\Autoload\zzz_DS9FX.py", line 61, in __call__
    Handler(pObject, pEvent)
  File ".\Scripts\Custom\Autoload\zzz_DS9FX.py", line 185, in Handler
    pSet = pPlayer.GetContainingSet()
AttributeError: 'None' object has no attribute 'GetContainingSet'
Traceback (innermost last):
  File ".\Scripts\Custom\Autoload\zzz_DS9FX.py", line 61, in __call__
    Handler(pObject, pEvent)
  File ".\Scripts\Custom\Autoload\zzz_DS9FX.py", line 185, in Handler
    pSet = pPlayer.GetContainingSet()
AttributeError: 'None' object has no attribute 'GetContainingSet'
Traceback (innermost last):
  File ".\Scripts\Custom\Autoload\zzz_DS9FX.py", line 61, in __call__
    Handler(pObject, pEvent)
  File ".\Scripts\Custom\Autoload\zzz_DS9FX.py", line 185, in Handler
    pSet = pPlayer.GetContainingSet()
AttributeError: 'None' object has no attribute 'GetContainingSet'
Traceback (innermost last):
  File ".\Scripts\Custom\Autoload\zzz_DS9FX.py", line 61, in __call__
    Handler(pObject, pEvent)
  File ".\Scripts\Custom\Autoload\zzz_DS9FX.py", line 185, in Handler
    pSet = pPlayer.GetContainingSet()
AttributeError: 'None' object has no attribute 'GetContainingSet'
Traceback (innermost last):
  File ".\Scripts\Custom\Autoload\zzz_DS9FX.py", line 61, in __call__
    Handler(pObject, pEvent)
  File ".\Scripts\Custom\Autoload\zzz_DS9FX.py", line 185, in Handler
    pSet = pPlayer.GetContainingSet()
AttributeError: 'None' object has no attribute 'GetContainingSet'
Traceback (innermost last):
  File ".\Scripts\Custom\Autoload\zzz_DS9FX.py", line 61, in __call__
    Handler(pObject, pEvent)
  File ".\Scripts\Custom\Autoload\zzz_DS9FX.py", line 185, in Handler
    pSet = pPlayer.GetContainingSet()
AttributeError: 'None' object has no attribute 'GetContainingSet'
Traceback (innermost last):
  File ".\Scripts\Custom\Autoload\zzz_DS9FX.py", line 61, in __call__
    Handler(pObject, pEvent)
  File ".\Scripts\Custom\Autoload\zzz_DS9FX.py", line 185, in Handler
    pSet = pPlayer.GetContainingSet()
AttributeError: 'None' object has no attribute 'GetContainingSet'
Traceback (innermost last):
  File ".\Scripts\Custom\Autoload\zzz_DS9FX.py", line 61, in __call__
    Handler(pObject, pEvent)
  File ".\Scripts\Custom\Autoload\zzz_DS9FX.py", line 185, in Handler
    pSet = pPlayer.GetContainingSet()
AttributeError: 'None' object has no attribute 'GetContainingSet'
Traceback (innermost last):
  File ".\Scripts\Custom\Autoload\zzz_DS9FX.py", line 61, in __call__
    Handler(pObject, pEvent)
  File ".\Scripts\Custom\Autoload\zzz_DS9FX.py", line 185, in Handler
    pSet = pPlayer.GetContainingSet()
AttributeError: 'None' object has no attribute 'GetContainingSet'
Traceback (innermost last):
  File ".\Scripts\Custom\Autoload\zzz_DS9FX.py", line 61, in __call__
    Handler(pObject, pEvent)
  File ".\Scripts\Custom\Autoload\zzz_DS9FX.py", line 185, in Handler
    pSet = pPlayer.GetContainingSet()
AttributeError: 'None' object has no attribute 'GetContainingSet'
Traceback (innermost last):
  File ".\Scripts\Custom\Autoload\zzz_DS9FX.py", line 61, in __call__
    Handler(pObject, pEvent)
  File ".\Scripts\Custom\Autoload\zzz_DS9FX.py", line 185, in Handler
    pSet = pPlayer.GetContainingSet()
AttributeError: 'None' object has no attribute 'GetContainingSet'
Traceback (innermost last):
  File ".\Scripts\Custom\Autoload\zzz_DS9FX.py", line 61, in __call__
    Handler(pObject, pEvent)
  File ".\Scripts\Custom\Autoload\zzz_DS9FX.py", line 185, in Handler
    pSet = pPlayer.GetContainingSet()
AttributeError: 'None' object has no attribute 'GetContainingSet'
Traceback (innermost last):
  File ".\Scripts\Custom\Autoload\000-Fixes20030305-FoundationTriggers.py", line 22, in __call__
    i(pObject, pEvent)
  File ".\Scripts\Custom\Autoload\LoadEngineeringExtension.py", line 240, in __call__
    LoadQBautostart.ImportQBautostart()
  File ".\Scripts\Custom\Autoload\LoadEngineeringExtension.py", line 218, in ImportQBautostart
    pModule.init() # init the file
  File ".\Scripts\Custom\QBautostart\AdvancedTorpedoManagement.py", line 51, in init
    firstcheck()
  File ".\Scripts\Custom\QBautostart\AdvancedTorpedoManagement.py", line 144, in firstcheck
    pTorpedoSystem = pPlayer.GetTorpedoSystem()
AttributeError: 'None' object has no attribute 'GetTorpedoSystem'
Traceback (innermost last):
  File ".\Scripts\Custom\Autoload\RealTech.py", line 48, in __call__
    Load()
  File ".\Scripts\Custom\Autoload\RealTech.py", line 41, in Load
    Custom.RealTech.RealTechLibary.Load(dotPrefix + Addonfile)
NameError: Custom
Traceback (innermost last):
  File ".\Scripts\Custom\Autoload\zzzHyperdrive.py", line 23, in __call__
    Custom.Hyperdrive.HyperdriveModule.handlers()
  File ".\Scripts\Custom\Hyperdrive\HyperdriveModule.py", line 175, in handlers
    init()
  File ".\Scripts\Custom\Hyperdrive\HyperdriveModule.py", line 97, in init
    pSet = pPlayer.GetContainingSet()
AttributeError: 'None' object has no attribute 'GetContainingSet'
Traceback (innermost last):
  File ".\Scripts\Custom\Autoload\zzzSlipstreamMode.py", line 24, in __call__
    Custom.Slipstream.SlipstreamModule.handlers()
  File ".\Scripts\Custom\Slipstream\SlipstreamModule.py", line 181, in handlers
    init()
  File ".\Scripts\Custom\Slipstream\SlipstreamModule.py", line 103, in init
    pSet = pPlayer.GetContainingSet()
AttributeError: 'None' object has no attribute 'GetContainingSet'
Traceback (innermost last):
  File ".\Scripts\Custom\Autoload\BPSoundsv2.py", line 146, in MissionStart
    MuteSpace()
  File ".\Scripts\Custom\Autoload\BPSoundsv2.py", line 189, in MuteSpace
    pSpace = App.TGSoundRegion_GetRegion(App.Game_GetCurrentPlayer().GetContainingSet().GetName())
AttributeError: 'None' object has no attribute 'GetContainingSet'
Traceback (innermost last):
  File ".\Scripts\UIHelpers.py", line 300, in CreateRightRoundedButton
    fScreenRatio = App.g_kIconManager.GetScreenWidth () / App.g_kIconManager.GetScreenHeight ()
ZeroDivisionError: float division
Title: Re: After QB's start, everything acts strange
Post by: MLeo on March 22, 2008, 02:21:13 PM
It seems someone mesed up the first file it mentions, Foundation redirect.

Add this to the top of the file:
Code: [Select]
from bcdebug import debug
Title: Re: After QB's start, everything acts strange
Post by: tiqhud on March 22, 2008, 04:12:36 PM
Have to keep an eye open here, I got tosakira.
Title: Re: After QB's start, everything acts strange
Post by: FekLeyr Targ on March 22, 2008, 04:14:41 PM
Add this to the top of the file:
Code: [Select]
from bcdebug import debug
QuickBattle.py has already this line at the top. :)
I've tried something else: I've deleted the quickbattle.py file and it's pyc counterpart and replaced them with the ones from another km1.0 installation. Still the same.
Later the console mentions something with the Belaruz System files. And then it complains about almost all script triggers. I don't uderstand it. Do you?

edit: I've checked the console dump again, still the same. But before I've tried it again, I've changed the line 7 in the bcdebug.py from
Code: [Select]
DEBUG=0 to
Code: [Select]
DEBUG=1 so I've got another dump which can help us. (see attachment)

edit 2: Important: I thing I know now what's causing this: NanoFX2. I had tested it with only NFX2 enabled and the problem occured again. Then I had tested it again with all mutators exepting NFX2 and the problem didn't occur.
I thing we're on the correct way to the fix, Mleo.
Title: Re: After QB's start, everything acts strange
Post by: lint on March 22, 2008, 05:22:16 PM
Hey Targ, the Interceptor is the ship causing the issue i think,
the author made a comment about it on the download page
Title: Re: After QB's start, everything acts strange
Post by: FekLeyr Targ on March 22, 2008, 06:15:15 PM
Hey Targ, the Interceptor is the ship causing the issue i think,
the author made a comment about it on the download page


Words fail me. Thank you very much, Lint. I own you something. It works again. After I read glenflet's comment, I have installed the interceptor to an empty location to find which files cause the problem. After this, I've replaced their counterparts on my custom km1.0 installation with the original km1.0 ones and no I don't have that problem anymore. But I think it was a rather interesting one.

To all moderators and/or administrators: You may lock this thread if you wish.
Title: Re: After QB's start, everything acts strange
Post by: MLeo on March 22, 2008, 07:17:58 PM
If the problem really has gone (seems strange though).
But I believe Glenflets recent mods (he/she is the author of those recent realistic techs, right?) contain a couple more errors and rather strange idea's, as if there isn't a compiled math module built right into Python.


Anyway, the problem is/was occuring in the file .\Scripts\Custom\Autoload\000-Fixes20030402-FoundationRedirect.py so you would have to add it there.
I ought to have been more clear though.
Title: Re: After QB's start, everything acts strange
Post by: FekLeyr Targ on March 23, 2008, 08:02:24 AM
Exactly. 000-Fixes20030402-FoundationRedirect.py was one of the files which glenflet has accidently added to the interceptor's installer.
PS: I've just given both of you a cookie.
Title: Re: After QB's start, everything acts strange
Post by: MLeo on March 23, 2008, 09:24:23 AM
I'd wish he test his stuff. :S

I mean, he has a function called "10x".

Well, in Python, and quite a lot of other languages every "name" (from a language perspective) has to start with a letter, a to z or A to Z or _ and then you may add numbers to the mix (Lisp and a lot of other Lisp like languages are exceptions, but his programming style isn't similar to those kind of languages, so I have no idea where he got the idea from).