عن المشروع

Otter (OpenTTD map makER) is a suite of Python tools designed to facilitate the creation of real-world custom maps and scenarios for the game OpenTTD. The project adopts a Geographic Information System (GIS) approach, allowing users to transform real-world coordinates into OpenTTD's game-grid coordinates and vice versa. While GIS knowledge is not strictly required, it enhances the workflow's potential. Key capabilities include: - **Heightmap Generation**: Integrates with 'Bother' to download SRTM terrain data and scale images to create custom heightmaps. - **Data Conversion**: Converts georeferenced rasters and handles data transformations between real-world locations (latitude/longitude) and game grid positions. - **OSM Integration**: Queries OpenStreetMap (via Overpass API) to retrieve locations and populations of cities and towns, supporting outputs in CSV, Excel, GeoJSON, or Shapefile formats. - **Scenario Automation**: Generates JSON files compatible with OpenTTD's scenario builder and creates gamescripts (Squirrel code) to automatically place towns, industries, signs, and water features like mountain lakes. - **Flexible Input**: Supports various data types including Pandas DataFrames, GeoDataFrames, lists, and file paths for CSV, Excel, and shapefiles, with dynamic filtering options. The tool is particularly useful for players who want to recreate specific real-world regions in OpenTTD with accurate geography and settlement patterns. It streamlines the previously cumbersome process of manual map editing by leveraging Python scripts for data processing and game script generation.