Author Topic: Starbases scripting problems  (Read 2606 times)

Offline baz1701

  • Posts: 3392
  • Cookies: 1434
Starbases scripting problems
« on: May 31, 2009, 01:00:37 PM »
I've tried to put my astroid dock in game and the game hangs on the load screen of a quick battle after you select ships etc.

I have used the stock fed starbase as a template.

Any ideas?
Whatever knocks us back, can only make us stronger.

Offline teleguy

  • Posts: 363
  • Cookies: 53
Re: Starbases scripting problems
« Reply #1 on: May 31, 2009, 01:58:36 PM »
Could you upload all the relevant py files?

Offline MLeo

  • Retired Staff
  • Posts: 3636
  • Cookies: 833
  • Software Simian
    • the Programming Pantheon
Re: Starbases scripting problems
« Reply #2 on: May 31, 2009, 02:17:29 PM »
You aren't trying to use it as a player ship, right? Since the Fed Starbase isn't intended as a player ship.

Aside from that, it's possible the nif is faulty. Anything other than that would require the use of a proper console logger (and not a console poller).
Put the attached file in scripts/Custom/Autoload and let it crash, and we can then see if there is a scripting error.

Also run in Windowed mode just to be sure.
The logger will create a file in scripts/Custom ending in _output.txt and starting with the time it was started.
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 baz1701

  • Posts: 3392
  • Cookies: 1434
Re: Starbases scripting problems
« Reply #3 on: May 31, 2009, 02:27:17 PM »
here it is
Code: [Select]
Outdated Foundation, updating functions
Outdated Foundation, installing FolderManager
Foundation Tech loaded
Gravity FX has been loaded.
BridgeFX Enabled...
CameraFX Enabled...
ExplosionFX Enabled...
SpecialFX Enabled...
WarpFX Enabled...
DS9FX Initializing...
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\EnterpriseNCC1701.py", line 34, in ?
    ShipManager.RegisterShipClass( "jjenterprise", jjenterprise)
NameError: jjenterprise
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!
Traceback (innermost last):
  File ".\Scripts\QuickBattle\QuickBattle.py", line 4922, in StartSimulationAction
    pModule = Foundation.FolderManager('ship', sShipType)
  File ".\Scripts\Custom\Autoload\000-Fixes20030402-FoundationRedirect.py", line 315, in __call__
    mod = __import__(i + key)
EOFError: EOF read where object expected
GravityFX has been deactivated.
Whatever knocks us back, can only make us stronger.

Offline MLeo

  • Retired Staff
  • Posts: 3636
  • Cookies: 833
  • Software Simian
    • the Programming Pantheon
Re: Starbases scripting problems
« Reply #4 on: May 31, 2009, 02:59:01 PM »
Please take a look in Solved for the jjenterprise, I believe it had recently come up. That should atleast fix two errors.
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 teleguy

  • Posts: 363
  • Cookies: 53
Re: Starbases scripting problems
« Reply #5 on: May 31, 2009, 03:06:55 PM »
I created a new ship plugin and it's now working in my game.

Offline MLeo

  • Retired Staff
  • Posts: 3636
  • Cookies: 833
  • Software Simian
    • the Programming Pantheon
Re: Starbases scripting problems
« Reply #6 on: May 31, 2009, 03:07:42 PM »
So what did you change?
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 baz1701

  • Posts: 3392
  • Cookies: 1434
Re: Starbases scripting problems
« Reply #7 on: May 31, 2009, 03:12:35 PM »
Still not working for me, the game just sit on the sov bridge with the helm and nav officers animated.

It does not freeze?

I'm using Foundation and KM1
Whatever knocks us back, can only make us stronger.

Offline MLeo

  • Retired Staff
  • Posts: 3636
  • Cookies: 833
  • Software Simian
    • the Programming Pantheon
Re: Starbases scripting problems
« Reply #8 on: May 31, 2009, 03:14:17 PM »
New console report! Assuming you fixed the other ones...
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 baz1701

  • Posts: 3392
  • Cookies: 1434
Re: Starbases scripting problems
« Reply #9 on: May 31, 2009, 03:17:58 PM »
could you like the thread you mentioned I can not find it.

Sorry to be a pain.
Whatever knocks us back, can only make us stronger.

Offline teleguy

  • Posts: 363
  • Cookies: 53
Re: Starbases scripting problems
« Reply #10 on: May 31, 2009, 03:21:53 PM »
I had also made a few minor changes to other files, so I'll just send you all of them.

Offline MLeo

  • Retired Staff
  • Posts: 3636
  • Cookies: 833
  • Software Simian
    • the Programming Pantheon
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 baz1701

  • Posts: 3392
  • Cookies: 1434
Re: Starbases scripting problems
« Reply #12 on: May 31, 2009, 04:07:50 PM »
cool thanks just have sort the HPs out so you can dock with it.
Whatever knocks us back, can only make us stronger.

Offline baz1701

  • Posts: 3392
  • Cookies: 1434
Re: Starbases scripting problems
« Reply #13 on: May 31, 2009, 04:44:31 PM »
Ok so it is working in game but the auto dock option is greyed out, does this option need enabling?
Whatever knocks us back, can only make us stronger.

Offline MLeo

  • Retired Staff
  • Posts: 3636
  • Cookies: 833
  • Software Simian
    • the Programming Pantheon
Re: Starbases scripting problems
« Reply #14 on: May 31, 2009, 06:28:05 PM »
Look in scripts/Systems/Starbase12/Starbase12_S.py
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 baz1701

  • Posts: 3392
  • Cookies: 1434
Re: Starbases scripting problems
« Reply #15 on: June 01, 2009, 04:09:09 AM »
Thanks I'll take a look.

Also can you have it so that when you dock you don't just fly in and straight back out?
Whatever knocks us back, can only make us stronger.

Offline baz1701

  • Posts: 3392
  • Cookies: 1434
Re: Starbases scripting problems
« Reply #16 on: June 01, 2009, 08:02:32 AM »
I have edited the Starbase12 system script to operate with my astro-dock.

When you click dock Graff pops up on the view screen then the ship is inside the dock and starts to fly out and stop once outside.

The whole enter dock sequence is skipped (though on one click the ship did orbit the dock and enter before Graff appeared).
Whatever knocks us back, can only make us stronger.

Offline MLeo

  • Retired Staff
  • Posts: 3636
  • Cookies: 833
  • Software Simian
    • the Programming Pantheon
Re: Starbases scripting problems
« Reply #17 on: June 01, 2009, 04:22:03 PM »
I'm afraid I do not have much use for a pyc file.
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 baz1701

  • Posts: 3392
  • Cookies: 1434
Re: Starbases scripting problems
« Reply #18 on: June 01, 2009, 06:44:33 PM »
opps me bad
Whatever knocks us back, can only make us stronger.

Offline MLeo

  • Retired Staff
  • Posts: 3636
  • Cookies: 833
  • Software Simian
    • the Programming Pantheon
Re: Starbases scripting problems
« Reply #19 on: June 01, 2009, 07:04:35 PM »
Your DockStarbase function won't, currently, get called, since the Dock function in scripts/Bridge/HelmMenuHandlers.py is hard-coded to call the DockStarbase in StarBase12_S.py

Put this file in scripts/Custom/Autoload, it will slightly generalize docking, enough for your purpose, feel free to include it in your mod, and let me know (with a console report) if it doesn't work or you get a BSOD afterwards.
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.