Page 3 of 5 FirstFirst 12345 LastLast
Results 41 to 60 of 81

Thread: EDB validator

  1. #41

    Default

    I used this EDB Validator on a completely-newly installed v1.5 vanilla RTW, and it said that
    at line 657 in vanilla EDB file:

    RTW EDB syntax:
    Error parsing line 657: Missing a space between the last culture/faction name and the closing '}'

    This is incorrect, because line 657 is:
    recruit "egyptian bedouin" 0 requires factions { egyptian, } and resource camels

    There is no problem with the brackets.
    Could someone explain why the EDB validator does that?
    and since it only displays the first error, it is stuck at this line, and I am unable to use it to check the rest of the file. recruit "egyptian bedouin" 0 requires factions { egyptian, } and resource camels
    Last edited by Squid; November 25, 2009 at 02:24 PM. Reason: double post

  2. #42
    Caligula Caesar's Avatar Horse Lord
    Join Date
    Dec 2008
    Location
    England
    Posts
    5,510

    Default Re: EDB validator

    There should be a space before the comma, I think.
    RTR-VII Team Leader and Leader of Fortuna Orbis, an RTR Submod

    "History has only one concern and aim, and that is the useful; which again has one single source, and that is truth." -Lucian of Samosata

    Fortuna Orbis Beta is released!

  3. #43
    HouseOfHam's Avatar Primicerius
    Join Date
    Apr 2007
    Location
    Minnesota, USA
    Posts
    3,030

    Default Re: EDB validator

    Scanning files in C:\Program Files (x86)\Activision\Rome - Total War\data ...

    RTW EDB syntax:
    Error parsing line 657: Missing a space between the last culture/faction name and the closing '}'.
    Token='roman,}'

    Note: Only the first detected error is reported. Fix and re-select the mod folder to check if
    there are any other issues.
    This is the line it's complaining about:
    Code:
                                    stage_races 1 requires factions { roman,}
    RTR website/SVN admin

    - Settlement coordinate locator -for RTW/M2TW
    - EDB Validator v1.2.8 (Oct 16, 2012) - for RTW/M2TW
    - RTW scripting tutorials
    - n-turns per year script generator

  4. #44
    Squid's Avatar Opifex
    Patrician Artifex Technical Staff

    Join Date
    Feb 2007
    Location
    Frozen waste lands of the north
    Posts
    17,760
    Blog Entries
    3

    Default Re: EDB validator

    And if you notice there's no space after the semi-colon.
    Under the patronage of Roman_Man#3, Patron of Ishan
    Click for my tools and tutorials
    "Two things are infinite: the universe and human stupidity; and I'm not sure about the universe." -----Albert Einstein

  5. #45

    Default Re: EDB validator

    Has this project been abandoned? It is a very useful tool...

    By the way, it works only for x86 operating systems because the link goes into %windir%\system32\... x64 OS need %windir%\sysWOW64.

    Here it is for x64 OS.


  6. #46
    Squid's Avatar Opifex
    Patrician Artifex Technical Staff

    Join Date
    Feb 2007
    Location
    Frozen waste lands of the north
    Posts
    17,760
    Blog Entries
    3

    Default Re: EDB validator

    That shouldn't matter as all windows 64bit OSs still have a sys32 folder. I've also successfully used this both on 64-bit Vista and 64-bit Win 7.
    Under the patronage of Roman_Man#3, Patron of Ishan
    Click for my tools and tutorials
    "Two things are infinite: the universe and human stupidity; and I'm not sure about the universe." -----Albert Einstein

  7. #47

    Default Re: EDB validator

    Yes, but I do not have any javaw.exe file in my system32 folder. I have it in the sysWow folder instead.


  8. #48
    HouseOfHam's Avatar Primicerius
    Join Date
    Apr 2007
    Location
    Minnesota, USA
    Posts
    3,030

    Default Re: EDB validator

    That's a non-standard location. Don't know why you'd have it there. But, as you had already found out, it's only a matter of changing the shortcut to point to wherever you have Java installed. There is nothing to fix in the code.

    Regarding project status: The program does what I wanted it to do. I haven't seen any requests for new features or bug reports, so I've pretty much left it alone. Most of what could be added is already done by the Zeus tool. I can't think of a reason why I'd want to spend time duplicating that functionality.
    RTR website/SVN admin

    - Settlement coordinate locator -for RTW/M2TW
    - EDB Validator v1.2.8 (Oct 16, 2012) - for RTW/M2TW
    - RTW scripting tutorials
    - n-turns per year script generator

  9. #49
    Squid's Avatar Opifex
    Patrician Artifex Technical Staff

    Join Date
    Feb 2007
    Location
    Frozen waste lands of the north
    Posts
    17,760
    Blog Entries
    3

    Default Re: EDB validator

    Quote Originally Posted by Spartan 666 View Post
    Yes, but I do not have any javaw.exe file in my system32 folder. I have it in the sysWow folder instead.
    As HoH points out that's a non standard location for your java exe's to be located. Depending on if you installed the 32-bit or 64-bit version of java (on a 64-bit OS) it should appear in Program Files (x32) or Program Files directory. Your likely problem is that the java bin folder is not on your PATH environment variable.
    Under the patronage of Roman_Man#3, Patron of Ishan
    Click for my tools and tutorials
    "Two things are infinite: the universe and human stupidity; and I'm not sure about the universe." -----Albert Einstein

  10. #50

    Default Re: EDB validator

    @ HoH: so what is not done by this tool is done by Zeus. Good to know, I'll always use them together then!

    @ Squid & HoH: indeed that's strange, maybe because I have installed the x86 Java on an x64 OS. Well who cares, it's only a matter of changing a shortcut! Thanks both of you!


  11. #51
    Squid's Avatar Opifex
    Patrician Artifex Technical Staff

    Join Date
    Feb 2007
    Location
    Frozen waste lands of the north
    Posts
    17,760
    Blog Entries
    3

    Default Re: EDB validator

    The reason it works in the syswow64 folder is there are java run time files there (java.exe, javaw.exe, and javas.exe), but you should be able to use these files from wherever on your computer if your path is set correctly.
    Under the patronage of Roman_Man#3, Patron of Ishan
    Click for my tools and tutorials
    "Two things are infinite: the universe and human stupidity; and I'm not sure about the universe." -----Albert Einstein

  12. #52

    Default Re: EDB validator

    Well appearently my Win7 Pro x64 doesn't get too well with Java. For some reason it can't read the enviroment variables I set. Right now I have installed both x86 and x64 versions of Java, then I tried a "javafix" executable and I got .jar files working again. Java is far too much for my poor programming skills..


  13. #53
    HouseOfHam's Avatar Primicerius
    Join Date
    Apr 2007
    Location
    Minnesota, USA
    Posts
    3,030

    Default Re: EDB validator

    Version 1.2.2 posted. Changes:

    v1.2.2
    - When reporting errors found in export_buildings.txt, show that the error is in that file rather than in EDB
    - Added an optional check for tabs. When enabled, leading/trailing tabs are still considered ok, but tab in the middle of the line are flagged as errors
    - Added a check to catch the use of building_present/building_present_min_level requirement condition in recruit capability lines (known cause of CTDs)
    RTR website/SVN admin

    - Settlement coordinate locator -for RTW/M2TW
    - EDB Validator v1.2.8 (Oct 16, 2012) - for RTW/M2TW
    - RTW scripting tutorials
    - n-turns per year script generator

  14. #54
    HouseOfHam's Avatar Primicerius
    Join Date
    Apr 2007
    Location
    Minnesota, USA
    Posts
    3,030

    Default Re: EDB validator

    Version 1.2.3 posted. Changes:

    v1.2.3
    - Interface clean-up
    - Minor bug fix in handling intermixed delimiters (both tabs and spaces) when set not to report tabs as errors
    - Now will remember last used settings when you restart the program (settings are saved when you run a validation)
    - Now works with RS2-like folder structure
    RTR website/SVN admin

    - Settlement coordinate locator -for RTW/M2TW
    - EDB Validator v1.2.8 (Oct 16, 2012) - for RTW/M2TW
    - RTW scripting tutorials
    - n-turns per year script generator

  15. #55
    Gigantus's Avatar I am not special - I am a limited edition.
    Patrician took an arrow to the knee spy of the council

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    53,123
    Blog Entries
    35

    Default Re: EDB validator

    I just came across a bug (version 1.2.3):

    Error parsing line 3077 of C:\MyGames\Medieval II Total War\mods\xxxxxxx\data\text\export_buildings.txt: Missing the closing right curly brace after the building tag
    When I move that section of the EDB to the end of the file, I still get the same error, at the same line.

    I then unticked the "check for missing building descriptions" which promptly threw up a tab related error. After unticking that option as well the log returned error free.
    Tab error (for every recruit_pool entry): recruit_pool<TAB>"[unit_name]" 1 0.30 2 0 requires factions { [faction_name], }

    Any thoughts where I might have to check?

    Edit: corrected all the <TAB> errors with Notepad++
    The line error remains when the "check for missing building descriptions" is checked, else the log is error free.
    Last edited by Gigantus; December 27, 2010 at 10:56 AM.










  16. #56
    HouseOfHam's Avatar Primicerius
    Join Date
    Apr 2007
    Location
    Minnesota, USA
    Posts
    3,030

    Default Re: EDB validator

    If you read the error message carefully, you'll notice that the error is in text\export_buildings.txt, not in export_descr_buildings.txt - there is a line that looks like {whatever_building that's missing the }
    RTR website/SVN admin

    - Settlement coordinate locator -for RTW/M2TW
    - EDB Validator v1.2.8 (Oct 16, 2012) - for RTW/M2TW
    - RTW scripting tutorials
    - n-turns per year script generator

  17. #57
    Gigantus's Avatar I am not special - I am a limited edition.
    Patrician took an arrow to the knee spy of the council

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    53,123
    Blog Entries
    35

    Default Re: EDB validator

    Dooooh - Thanks.

    Note to self: never assume again that the EDB checker only handles the EDB.


    Edit: thought I just share some strange stuff. Underneath the line in question (3077) highlight left in notepad and right in notepad++ I am assuming some weird formatting might be the reason. No wonder I didn't find it initially (after my booboo).



    .
    Last edited by Gigantus; December 28, 2010 at 03:26 AM.










  18. #58
    HouseOfHam's Avatar Primicerius
    Join Date
    Apr 2007
    Location
    Minnesota, USA
    Posts
    3,030

    Default Re: EDB validator

    v1.2.4
    - When a plugin definition is detected, will give a warning and skip over it, rather than abort with error.

    For more info on building plugins, see http://forums.totalwar.org/vb/showth...ide-to-Plugins
    RTR website/SVN admin

    - Settlement coordinate locator -for RTW/M2TW
    - EDB Validator v1.2.8 (Oct 16, 2012) - for RTW/M2TW
    - RTW scripting tutorials
    - n-turns per year script generator

  19. #59

    Default Re: EDB validator

    Great tool,
    the scientific notation seems to work fine,
    the plain 0.999 one causes errors ( atleast it does for me) oddly enough

  20. #60

    Default Re: EDB validator

    Hi
    Probably a stupid question what's an EDB?
    Rome Total War Randomiser --- Thread --- Source Code

    RTWLIB --- C#Library for manipulating and parsing the Rome Total War files. WIP.

Page 3 of 5 FirstFirst 12345 LastLast

Posting Permissions

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