Author Topic: QB crash - AttributeError: 'None' object has no attribute 'GetContainingSet'  (Read 707 times)

Offline EternalKnights

  • Posts: 18
  • Cookies: 0
EDIT: I appear to have fixed it. It turned out one of the ship py's in the scripts/ships folder was misspelled, so I corrected it.
------------------

At the rate I'm installing mods, I knew it wouldn't be long before I'd be back here.

Anyhoo, my symptoms are identical to those in this thread, in fact it seems that both problems are very similar: http://bc-central.net/forums/index.php/topic,3071.0.html However, I don't have the Interceptor mod or KM. My problem started after installing the c2x Excelsior pack.

I'm getting the dodgy viewscreen issue along with the inability to use the console. Here's the log dump:

>> This is a console tracker dump       by USS Frontier
##############
>> This dump started on -> Wed Jul 16 04:09:52 2008
##############
#----------------------------------------------------------------------->>> Wed Jul 16 04:09:52 2008
####
Outdated Foundation, updating functions
Outdated Foundation, installing FolderManager
Updating FoundationMenu.ShipMenuBuilderDef
BridgeFX Enabled...
CameraFX Enabled...
ExplosionFX Enabled...
SpecialFX Enabled...
WarpFX Enabled...
Tracking Console
####

####
AttributeError: PreLoadAssets
Registering listener NanoFXTrigger FoundationTriggers.8392974
['8392974', '__doc__', '__file__', '__name__', '__builtins__']
Registering listener NanoFXBlinkers FoundationTriggers.8392973
['8392974', '8392973', '__doc__', '__file__', '__name__', '__builtins__']
Registering listener SDT Trigger FoundationTriggers.8388808
['__doc__', '__file__', '__name__', '__builtins__', '8388808', '8392974', '8392973']
Traceback (innermost last):
  File ".\Scripts\QuickBattle\QuickBattle.py", line 365, in Initialize
    pStarbase   = loadspacehelper.CreateShip("FedStarbase", pStarbaseSet, "Starbase 12", "Starbase12 Location")
  File ".\Scripts\Custom\Autoload\000-Fixes20030402-FoundationRedirect.py", line 105, in CreateShip
    pModule.LoadModel ()
AttributeError: 'None' object has no attribute 'LoadModel'
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\MainMenu\mainmenu.py", line 4603, in SetVisible
    SwitchMiddlePane(g_pcCurrentPaneName)
  File ".\Scripts\MainMenu\mainmenu.py", line 1522, in SwitchMiddlePane
    pBackground = BuildMiddleBackground(pDatabase.GetString(pcNewPaneName), g_bListPane)
  File ".\Scripts\MainMenu\mainmenu.py", line 2199, in BuildMiddleBackground
    pCurve = UIHelpers.CreateCurve(UIHelpers.UPPER_LEFT_CURVE, 0.145, 0.175, 0.083333333, 0.108333333, kColor, 0.0425)
  File "c:\utopia\current\build\scripts\UIHelpers.py", line 116, in CreateCurve
ZeroDivisionError: float division
####

Offline MLeo

  • Retired Staff
  • Posts: 3636
  • Cookies: 833
  • Software Simian
    • the Programming Pantheon
Most, minor, problems actually cause errors down the line at, sometimes, unexpected places.

Which mod was causing it?
Could be usefull.
I still can't read peoples minds, nor can I read peoples computers, even worse, I can't combine the two to read what is going wrong with your BC install...

"It was filed under 'B' for blackmail." - Morse, Inspector Morse - The dead of Jericho.

Offline EternalKnights

  • Posts: 18
  • Cookies: 0
Firstly I installed defiants_return Starbase HP & retexture mod, then changed my mind and installed the Zorg/Morpheus Starbase replacement mod over the top.
It seemed to work but I noticed some texture issues. So I sorted out the textures. When I tried it again I got the viewscreen kaleidoscope.
I did some nosing about and found that the Starbase scripts/ship .py was named 'FederationStarbase' rather than 'FedStarbase'.