Fractal Softworks Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Starsector 0.97a is out! (02/02/24); New blog post: Simulator Enhancements (03/13/24)

Author Topic: Error adding a ship  (Read 4084 times)

Calodine

  • Lieutenant
  • **
  • Posts: 50
    • View Profile
Error adding a ship
« on: March 19, 2012, 03:07:33 AM »

Do hope this is the right section for it.

Anyway, this'd be the second one I'm adding. The first works fine, but is basically a reworking of an eagle. Basically, trying to load the varient ediotr when the ship is added gives an error. Pretty sure it'd do it in game too. Probably a problem with displaying it?

Here's the error, I can't make much sense out of it what with the unknown source.

Code
21925 [Thread-6] ERROR com.fs.starfarer.combat.String  - java.lang.NullPointerException
java.lang.NullPointerException
at com.fs.starfarer.combat.entities.super.oOOO.I.<init>(Unknown Source)
at com.fs.starfarer.loading.specs.N.super(Unknown Source)
at com.fs.starfarer.loading.specs.N.super(Unknown Source)
at com.fs.starfarer.loading.specs.N.super(Unknown Source)
at com.fs.starfarer.title.ooOO.OO0OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO.Ò00000(Unknown Source)
at com.fs.starfarer.title.ooOO.OO0OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO.super.public$new(Unknown Source)
at com.fs.starfarer.coreui.D.ô00000(Unknown Source)
at com.fs.starfarer.coreui.D.<init>(Unknown Source)
at com.fs.starfarer.ui.M.o00000(Unknown Source)
at com.fs.starfarer.coreui.refit.E.super.new$new(Unknown Source)
at com.fs.starfarer.coreui.refit.E.Ó00000(Unknown Source)
at com.fs.starfarer.coreui.class.Ò00000(Unknown Source)
at com.fs.starfarer.title.OoOO.super.interface$super(Unknown Source)
at com.fs.starfarer.title.OoOO.super(Unknown Source)
at com.fs.starfarer.title.D.super(Unknown Source)
at com.fs.starfarer.ui.g.super(Unknown Source)
at com.fs.starfarer.ui.o0OO.super(Unknown Source)
at com.fs.starfarer.ui.T.o00000(Unknown Source)
at com.fs.starfarer.oOOO.OõÒ000(Unknown Source)
at com.fs.super.A.Ò00000(Unknown Source)
at com.fs.starfarer.combat.String.super(Unknown Source)
at com.fs.starfarer.StarfarerLauncher$2.run(Unknown Source)
at java.lang.Thread.run(Thread.java:619)

Narrowed it down somewhat - It's definitely not the sprite. Switched to using an already existing sprite to test. It's not the variant - everything in there is fine. Game doesn't crash if there's no variant, since it isn't displayed in the variant editor then. The csv stuff is definitely fine, too. Only place it can be is the ship file itself, but that looks pretty fine too. Tried everything I can think of, but it won't work :<

