Jump to content
Korean Random

Recommended Posts

So i have almost updated my single xvm.xc file

It seems no matter what i change i keep getting this error in the xvm.log file:

JSONxLoaderException: PAIR: <pair> expected, got "}" at 1888:1 in "res_mods\configs\xvm\xvm.xc"

I been spending hours trying to get rid of this error but im clueless, it might be so obvious that i overlooked it.

 

xvm.log

xvm.xc

Share this post


Link to post

Short link
Share on other sites

Remove the comma from row 1887. The comma indicates that more code is coming, but it is the end of the section.

 

That is, change 

},

 to just 

}
Edited by cokebottle

Share this post


Link to post

Short link
Share on other sites

Sad to tell you -- this is the reason XVM is now broken into multiple config files.  On load the parsing engine will zero in on the file and line that is syntactically incorrect.  With smaller .xc files it becomes infinitely easier to debug syntax erros.  I know this doesnt help your immediate issue -- but I would consider breaking your config into smaller pieces and then having those called.

  • Upvote 1

Share this post


Link to post

Short link
Share on other sites

expected, got "}       so its waiting  comma?    try to fiddle those  last two lines

Share this post


Link to post

Short link
Share on other sites

On line 99 you call on a file named elements.xc

"elements": ${"elements.xc":"elements"},

That file either needs to exist in the same folder as your xvm.xc, or you need to add the correct path to where it is. For example:

"elements": ${"default/elements.xc":"elements"},

With this change your config at least loads properly.

Edited by cokebottle
  • Upvote 2

Share this post


Link to post

Short link
Share on other sites

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.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...