Jump to content

Need Help with KSP.log Error


Recommended Posts

It's a simple mod (Cargo Bay, with two animated doors).  I've put Mesh Colliders on the main Body and each door; all three pieces have the Mesh Collider convex flag set.

What/Where should I be looking to resolve this error?  Is it an unset flag/value in Unity?  Is it something in my modeling program (Blender)?  Sometimes, this works fine.  Then not.

The part compiled correctly in the Unity Editor without errors.  Imported from Blender to Unity via an FBX file; animation (single) was baked.  All Unity Mesh Colliders are set to Convex.

Quote

[LOG 15:47:39.829] Load(Model): RocketWorks/CargoBays/Parts/CargoLarge
[LOG 15:47:39.836] CargoBay, , m_Convex, UnityEngine.AnimationCurve
[ERR 15:47:39.839] File error:
(null)
  at (wrapper managed-to-native) UnityEngine.AnimationClip:SetCurve (string,System.Type,string,UnityEngine.AnimationCurve)
  at PartReader.ReadAnimation (System.IO.BinaryReader br, UnityEngine.GameObject o) [0x00000] in <filename unknown>:0
  at PartReader.ReadChild (System.IO.BinaryReader br, UnityEngine.Transform parent) [0x00000] in <filename unknown>:0
  at PartReader.ReadChild (System.IO.BinaryReader br, UnityEngine.Transform parent) [0x00000] in <filename unknown>:0
  at PartReader.Read (.UrlFile file) [0x00000] in <filename unknown>:0

Quote

PART
{

// --- general parameters ---
name = cargoLarge
module = Part
author = RocketWorks

// --- asset parameters ---
mesh = CargoLarge.mu
rescaleFactor = 1

// --- node definitions ---
// definition format is Position X, Position Y, Position Z, Up X, Up Y, Up Z, size
node_stack_top = 0.0, 3.97, 0.0, 0.0, 1.0, 0.0, 2
node_stack_bottom = 0.0, -3.78, 0.0, 0.0, -1.0, 0.0, 2

// --- FX definitions ---


// --- editor parameters ---
TechRequired = start
entryCost = 3000
cost = 2000
category = Utility
subcategory = 0
title = Cargo Bay, Large
manufacturer = RocketWorks
description = Store stuff

// attachment rules: stack, srfAttach, allowStack, allowSrfAttach, allowCollision
attachRules = 1,0,1,1,0

// --- standard part parameters ---
mass = 0.75
dragModelType = default
angularDrag = 3
crashTolerance = 12
maxTemp = 2000 // = 3100
CoMOffset = 0, -0.13, 0.244
bulkheadProfiles = size0

breakingForce = 100
breakingTorque = 50

stageOffset = -1
bodyLiftMultiplier = 0

MODULE
{
   name = ModuleAnimateGeneric
   animationName = Scene
   isOneShot = false
   
 startEventGUIName = Open
 endEventGUIName = Close
 actionGUIName = Toggle Doors
}

}

In another thread, FreeThinker suggested that I "check the syntax of  all defined float curves in the config file".  How can I change the  defined float curves in ModuleAnimateGeneric?

Here is a link to a ZIP file with:  1) BLEND file; 2) FBX file; 3) CFG file; 4) texture PNG file; 5) GameData directory

sidebar: previously posted this thread in wrong sub-forum

Edited by Apollo13
Link to comment
Share on other sites

yes.  As an experiment, I removed it.  It ended up removing the entire animation for the door. 

EDIT:  was just now able to remove it.  Mod works...for now.  Give it time, and it will fail again.

Edited by Apollo13
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...