Fractal Softworks Forum

Please login or register.

Login with username, password and session length

Author Topic: Fatal null on adding a factionfile  (Read 1787 times)

Spoorthuzad

  • Captain
  • ****
  • Posts: 284
  • Looking right into your soul
    • View Profile
Fatal null on adding a factionfile
« on: December 27, 2014, 08:38:50 AM »

So I have been creating a mod And when I added the factionfile (with a file that made sure the game reads the file)

I got a FATAL null error when i try to start the game.
This is the log!

Quote
24318 [Thread-5] ERROR com.fs.starfarer.combat.O0OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO  - java.lang.NullPointerException
java.lang.NullPointerException
   at com.fs.starfarer.loading.supersuper.<init>(Unknown Source)
   at com.fs.starfarer.loading.SpecStore.ÖO0000(Unknown Source)
   at com.fs.starfarer.loading.SpecStore.ö00000(Unknown Source)
   at com.fs.starfarer.loading.void.super(Unknown Source)
   at com.fs.A.oOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOOOOOOOOO.Ò00000(Unknown Source)
   at com.fs.starfarer.combat.O0OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO.super(Unknown Source)
   at com.fs.starfarer.StarfarerLauncher$2.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)

This is the faction file

Code

{
id:"infected",
"color":[85,0,0,255],
"displayName":"Infected",
"displayNameWithArticle":"Infected",
"displayNameLong":"Flu-X Infected",
"displayNameLongWithArticle":"the Flu-X Infected",
"logo":"graphics/factions/infected.png",
"shipNamePrefix":"FLU",
    "shipNameSources":{
"INFECTED":1,
},
"description":"Ships that are infeced with the FLU-X disease. People better not get to close to them.",
"names":{
"modern":1,
"fringe":1,
},
"illegalCommodities":[
],

"portraits":{
"standard_male":[
"graphics/portraits/portrait1.png",
],
"standard_female":[
"graphics/portraits/portrait1.png",
],
},
"shipRoles":{
"interceptor":{
"flx_necrobug_wing":10,
"fallback":{"fighter":1},
},
"fighter":{
"flx_necrohornet_wing":10,
"fallback":{"interceptor":1},
},
"bomber":{
"flx_necrospitter_wing":10,
},

"fastAttack":{
"flx_hound_standard":10,
"flx_lasher_standard":10,
"flx_wolf_strike":10,
"flx_tempest_standard":10,
"flx_vigilance_attack":10,
"fallback":{"combatSmall":1},
},

"escortSmall":{
"flx_wolf_support":10,
"flx_vigilance_assault":10,
"flx_brawler_standard":10,
"flx_lasher_standard":10,
"flx_necroraider_assault":10,
"flx_necroraider_support":10,
"flx_necrogunner_assault":10,
"flx_necrogunner_support":10,
"fallback":{"combatSmall":1},
},

"escortMedium":{
"flx_necroghoul_assault":10,
"flx_necroghoul_es":10,
"flx_necroghoul_pd":10,
"flx_necroskinner_standard":10,
"flx_necroskinner_elite":10,
"fallback":{"combatMedium":1},
},

"combatSmall":{
"flx_brawler_standard":10,
"flx_hound_standard":10,
"flx_lasher_standard":10,
"flx_necrogunner_assault":10,
"flx_necrogunner_support":10,
"flx_necroraider_assault":10,
"flx_necroraider_support":10,
"flx_tempest_standard":10,
"flx_vigilance_assault":10,
"flx_vigilance_attack":10,
"flx_wolf_strike":10,
"flx_wolf_support":10,
"fallback":{"escortSmall":1},
},
"combatMedium":{
"flx_necroghoul_assault":10,
"flx_necroghoul_es":10,
"flx_necroghoul_pd":10,
"flx_necroskinner_elite":10,
"flx_necroskinner_standard":10,
"flx_necrotarantula_standard":10,
"flx_necrotarantula_support":10,
"fallback":{"combatSmall":2},
},
"combatLarge":{
"flx_necronawler_standard":10,
"flx_necronawler_attack":10,
"flx_necroreaper_assault":10,
"flx_necroreaper_es":10,
"fallback":{"combatMedium":2},
},
"combatCapital":{
"flx_necromother_standard":10,
"flx_necromother_elite":10,
"fallback":{"combatLarge":2},
},

# hybrid ships with good combat and cargo capacity
"combatFreighterSmall":{
"flx_hound_standard":10,
"fallback":{"freighterSmall":1},
},
"combatFreighterMedium":{
"flx_necrotarantula_standard":10,
"flx_necrotarantula_support":10,
"fallback":{"combatFreighterSmall":2},
},
"combatFreighterLarge":{
"fallback":{"combatFreighterMedium":2},
},

"civilianRandom":{
"flx_necrohauler_standard":10,
"fallback":{"freighterSmall":1},
},


# carriers
"carrierSmall":{
"flx_necrotarantula_standard":10,
"flx_necrotarantula_support":10,
"fallback":{"carrierMedium":1},
},
"carrierMedium":{
"flx_necronawler_attack":10,
"flx_necronawler_standard":10,
"fallback":{"carrierSmall":2},
},
"carrierLarge":{
"fallback":{"carrierMedium":2},
},

# freighters and such
"freighterSmall":{
"flx_necrohauler_standard":10,
"fallback":{"freighterMedium":1},
},
"freighterMedium":{
"fallback":{"freighterSmall":2},
},
"freighterLarge":{
"flx_necromover_standard":10,
"fallback":{"freighterMedium":2},
},

"tankerSmall":{
"fallback":{"tankerMedium":1},
},
"tankerMedium":{
"fallback":{"tankerSmall":2},
},
"tankerLarge":{
"flx_necromover_standard":10,
"fallback":{"tankerMedium":2},
},

"personnelSmall":{
"fallback":{"personnelMedium":1},
},
"personnelMedium":{

"fallback":{"personnelSmall":2},
},
"personnelLarge":{
   "flx_necromover_standard":10,
"fallback":{"personnelMedium":2},
},

# utility ships
"tug":{
"fallback":{"utility":1},
},
"crig":{
"fallback":{"utility":1},
},
"utility":{
},
},
"traits":{
"admiral":{

},
"captain":{
"cowardly":1,
"cautious":1,
"steady":1,
"aggressive":1,
"suicidal":1,
"fearless":1,
},
},
"dialogue":{
"greetingFriendly":"You hear a soft mumbling and whispering. Suprisingly soothing.",
"greetingNeutral":"You hear nothing much.",
"greetingHostileAggressive":"You hear a threatening and hostile roar.",
"greetingHostileTimid":"You hear a loud roar obviously making clear that it is scared and in distress.",
}
},

« Last Edit: December 27, 2014, 08:55:19 AM by spoortje1 »
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 24127
    • View Profile
Re: Fatal null on adding a factionfile
« Reply #1 on: December 27, 2014, 10:48:29 AM »

Looks like something wrong with your shipRoles, but I don't see what at a glance. Maybe the empty "utility" entry?
Logged

Spoorthuzad

  • Captain
  • ****
  • Posts: 284
  • Looking right into your soul
    • View Profile
Re: Fatal null on adding a factionfile
« Reply #2 on: December 27, 2014, 10:57:41 AM »

Looks like something wrong with your shipRoles, but I don't see what at a glance. Maybe the empty "utility" entry?

Yeah i did remove those.... Lets put them back and see what happens
Logged

Spoorthuzad

  • Captain
  • ****
  • Posts: 284
  • Looking right into your soul
    • View Profile
Re: Fatal null on adding a factionfile
« Reply #3 on: December 27, 2014, 11:08:37 AM »

Looks like something wrong with your shipRoles, but I don't see what at a glance. Maybe the empty "utility" entry?

Yeah that fixed it :D
Thank you! you just solved a problem I have been stuck with for a few days...
Logged