Fractal Softworks Forum

Please login or register.

Login with username, password and session length

Author Topic: Fatal:null error on viewing own fleet  (Read 2094 times)

StanT101

  • Ensign
  • *
  • Posts: 14
    • View Profile
Fatal:null error on viewing own fleet
« on: October 17, 2019, 02:25:38 AM »

Hello! So I've been playing this one campaign for a awhile now, and the issue I ran into is, that after one of the custom orders for a ship, whenever I view my stored ships, the game CTDs. Of not is the fact that it only CTDs past certain point(I tried taking out ships one by one, and I know for sure which ones dont crash the game). The only similar issue I've found here was this http://fractalsoftworks.com/forum/index.php?topic=15634.0 and this http://fractalsoftworks.com/forum/index.php?topic=16865.0.

Below is starsector.log
https://pastebin.com/uYZg42R6

and here is my mod list:
Spoiler
"raccoonarms",
  "blackrock_driveyards",
  "chatter",
  "istl_dam",
  "diableavionics",
  "DisassembleReassemble",
  "sun_fuel_siphoning",
  "GKSec",
  "ZGrand Sector",
  "hiigaran_descendants",
  "Imperium",
  "junk_pirates_release",
  "kadur_remnant",
  "lw_lazylib",
  "leadingPip",
  "MagicLib",
  "Neutrino",
  "nexerelin",
  "ORA",
  "SCY",
  "shadow_ships",
  "swp",
  "bonomel_skilledup",
  "speedUp",
  "sun_starship_legends",
  "Sylphon_RnD",
  "tahlan",
  "underworld",
  "US",
  "ungp",
  "URW",
  "vayrashippack",
  "lw_version_checker",
  "toggleWeapons",
  "audio_plus",
  "shaderLib",
  "prv"
[close]

It's pretty easy to replicate otherwise(I had made many CTDs trying to figure out the source of an issue).

Update! It turns out it was cross mod custom autofit variant that I had set up that caused a crash. I cleared the autofit variants and there were no more issues with ordering the ship.
« Last Edit: October 19, 2019, 12:22:39 AM by StanT101 »
Logged

StanT101

  • Ensign
  • *
  • Posts: 14
    • View Profile
Re: Fatal:null error on viewing own fleet
« Reply #1 on: October 17, 2019, 02:27:58 AM »

I'm also wondering now if its possible to somehow remove ships/items from storage wihtout being in it(with console commands maybe?).
Logged

StanT101

  • Ensign
  • *
  • Posts: 14
    • View Profile
Re: Fatal:null error on viewing own fleet
« Reply #2 on: October 17, 2019, 11:50:33 PM »

Update!
I've been fooling around and found the culprit(I think)..
It seems that ordering maufan-class combat transport(Dassault-Mikoyan mod) seems to be crashing the game.
I've changed production target planet(since original one is still corrupted), and started ordering ships trying to find the one that would crash the game, thats the way i've found it.

Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 24130
    • View Profile
Re: Fatal:null error on viewing own fleet
« Reply #3 on: October 18, 2019, 09:03:04 AM »

Hi - looking at the stack trace, this seems like it's caused by a modular ship (i.e. sort of like a station - with independent modules that can be destroyed) - having either a bad slot id for one of its modules or having an invalid variant in one of the slots. Might be worth mentioning this to the mod's author; there's a non-zero chance this is a data issue in the mod, though it could also be something else.

To get around this in your save, I think the easiest thing to do would be to clear out the ships in your old gathering point. To do this, run the following console command, all in one line:

RunCode Global.getSector().getPlayerFaction().getProduction().getGatheringPoint().getSubmarket("storage").getCargo().getMothballedShips().clear();
Logged

StanT101

  • Ensign
  • *
  • Posts: 14
    • View Profile
Re: Fatal:null error on viewing own fleet
« Reply #4 on: October 19, 2019, 12:01:08 AM »

Hi - looking at the stack trace, this seems like it's caused by a modular ship (i.e. sort of like a station - with independent modules that can be destroyed) - having either a bad slot id for one of its modules or having an invalid variant in one of the slots. Might be worth mentioning this to the mod's author; there's a non-zero chance this is a data issue in the mod, though it could also be something else.

To get around this in your save, I think the easiest thing to do would be to clear out the ships in your old gathering point. To do this, run the following console command, all in one line:

RunCode Global.getSector().getPlayerFaction().getProduction().getGatheringPoint().getSubmarket("storage").getCargo().getMothballedShips().clear();
Hi Alex! Thank you for the reply and and for the solution! I will get in touch with Soren about this.
I will also take this opportunity to thank you for the great game and just as great attention that you give to all things around starsector, be it mods, community or just simple posts like mine. I really appreciate your work. And the blog posts are of special value for me, as they gave me insight into the way to think about developing your mechanics.
soo..yep thats that
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 24130
    • View Profile
Re: Fatal:null error on viewing own fleet
« Reply #5 on: October 19, 2019, 08:30:59 AM »

