Jump to content

KSP field error


Recommended Posts

KSP field,KSPaction,UI_float range, private MissileLauncher,public unsafe void Detonate();,public ModuleNuclearExplosive(),using BDArmory; ALL cause error total 54 of them and how to import the require .DLL

Link to comment
Share on other sites

  On 8/18/2020 at 12:27 PM, cukkoo said:

KSP field,KSPaction,UI_float range, private MissileLauncher,public unsafe void Detonate();,public ModuleNuclearExplosive(),using BDArmory; ALL cause error total 54 of them and how to import the require .DLL

Expand  

I'm not sure exactly what the problem is, but I'm guessing you've not added references to the relevant .dll 's. If you're on visual studio, right click on references on the solution explorer tab on the right; click add reference, then add a reference to Assembly-CSharp, and Assembly-CSharp-firstpass. Then you should also do the same to BDArmory.dll (or whatever the .dll found in the mod's folder is called).

Link to comment
Share on other sites

  On 8/19/2020 at 10:16 AM, cukkoo said:

ok but KSPAction require a identifier but when i add a identifier but when i add it gave me more error 

Expand  
// setting action group capability
[KSPAction(guiName = "Activate Module")]
public void ActivateAction(KSPActionParam param)
{
	// the method that needs to run when action group activated
}

An example above. Perhaps you haven't added 'KSPActionParam param' as a parameter into the method?

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