Jump to content

What's Wrong With My Code?


s1rv

Recommended Posts

Hello, I am new to addon development, and am working on adding a new resource, Food. When it gets to loading the module below, it just full on stops loading KSP.

name = FoodStorage
module = Part
author = s1rv

mesh = model.mu
rescaleFactor = 1

node_stack_top = 0.0, 0.986899, 0.0, 0.0, 1.0, 0.0
node_stack_bottom = 0.0, -0.986899, 0.0, 0.0, 1.0, 0.0

CrewCapacity = 4

cost = 4000
category = Utility
subcategory = 0
title = PPD-10FS Food Storage Container
manufacturer = Hepux Aerospace
description = The PPD-10FS is a modified PPD-10 Hitchhiker Storage Container designed to hold food, up to a whopping 25kg! Use with Hepux PPD-10F Food Farms and food consuming pods for best effect.

attachRules = 1,0,1,1,0

mass = 2.5
dragModelType = default
maximum_drag = 0.2
minimum_drag = 0.3
angularDrag = 2
crashTolerance = 6
breakingForce = 200
breakingTorque = 200
maxTemp = 2900

RESOURCE
{
name = Food
amount = 0.035
maxAmount = 0.35
}

Link to comment
Share on other sites

Thank you so much! I didn't realize I could be stupid enough to let there be a resource storing part without the resource existing... I don't know how I missed that... XD

Link to comment
Share on other sites

make a .cfg file in the resources folder and put something like this

RESOURCE_DEFINITION
{
name = Food
density = .1
flowMode = ALL_VESSEL
transfer = PUMP
}

in it. Obviously with whatever values you want to use.

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...