How could I determine cause of server crash?

Discussion in 'Mod Support' started by killerkiwijuice, December 31, 2014.

  1. killerkiwijuice

    killerkiwijuice Post Master General

    Messages:
    3,879
    Likes Received:
    3,597
    I keep getting seemingly random server crashes when testing the Ant4Lyf mod, and nothing points to why it's happening.

    When testing with real players instead of AI, it crashed randomly at around the 17 minute mark. Games with AI crash ranging between 1 minute to the longest I can stay in the game.

    Is there some way I can find out why this is happening, or is it just Uber and there's nothing I can do about it?
  2. wondible

    wondible Post Master General

    Messages:
    3,315
    Likes Received:
    2,089
    Sometimes you can pick things up from the server output. Find your PA binary. There should be a server one next to it. Get a terminal window there and run ./server --headless When you run PA and start a local game, it should connect to the server and you'll see a bunch of text start scrolling. When the server crashes, look at the last few lines; you can also scan back for any earlier warnings.
    killerkiwijuice likes this.
  3. stuart98

    stuart98 Post Master General

    Messages:
    6,009
    Likes Received:
    3,888
    You can try looking at the log files to see what might be the cause.

    I can give you a heads up as to what the cause of the crash was most likely.

    If a unit such as your leveler has multiple weapons that use the ammo system the server will crash when it dies due to an engine bug that Uber isn't going to fix any time soon. Only solution is to remove the ammo system from one of the weapons.
    killerkiwijuice likes this.
  4. killerkiwijuice

    killerkiwijuice Post Master General

    Messages:
    3,879
    Likes Received:
    3,597
    Is it supposed to immediately crash because I deleted the giant leveler and after the nuke death explosion, the server's fine.
  5. stuart98

    stuart98 Post Master General

    Messages:
    6,009
    Likes Received:
    3,888
    It might require the unit to have fired first, I can't remember what the results of my testing were for sure.

    I'm not sure that it's the leveler, that was just a guess. Any unit/building with multiple weapons that use the ammo system are cause for problems.
  6. killerkiwijuice

    killerkiwijuice Post Master General

    Messages:
    3,879
    Likes Received:
    3,597
    Wait a minute what's the ammo system lol.

    Just anything that has a weapon?
  7. stuart98

    stuart98 Post Master General

    Messages:
    6,009
    Likes Received:
    3,888
    Ammo system is the following lines a weapon.json:
    "ammo_capacity": number,
    "ammo_demand": number,
    "ammo_per_shot": number,
    "ammo_source": metal or energy

    It's how we make weapons that fire in volleys.
  8. killerkiwijuice

    killerkiwijuice Post Master General

    Messages:
    3,879
    Likes Received:
    3,597
    but wouldn't that mean the server would crash when a holkins dies?
  9. stuart98

    stuart98 Post Master General

    Messages:
    6,009
    Likes Received:
    3,888
    The holkins only has one weapon file that uses the ammo system.
    killerkiwijuice likes this.
  10. wondible

    wondible Post Master General

    Messages:
    3,315
    Likes Received:
    2,089
    Vanilla levelers don't use it, so if you are just riffing that, it shouldn't be a problem.

    Artillary, bombers, and uber cannons use ammo system with energy. Nukes, anti-nukes, and possibly the unit cannon use with the special type factory. Metal ammo also worked last I checked.
    killerkiwijuice likes this.
  11. killerkiwijuice

    killerkiwijuice Post Master General

    Messages:
    3,879
    Likes Received:
    3,597
    I think this was the problem. Thanks @stuart98

    The experimental leveler used a uber cannon, but it was assigned to both muzzles.
  12. stuart98

    stuart98 Post Master General

    Messages:
    6,009
    Likes Received:
    3,888
  13. Pendaelose

    Pendaelose Well-Known Member

    Messages:
    536
    Likes Received:
    407
    This post saved me. I was experimenting with giving the SXX anti-orbit abilities and it started crashing for no reason I could understand. I had copied it's main weapon which happened to use the ammo system.
    stuart98 likes this.

Share This Page