Jump to content

Adding new parts


Recommended Posts

Hi all,

Can you help me debugging some issues with new parts I am trying to add?

First I am running Kerbal Space Program - 1.1.3.1289 (WindowsPlayer) in 64bits.

Here is what I want to do: I needed large Liquid Fuel Tank (Liquid fuel only) for my new spaceship to Duna. So I start looking at the files and said to myself "Adding new tank should be easy"... well guess what it wasn't.

 

What I did: Went to C:\...\Kerbal Space Program\GameData\Squad\Parts\FuelTank\ and cloned the fuelTankX200-8 directory to a fuelTankL200-8 then rename the cfg file as well. Once done I've edit the new fuelTankL200-8.cfg changing name : name = fuelTank4-3 (original part is fuelTank4-2 ) then change the title to title = Rockomax L200-8 Fuel Tank and of course the resources part. To remove Oxidizer and add more space for Liquid fuel.

I compared different fuel tank and that's all that need to be changed (right?)

What's wrong: Can't see the new part in KSP. after looking at logs I found this :

 

[LOG 22:02:59.339] Load(Model): Squad/Parts/FuelTank/fuelTankL200-8/model
[ERR 22:02:59.362] File error:
Arg_InsufficientSpace
Parameter name: chars
  at System.Text.UTF8Encoding.InternalGetChars (System.Byte* bytes, Int32 byteCount, System.Char* chars, Int32 charCount, System.UInt32& leftOverBits, System.UInt32& leftOverCount, System.Object provider, System.Text.DecoderFallbackBuffer& fallbackBuffer, System.Byte[]& bufferArg, Boolean flush) [0x00000] in <filename unknown>:0
  at System.Text.UTF8Encoding.InternalGetChars (System.Byte[] bytes, Int32 byteIndex, Int32 byteCount, System.Char[] chars, Int32 charIndex, System.UInt32& leftOverBits, System.UInt32& leftOverCount, System.Object provider, System.Text.DecoderFallbackBuffer& fallbackBuffer, System.Byte[]& bufferArg, Boolean flush) [0x00000] in <filename unknown>:0
  at System.Text.UTF8Encoding.GetChars (System.Byte[] bytes, Int32 byteIndex, Int32 byteCount, System.Char[] chars, Int32 charIndex) [0x00000] in <filename unknown>:0
  at System.IO.BinaryReader.ReadCharBytes (System.Char[] buffer, Int32 index, Int32 count, System.Int32& bytes_read) [0x00000] in <filename unknown>:0
  at System.IO.BinaryReader.PeekChar () [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.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.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.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.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.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.ReadChild (System.IO.BinaryReader br, UnityEngine.Transform parent) [0x00000] in <filename unknown>:0
  at PartReader.Read (.UrlFile file) [0x00000] in <filename unknown>:0

[WRN 22:02:59.370] Model load error in 'C:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\GameData\Squad\Parts\FuelTank\fuelTankL200-8\model.mu'

Any clue? What's wrong with what I did?

Thanks for helping :)

Link to comment
Share on other sites

Is you file saved in ASCII or UTF8 ? You should put the cfg somewhere

 

Edit : err no, it s the model. Are you sure the model file is not damaged ?

And copying a part to change a few value is way easier to do with a simple ModuleManager patch.

Edited by sarbian
Link to comment
Share on other sites

Hi,

I didn't create/edit or even touch the model files. My Notepad ++ is set to encode in UTF8 but I have no clue if it should be encode in.

The goal is to add a new part I want to keep the classic Liquid/Oxidizer tank and to add an only Liquid fuel version. It's a new part with the same model and nearly the same properties.

 

Link to comment
Share on other sites

  • 2 weeks later...
On 11/10/2016 at 10:04 PM, Mun-walker said:

Hi,

I didn't create/edit or even touch the model files. My Notepad ++ is set to encode in UTF8 but I have no clue if it should be encode in.

The goal is to add a new part I want to keep the classic Liquid/Oxidizer tank and to add an only Liquid fuel version. It's a new part with the same model and nearly the same properties.

 

I might be able to help you.

Go to ksp's game data file and make a new file call it whatever you want and in that file make another one and name it the same as the part you want to add it must have the model and texture files and the cfg as well 

I personally recommend that you go to a cfg and right click and go to properties and go to open with and select notepad not notepad++ then edit the cfg you want and save it just remember that you must copy the cfg to the same sort of part you are changing or making good luck.:D

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...