Bridge Commander Central
BC Forums => BC Scripting => Topic started by: dEjavU on July 13, 2009, 07:54:13 AM
-
Hello everyone, I know I should've posted this in the scripting section but since I'm also asking for tech support I figured I might as well just post here.
I wanna see if I can add an additional command to NxDefiants "Fleet Orders" mod, to be able to order my fleet(or a selected ship)to dock at a starbase or shipyard for repairs. Does anyone know if this is even possible? Can anyone help me out?
-
I'm afraid this is purely a scripting question.
*Moved*
Oh wait, I'm also the scripting moderator! :mrgreen:
I thought the dock command was already present?
But that might be just part of the stock scripts (try the hail menu).
Could you provide a link to the script?
-
Greetings MLeo. Yes your right, the docking command is part of the stock feature however the fleet orders mod NxDefiant released seems to add a completely different fleet orders command script to work only for the quick battles. Forgive me but what's a hail menu? Is it another fleet orders mod maybe that I missed?
Anyway here's the link to NxDefiant's fleet order's mod(http://bridgecommander.filefront.com/file/Extended_fleet_orders;18729x#206941 (http://bridgecommander.filefront.com/file/Extended_fleet_orders;18729x#206941))
-
Forgive me but what's a hail menu? Is it another fleet orders mod maybe that I missed?
Hail menu = already inside the Helm menu lol ;)
I don't know what the KM team did to that script but I can order a friendly to repair at the repairdrydock and starbase 12.
-
Right, the helm menu, should've realized that. Well I went over the FleetUtils.py again and no matter how many times I go over it, I can't seem to wrap my head around the scripting language so I can go in and write the commands already. Are you guy's(meaning BC modder's out there who actually write scripts)using some kind of program to write these .py files or something cause otherwise I don't understand how people can just sit down on front of their PC and start typing these numbers, symbols, and letter combinations and actually have the game engine understand and translate them(.PYC files). Is anyone out there familiar enough with the language to help me write and add this one command to this FleetUtils.py file?
-
The language is "Python", a Turing-Complete, General Purpose Programming Language. It's type system is dynamic.
It is "logical", and may I dare say it, generally easier than so called (well, by me anyway) "spoken" languages, such as English, Dutch and French.
The syntax is simple enough (I've seen harder!) so you don't really need aa special editor, a notepad like program will do.
Syntax highlighting is a bonus. For example, notepad2 (what I currently use for Python editing) has highlighting.
It's no ancient sage language (unless you count in internet years, but then there are loads of sages out there).
You can learn it.
This seems a good place to start.
http://wiki.python.org/moin/BeginnersGuide/NonProgrammers
But I must warn you, some of the things presented there you may not be able to use in Python as it is in BC, which is locked to Python 1.5.2, I believe Python 3.1 is the current standard.