bckobayashimaru.de

Bridge Commander Kobayashi Maru Project
It is currently Tue Jun 25, 2019 4:40 am

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: ? Adding systems in QB
PostPosted: Tue Feb 05, 2008 3:27 pm 
Offline
Cadet 1st Year
Cadet 1st Year

Joined: Tue Jan 29, 2008 11:07 pm
Posts: 15
Location: PA
i notice that the DeepSpace and Earth systems do not initially appear in the set course menu in qb but they do in the quick battle setup under the f3 menu.

i was wondering if there was anything i could import into the helm menu that would allow me to set a course to earth of ds9 because i like to use the add ship menu instead of the qb setup menu i want to import the systems into it somehow

Thanks all

_________________
Phasers set to kill


Top
 Profile  
Reply with quote  
PostPosted: Fri Nov 21, 2008 1:33 am 
Offline
Cadet 1st Year
Cadet 1st Year

Joined: Sun Feb 10, 2008 10:54 am
Posts: 4
If you haven't already figured out the answer...here it is.

From your root bridge commander folder, go to the scripts/Custom/Autoload folder and search for a file called LoadNanoFX.py. Open it with either Python IDLE or Notepad...which ever you prefer to use.

Scroll down until you see this,
Code:
class NanoFXTrigger(Foundation.TriggerDef):
   def __init__(self, name, eventKey, dict = {}):
      debug(__name__ + ", __init__")
      Foundation.TriggerDef.__init__(self, name, eventKey, dict)

   def __call__(self, pObject, pEvent, dict = {}):
      
      debug(__name__ + ", __call__")
      pMission = App.Game_GetCurrentGame().GetCurrentEpisode().GetCurrentMission()
      
      ### Fix Lights ###
      if (Custom.NanoFXv2.NanoFX_Config.eFX_LightFlickerFX == "On"):
         Custom.NanoFXv2.NanoFX_ScriptActions.TurnOnLights(None)
      ###
      ### Setup WarpFX Warp Speed Buttons for QB###
      if pMission.GetScript() == "QuickBattle.QuickBattle":
         
         from Custom.NanoFXv2.WarpFX import WarpFX_GUI
         WarpFX_GUI.SetupWarpSpeedButtons()
         
         import Systems.Starbase12.Starbase
         Systems.Starbase12.Starbase.CreateMenus()


Notice the code,
Code:
         import Systems.Starbase12.Starbase
         Systems.Starbase12.Starbase.CreateMenus()


This is the code used to place the Starbase 12 system in the Helm menu.

To add the Earth system to the menu, scroll down until you reach,
Code:
         import Systems.Chambana.Chambana
         Systems.Chambana.Chambana.CreateMenus()

         import Systems.Geble.Geble
         Systems.Geble.Geble.CreateMenus()


and input between the two of them,

Code:
         import Systems.Earth.Earth
         Systems.Earth.Earth.CreateMenus()


so it looks like this,
Code:
         import Systems.Chambana.Chambana
         Systems.Chambana.Chambana.CreateMenus()

         import Systems.Earth.Earth
         Systems.Earth.Earth.CreateMenus()

         import Systems.Geble.Geble
         Systems.Geble.Geble.CreateMenus()


I recommend adding system names in alphabetical order...I couldn't tell you what would happen if you didn't, but it makes for an easier navigation when you edit it later.

Save it and your done. Make sure the file extension still reads .py or the game will probably crash or not load. The same goes for Deep Space (although all you would need to do is simply drop out of warp to reach that map) or any new maps you've downloaded and want added to the Helm menu.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group