Jump to content

Help with my first plugin: "Cannot find a PartModule of typename 'FirstMod'"


Recommended Posts

Thanks to the great tutorial on the wiki, I was able to write my first little KSP plugin. Except that I must have missed something, because it doesn't seem to work!

I can find my "new" part all right, put it on a vessel, and go to the launch pad. However,

when I look at the log, I don't see the "Hello, Kerbin" that should be there.

Here's what I see in the log instead (trying to put only the relevant parts):

[ModuleManager] compiling list of loaded mods...
Mod DLLs found:
FirstMod v1.0.5478.33724
(...)
PartLoader: Compiling Part 'Squad/Parts/Utility/MyUselessPart/MyUselessPart/MyUselessPart'
Cannot find a PartModule of typename 'FirstMod'

and my cfg file looks like this:


name = MyUselessPart
(...)
MODULE
{
name = FirstMod
(...)

I double-checked, and I am building for .Net 3.5, not 4 (I had to change it).

What is the error in the log trying to tell me?

edit: Oh, I figured it out - I put in the name of the dll in MODULE, but in fact it needs the name of the class that's in the dll. My bad!

Edited by nohelmet
figured it out
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...