KSP-CKAN / NetKAN

Metadata files used by the NetKAN/CKAN indexer for KSP
Creative Commons Zero v1.0 Universal
72 stars 338 forks source link

Netkan doesn't create .ckan for my mod. #3003

Closed NoPanShabuShabu closed 8 years ago

NoPanShabuShabu commented 8 years ago

Here's the .netkan for my mod:

{ "spec_version" : 1, "identifier" : "FacilityReset", "$kref" : "#/ckan/kerbalstuff/1446", "x_netkan_license_ok": true }

It seems to be downloading the mod into the CKAN\downloads folder OK, but netkan.exe always ends with:

FATAL CKAN.NetKAN.program (null) - Exception has been thrown by the target of an invocation.

I think it has to do with the license which is "Public Domain." I've tried a couple of variations of the .netkan, such as having the line: x_netkan_license_ok": false, or explicity stating: "license" : "Public Domain". Still, no dice.

politas commented 8 years ago

"public-domain" is the string used for Public Domain in the CKAN schema. We'd also want to filter out the source code, so add the following: "install": [ { "file": "FacilityReset", "install_to":"GameData", "filter":"FacilityResetSource.cs" } ] It would also be good if your KerbalStuff page included a Forum link so people can find out exactly what it does, comment on the mod and get in touch with you if there are any bugs.

NoPanShabuShabu commented 8 years ago

Thanks for the help. I fixed the license and added your suggestions, and a version that works is below. The instructions for adding a mod say that a pull request is preferred, but what I see when I follow the links doesn't quite match what it says I'm supposed to see, so I'm a bit confused about just how to do that.

FacilityReset.netkan

{ "spec_version" : 1, "identifier" : "FacilityReset", "$kref" : "#/ckan/kerbalstuff/1446", "license" : "public-domain", "name" : "Facility Reset for 64 bit", "abstract" : "A plugin which works around a bug affecting 64 bit versions by resetting the Space Center facilities to the correct level.", "resources" : { "homepage" : "http://forum.kerbalspaceprogram.com/index.php?/topic/131454-facility-reset-for-64-bit-ksp/" }, "install" : [{ "file": "FacilityReset", "install_to":"GameData", "filter":"FacilityResetSource.cs" }] }

politas commented 8 years ago

That's perfect, @NoPanShabuShabu. Should be appearing in CKAN within two hours. Thanks for the submission!