Bridge Commander Central

BC Forums => BC Technical Support => Previous "Black Screen of Death" Fixes => Topic started by: FourChan on May 29, 2008, 06:57:41 PM

Title: BSOD - File ".\Scripts\Custom\Carriers\Pulsar.py", line 22 return 2 ^ SyntaxError: invalid syntax
Post by: FourChan on May 29, 2008, 06:57:41 PM
Okay, I downloaded the KM mod and the patch and installed them, they were playing great, the in system warp worked, the emergency repair, the distress signal and all that worked. Well a couple of hours ago I downloaded a few ships and suddenly they quit working, it's the basic with some of the MVAM Options and some of the low end foundation options. I was wondering if there's a way to fix it or should I reinstall it with KM and reinstall my ships?
Title: Re: BSOD - File ".\Scripts\Custom\Carriers\Pulsar.py", line 22 return 2 ^ SyntaxError: invalid syntax
Post by: MLeo on May 29, 2008, 07:07:04 PM
I'm not entirely sure what the problem is.

Does it look like BC sort of went back to factory standards?
Then you need to reactivate the mutators (look under Options).


Does the menu not load entire, try to get a console report (see the Black Screen sticky) after you have started QB.
But from what you have posted, I think the most likely cause is the first one I mentioned.

Otherwise you need to be more specific about the problem.
Title: Re: BSOD - File ".\Scripts\Custom\Carriers\Pulsar.py", line 22 return 2 ^ SyntaxError: invalid syntax
Post by: ACES_HIGH on May 29, 2008, 07:08:58 PM
well, first of all, it probably has nothing to do with KM, most likely it is a random error caused by one of the new ships, which could easily be fixed with a console report, secondly I suggest you download the latest version of KM, which contains far more ships and other mods
Title: Re: BSOD - File ".\Scripts\Custom\Carriers\Pulsar.py", line 22 return 2 ^ SyntaxError: invalid syntax
Post by: MLeo on May 29, 2008, 07:10:48 PM
well, first of all, it probably has nothing to do with KM, most likely it is a random error caused by one of the new ships, which could easily be fixed with a console report, secondly I suggest you download the latest version of KM, which contains far more ships and other mods
He hasn't installed KM yet.

