Results 1 to 15 of 15

Thread: Error

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Derpy Hooves's Avatar Bombs for Muffins
    Join Date
    Jun 2010
    Location
    My flagship, the Litany of Truth, spreading DESPAIR across the galaxy
    Posts
    13,399

    Default Error

    So this is what it says in my log

    Spoiler Alert, click show to read: 

    08:37:51.326 [system.rpt] [always] CPU: SSE2
    08:37:51.326 [system.rpt] [always] ==== system log start, build date: Feb 25 2008 version development ===
    08:37:51.331 [system.io] [always] mounted pack packs/data_0.pack
    08:37:51.332 [system.io] [always] mounted pack packs/data_1.pack
    08:37:51.333 [system.io] [always] mounted pack packs/data_2.pack
    08:37:51.334 [system.io] [always] mounted pack packs/data_3.pack
    08:37:51.335 [system.io] [always] mounted pack packs/data_4.pack
    08:37:51.335 [system.io] [always] mounted pack packs/localized.pack
    08:38:20.188 [script.err] [error] Script Error in mods/Lodoss/data/export_descr_unit.txt, at line 489, column 63
    Invalid ownership type 'slave' found in unit 'Mailed Knights'.
    08:38:20.188 [data.invalid] [error] DATABASE_TABLE error found : error reading record from file mods/Lodoss/data/export_descr_unit.txt.


    Now I bet you (the reader) is thinking that I somehow changed the export_descr_unit.txt, well you are wrong. This has not happened before when I have done my tests, but after I had added made new files for names, and added quotes, this error popped up. Now in closing I must say that I have edited this file but that was after I got the first error that said it originated from the export_descr_unit.txt



  2. #2

    Default Re: Error

    Did you check mods/Lodoss/data/export_descr_unit.txt, at line 489, column 63?

    Computers never lie.

  3. #3
    Derpy Hooves's Avatar Bombs for Muffins
    Join Date
    Jun 2010
    Location
    My flagship, the Litany of Truth, spreading DESPAIR across the galaxy
    Posts
    13,399

    Default Re: Error

    Yes I did, there was nothing wrong (since I did not change that part of the file)

    Like I said everything worked perfectly, until I messed around with character names and quotes (which have no affect on the export_descr_unit.txt)



  4. #4
    /|\/|\/|\/|\/|\/|\/
    Join Date
    Jun 2005
    Posts
    10,770

    Default Re: Error

    Invalid ownership type 'slave' found in unit 'Mailed Knights'.
    08:38:20.188 [data.invalid] [error] DATABASE_TABLE error found : error reading record from file mods/Lodoss/data/export_descr_unit.txt.

    It says your battle_model for mailed knights is lacking an entry for slave.

    Since receiving this message have you already tried removing 'slave' from the 'ownership' line in the EDU entry for this unit?

    Now I bet you're thinking 'I only edited names and quotes, why won't the nasty man listen to me?'
    Last edited by Taiji; April 12, 2011 at 06:18 PM.

  5. #5
    irishron's Avatar Cura Palatii
    Moderator Emeritus

    Join Date
    Feb 2005
    Location
    Cirith Ungol
    Posts
    47,023

    Default Re: Error

    Did your names affect the names in the descr_strat.txt or campaign_script.txt?

  6. #6
    Derpy Hooves's Avatar Bombs for Muffins
    Join Date
    Jun 2010
    Location
    My flagship, the Litany of Truth, spreading DESPAIR across the galaxy
    Posts
    13,399

    Default Re: Error

    I don't know if it affected the campaign_script, but I know it did affect the descr_strat (also I removed all names)

    And Taiji, I did that every time it gave me a different entry, and as you can imagine I got sick of it and decided to ask the TWC forum



  7. #7

    Default Re: Error

    Quote Originally Posted by swordofjanak View Post
    I don't know if it affected the campaign_script, but I know it did affect the descr_strat (also I removed all names)

    And Taiji, I did that every time it gave me a different entry, and as you can imagine I got sick of it and decided to ask the TWC forum
    I'm going to take a wild guess here, but it sounds like the problem is a trivial syntax error. You're probably missing an opening or closing curly brace somewhere in your EDU. This would explain why a different unit gets messed up each time you fiddle with the EDU.

    To test my theory, use a text editor that can highlight matching braces for you. Just go to the last brace in the EDU and see if that lines up with the opening brace. It may be your EDU that's messed up, or maybe some other file, or both.

    If you had version control (git/mercurial/etc), you would never suffer from these cryptic error messages.
    Last edited by Kandid; April 12, 2011 at 10:06 PM.

  8. #8

    Default Re: Error

    Quote Originally Posted by Kandid View Post
    I'm going to take a wild guess here, but it sounds like the problem is a trivial syntax error. You're probably missing an opening or closing curly brace somewhere in your EDU. This would explain why a different unit gets messed up each time you fiddle with the EDU.

    To test my theory, use a text editor that can highlight matching braces for you. Just go to the last brace in the EDU and see if that lines up with the opening brace. It may be your EDU that's messed up, or maybe some other file, or both.

    If you had version control (git/mercurial/etc), you would never suffer from these cryptic error messages.
    EDU doesn't use curly brackets.

    Invalid ownership means that the faction dosen't exist as a valid choice, check descr_sm_factions for the slave faction. Failing that set your log settings to trace. And post the line specified in the log, here in full.
    Code:
    [log]
    to=logs/lodoss.system.log.txt
    level = * trace
    file = game.script.* logs/lodoss.script2.log.txt
    file = game.script* logs/lodoss.script.log.txt
    file = game.script logs/lodoss.scriptoutput.log.txt

  9. #9

    Default Re: Error

    Quote Originally Posted by Eothese View Post
    EDU doesn't use curly brackets.
    Oops, I was thinking of the EDB.

    Anyway, as Taiji pointed out, assigning a unit to a non-existant faction will certainly result in a crash. Well, referring to any undefined variable will likely result in a crash somewhere down the line.

  10. #10
    /|\/|\/|\/|\/|\/|\/
    Join Date
    Jun 2005
    Posts
    10,770

    Default Re: Error

    A different unit or a different faction each time?
    Last edited by Taiji; April 12, 2011 at 06:56 PM.

  11. #11
    Derpy Hooves's Avatar Bombs for Muffins
    Join Date
    Jun 2010
    Location
    My flagship, the Litany of Truth, spreading DESPAIR across the galaxy
    Posts
    13,399

    Default Re: Error

    both



  12. #12
    /|\/|\/|\/|\/|\/|\/
    Join Date
    Jun 2005
    Posts
    10,770

    Default Re: Error

    I think Eothese is likely to be right. Probably something is messed up with regard to your factions.
    Last edited by Taiji; April 13, 2011 at 06:42 AM.

  13. #13
    Derpy Hooves's Avatar Bombs for Muffins
    Join Date
    Jun 2010
    Location
    My flagship, the Litany of Truth, spreading DESPAIR across the galaxy
    Posts
    13,399

    Default Re: Error

    So, are you saying I should remove all the faction names in the export_unit_descr.txt that don't show up in the mod?



  14. #14
    /|\/|\/|\/|\/|\/|\/
    Join Date
    Jun 2005
    Posts
    10,770

    Default Re: Error

    You cannot give ownership for a unit to a non-existant faction, so you will have to amend every instance where this is the case.

    It's worth noting that normally modders keep the internal names for factions. You can change the displayed name and avoid having to change everything you are going to have to change by doing it the other way.

    For future reference: When you referred to names in your opening post it was natural to assume you meant character names. Had you mentioned changing faction names, or removing the factions referred to in the error message, this would have been a much easier problem for us to help you solve.

    I'm telling you that to help you, not to reprimand you. I hope you're not offended.
    Last edited by Taiji; April 13, 2011 at 06:45 PM.

  15. #15
    /|\/|\/|\/|\/|\/|\/
    Join Date
    Jun 2005
    Posts
    10,770

    Default Re: Error

    Eothese raised that issue, I merely reiterated

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •