How do I find errors in .inc scripts?

Discussion in 'Modding' started by Ftoomsh, Feb 22, 2018.

  1. Ftoomsh

    Ftoomsh Well-Known Member

    How do I find errors in .inc scripts? Compile scripts only shows errors in . script scripts as far as I can see. My log shows there is an error in a .inc but not which line and what it is. How do I find it? Is it by compiling .incs somehow or by setting another log file flag? I can't find out how to do either of these.
  2. Ebel

    Ebel Moderator Staff Member

    Already explained over steam chat, but for the benefit of others:

    - start external editor, when the console window is up with the log ; right click on it
    - go to statemachine at the bottom, then select 'edit- modal', then," file - open"
    - select your .inc file, you may have to select at the bottom 'all files' type
    - then go to "states" at top ; and hit compile
    should tell you the error.
  3. Ftoomsh

    Ftoomsh Well-Known Member

    Thank you, I had cause to use it and I found an error this way. Before knowing this I spent 2 hours finding a missing underscore in my coding, lol! With my eyes I can hardly see an underscore. Perhaps I need new glasses!