How do you determine cause of crashing?

Discussion in 'Mod Discussions' started by killerkiwijuice, November 7, 2014.

  1. killerkiwijuice

    killerkiwijuice Post Master General

    Messages:
    3,879
    Likes Received:
    3,597
    I've been testing with a lot of stuff lately and crashing happens frequently from modding.

    How do you determine the cause of crash? I would like to know what went wrong instead of digging through sooooooo much code to find it. For example; I've modded a the nuke and when the fabber goes to build the actual model, the game crashes.
  2. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    Well first you validate your jsons
  3. killerkiwijuice

    killerkiwijuice Post Master General

    Messages:
    3,879
    Likes Received:
    3,597
    hehe that's the first thing I did ;)
    Raevn and cola_colin like this.
  4. killerkiwijuice

    killerkiwijuice Post Master General

    Messages:
    3,879
    Likes Received:
    3,597
    I got the model to build... but why does it look like this? o_O
    [​IMG]
  5. wondible

    wondible Post Master General

    Messages:
    3,315
    Likes Received:
    2,089
    If you run your own server on the terminal, sometimes it will output a message before it dies.
  6. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    Do you use rescale PA? if yes that is how it looks when you forgot to put the ...X textures next to the modified papa (or you have the client texture mod not enabled)
  7. emraldis

    emraldis Post Master General

    Messages:
    2,641
    Likes Received:
    1,843
    That's a new one...
  8. killerkiwijuice

    killerkiwijuice Post Master General

    Messages:
    3,879
    Likes Received:
    3,597
    I just deleted the entire nuke folder and replaced it because the ammo icons on the bottom were missing too. I was trying to make it build another kind of nuke but I guess that failed. And no, I didn't use rescalePA for this.
  9. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    hmm then all I can say is: that looks exactly like what happened when I renamed models for rescale pa but did not rename the textures. Basically PA failed to find the textures for that unit. If no textures are available at all it does what you see in that screenshot. If some of them are available, but not all of them it crashes.
  10. stuart98

    stuart98 Post Master General

    Messages:
    6,009
    Likes Received:
    3,888
    Textures have to be in the same directory as the model and have to have the same name except for an "_mask/material/diffuse" at the end.
  11. killerkiwijuice

    killerkiwijuice Post Master General

    Messages:
    3,879
    Likes Received:
    3,597
    I've been able to reproduce a new crash in my Dox4Lyf mod. I made the holkins twice as big in rescalepa and added it to everything (this new holkins is a giant one that takes 54400 metal to build and 100k power to maintain, the other holkins is still build-able), and that's about it for new things I did.

    When I try to skirmish the AI with the mod enabled, the only thing that loads are the planets. It looks like it crashes right when the spawn icons are about to show up (numbers 1 and 2). In fact, the entire UI for that matter.

    Anyone know what this could be from? I'm running on windows 7 so I can't use terminal.

    EDIT: i already verified game cache in steam
    Last edited: November 9, 2014
  12. killerkiwijuice

    killerkiwijuice Post Master General

    Messages:
    3,879
    Likes Received:
    3,597
    Well, i renamed the folder to something crazy (so it would not be loaded in the game) for the giant holkins and now it doesn't crash.

    That doesn't really make sense though...

    EDIT: When I renamed it back to the original (the giant holkins folder, not the normal holkins folder) "artillery_Xlong" it crashed.
  13. Raevn

    Raevn Moderator Alumni

    Messages:
    4,226
    Likes Received:
    4,324
    Check the PA log, if you've made an error in your unit json, it should pick it up.

Share This Page