Skip to main content

Ortho4XP Tile Validator

Project description

Have you:

  • Built dozens if not hundreds of Ortho4XP tiles, but now get mysterious crashes when scenery tries to load?

  • Had your Ortho4XP process crash during the night and don’t know which tiles completed successfully?

I have. So I wrote a utility to scan through all the Ortho4XP tiles and validate them, reporting any tiles that have errors so I can fix them in Ortho4XP.

Installation

If you already have Python(v3) installed and working, you can use pip3 to install:

$ pip3 install otv

Otherwise, head over to GitHub or PyPi and download the latest release.

Getting Started

There are three ways to run the program:

  1. If you installed via the pip3 installer, you’ll have an executable named otv available, so you should be able to:

    1. cd into your Ortho4XP directory

    2. run otv

  2. Download the latest release from PyPi or GitHub and extract it into a folder. From the command line, run:

    python3 bin/otv YourOrtho4XPdir

    (Obviously; change “YourOrtho4XPdir” to wherever you’ve stored your Ortho Tiles)

  3. If you’re on windows, and prefer an EXE, download the latest release from GitHub or PyPi, then:

    1. Extract the package (anywhere on your filesystem)

    2. Create a shortcut from bin/otv.exe on your desktop (must be a shortcut).

    3. Go to the Properties of the shortcut and change the “Start In” field to point to your Ortho4XP directory.

    Then you can simply double click the shortcut to run the utility anytime.

More Info

  • Running otv without any additional arguments will give you a help message:

    usage: Ortho4XP Tile Validator [-q | -v] [-p | --no-pause] [--no-progress]
                                   [-h] [--version]
                                   [tile_directory]
    
    Scan all Ortho4XP Tiles and report any problems
    
    positional arguments:
      tile_directory     Directory where Tiles are stored (usually your Ortho4XP
                         dir) - If not provided; will use the current directory
    
    display output:
      -q, --quiet        Suppresses all output; exit value indicates errors found
      -v, -V, --verbose  Increase verbosity (repeat to increase verbosity more)
    
    alter defaults:
      -p, -P, --pause    Pause the program before exiting (default for Windows)
      --no-pause         Disable auto-pause
      --no-progress      Disables the progress bar display
    
    help and information:
      -h, --help         show this help message and exit
      --version          show program's version number and exit
  • Currently, it checks for things like:

    • missing or empty data directories (Earth Nav Data, Terrain, Textures)

    • missing references to textures from each terrain file

    • textures which exist but aren’t referenced from a terrain

  • You can find the pip page on PyPi and the source code on GitHub (both provide package downloads)

OTV is currently in beta, so if you’re interested, please try it out and let me know how it works for you. I would appreciate any feedback and/or bug reports.

Known Issues

  • On Windows, the utility will pause after each run, even if running from a command line. This is done because most Windows users will be running the util from a Shortcut, so the pause is necessary without having to specifically add it. You can use the --no-pause option to disable this functionality

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

otv-1.0.1.tar.gz (5.7 MB view details)

Uploaded Source

Built Distribution

otv-1.0.1-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

File details

Details for the file otv-1.0.1.tar.gz.

File metadata

  • Download URL: otv-1.0.1.tar.gz
  • Upload date:
  • Size: 5.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for otv-1.0.1.tar.gz
Algorithm Hash digest
SHA256 6621776fa844bc7aab150fe2f0a632a1d730f5e4a79b9cec688db48ad1691de6
MD5 486efec3749ac10e78674273fbc2667f
BLAKE2b-256 eac9003390e0851fe6d5b0cb5ae964b53339e9af517a1427ba05922abab1940c

See more details on using hashes here.

File details

Details for the file otv-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for otv-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7f2ef17fdfa4f3695740f77fc52cb61c13e2409dd2b31fb5a9834229ed48a5c1
MD5 e5c55e3009b0e06c2b91e4a7e420bd25
BLAKE2b-256 8afe8dffa9cf9a410099363d9f3c40ac7fd3c83832f211369bf62f4e8f15c9db

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page