Bad location help

Hi, I need some help. The setup.cmd says its in a bad location.

CDK is inside of my warthunder folder, and I am not using steam (its a fresh install of warthunder on my C drive)

image

image

Mission editor runs normally for most maps until I try to import hangar_field.bin, which gives me this error:

image

also i do randomly get errors when using the other editors