It simply means we are one problem down, with more to go. ;)
Ok, this is a slightly cleaned up version of it.
It ought to decrease the number of problems as well.
Python defines "scopes" through indentation, so this needs to be consistent. In the file you attached, it isn't.
from bcdebug import debug
########################
# #
# Edited by Kirk2164 #
# #
########################
Carrier = __import__( "ftb.Carrier")
class LongbowTOS( Carrier.Carrier):
def __init__( self, pShip):
debug(__name__ + ", __init__")
Carrier.Carrier.__init__( self, pShip)
LauncherGroup = __import__( "ftb.LauncherGroup")
group = LauncherGroup.LauncherGroup()
LauncherManager = __import__( "ftb.LauncherManager")
launcher = LauncherManager.GetLauncher( "Shuttle Bay", pShip)
group.AddLauncher( "Shuttle Bay", launcher)
launcher.AddLaunchable( "Shuttle", "ftb.friendlyAI", 3)
self.AddLauncher( "Group 1", group)
#group.SetLaunchMode( LauncherGroup.ALL)
# Define how much Shuttles we can carry maximal (Return Shuttles script)
def GetMaxShuttles(self):
debug(__name__ + ", GetMaxShuttles")
return 3
# "Dauntless" is the "ShipProperty" name of the ship to be registered as
# defined in the Hardpoints PY file for your ship
ShipManager = __import__( "ftb.ShipManager")
ShipManager.RegisterShipClass( "LongbowTOS", LongbowTOS)