And let's try saving some BC install. ;)
There have been enough reinstalls lately. :(
Title: Re: BSOD - File ".\Scripts\Custom\Carriers\Pulsar.py", line 22 return 2 ^ SyntaxError: invalid syntax
Post by: FourChan on May 29, 2008, 07:21:32 PM
KM was installed but it was working perfectly before I installed ships and stuff. It still says Mutators is on and all the plugins are turned on there. It's weird, it's like 1/2 and 1/2 factory/custom settings.
Title: Re: BSOD - File ".\Scripts\Custom\Carriers\Pulsar.py", line 22 return 2 ^ SyntaxError: invalid syntax
Post by: FourChan on May 29, 2008, 08:12:04 PM
When I ran the console report it said "Unexpected EOF while parsing"
Title: Re: BSOD - File ".\Scripts\Custom\Carriers\Pulsar.py", line 22 return 2 ^ SyntaxError: invalid syntax
Post by: FourChan on May 29, 2008, 08:33:04 PM
This is the Console Dump

>> This is a console tracker dump       by USS Frontier
##############
>> This dump started on -> Thu May 29 20:17:04 2008
##############
#----------------------------------------------------------------------->>> Thu May 29 20:17:04 2008
####
Outdated Foundation, updating functions
Outdated Foundation, installing FolderManager
Updating FoundationMenu.ShipMenuBuilderDef
Foundation Tech loaded
Gravity FX has been loaded.
BridgeFX Enabled...
CameraFX Enabled...
ExplosionFX Enabled...
SpecialFX Enabled...
WarpFX Enabled...
DS9FX Initializing...
Fixing Jaggies
Tracking Console
####

####################
>> This dump ended on -> Thu May 29 20:17:04 2008
>> Console Tracker Dump END
#----------------------------------------------------------------------->>> Thu May 29 20:19:12 2008
#----------------------------------------------------------------------->>> Thu May 29 20:21:20 2008
#----------------------------------------------------------------------->>> Thu May 29 20:23:28 2008
#----------------------------------------------------------------------->>> Thu May 29 20:25:36 2008
####
AttributeError: PreLoadAssets
Setting Stock System Planets Random Density.
Traceback (innermost last):
  File ".\Scripts\Custom\Autoload\000-Fixes20030305-FoundationTriggers.py", line 25, in __call__
    i(pObject, pEvent)
  File ".\Scripts\Custom\Autoload\LoadEngineeringExtension.py", line 240, in __call__
    LoadQBautostart.ImportQBautostart()
  File ".\Scripts\Custom\Autoload\LoadEngineeringExtension.py", line 163, in ImportQBautostart
    pModule = __import__(dotPrefix + fileName)
  File ".\Scripts\Custom\QBautostart\AIShuttleLaunching.py", line 3, in ?
    import ftb.ShipManager
  File ".\Scripts\ftb\ShipManager.py", line 96, in ?
    LoadExtraPlugins()
  File ".\Scripts\ftb\ShipManager.py", line 92, in LoadExtraPlugins
    pModule = __import__(dotPrefix + pluginFile)
  File ".\Scripts\Custom\Carriers\Pulsar.py", line 22
    return 2
         ^
SyntaxError: invalid syntax
Traceback (innermost last):
  File ".\Scripts\Custom\Autoload\LoadTech.py", line 20, in __call__
    techfunc.ImportTechs()
  File ".\Scripts\techfunc.py", line 26, in ImportTechs
    pModule.Setup()
  File ".\Scripts\Custom\Tech\ShipLaunch.py", line 13, in Setup
    ftb.LaunchShipHandlers.MissionStart()
  File ".\Scripts\ftb\LaunchShipHandlers.py", line 198, in MissionStart
    AddLaunchButtons(ftb.GUIUtils.GetScienceMenu())
  File ".\Scripts\ftb\LaunchShipHandlers.py", line 229, in AddLaunchButtons
    pCarrier = ftb.ShipManager.GetShip(pLaunchShip)
AttributeError: ShipManager
DS9FX: Kobayashi Maru is Installed. Deleting DS9FX Docking Function!
DS9FX: You're not currently running a QB Mission. DS9 Set cannot be reached by Warp!
####

#----------------------------------------------------------------------->>> Thu May 29 20:27:44 2008
####
console report
  File "<string>", line 1
    console report
                ^
SyntaxError: unexpected EOF while parsing
####

####
   
####
Traceback (innermost last):
  File ".\Scripts\ftb\LaunchShipHandlers.py", line 210, in MissionRestart
    AddLaunchButtons(ftb.GUIUtils.GetScienceMenu())
  File ".\Scripts\ftb\LaunchShipHandlers.py", line 229, in AddLaunchButtons
    pCarrier = ftb.ShipManager.GetShip(pLaunchShip)
AttributeError: ShipManager
Setting Stock System Planets Random Density.
DS9FX: QB Mission Mode Enabled. DS9 Set is reachable by Warp!
####

#----------------------------------------------------------------------->>> Thu May 29 20:29:52 2008
####
Warp - dist: 10000.000000, speed: 6.000000, fac: 404.428986, time: 24.726219
####

####
Setting Stock System Planets Random Density.
Warp - dist: 10000.000000, speed: 6.000000, fac: 404.428986, time: 24.726219
####

####
Player lost his warp engines. Beaking warp cutscene
Warp Error: Unable to set Impulse speed.
####

####
Setting Stock System Planets Random Density.
Setting Stock System Planets Random Density.
####

####
Warp - dist: 10000.000000, speed: 6.000000, fac: 404.428986, time: 24.726219
####

#----------------------------------------------------------------------->>> Thu May 29 20:32:00 2008
####################
>> This dump ended on -> Thu May 29 20:32:00 2008
>> Console Tracker Dump END
####################
>> This dump ended on -> Thu May 29 20:32:00 2008
>> Console Tracker Dump END
Title: Re: BSOD - File ".\Scripts\Custom\Carriers\Pulsar.py", line 22 return 2 ^ SyntaxError: invalid syntax
Post by: FourChan on May 29, 2008, 11:07:02 PM
I got it fixed, there was that .py file in Carriers it told me to put there, that was screwing it up. Now I have a question. I was playing a quick battle and the Lakota was shooting square photon torpedeos, what would cause that? Thanks.
Title: Re: BSOD - File ".\Scripts\Custom\Carriers\Pulsar.py", line 22 return 2 ^ SyntaxError: invalid syntax
Post by: MLeo on May 30, 2008, 07:01:08 AM
What did you do to fix the carrier file?


A missing texture or you installed something called "Dukats Torpedo" (or something similar).
Title: Re: BSOD - File ".\Scripts\Custom\Carriers\Pulsar.py", line 22 return 2 ^ SyntaxError: invalid syntax
Post by: FourChan on May 30, 2008, 01:53:20 PM
I removed the Carrier file and the ship still works, just can't launch a shuttle from it. I think there was a scripting error someplace in it. Now if I can figure out this torpedo error, the Galaxy Class uses the Same Torpedos so it's annoying.
Title: Re: BSOD - File ".\Scripts\Custom\Carriers\Pulsar.py", line 22 return 2 ^ SyntaxError: invalid syntax
Post by: FourChan on May 30, 2008, 01:55:21 PM
Oh also, can you do me a favor and send me your torpedo textures that work on the Galaxy Class and Lakota Class? Thanks

My email is saiyajin_dale@yahoo.com
Title: Re: BSOD - File ".\Scripts\Custom\Carriers\Pulsar.py", line 22 return 2 ^ SyntaxError: invalid syntax
Post by: MLeo on May 30, 2008, 02:40:13 PM
I removed the Carrier file and the ship still works, just can't launch a shuttle from it. I think there was a scripting error someplace in it. Now if I can figure out this torpedo error, the Galaxy Class uses the Same Torpedos so it's annoying.
If you can attach the carrier script, then I can fix it, since the console report you posted contained the location of the error.


As for your second question, like I said in your PM (remember, this is a forum, not a chat session), I don't know what torpedo it is in question, I only said that in the past, a similar problem occured and it was with a torpedo called something like Dukats Torpedo.