Thank you for your kind words! In turn, I appreciate your support :)
Logged

Harmful Mechanic

  • Admiral
  • *****
  • Posts: 1340
  • On break.
    • View Profile
Re: Fatal:null error on viewing own fleet
« Reply #6 on: October 19, 2019, 01:07:47 PM »

I've never had a CTD with that particular ship so I'm not sure what it could be, but anything you can tell me about the precise circumstances (which hullmod, etc) would be helpful.
Logged

StanT101

  • Ensign
  • *
  • Posts: 14
    • View Profile
Re: Fatal:null error on viewing own fleet
« Reply #7 on: October 20, 2019, 01:58:37 AM »

I've never had a CTD with that particular ship so I'm not sure what it could be, but anything you can tell me about the precise circumstances (which hullmod, etc) would be helpful.
So I will sum everything up here.
I made custom autofit variant for maufan, with everything stripped and added hullmod from scyan engineering "minimal preparation".
I ordered it from custom production, and when i enter market to take the ships, game crashes with fatal:null error.

Things have tried:
1. I can order and take maufans if there isn't autofit variant mentioned above, without issues
2. I can make my owned maufans with that hullmod just fine

Things i havent tried:
1. Ordering other DMS ships with autofit with other mod hullmods present
2. Ordering other ships with cross mod hullmod autofits

I think that should be everything i have for now. I might do further testing when I have time.
I do hope that this helps.
« Last Edit: October 20, 2019, 02:09:13 AM by StanT101 »
Logged

Harmful Mechanic

  • Admiral
  • *****
  • Posts: 1340
  • On break.
    • View Profile
Re: Fatal:null error on viewing own fleet
« Reply #8 on: October 20, 2019, 07:38:07 PM »

If you made the variant file yourself (it's not clear from your posts), then I'd need that file to test it. It's likely that you messed something up in the process, so to duplicate it I'd need to see what you did.

I did look over all the existing variant files for the Mouflon (you did mean the Mouflon, yes?) briefly, and nothing seemed out of place, and I tested what I think you did and didn't get a CTD.
Logged

StanT101

  • Ensign
  • *
  • Posts: 14
    • View Profile
Re: Fatal:null error on viewing own fleet
« Reply #9 on: October 20, 2019, 10:13:21 PM »

If you made the variant file yourself (it's not clear from your posts), then I'd need that file to test it. It's likely that you messed something up in the process, so to duplicate it I'd need to see what you did.

I did look over all the existing variant files for the Mouflon (you did mean the Mouflon, yes?) briefly, and nothing seemed out of place, and I tested what I think you did and didn't get a CTD.
I will reiterate a bit here. What I meant by making my own variant is, in game in autofit menu, I added another one in blank space. For that variant of mouflon that I added, I made sure to hit T(strip it of everything) and added ONLY "minimal preparation" scyan hull-mod,
to make sure that just my variant would be manufactured in custom order. And only manufactured Mouflon with "minimal preparation" made game CTD when trying to take it out of storage.

If you want a file for testing, do let me know which one I should send you. And I do apologize, sometimes I over complicate my explanations.
Logged

Harmful Mechanic

  • Admiral
  • *****
  • Posts: 1340
  • On break.
    • View Profile
Re: Fatal:null error on viewing own fleet
« Reply #10 on: October 21, 2019, 12:43:58 AM »

You shouldn't be able to order specific autofit variants in custom production. You order hulls and weapons individually. So I don't know what you're doing.

What this sounds like is an error caused by merging an old mod folder with an updated one. Try deleting your copy of DME and reinstalling it, then see if it's causing the same error.
Logged

Histidine

  • Admiral
  • *****
  • Posts: 4688
    • View Profile
    • GitHub profile
Re: Fatal:null error on viewing own fleet
« Reply #11 on: October 21, 2019, 04:40:55 AM »

We've already seen that modular ships don't like player-made variants, so maybe just delete the custom variant and manually install the hullmod on ships you want to use.
Logged

StanT101

  • Ensign
  • *
  • Posts: 14
    • View Profile
Re: Fatal:null error on viewing own fleet
« Reply #12 on: October 21, 2019, 04:46:14 AM »

I know that there is no ordering custom autofits, but I read somewhere(can't remember where exactly rn) that game might take player autofits when doing custom production if there is no other autofit variant, or it bight be one of the multiple saved ones(i. E. Default and custom autofits)
I have a fresh install of the mods listed(all of them), i will still try to reinstall and also will test if custom production might take player made autofits.
« Last Edit: October 21, 2019, 10:17:58 AM by StanT101 »
Logged

StanT101

  • Ensign
  • *
  • Posts: 14
    • View Profile
Re: Fatal:null error on viewing own fleet
« Reply #13 on: October 21, 2019, 04:47:19 AM »

We've already seen that modular ships don't like player-made variants, so maybe just delete the custom variant and manually install the hullmod on ships you want to use.
That is basically what I am doing now
Logged