Code
{"bounds":[196,31.5,196,13.5,179,7.5,177,-13.5,195,-15.5,194,-34.5,179,-37.5,165,-50.5,165,-66.5,133,-62.5,107,-69.5,91,-62.5,83,-67.5,80,-79.5,43,-79.5,43,-60.5,-99,-60.5,-112,-67.5,-137,-67.5,-143,-60.5,-173,-60.5,-174,-51.5,-166,-43.5,-180,-43.5,-178,-31.5,-186,-26.5,-186,-16.5,-174,-14.5,-171,-1.5,-172,14.5,-186,15.5,-186,26.5,-173,25.5,-168,31.5,-179,32.5,-181,42.5,-169,40.5,-171,49.5,-174,60.5,-152,59.5,-138,59.5,-123,65.5,-100,58.5,39,58.5,42,75.5,80,76.5,80,65.5,91,58.5,107,64.5,132,58.5,142,65.5,164,63.5,165,49.5,177,31.5],"center":[83,190],"collisionRadius":"215","engineSlots":[{"angle":"180","contrailSize":"32","location":[44,71],"length":"40","width":"10","style":"HIGH_TECH"},{"angle":"180","contrailSize":"32","location":[44,-73],"length":"40","width":"10","style":"HIGH_TECH"},{"angle":"180","contrailSize":"32","location":[-173,55],"length":"50","width":"10","style":"HIGH_TECH"},{"angle":"180","contrailSize":"32","location":[-178,38],"length":"60","width":"10","style":"HIGH_TECH"},{"angle":"180","contrailSize":"32","location":[-187,23],"length":"70","width":"10","style":"HIGH_TECH"},{"angle":"180","contrailSize":"32","location":[-187,-22],"length":"70","width":"10","style":"HIGH_TECH"},{"angle":"180","contrailSize":"32","location":[-179,-38],"length":"60","width":"10","style":"HIGH_TECH"},{"angle":"180","contrailSize":"32","location":[-174,-55],"length":"50","width":"10","style":"HIGH_TECH"}],"height":390,"width":164,"hullId":"nevermore","hullName":"Nevermore","hullSize":"CAPITAL_SHIP","shieldCenter":[0,0],"shieldRadius":"210","spriteName":"graphics/ships/nevermore.png","style":"HIGH_TECH","viewOffset":0,"weaponSlots":[{"angle":"0","arc":"270","id":"WS-01","locations":[113,-1],"mount":"TURRET","size":"LARGE","type":"ENERGY"},{"angle":"0","arc":"270","id":"WS-02","locations":[68,0],"mount":"TURRET","size":"LARGE","type":"ENERGY"},{"angle":"0","arc":"225","id":"WS-03","locations":[-66,0],"mount":"TURRET","size":"LARGE","type":"ENERGY"},{"angle":"0","arc":"360","id":"WS-04","locations":[-126,-17],"mount":"TURRET","size":"LARGE","type":"UNIVERSAL"},{"angle":"0","arc":"360","id":"WS-05","locations":[-126,17],"mount":"TURRET","size":"LARGE","type":"UNIVERSAL"},{"angle":"0","arc":"5","id":"WS-06","locations":[189,24],"mount":"HARDPOINT","size":"MEDIUM","type":"MISSILE"},{"angle":"0","arc":"5","id":"WS-07","locations":[189,-24],"mount":"HARDPOINT","size":"MEDIUM","type":"MISSILE"},{"angle":"0","arc":"5","id":"WS-08","locations":[172,0],"mount":"HARDPOINT","size":"MEDIUM","type":"MISSILE"},{"angle":"45","arc":"180","id":"WS-09","locations":[153,28],"mount":"TURRET","size":"MEDIUM","type":"UNIVERSAL"},{"angle":"-45","arc":"180","id":"WS-010","locations":[152,-30],"mount":"TURRET","size":"MEDIUM","type":"UNIVERSAL"},{"angle":"90","arc":"145","id":"WS-011","locations":[25,20],"mount":"TURRET","size":"MEDIUM","type":"ENERGY"},{"angle":"-90","arc":"145","id":"WS-012","locations":[25,-20],"mount":"TURRET","size":"MEDIUM","type":"ENERGY"},{"angle":"90","arc":"145","id":"WS-013","locations":[-32,20],"mount":"TURRET","size":"MEDIUM","type":"ENERGY"},{"angle":"-90","arc":"145","id":"WS-014","locations":[-32,-20],"mount":"TURRET","size":"MEDIUM","type":"ENERGY"},{"angle":"180","arc":"240","id":"WS-015","locations":[-158,0],"mount":"TURRET","size":"MEDIUM","type":"ENERGY"},{"angle":"-45","arc":"180","id":"WS-016","locations":[154,-54],"mount":"TURRET","size":"SMALL","type":"UNIVERSAL"},{"angle":"45","arc":"180","id":"WS-017","locations":[154,53],"mount":"TURRET","size":"SMALL","type":"UNIVERSAL"},{"angle":"90","arc":"210","id":"WS-018","locations":[88,49],"mount":"TURRET","size":"SMALL","type":"ENERGY"},{"angle":"-90","arc":"210","id":"WS-019","locations":[88,-50],"mount":"TURRET","size":"SMALL","type":"ENERGY"},{"angle":"090","arc":"150","id":"WS-020","locations":[31,38],"mount":"TURRET","size":"SMALL","type":"ENERGY"},{"angle":"-90","arc":"150","id":"WS-021","locations":[31,-39],"mount":"TURRET","size":"SMALL","type":"ENERGY"},{"angle":"90","arc":"150","id":"WS-022","locations":[-32,38],"mount":"TURRET","size":"SMALL","type":"ENERGY"},{"angle":"-90","arc":"150","id":"WS-023","locations":[-32,-39],"mount":"TURRET","size":"SMALL","type":"ENERGY"},{"angle":"135","arc":"210","id":"WS-024","locations":[-127,54],"mount":"TURRET","size":"SMALL","type":"ENERGY"},{"angle":"225","arc":"210","id":"WS-025","locations":[-127,-55],"mount":"TURRET","size":"SMALL","type":"ENERGY"}]}

