Difference between revisions of "User:Joshuadery"
Joshuadery (talk | contribs) (Page moved to MODULE) |
Joshuadery (talk | contribs) |
||
Line 1: | Line 1: | ||
− | + | == MODULES FROM MODS == | |
+ | Defining a module is a task in and of itself and one that I'm sure has already been covered in other places. Many modules defined by mods are duplicating effects that could be created with stock modules, but for one reason or another, the mod owner has decided to create their own modules (possibly for degree of control, possibly because the stock module didn't quite do everything they needed). In any event, I've looked at some of the Mod modules, and detailed them below. By mod, they are: | ||
+ | |||
+ | === Kerbal Assembly System === | ||
+ | Kerbal Assembly System is most noted for adding the option to grab and move parts using Kerbals. It also allows for storage of certain parts in containers. | ||
+ | |||
+ | MODULE:NEEDS[KAS] | ||
+ | for the module | ||
+ | |||
+ | {| | ||
+ | ! defining !! in code | ||
+ | |- | ||
+ | | | ||
+ | {|class="wikitable" | ||
+ | ==== KASModuleContainer ==== | ||
+ | Specifies that this part can serve as a container for other parts, and how much storage space the part has. Also included is an interaction distance. Kerbals must be this close or closer to open the container. Lots of sounds. | ||
+ | ! variable !! example !! definition | ||
+ | |- | ||
+ | | maxSize || | ||
+ | * 5 | ||
+ | * 20 | ||
+ | * 80 | ||
+ | || specifies the size of the container relative to Kerbal Attachment System parts. | ||
+ | |- | ||
+ | | maxOpenDistance || | ||
+ | * 1 | ||
+ | * 5 | ||
+ | || Kerbals must be at least this close (in meters) in order to open the container | ||
+ | |- | ||
+ | | sndStorePath || | ||
+ | * KAS/Sounds/hookBayStore | ||
+ | || sound stuff | ||
+ | |- | ||
+ | | sndOpenPath || | ||
+ | * KAS/Sounds/containerOpen | ||
+ | || sound stuff for opening the container | ||
+ | |- | ||
+ | | sndClosePath || | ||
+ | * KAS/Sounds/containerClose | ||
+ | || sound stuff for closing the container | ||
+ | |- | ||
+ | | bipWrongSndPath || | ||
+ | * KAS/Sounds/bipwrong | ||
+ | || sound stuff | ||
+ | |- | ||
+ | |} | ||
+ | || | ||
+ | <pre>MODULE | ||
+ | { | ||
+ | name = KASModuleContainer | ||
+ | maxSize = 80 | ||
+ | } | ||
+ | </pre> | ||
+ | |- | ||
+ | |||
+ | | | ||
+ | {|class="wikitable" | ||
+ | ==== ModuleConnectedLivingSpace ==== | ||
+ | ! variable !! example !! definition | ||
+ | |- | ||
+ | | passable || | ||
+ | * true | ||
+ | * false | ||
+ | || specifies whether Kerbals can commute to parts connected to this part | ||
+ | |- | ||
+ | | passableWhenSurfaceAttached || | ||
+ | * true | ||
+ | * false | ||
+ | || can be passed through even when connected to the ground? | ||
+ | |- | ||
+ | |} | ||
+ | |||
+ | || | ||
+ | <pre> | ||
+ | MODULE | ||
+ | { | ||
+ | name = ModuleConnectedLivingSpace | ||
+ | passable = true | ||
+ | passableWhenSurfaceAttached = true | ||
+ | } | ||
+ | </pre> | ||
+ | |- | ||
+ | | | ||
+ | |||
+ | |} |
Revision as of 04:30, 26 December 2014
Contents
MODULES FROM MODS
Defining a module is a task in and of itself and one that I'm sure has already been covered in other places. Many modules defined by mods are duplicating effects that could be created with stock modules, but for one reason or another, the mod owner has decided to create their own modules (possibly for degree of control, possibly because the stock module didn't quite do everything they needed). In any event, I've looked at some of the Mod modules, and detailed them below. By mod, they are:
Kerbal Assembly System
Kerbal Assembly System is most noted for adding the option to grab and move parts using Kerbals. It also allows for storage of certain parts in containers.
MODULE:NEEDS[KAS] for the module
defining | in code | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
MODULE { name = KASModuleContainer maxSize = 80 } | |||||||||||||||||||||
|
MODULE { name = ModuleConnectedLivingSpace passable = true passableWhenSurfaceAttached = true } | |||||||||||||||||||||