KSP-CKAN / NetKAN

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

[Bug]: Netkan.exe "Unexpected character encountered" #10032

Closed ProgrammerFailure closed 1 month ago

ProgrammerFailure commented 1 month ago

Is there an existing issue for this?

Operating System

Windows 11

CKAN Version

1.34.4

Games

KSP 1

Game Version

1.12.5

Did you make any manual changes to your game folder (i.e., not via CKAN)?

No

Describe the bug

When running netkan.exe with this argument:

netkan.exe --verbose CargoAccelerators.netkan

And this .netkan

spec_version: v1.27
identifier: CargoAccelerators
name: Cargo accelerators
abstract: Parts to accelerate vessels
author:
  - allista
version: v0.3.0.1
$kref: '#/ckan/github/allista/CargoAccelerators'
$vref: '#/ckan/ksp-avc'
resources:
  bugtracker: https://github.com/allista/CargoAccelerators/Issues
  homepage: https://github.com/allista/CargoAccelerators
  repository: https://github.com/allista/CargoAccelerators
tags:
  - parts
install:
  - file: GameData/CargoAccelerators
    install_to: GameData
ksp_version_min: 1.7.1
ksp_version_max: 1.12.99999
x_via: Generated by Metadata Webtool

It throws this error

Unexpected character encountered while parsing value: s. Path '', line 0, position 0.

I think it should have processed and made a .ckan. Couldn't find the documentation for this error.

Steps to reproduce

Use netkan.exe Run with --verbose flag (or don't, it happens either way) Try to process the above .netkan

Relevant log output

No response

HebaruSan commented 1 month ago

Unable to reproduce; for me it complains about the missing license. I don't think this description is accurate.

HebaruSan commented 1 month ago

Oh! I bet you used an editor that adds a BOM at the start! Get rid of that.

ProgrammerFailure commented 1 month ago

@HebaruSan I typed it in again, letter by letter, in notepad. Added a license too. Still same error.

So I tried something different: if you recall I was playing around with netkan.exe yesterday. I used the exact same file as yesterday & it gave me this exact error.

More worryingly, netkan.exe throws a win32 batac error. I had to override windows security just for it to run. Please confirm that it is not compromised or something, this is weird.

ProgrammerFailure commented 1 month ago

My apologies, somehow my files got corrupted. Sorry to stir up trouble.