I'm trying to make a basic mod in which there is a button on ballast tanks to fill them, and a button to empty them (Maybe a button to gently empty them in the future) For now i'm using ore, and will add the ballast resource later so it is not as abusable in terms of infinite fuel without F12. My code currently reads:
PART
{
name = LargeBallastTank
module = Part
author = Jovis
mesh = LargeTank.mu
scale = 1
rescaleFactor = 1
node_attach = 0,0,-1.2,0,0,0,2
node_stack_top = 0.0, .9, 0.0, 0.0, 1.0, 0.0, 2
node_stack_bottom = 0.0, -.9, 0.0, 0.0, -1.0, 0.0, 2
TechRequired = experimentalScience
entryCost = 9000
cost = 3000
category = FuelTank
subcategory = 0
title = Large Ballast Tank
manufacturer = Jovis' Experimental Submarine Supplies
description = A large refillable ballast tank. Sandwiches not included
attachRules = 1,1,1,1,0
// --- standard part parameters ---
mass = 2.0
dragModelType = default
maximum_drag = 0.2
minimum_drag = 0.2
angularDrag = 2
crashTolerance = 7
maxTemp = 2000 // = 3000
bulkheadProfiles = size2, srf
tags = black isru mine )mining (ore resource store
RESOURCE
{
name = Ore
amount = 0
maxAmount = 1500
}
MODULE
{
name = ModuleFuelJettison
}
}
MODULE
{
name = ModuleGenerator
isAlwaysActive = false
activateGUIName = Begin Filling Tank
shutdownGUIName = Stop Filling Tank
OUTPUT_RESOURCE
{
name = Ore
ratio = 10.0
}
}
Or to pull your attention to the part I have added:
MODULE
{
name = ModuleGenerator
isAlwaysActive = false
activateGUIName = Begin Filling Tank
shutdownGUIName = Stop Filling Tank
OUTPUT_RESOURCE
{
name = Ore
ratio = 10.0
}
}
When I load the game, and launch a vehicle with a cupola module and this ballast tank, there is no "Begin Filling Tank" option, and I can get no error codes etc. because this is a mod for ksp. It is, however, my first mod of any substance, (I made some cheat parts and a ballast resource on my old computer.) So I apologise for how terribly flawed this code will almost definitely be, and am grateful for any and all help.