Wargus / wargus

Importer and scripts for Warcraft II: Tides of Darkness, the expansion Beyond the Dark Portal, and Aleonas Tales
GNU General Public License v2.0
355 stars 55 forks source link

Cannot load maps of rectangular sizes #402

Closed SimoneStarace closed 2 years ago

SimoneStarace commented 2 years ago

Describe the bug I was simply playing around with the map editor and I wanted to make a map of rectangular size, like 32x64. The map loaded absolutely fine with also the minimap displaying correctly all the tiles where I can place units, tiles etc. After a first draft of the map I decided to save it and work on it another day but then when I loaded the map half of the map was glitchy and if I try to put a tile on the glitchy part the games crashes.

To Reproduce Once the game is started, just do this:

  1. Click on Map Editor
  2. Click on New Map
  3. Set a rectangular size of the map, for example 32x64 or 128x64. The Map description and TileSet can be left as they are.
  4. Save the map with whatever name you want
  5. Click again on Map Editor
  6. Load the map that you have saved and then you'll get the white side of the map where you can't do much with it.

Expected behavior I want to simply save and load maps with rectangular sizes.

Screenshots and Logs Istantanea_2021-11-25_17-58-57 Istantanea_2021-11-25_18-04-08

Desktop (please complete the following information):