Yeah, it's in one line. Unfortunate, but that's how it came out of the ship editor ;_;

'pologies, but I just can't figure it out.
Logged

Flare

  • Admiral
  • *****
  • Posts: 906
    • View Profile
Re: Error adding a ship
« Reply #1 on: March 19, 2012, 03:17:37 AM »

Had this happen with my first ship, it didn't go away until I remade it from scratch :(.
Logged
Quote from: Thana
Quote from: Alex

The battle station is not completely operational, shall we say.

"Now witness the firepower of this thoroughly buggy and unoperational batt... Oh, hell, you know what? Just ignore the battle station, okay?"

megal00t

  • Commander
  • ***
  • Posts: 209
    • View Profile
Re: Error adding a ship
« Reply #2 on: March 19, 2012, 03:19:10 AM »

Code
{
    "bounds": [
        196,
        31.5,
        196,
        13.5,
        179,
        7.5,
        177,
        -13.5,
        195,
        -15.5,
        194,
        -34.5,
        179,
        -37.5,
        165,
        -50.5,
        165,
        -66.5,
        133,
        -62.5,
        107,
        -69.5,
        91,
        -62.5,
        83,
        -67.5,
        80,
        -79.5,
        43,
        -79.5,
        43,
        -60.5,
        -99,
        -60.5,
        -112,
        -67.5,
        -137,
        -67.5,
        -143,
        -60.5,
        -173,
        -60.5,
        -174,
        -51.5,
        -166,
        -43.5,
        -180,
        -43.5,
        -178,
        -31.5,
        -186,
        -26.5,
        -186,
        -16.5,
        -174,
        -14.5,
        -171,
        -1.5,
        -172,
        14.5,
        -186,
        15.5,
        -186,
        26.5,
        -173,
        25.5,
        -168,
        31.5,
        -179,
        32.5,
        -181,
        42.5,
        -169,
        40.5,
        -171,
        49.5,
        -174,
        60.5,
        -152,
        59.5,
        -138,
        59.5,
        -123,
        65.5,
        -100,
        58.5,
        39,
        58.5,
        42,
        75.5,
        80,
        76.5,
        80,
        65.5,
        91,
        58.5,
        107,
        64.5,
        132,
        58.5,
        142,
        65.5,
        164,
        63.5,
        165,
        49.5,
        177,
        31.5
    ],
    "center": [
        83,
        190
    ],
    "collisionRadius": "215",
    "engineSlots": [
        {
            "angle": "180",
            "contrailSize": "32",
            "location": [
                44,
                71
            ],
            "length": "40",
            "width": "10",
            "style": "HIGH_TECH"
        },
        {
            "angle": "180",
            "contrailSize": "32",
            "location": [
                44,
                -73
            ],
            "length": "40",
            "width": "10",
            "style": "HIGH_TECH"
        },
        {
            "angle": "180",
            "contrailSize": "32",
            "location": [
                -173,
                55
            ],
            "length": "50",
            "width": "10",
            "style": "HIGH_TECH"
        },
        {
            "angle": "180",
            "contrailSize": "32",
            "location": [
                -178,
                38
            ],
            "length": "60",
            "width": "10",
            "style": "HIGH_TECH"
        },
        {
            "angle": "180",
            "contrailSize": "32",
            "location": [
                -187,
                23
            ],
            "length": "70",
            "width": "10",
            "style": "HIGH_TECH"
        },
        {
            "angle": "180",
            "contrailSize": "32",
            "location": [
                -187,
                -22
            ],
            "length": "70",
            "width": "10",
            "style": "HIGH_TECH"
        },
        {
            "angle": "180",
            "contrailSize": "32",
            "location": [
                -179,
                -38
            ],
            "length": "60",
            "width": "10",
            "style": "HIGH_TECH"
        },
        {
            "angle": "180",
            "contrailSize": "32",
            "location": [
                -174,
                -55
            ],
            "length": "50",
            "width": "10",
            "style": "HIGH_TECH"
        }
    ],
    "height": 390,
    "width": 164,
    "hullId": "nevermore",
    "hullName": "Nevermore",
    "hullSize": "CAPITAL_SHIP",
    "shieldCenter": [
        0,
        0
    ],
    "shieldRadius": "210",
    "spriteName": "graphics/ships/nevermore.png",
    "style": "HIGH_TECH",
    "viewOffset": 0,
    "weaponSlots": [
        {
            "angle": "0",
            "arc": "270",
            "id": "WS-01",
            "locations": [
                113,
                -1
            ],
            "mount": "TURRET",
            "size": "LARGE",
            "type": "ENERGY"
        },
        {
            "angle": "0",
            "arc": "270",
            "id": "WS-02",
            "locations": [
                68,
                0
            ],
            "mount": "TURRET",
            "size": "LARGE",
            "type": "ENERGY"
        },
        {
            "angle": "0",
            "arc": "225",
            "id": "WS-03",
            "locations": [
                -66,
                0
            ],
            "mount": "TURRET",
            "size": "LARGE",
            "type": "ENERGY"
        },
        {
            "angle": "0",
            "arc": "360",
            "id": "WS-04",
            "locations": [
                -126,
                -17
            ],
            "mount": "TURRET",
            "size": "LARGE",
            "type": "UNIVERSAL"
        },
        {
            "angle": "0",
            "arc": "360",
            "id": "WS-05",
            "locations": [
                -126,
                17
            ],
            "mount": "TURRET",
            "size": "LARGE",
            "type": "UNIVERSAL"
        },
        {
            "angle": "0",
            "arc": "5",
            "id": "WS-06",
            "locations": [
                189,
                24
            ],
            "mount": "HARDPOINT",
            "size": "MEDIUM",
            "type": "MISSILE"
        },
        {
            "angle": "0",
            "arc": "5",
            "id": "WS-07",
            "locations": [
                189,
                -24
            ],
            "mount": "HARDPOINT",
            "size": "MEDIUM",
            "type": "MISSILE"
        },
        {
            "angle": "0",
            "arc": "5",
            "id": "WS-08",
            "locations": [
                172,
                0
            ],
            "mount": "HARDPOINT",
            "size": "MEDIUM",
            "type": "MISSILE"
        },
        {
            "angle": "45",
            "arc": "180",
            "id": "WS-09",
            "locations": [
                153,
                28
            ],
            "mount": "TURRET",
            "size": "MEDIUM",
            "type": "UNIVERSAL"
        },
        {
            "angle": "-45",
            "arc": "180",
            "id": "WS-010",
            "locations": [
                152,
                -30
            ],
            "mount": "TURRET",
            "size": "MEDIUM",
            "type": "UNIVERSAL"
        },
        {
            "angle": "90",
            "arc": "145",
            "id": "WS-011",
            "locations": [
                25,
                20
            ],
            "mount": "TURRET",
            "size": "MEDIUM",
            "type": "ENERGY"
        },
        {
            "angle": "-90",
            "arc": "145",
            "id": "WS-012",
            "locations": [
                25,
                -20
            ],
            "mount": "TURRET",
            "size": "MEDIUM",
            "type": "ENERGY"
        },
        {
            "angle": "90",
            "arc": "145",
            "id": "WS-013",
            "locations": [
                -32,
                20
            ],
            "mount": "TURRET",
            "size": "MEDIUM",
            "type": "ENERGY"
        },
        {
            "angle": "-90",
            "arc": "145",
            "id": "WS-014",
            "locations": [
                -32,
                -20
            ],
            "mount": "TURRET",
            "size": "MEDIUM",
            "type": "ENERGY"
        },
        {
            "angle": "180",
            "arc": "240",
            "id": "WS-015",
            "locations": [
                -158,
                0
            ],
            "mount": "TURRET",
            "size": "MEDIUM",
            "type": "ENERGY"
        },
        {
            "angle": "-45",
            "arc": "180",
            "id": "WS-016",
            "locations": [
                154,
                -54
            ],
            "mount": "TURRET",
            "size": "SMALL",
            "type": "UNIVERSAL"
        },
        {
            "angle": "45",
            "arc": "180",
            "id": "WS-017",
            "locations": [
                154,
                53
            ],
            "mount": "TURRET",
            "size": "SMALL",
            "type": "UNIVERSAL"
        },
        {
            "angle": "90",
            "arc": "210",
            "id": "WS-018",
            "locations": [
                88,
                49
            ],
            "mount": "TURRET",
            "size": "SMALL",
            "type": "ENERGY"
        },
        {
            "angle": "-90",
            "arc": "210",
            "id": "WS-019",
            "locations": [
                88,
                -50
            ],
            "mount": "TURRET",
            "size": "SMALL",
            "type": "ENERGY"
        },
        {
            "angle": "090",
            "arc": "150",
            "id": "WS-020",
            "locations": [
                31,
                38
            ],
            "mount": "TURRET",
            "size": "SMALL",
            "type": "ENERGY"
        },
        {
            "angle": "-90",
            "arc": "150",
            "id": "WS-021",
            "locations": [
                31,
                -39
            ],
            "mount": "TURRET",
            "size": "SMALL",
            "type": "ENERGY"
        },
        {
            "angle": "90",
            "arc": "150",
            "id": "WS-022",
            "locations": [
                -32,
                38
            ],
            "mount": "TURRET",
            "size": "SMALL",
            "type": "ENERGY"
        },
        {
            "angle": "-90",
            "arc": "150",
            "id": "WS-023",
            "locations": [
                -32,
                -39
            ],
            "mount": "TURRET",
            "size": "SMALL",
            "type": "ENERGY"
        },
        {
            "angle": "135",
            "arc": "210",
            "id": "WS-024",
            "locations": [
                -127,
                54
            ],
            "mount": "TURRET",
            "size": "SMALL",
            "type": "ENERGY"
        },
        {
            "angle": "225",
            "arc": "210",
            "id": "WS-025",
            "locations": [
                -127,
                -55
            ],
            "mount": "TURRET",
            "size": "SMALL",
            "type": "ENERGY"
        }
    ]
}

theres nothing wrong with the code as i can tell....
you added a variant yet?
and try adding this code instead of the one liner...
« Last Edit: March 19, 2012, 03:21:03 AM by megal00t »
Logged

Calodine

  • Lieutenant
  • **
  • Posts: 50
    • View Profile
Re: Error adding a ship
« Reply #3 on: March 19, 2012, 03:24:15 AM »

Yep, got two in fact. Both are placeholders :P

Ooh, and thanks for clearing it up. There a tool, or did you actually go through and space it all out?

Didn't fix i-... I'm a goddamn idiot. I know what the problem is. Wouldn't have noticed it if you hadn't cleaned it up for me :P

Yep, it's fixed. I had the weapon slots in the variant as WS 010 etc. In the actual ship, that'd be WS-010. Oops :E
« Last Edit: March 19, 2012, 03:28:09 AM by Calodine »
Logged

megal00t

  • Commander
  • ***
  • Posts: 209
    • View Profile
Re: Error adding a ship
« Reply #4 on: March 19, 2012, 04:58:31 AM »

Www.jsonlint.com
Logged