Fractal Softworks Forum

Please login or register.

Login with username, password and session length

Author Topic: Descriptions help (RESOLVED)  (Read 3123 times)

Lucian Greymark

  • Captain
  • ****
  • Posts: 274
    • View Profile
Descriptions help (RESOLVED)
« on: October 18, 2015, 10:22:52 PM »

Okay so, with the change to windows 10 all of my excel csv files have lost their formatting. Mostly I can handle this, and have done so, but for some reason the description files are suddenly not working. I've fiddled with manual formatting aplenty but nothing's working. The one error I seem to be getting constantly is:
Code
JSONObject["type"] not found

Now, this happens no matter what I have in the descriptions file, that includes pasting data straight into the file from mods that already work and pasting data straight in from the core game.

This of course leads me to believe that in my tinkering I've deleted a core file somewhere that makes all this work. It's worth noting that if I remove the descriptions file from my mod it works perfectly. Help???

LGrey
« Last Edit: October 19, 2015, 03:41:32 AM by Lucian Greymark »
Logged

Deathfly

  • Modders' Vanguard
  • Commander
  • ***
  • Posts: 245
  • Murdered by T. H. Morgan
    • View Profile
Re: Descriptions help
« Reply #1 on: October 19, 2015, 01:33:52 AM »

Maybe you are using UTF-8 with BOM and that header will cause this issue. Try to use ANSI or UTF-8 without BOM to save it(You may need notepad or notepad ++ to do so).

And glad to see you alive. :)
Logged
A not-so-noob functional geneticist
And a free bug hunter
Code and decode almost everythings with a genomics approach.
Served in Neutrino corporation as a long-term services and supports staff.

Lucian Greymark

  • Captain
  • ****
  • Posts: 274
    • View Profile
Re: Descriptions help
« Reply #2 on: October 19, 2015, 01:42:49 AM »

*blinks* utf-8??? I'm just using ms-excel bro. Idk
Logged

Zudgemud

  • Commander
  • ***
  • Posts: 225
    • View Profile
Re: Descriptions help
« Reply #3 on: October 19, 2015, 02:03:10 AM »

Don't use excel, for me personally excel kept on *** up various starsector documents for a long time, on a seemingly random basis too. Use notepad or something even more useful like notepad++ or eclipse, I swapped to those and never had any problem after the switch.
Logged

Lucian Greymark

  • Captain
  • ****
  • Posts: 274
    • View Profile
Re: Descriptions help
« Reply #4 on: October 19, 2015, 02:07:20 AM »

so what... jsut open the file in notepad++? aightio, brb
Logged

Deathfly

  • Modders' Vanguard
  • Commander
  • ***
  • Posts: 245
  • Murdered by T. H. Morgan
    • View Profile
Re: Descriptions help
« Reply #5 on: October 19, 2015, 02:13:53 AM »

so what... jsut open the file in notepad++? aightio, brb

then check the format tab, and you should understand what did I said one you do that.
Logged
A not-so-noob functional geneticist
And a free bug hunter
Code and decode almost everythings with a genomics approach.
Served in Neutrino corporation as a long-term services and supports staff.

Lucian Greymark

  • Captain
  • ****
  • Posts: 274
    • View Profile
Re: Descriptions help
« Reply #6 on: October 19, 2015, 02:20:13 AM »

Kay, that is making sense now, but it didn't help. I'm still getting the same error

Code
{
[
#id,type,text1,text2,text3,notes
"scion_intervention,SHIP,"Snip.",,,"
]
}

Kay, so there's what I'm working with

(encoded with utf-8 (w/o bom)
« Last Edit: October 19, 2015, 02:24:21 AM by Lucian Greymark »
Logged

Deathfly

  • Modders' Vanguard
  • Commander
  • ***
  • Posts: 245
  • Murdered by T. H. Morgan
    • View Profile
Re: Descriptions help
« Reply #7 on: October 19, 2015, 02:29:47 AM »

Your quotes is in the wrong place.



      "scion_intervention,SHIP,"Snip.",,,"

It should be looked like this.

"scion_intervention",SHIP,"Snip.",,,
Logged
A not-so-noob functional geneticist
And a free bug hunter
Code and decode almost everythings with a genomics approach.
Served in Neutrino corporation as a long-term services and supports staff.

Lucian Greymark

  • Captain
  • ****
  • Posts: 274
    • View Profile
Re: Descriptions help
« Reply #8 on: October 19, 2015, 02:34:03 AM »

Code
Fatal:JSONObject["id"] not found

That's what I get with:

Code
{
[
#id,type,text1,text2,text3,notes
"scion_intervention",SHIP,"Snip.",,,
]
}
Logged

Zudgemud

  • Commander
  • ***
  • Posts: 225
    • View Profile
Re: Descriptions help
« Reply #9 on: October 19, 2015, 02:34:39 AM »

Well, like all error searching, start from the last functional backup that you have.
Just reading your reported error I assume you misplaced a comma somewhere or misspelled some some setting related to the "type" of object being described.

I bet you can solve any eventual excel problem in a simple setting adjustment or whatever, but for me it was just easier to start using other programs instead.

Logged

Lucian Greymark

  • Captain
  • ****
  • Posts: 274
    • View Profile
Re: Descriptions help
« Reply #10 on: October 19, 2015, 02:37:55 AM »

Okay, I fixed it, had to get rid of the {} and [] and "" around the values. Works fine now. Thanks for the help anyway lads.

As for working from a previous backup, I'd have to reinstall win7 for that lol

for anyone who cares the final layout just looked like this in notepad++ with utf-8 encoding

Code
id,type,text1,text2,text3,notes
scion_intervention,SHIP,"Snip.",,,

I'll be updating my download just as soon as I've got all the other descriptions transferred over.
« Last Edit: October 19, 2015, 02:41:05 AM by Lucian Greymark »
Logged

Tartiflette

  • Admiral
  • *****
  • Posts: 3529
  • MagicLab discord: https://discord.gg/EVQZaD3naU
    • View Profile
Re: Descriptions help (RESOLVED)
« Reply #11 on: October 19, 2015, 05:54:32 AM »

Don't put unnecessary spaces in the descriptions, even for formatting... It's prone to create errors.
Logged
 

Lucian Greymark

  • Captain
  • ****
  • Posts: 274
    • View Profile
Re: Descriptions help (RESOLVED)
« Reply #12 on: October 19, 2015, 05:56:27 AM »

roger that, thanks tarti
Logged