Powered by Jitbit .Net Forum free trial version.

HomeSunless Sea

A game of survival, trade and exploration in the universe of Fallen London

Any way to make the .json files more readable? Messages in this topic - RSS

Brom
Brom
Posts: 2

3/4/2016
As the title says. Opening them with Notepad++ works fine but having to sift through a gigantic wall of text - or worse yet, having all of it on a single line - isn't that attractive. I even tried installing the json viewer plugin but it doesn't always seem to work.

Anyone more tech-savy than I am got any advice on the matter?
edited by Brom on 3/4/2016
0 link
Talkes
Talkes
Posts: 90

3/4/2016
You should google for some json viewers, beautifiers, converters (to xml for example), e.t.c..

Or get some proper IDE, like MS Visual Studio (I believe express version used to be free), IntelliJ Idea or some other. Most of them have code autoformatting, might help with json as well.

--
http://fallenlondon.storynexus.com/Profile/Talkes
0 link
Remedan
Remedan
Posts: 61

3/4/2016
You can format a json in vim by running :%!python -m json.tool. smile

But if you for some reason aren't a vim user, typing 'json viewer' into google produced some online json viewers/editors. This one is my favourite of the few I tried.

--
My Neathly Alter Ego -- Still trying to make some sense of it all.
+1 link
Optimatum
Optimatum
Posts: 3551

3/6/2016
Any editor with the ability to pretty-print json, which includes Notepad++ with the right plugins, should work just fine for you. I'm on a Mac and, since that means no Notepad++, downloaded a trial version of Sublime Text 2 plus formatting plugin. Just make sure to save the formatted version of the json as a separate file outside the game directory - for some reason Sunless Sea wants all the data without line breaks so any file with breaks is unusable.

--
Optimatum, a ruthless and merciful gentleman. No plant battles, Affluent Photographer requests, or healing offers; all other social actions welcome.

Want a sip of Cider? Just say hi! Christmas Cards appreciated though, especially the Fogscape with Tentacles.

PM me for information enigmatic or Fated. Though the forum please, not FL itself.
0 link
Brom
Brom
Posts: 2

3/8/2016
I tried using N++'s plugin JSON viewer but it doesn't seem to work for the events file - which is kinda a big deal since that's where the vast majority of the text in the game is.

Optimatum wrote:
for some reason Sunless Sea wants all the data without line breaks so any file with breaks is unusable.


Are you sure? The files within the geography folder seem to work even if they're not formatted on a single line.
0 link
Optimatum
Optimatum
Posts: 3551

3/8/2016
It's not the case for all the files, but in my experience saves and the quality and event files cause a file corrupted message if there are line breaks.

You could try using this online editor which lets you see the variables somewhat more coherently. Though be warned that even just with events_import.json it seemed for a minute there like my computer was going to melt.
edited by Optimatum on 3/8/2016

--
Optimatum, a ruthless and merciful gentleman. No plant battles, Affluent Photographer requests, or healing offers; all other social actions welcome.

Want a sip of Cider? Just say hi! Christmas Cards appreciated though, especially the Fogscape with Tentacles.

PM me for information enigmatic or Fated. Though the forum please, not FL itself.
0 link
Errata
Errata
Posts: 3

10/19/2016
Mint Humbugs wrote:
Anybody know where to find the files on a mac if using Steam?

I think they should be in in the subfolders of /Users/[Your Username Here]/Library/Application Support/unity.Failbetter Games.Sunless Sea/, though I ain't in a position to double-check that from here.

--
Profile: http://fallenlondon.storynexus.com/Profile/Errata
0 link
Optimatum
Optimatum
Posts: 3551

10/19/2016
It's there for me. Try using the Go to Folder command in Finder (Cmd+shift+G) to go to ~/Library/Application Support/unity.Failbetter Games.Sunless Sea/

--
Optimatum, a ruthless and merciful gentleman. No plant battles, Affluent Photographer requests, or healing offers; all other social actions welcome.

Want a sip of Cider? Just say hi! Christmas Cards appreciated though, especially the Fogscape with Tentacles.

PM me for information enigmatic or Fated. Though the forum please, not FL itself.
+1 link
Optimatum
Optimatum
Posts: 3551

10/20/2016
Which files are you looking for? Saves should of course be in /unity.Failbetter Games.Sunless Sea/saves while qualities and events are in /unity.Failbetter Games.Sunless Sea/entities

--
Optimatum, a ruthless and merciful gentleman. No plant battles, Affluent Photographer requests, or healing offers; all other social actions welcome.

Want a sip of Cider? Just say hi! Christmas Cards appreciated though, especially the Fogscape with Tentacles.

PM me for information enigmatic or Fated. Though the forum please, not FL itself.
+1 link




Powered by Jitbit Forum 8.0.2.0 © 2006-2013 Jitbit Software