kolton / d2bot-with-kolbot

d2bot game manager by D3STROY3R with kolbot libs by kolton for d2bs
344 stars 333 forks source link

Syntax Error - failed to load character config #708

Open KultX opened 5 years ago

KultX commented 5 years ago

Having trouble.. What am I overlooking?

SS of error: image

Character Config:

// Paladin config file

/* Brief instructions:

function LoadConfig() { /* Sequence config

DarkHorseDre commented 5 years ago

Hey, the error shows a bad entry somewhere.. I had a quick look, couldn't see it. quickest thing to do is do a file compare on your file vs the class file (e.g. paladin.js) or just create a new profile and config - your config looks quite simple so wouldn't take you long.

KultX commented 5 years ago

I copy//pasted default config. Getting same error - Can anyone link me to OG config or their hammdin config that's working?

DarkHorseDre commented 5 years ago

So its either another file (config.js?) or the default that is faulty - have you changed any other files?

I'd drag down a new copy to another location and run that which will work. Someone giving you their config will only work if your default is faulty - just download a new copy of the bot (or do a SVN update and replace)

noah- commented 5 years ago

Are you using utf8 branch? Likely you edited the file with notepad which saved with UTF8-BOM, file needs to be in UTF8 format without BOM.

KultX commented 5 years ago

Derp! I think your nailed it Noah - I had opened with notepad initially (didn't think I had saved) then realized I did not have ++ on this station. I will dump configs and back up.